1 2011-12-15 Jakub Jelinek <jakub@redhat.com>
3 * tree-vectorizer.h (struct _stmt_vec_info): Remove pattern_def_stmt
4 field, add pattern_def_seq.
5 (STMT_VINFO_PATTERN_DEF_STMT): Remove.
6 (STMT_VINFO_PATTERN_DEF_SEQ): Define.
7 (NUM_PATTERNS): Bump to 10.
8 * tree-vect-loop.c (vect_determine_vectorization_factor,
9 vect_transform_loop): Adjust for pattern def changing from a single
10 gimple stmt to gimple_seq.
11 * tree-vect-stmts.c (vect_analyze_stmt, new_stmt_vec_info,
12 free_stmt_vec_info): Likewise.
13 * tree-vect-patterns.c (vect_recog_over_widening_pattern,
14 vect_recog_vector_vector_shift_pattern,
15 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
16 adjust_bool_pattern, vect_mark_pattern_stmts): Likewise.
17 (vect_recog_sdivmod_pow2_pattern): New function.
18 (vect_vect_recog_func_ptrs): Add it.
20 * config/i386/sse.md (vcond<V_256:mode><VI_256:mode>,
21 vcond<V_128:mode><VI124_128:mode>, vcond<VI8F_128:mode>v2di):
22 Use general_operand instead of nonimmediate_operand for
23 operand 5 and no predicate for operands 1 and 2.
24 * config/i386/i386.c (ix86_expand_int_vcond): Optimize
25 x < 0 ? -1 : 0 and x < 0 ? 1 : 0 into vector arithmetic
28 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
30 * config/avr/avr-protos.h (print_operand): Remove.
31 (print_operand_address): Remove.
32 * config/avr/avr.h (PRINT_OPERAND): Remove.
33 (PRINT_OPERAND_ADDRESS): Remove.
34 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
35 * config/avr/avr.c (TARGET_PRINT_OPERAND): New hook define.
36 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
37 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
38 (print_operand_address): Rename to...
39 (avr_print_operand_address): ...this and make static.
40 (print_operand): Rename to...
41 (avr_print_operand): ...this and make static.
42 (avr_print_operand_punct_valid_p): New static function.
44 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
46 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
48 2011-12-15 Jakub Jelinek <jakub@redhat.com>
51 * c-parser.c (c_parser_omp_clause_num_threads,
52 c_parser_omp_clause_schedule): Call mark_exp_read.
54 2011-12-15 Romain Geissler <romain.geissler@gmail.com>
56 * builtins.def (BUILT_IN_STPNCPY_CHK): New definition.
57 * builtins.c (expand_builtin, fold_builtin_4, maybe_emit_chk_warning):
58 Add BUILT_IN_STPNCPY_CHK case.
59 * gimple-fold.c (gimple_fold_builtin): Likewise.
60 * tree-object-size.c (pass_through_call): Likewise.
61 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
62 call_may_clobber_ref_p_1): Likewise.
63 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
64 find_func_clobbers): Likewise.
65 * tree.h (fold_builtin_strncpy_chk): Rename to fold_builtin_stxncpy_chk
66 * builtins.c (fold_builtin_strncpy_chk): Likewise.
67 Rewrite stpncpy_chk calls to strncpy_chk calls if returned value is
70 2011-12-15 Richard Guenther <rguenther@suse.de>
73 * gimple.c (compare_type_names_p): Also compare the TREE_CODE.
74 (iterative_hash_name): Also hash the TREE_CODE.
75 (gimple_types_compatible_p_1): For types with a TYPE_DECL
76 name and a type DECL_CONTEXT recurse to that type.
77 (iterative_hash_gimple_type): Likewise.
79 2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
81 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move update of
82 VRSave mask to save_world() when that is in use.
84 2011-12-15 Richard Guenther <rguenther@suse.de>
86 * lto-wrapper.c (run_gcc): In non-parallel mode remove
87 ltrans inputs immediately after processing them. In parallel
88 mode truncate the ltrans inputs in the make rule that processes
89 them if temporary files are not to be preserved.
91 2011-12-15 Anatoly Sokolov <aesok@post.ru>
93 * config/arm/arm.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
94 * config/arm/arm.c (arm_memory_move_cost, arm_register_move_cost):
96 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
98 2011-12-15 Richard Guenther <rguenther@suse.de>
101 * tree.h (REGISTER_DEFS_IN_THIS_STMT, NECESSARY,
102 STMT_IN_SSA_EDGE_WORKLIST): Remove no longer existing flag
104 (TREE_ASM_WRITTEN): Update documentation to mention its use
105 on TYPE_DECLs from debug info generation.
106 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
107 TREE_ASM_WRITTEN as always zero for TYPE_DECLs, similar to
110 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
113 * config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
114 (avr_prologue_setup_frame): Ditto.
116 2011-12-15 Jakub Jelinek <jakub@redhat.com>
119 * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
120 !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
122 2012-12-15 Richard Guenther <rguenther@suse.de>
126 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
131 * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL
132 VAR_DECLs and FUNCTION_DECLs locally.
134 2011-12-14 Richard Henderson <rth@redhat.com>
136 * config/arm/arm.md (*addsi3_compare0_scratch): Set predicable.
137 (*compare_negsi_si, *compare_addsi2_op0): Likewise.
138 (*compare_addsi2_op1, *zeroextractsi_compare0_scratch): Likewise.
139 (*compareqi_eq0, *arm_cmpsi_insn, *arm_cmpsi_negshiftsi_si): Likewise.
141 2011-12-14 Richard Guenther <rguenther@suse.de>
143 * tree-cfg.c (replace_uses_by): Fixup TREE_CONSTANT for
144 propagating all kinds of constants.
146 2011-12-14 Richard Guenther <rguenther@suse.de>
149 * lto-streamer-in.c (lto_read_body): Fixup local types
150 TYPE_CANONICAL and variant chain.
152 2011-12-14 Richard Guenther <rguenther@suse.de>
154 * tree.c (free_lang_data_in_type): Do not clear fields
155 dependent on debuginfo level setting.
156 (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
157 * tree.h (TYPE_STUB_DECL): Properly check that we access a type.
159 2011-12-14 Georg-Johann Lay <avr@gjlay.de>
162 * config/avr/avr.md (mulpsi3): New expander.
163 (*umulqihipsi3, *umulhiqipsi3): New insns.
164 (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns.
165 (mulsqipsi3, *mulpsi3): New insn-and-splits.
166 (ashlpsi3): Turn to expander. Move insn code to...
167 (*ashlpsi3): ...this new insn.
169 2011-12-14 Richard Guenther <rguenther@suse.de>
171 * tree-cfg.c (replace_uses_by): Only mark blocks altered
172 that will make a difference. Only recompute ADDR_EXPR
173 invariantness if it could possibly have changed. Do so
174 before folding the statement.
176 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
178 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
179 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
180 * lto-streamer-in.c (lto_read_body): Likewise.
181 (lto_input_toplevel_asms): Likewise.
182 * lto-section-in.c (lto_create_simple_input_block): Likewise.
183 * ipa-inline-analysis.c (inline_read_section): Likewise.
184 * ipa-prop.c (ipa_prop_read_section): Likewise.
186 * df.h (DF_NOTE): Fix typo in comment.
188 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
190 * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
193 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
195 * regmove.c (fixup_match_2): Only access call_used_regs with hard regs.
197 2011-12-13 Andrew Pinski <apinski@cavium.com>
198 Adam Nemet <anemet@caviumnetworks.com>
200 * config/mips/mips-cpus.def: Add Octeon2.
201 * config/mips/mips-tables.opt: Regenerate.
202 * config/mips/mips.md (define_attr "cpu"): Add Octeon2.
203 * config/mips/driver-native.c (host_detect_local_cpu): Support Octeon2.
204 * config/mips/octeon.md (octeon_arith): Add Octeon2.
205 (octeon_condmove): Likewise.
206 (octeon_load): Rename to ..
207 (octeon_load_o1): this.
208 (octeon_load_o2): New reserve.
209 (octeon_cop_o2): New reserve.
210 (octeon_store): Match Octeon2 also.
211 (octeon_brj): Rename to ..
212 (octeon_brj_o1): this.
213 (octeon_brj_o2): New reserve.
214 (octeon_imul3): Rename to ...
215 (octeon_imul3_o1): this.
216 (octeon_imul3_o2): New reserve.
217 (octeon_imul): Rename to ...
218 (octeon_imul_o1): this.
219 (octeon_imul_o2): New reserve.
220 (octeon_mfhilo): Rename to ...
221 (octeon_mfhilo_o1): This.
222 (octeon_mfhilo_o2): New reserve.
223 (octeon_imadd): Rename to ...
224 (octeon_imadd_o1): this.
225 (octeon_imadd_o2): New reserve.
226 (octeon_idiv): Rename to ..
227 (octeon_idiv_o1): This.
228 (octeon_idiv_o2_si): New reserve.
229 (octeon_idiv_o2_di): Likewise.
230 (octeon_unknown): Match Octeon2 also.
231 * config/mips/mips.c (mips_rtx_cost_data): Add Octeon2 cost data.
232 (mips_issue_rate): Octeon2 can issue 2 at a time.
233 * config/mips/mips.h (TARGET_OCTEON): Match Octeon2 also.
234 (TARGET_OCTEON2): New define.
235 (TUNE_OCTEON): Match Octeon2 also.
237 2011-12-13 Richard Henderson <rth@redhat.com>
239 * config/sparc/tso.h: New file.
240 * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it.
241 * config/sparc/sparc.c (sparc_option_override): Honor
242 SUBTARGET_DEFAULT_MEMORY_MODEL.
243 * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New.
245 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
248 * trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
249 (diagnose_tm_1): Same.
250 (ipa_tm_execute): Do not test tm_may_enter_irr before we set it.
251 (ipa_tm_scan_irr_function): Return gracefully when no
252 DECL_STRUCT_FUNCTION.
253 (ipa_tm_scan_irr_block): Believe the user on TM attributes.
255 2011-12-13 Martin Jambor <mjambor@suse.cz>
258 * tree-sra.c (propagate_subaccesses_across_link): Do not propagate
259 sub-accesses of scalar accesses.
261 2011-12-13 Martin Jambor <mjambor@suse.cz>
263 PR tree-optimization/51362
264 * ipa-cp.c (estimate_local_effects): When estimated size of a
265 specialized clone is zero, bump it to one.
267 2011-12-13 Richard Guenther <rguenther@suse.de>
270 * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE.
271 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
272 Stream DECL_ORIGINAL_TYPE.
273 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers):
276 2011-12-13 Jakub Jelinek <jakub@redhat.com>
279 2011-12-12 Jakub Jelinek <jakub@redhat.com>
281 PR tree-optimization/51481
282 * gimple-fold.c (gimple_fold_call): Call
283 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
284 edges, but gimple_fold_builtin result can't throw.
286 2011-12-13 Jakub Jelinek <jakub@redhat.com>
287 Michael Matz <matz@suse.de>
289 PR tree-optimization/51117
290 * tree-eh.c (sink_clobbers): New function.
291 (execute_lower_eh_dispatch): Call it for BBs ending with
292 internally throwing RESX.
293 * cfgexpand.c (add_scope_conflicts_1): Add all conflicts only
294 at the first real instruction.
296 2011-12-13 Tristan Gingold <gingold@adacore.com>
298 * final.c (final_scan_insn): Guard the call to begin_epilogue
301 2011-12-13 Tristan Gingold <gingold@adacore.com>
303 * vmsdbgout.c (vmsdbgout_write_source_line): New function.
304 (vmsdbgout_end_prologue): Call vmsdbgout_write_source_line.
305 (vmsdbgout_begin_epilogue): Likewise.
306 (vmsdbgout_end_epilogue): Likewise.
307 (vmsdbgout_source_line): Move code to vmsdbgout_write_source_line.
309 2011-12-13 Richard Guenther <rguenther@suse.de>
312 * tree-cfg.c (replace_uses_by): Pass proper arguments to
313 maybe_clean_or_replace_eh_stmt.
315 2011-12-13 Richard Guenther <rguenther@suse.de>
317 PR tree-optimization/51519
318 * ipa-inline.c (edge_badness): Use edge growth in non-guessed
319 branch probability case as well.
321 2011-12-13 Revital Eres <revital.eres@linaro.org>
323 * modulo-sched.c (mark_loop_unsched): Free bbs.
325 2011-12-12 Jakub Jelinek <jakub@redhat.com>
327 PR rtl-optimization/51495
328 * function.c (thread_prologue_and_epilogue_insns): Don't add
329 to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
330 from basic blocks not needing prologue.
332 PR tree-optimization/51481
333 * gimple-fold.c (gimple_fold_call): Call
334 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
335 edges, but gimple_fold_builtin result can't throw.
337 2011-12-12 Vladimir Makarov <vmakarov@redhat.com>
339 PR rtl-optimization/21617
340 * ira-color.c (bucket_allocno_compare_func): Don't compare
341 allocno classes. Compare number of hard registers needed.
343 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
345 PR tree-optimization/50569
346 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
347 in the expression of MODEL instead of just the last one.
349 2011-12-12 Jakub Jelinek <jakub@redhat.com>
352 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
353 VEC_safe_grow_cleared if idx is smaller than VEC_length.
355 2011-12-12 Richard Sandiford <richard.sandiford@linaro.org>
358 * optabs.c (maybe_legitimize_operand_same_code): Use copy_to_mode_reg
359 instead of force_reg. Do nothing if the address is already a
360 non-virtual pseudo register.
362 2011-12-12 Torvald Riegel <triegel@redhat.com>
364 * gimplify.c (voidify_wrapper_expr): Add default handling for
367 2011-12-12 Torvald Riegel <triegel@redhat.com>
369 * tree-ssa-tail-merge.c (gimple_equal_p): Don't treat transaction
372 2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
374 * config/darwin-sections.def (zobj_const_data_section): Fix over-
377 2011-12-11 Richard Henderson <rth@redhat.com>
379 * config/rs6000/rs6000.c (rs6000_expand_interleave): Use
380 BYTES_BIG_ENDIAN, not TARGET_BIG_ENDIAN.
382 2011-12-11 Jakub Jelinek <jakub@redhat.com>
384 PR tree-optimization/51485
385 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
388 2011-12-11 Patrick Marlier <patrick.marlier@gmail.com>
390 * trans-mem.c (ipa_tm_transform_calls_redirect): Do not remove edge.
392 2011-12-10 Richard Henderson <rth@redhat.com>
394 * config/rs6000/altivec.md (altivec_vmrghb): Rewrite pattern as
395 vec_select + vec_concat.
396 (altivec_vmrghh, altivec_vmrghw, altivec_vmrghsf, altivec_vmrglb,
397 altivec_vmrglh, altivec_vmrglw, altivec_vmrglsf): Likewise.
398 (vec_perm_constv16qi): New.
399 (vec_extract_evenv4si, vec_extract_evenv4sf, vpkuhum_nomode,
400 vpkuwum_nomode, vec_extract_oddv8hi, vec_extract_oddv16qi,
401 vec_interleave_high<VI>, vec_interleave_low<VI>): Remove.
402 * config/rs6000/paired.md (paired_merge00): Rewrite pattern as
403 vec_select + vec_concat.
404 (paired_merge10, paired_merge01, paired_merge11): Likewise.
405 (vec_perm_constv2sf): New.
406 (vec_interleave_highv2sf, vec_interleave_lowv2sf,
407 vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
408 * config/rs6000/spe.md (spe_evmergehi): Rewrite pattern as
409 vec_select + vec_concat.
410 (spe_evmergehilo, spe_evmergelo, spe_evmergelohi): New.
411 (vec_perm_constv2si): New.
412 * config/rs6000/vector.md (vec_interleave_highv4sf,
413 vec_interleave_lowv4sf, vec_interleave_high<VEC_64>,
414 vec_interleave_low<VEC_64>): Remove.
415 * config/rs6000/vsx.md (VS_double): New mode attribute.
416 (UNSPEC_VSX_XXPERMDI): Remove.
417 (vsx_xxpermdi_<VSX_L>_1): Rewrite pattern as vec_select + vec_concat.
418 (vsx_xxmrghw_<VSX_W>, vsx_xxmrglw_<VSX_W>): Likewise.
419 (vsx_xxpermdi_<VSX_L>): Change to expander.
420 (vec_perm_const<VSX_D>): New.
421 (vsx_mergel_<VSX_D>, vsx_mergeh_<VSX_D>): New.
422 * config/rs6000/predicates.md (const_0_to_1_operand): New.
423 (const_2_to_3_operand): New.
424 * config/rs6000/rs6000.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
425 (altivec_expand_vec_perm_const): New.
426 (rs6000_expand_vec_perm_const_1, rs6000_expand_vec_perm_const): New.
427 (rs6000_vectorize_vec_perm_const_ok): New.
428 (rs6000_do_expand_vec_perm): New.
429 (rs6000_expand_extract_even, rs6000_expand_interleave): New.
430 * config/rs6000/rs6000-builtin.def (VEC_MERGE*): Update rtx codes.
431 * config/rs6000/rs6000-modes.def: Add double-wide vector modes.
432 * config/rs6000/rs6000-protos.h: Update.
434 2011-12-10 Richard Henderson <rth@redhat.com>
436 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
437 CONST_INT to expand_vec_perm as the selector.
438 * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.
440 2011-12-10 Richard Henderson <rth@redhat.com>
442 * genmodes.c (struct mode_data): Remove wider_2x member.
443 (blank_mode): Adjust initializer.
444 (calc_wider_mode): Use XALLOCAVEC.
445 (emit_move_wider): Select double-width same-element vectors for
447 * machmode.h (GET_MODE_2XWIDER_MODE): Update documentation.
448 * config/i386/i386.c (doublesize_vector_mode): Remove.
449 (expand_vselect_vconcat): Use GET_MODE_2XWIDER_MODE instead.
451 2011-12-10 Joern Rennecke <joern.rennecke@embecosm.com>
453 * config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
454 (USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise.
455 (USE_STORE_POST_DECREMENT): Likewise.
457 * config/epiphany/epiphany.h (EPIPHANY_RETURN_REGNO): New macro,
459 (INCOMING_RETURN_ADDR_RTX) .. this. Use EPIPHANY_RETURN_REGNO.
460 (DWARF_FRAME_RETURN_COLUMN): New macro.
462 * config/epiphany/epiphany-protos.h (epiphany_start_function): Declare.
463 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
464 Split "timer" value into "timer0" and "timer1".
465 Handle page_miss, message and wand. Don't handle static_flag.
467 (epiphany_start_function): New function.
468 (epiphany_compute_function_type): Split "timer" value into "timer0"
469 and "timer1". Handle page_miss, message and wand.
470 Don't handle static_flag.
471 (epiphany_expand_epilogue): Don't use frame_insn for status / iret
473 * config/epiphany/epiphany.h: ASM_DECLARE_FUNCTION_NAME: Define.
474 (enum epiphany_function_type):
475 Split EPIPHANY_FUNCTION_TIMER value into EPIPHANY_FUNCTION_TIMER0
476 and EPIPHANY_FUNCTION_TIMER1.
477 Remove EPIPHANY_FUNCTION_ILINK1 and EPIPHANY_FUNCTION_ILINK2 values.
478 Add EPIPHANY_FUNCTION_PAGE_MISS and EPIPHANY_FUNCTION_MESSAGE values.
479 Rename EPIPHANY_FUNCTION_STATIC_FLAG to EPIPHANY_FUNCTION_WAND.
481 2011-12-10 Nathan Sidwell <nathan@acm.org>
483 PR gcov-profile/51449
484 * coverage.c (coverage_end_function): Always process the coverage
487 2011-12-09 Aldy Hernandez <aldyh@redhat.com>
490 * tree.c (build_common_builtin_nodes): Do not use TM_PURE
491 attribute unless language has support for TM.
492 * config/i386/i386.c (ix86_init_tm_builtins): Exit gracefully in
493 the absence of TM builtins.
495 2011-12-09 Eric Botcazou <ebotcazou@adacore.com>
497 * gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
498 Also check the TYPE_MODE to recognize useless pointer conversions.
500 2011-12-09 Jakub Jelinek <jakub@redhat.com>
502 PR tree-optimization/51117
503 * tree-eh.c (optimize_clobbers): Don't remove just one
504 clobber, but all consecutive clobbers before RESX.
505 Use gimple_clobber_p predicate.
507 2011-12-09 Michael Meissner <meissner@the-meissners.org>
509 * config/rs6000/rs6000.c (altivec_expand_builtin): Call
510 expand_call to return a valid funciton instead of return
511 cosnt0_rtx/NULL_RTX if there was an error with the builtin.
512 (altivec_expand_ld_builtin): Ditto.
513 (rs6000_inner_target_options): If VSX is selected as a target
514 attribute or pragma, enable ALTIVEC also.
515 (rs6000_pragma_target_parse): Call rs6000_option_override_internal
516 to do all of the standard processing when switching options,
517 including redefining appropriate macros.
519 PR rtl-optimization/51469
520 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
521 indirect function, mark the symbol as non-local.
523 2011-12-09 H.J. Lu <hongjiu.lu@intel.com>
526 * Makefile.in (errors.o): Restored.
528 2011-12-09 Richard Guenther <rguenther@suse.de>
531 * tree.c (free_lang_data_in_decl): Remove freeing conditional
534 2011-12-09 Joern Rennecke <joern.rennecke@embecosm.com>
537 * emit-rtl.c (set_dst_reg_note): New function.
538 * rtl.h (set_dst_reg_note): Declare.
539 * optabs.c (expand_binop, expand_absneg_bit): Use set_dst_reg_note.
540 (emit_libcall_block, expand_fix): Likewise.
541 * function.c (assign_parm_setup_reg, expand_function_start): Likewise.
542 * expmed.c (expand_mult_const, expand_divmod): Likewise.
543 * reload1.c (gen_reload): Likewise.
545 * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
546 * expmed.c (expand_divmod): Likewise.
547 * combine.c (simplify_if_then_else): Likewise.
549 2011-12-09 Kai Tietz <ktietz@redhat.com>
551 * ira-color.c (print_hard_regs_subforest): Use
552 HOST_WIDEST_INT_PRINT_DEC instead of %lld.
553 (allocno_hard_regs): Change type of cost member to HOST_WIDEST_INT.
554 (add_allocno_hard_regs): Change type of argument cost
556 * ira-conflict.c (build_conflict_bit_table): Replace use
557 of long-long by HOST_WIDEST_INT.
559 2011-12-09 Georg-Johann Lay <avr@gjlay.de>
562 * config/avr/avr.md (config/avr/avr.md, *sbix_branch_tmp): Use
563 zero_extract:QIHI instead of zero_extract:HI.
565 2011-12-09 Jakub Jelinek <jakub@redhat.com>
566 Andrew Pinski <apinski@cavium.com>
568 PR tree-optimization/51117
569 * tree-eh.c (optimize_clobbers): New function.
570 (execute_lower_eh_dispatch): Call it.
572 2011-12-09 Richard Guenther <rguenther@suse.de>
574 PR tree-optimization/51482
575 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
576 Make sure to only create REAL_TYPE and INTEGER_TYPE component vectors.
578 2011-12-09 Kai Tietz <ktietz@redhat.com>
580 * implicit-zee.c (num_realized): Change type to long.
581 (num_ze_opportunities): Likewise.
583 2011-12-08 Andrew Pinski <apinski@cavium.com>
585 * config/mips/mips-cpus.def (octeon+): New CPU.
586 * config/mips/mips-tables.opt: Regenerate.
587 * config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
589 2011-12-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
592 * tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
593 (struct hashable_expr): Add struct phi field.
594 (initialize_hash_element): Handle phis; change to use XCNEWVEC.
595 (hashable_expr_equal_p): Handle phis.
596 (iterative_hash_hashable_expr): Likewise.
597 (print_expr_hash_elt): Likewise.
598 (free_expr_hash_elt): Likewise.
599 (dom_opt_enter_block): Create equivalences from redundant phis.
600 (eliminate_redundant_computations): Handle redundant phis.
601 (lookup_avail_expr): Handle phis.
603 2011-12-08 Jakub Jelinek <jakub@redhat.com>
605 PR tree-optimization/51466
606 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
609 2011-12-08 Richard Guenther <rguenther@suse.de>
611 * tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
612 volatile when processing operands of an ADDR_EXPR.
613 (get_indirect_ref_operands): Likewise.
614 (get_tmr_operands): Likewise.
615 (get_expr_operands): Likewise.
617 2011-12-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
620 * config/s390/s390.c (s390_mainpool_finish): Emit the jump over
621 the literal pool as jump insn.
623 2011-12-08 Richard Guenther <rguenther@suse.de>
625 PR tree-optimization/49772
626 * tree-inline.c (optimize_inline_calls): Remove bail out on errors.
628 2011-12-08 Richard Guenther <rguenther@suse.de>
631 * lto-streamer-out.c (produce_symtab): Remove asserts.
633 2011-12-08 Richard Guenther <rguenther@suse.de>
636 * lto-streamer-out.c (tree_is_indexable): Localize variably
637 modified types and their FIELD_DECLs.
639 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
641 PR tree-optimization/51315
642 * tree.h (get_object_or_type_alignment): Declare.
643 * expr.c (get_object_or_type_alignment): Move to...
644 * builtins.c (get_object_or_type_alignment): ...here. Add assertion.
645 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
646 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
647 MEM_REFs and use get_object_or_type_alignment for them.
648 (build_accesses_from_assign): Adjust for above change.
649 (access_precludes_ipa_sra_p): Likewise.
651 2011-12-08 Richard Guenther <rguenther@suse.de>
654 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
657 2011-12-07 Andrew Pinski <apinski@cavium.com>
660 * expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
663 2011-12-07 Richard Guenther <rguenther@suse.de>
665 PR tree-optimization/50823
666 * ipa-inline.c (edge_badness): Do not account for the number of
669 2011-12-07 Martin Jambor <mjambor@suse.cz>
671 PR tree-optimization/50744
672 * ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
673 compute evaluation in HOST_WIDEST_INT.
674 (safe_add): New function
675 (propagate_effects): Use safe_add to accumulate effects.
677 2011-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
679 * config/rs6000/rtems.h: Switch to using global_options_set
680 in SUBSUBTARGET_OVERRIDE_OPTIONS.
682 2011-12-06 David S. Miller <davem@davemloft.net>
684 * config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
686 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
688 * config/avr/avr.c (avr_file_start): Fix missing ,
690 2011-12-06 Jakub Jelinek <jakub@redhat.com>
693 * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
696 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
698 Forward-port from gcc-4_6-branch r181936 2011-12-02.
699 * config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
700 AT86RF401 have a 16-bit SP (their manual is bogus).
702 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
704 Forward-port from gcc-4_6-branch r181936 2011-12-02.
707 * config/avr/avr.md (movhi_sp_r): Set insn condition to
709 * config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
710 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
711 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
713 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
717 * config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
718 ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
719 ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
720 (avr_addrspace_t): New typedef.
721 (avr_addrspace): New declaration.
722 * config/avr/avr-c.c (avr_toupper): New static function.
723 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
724 avr_addrspace to get address space information.
725 * config/avr/avr.c (avr_addrspace): New variable.
726 (avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
727 avr_asm_named_section, avr_section_type_flags,
728 avr_asm_select_section, avr_addr_space_address_mode,
729 avr_addr_space_convert, avr_emit_movmemhi): Use it.
730 (avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
731 (avr_pgm_segment): Remove.
733 2011-12-06 Richard Guenther <rguenther@suse.de>
736 * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
737 quirk adjustjment ...
738 * passes.c (rest_of_decl_compilation): ... here.
740 2011-12-06 Richard Guenther <rguenther@suse.de>
743 * gimple-fold.c (gimplify_and_update_call_from_tree): Guard vdef check
744 for the fact we do not have virtual operands when not optimizing.
746 2011-12-06 Richard Guenther <rguenther@suse.de>
748 PR tree-optimization/51245
749 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
751 (vn_reference_lookup_3): Use it. Properly valueize all refs we create.
753 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
755 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
758 2011-12-06 Richard Guenther <rguenther@suse.de>
760 PR tree-optimization/51363
761 * gimple.c (gimple_rhs_has_side_effects): Remove.
762 * gimple.h (gimple_rhs_has_side_effects): Likewise.
763 * tree-ssa-dom.c (optimize_stmt): Simplify conditional.
765 2011-12-06 Alan Modra <amodra@gmail.com>
768 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
769 Do not mark r11 setup as frame-related. Pass correct offset to
770 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
771 arguments. Correct sp_offset. Remove "offset" fudge from
772 in-line rs6000_frame_related call. Rename misleading variable.
773 Fix comments and whitespace. Tidy some expressions.
774 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
775 to r11 in out-of-line case. Correct sp_offset. Pass correct
776 offset to rs6000_emit_savres_rtx. Rename misleading variable.
777 Fix comments and whitespace. Tidy some expressions.
778 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
779 adjustment when !saving_GPRs_inline. Correct register mode
780 used in address calcs.
781 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
782 !restoring_GPRs_inline.
784 2011-12-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
786 * config/arm/vfp.md (*combine_vcvt_f64_<FCVTI32typename>): Fix
787 formatting character for vmov.f64 case.
789 2011-12-05 Jakub Jelinek <jakub@redhat.com>
791 PR tree-optimization/51396
792 * tree-ssa-math-opts.c (convert_mult_to_fma): Don't optimize
793 if MUL_RESULT has zero uses.
796 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
797 for debug info if scope is file_scope.
800 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
801 relayout_decl instead of layout_decl.
803 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
805 * resource.c (init_resource_info): Only consider EXIT_IGNORE_STACK
806 if there is in epilogue.
808 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
810 * optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
811 to emit_library_call_value.
812 (expand_atomic_compare_and_swap): Likewise.
814 2011-12-05 Vladimir Makarov <vmakarov@redhat.com>
817 * ira-int.h (struct ira_object): Remove add_data.
818 (OBJECT_ADD_DATA): Remove.
820 * ira-build.c (ira_create_object): Remove OBJECT_ADD_DATA
823 * ira-color.c (object_hard_regs_t, object_hard_regs): Rename to
824 allocno_hard_regs_t, allocno_hard_regs.
825 (object_hard_regs_node_t, object_hard_regs_node): Rename to
826 allocno_hard_regs_node_t and allocno_hard_regs_node.
827 (struct allocno_color_data): Add new member last_process. Move
828 profitable_hard_regs, hard_regs_node, and hard_regs_subnodes_start
829 from object_color_data.
830 (object_color_data_t, object_color_data, OBJECT_COLOR_DATA): Remove.
831 (curr_allocno_process): New static variable.
832 (object_hard_regs_eq, object_hard_regs_htab): Rename to
833 allocno_hard_regs_eq and allocno_hard_regs_htab.
834 (init_object_hard_regs, finish_object_hard_regs): Rename to
835 init_allocno_hard_regs and finish_allocno_hard_regs.
836 (object_hard_regs_compare, object_hard_regs_node_t): Rename to
837 allocno_hard_regs_compare and allocno_hard_regs_node_t.
838 (create_new_object_hard_regs_node): Rename to
839 create_new_allocno_hard_regs_node.
840 (add_new_object_hard_regs_node_to_forest): Rename to
841 add_new_allocno_hard_regs_node_to_forest.
842 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
843 Rename to add_allocno_hard_regs_to_forest and
844 collect_allocno_hard_regs_cover.
845 (setup_object_hard_regs_nodes_parent): Rename to
846 setup_allocno_hard_regs_nodes_parent.
847 (remove_unused_object_hard_regs_nodes): Rename to
848 remove_unused_allocno_hard_regs_nodes.
849 (enumerate_object_hard_regs_nodes, object_hard_regs_nodes_num):
850 Rename to enumerate_allocno_hard_regs_nodes and
851 allocno_hard_regs_nodes_num.
852 (object_hard_regs_nodes, object_hard_regs_subnode_t): Rename to
853 allocno_hard_regs_nodes and allocno_hard_regs_subnode_t.
854 (object_hard_regs_subnode, object_hard_regs_subnodes): Rename to
855 allocno_hard_regs_subnode and allocno_hard_regs_subnodes.
856 (object_hard_regs_subnode_index): Rename to
857 allocno_hard_regs_subnode_index.
858 (setup_object_hard_regs_subnode_index): Rename to
859 setup_allocno_hard_regs_subnode_index.
860 (get_object_hard_regs_subnodes_num): Rename to
861 get_allocno_hard_regs_subnodes_num.
862 (form_object_hard_regs_nodes_forest): Rename to
863 form_allocno_hard_regs_nodes_forest.
864 (finish_object_hard_regs_nodes_tree): Rename to
865 form_allocno_hard_regs_nodes_forest
866 (finish_object_hard_regs_nodes_forest): Rename to
867 finish_allocno_hard_regs_nodes_forest.
868 (setup_left_conflict_sizes_p): Use allocno data instead of object ones.
869 Process conflict allocnos once.
870 (update_left_conflict_sizes_p): Use allocno data instead of object
871 ones. Change prototype signature.
872 (empty_profitable_hard_regs): Use allocno data instead of object ones.
873 (setup_profitable_hard_regs): Ditto.
874 (get_conflict_profitable_regs): Rename to
875 get_conflict_and_start_profitable_regs. Use allocno data for
876 profitable regs calculation.
877 (check_hard_reg_p): Change prototype signature. Check profitable
878 regs for allocno not the objects.
879 (assign_hard_reg): Process conflict allocnos only once for
880 updating conflict costs.
881 (setup_allocno_available_regs_num): Use allocno data instead of
882 object ones. Modify debug output.
883 (color_pass): Remove initialization and finalization of object
886 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
889 * config/arm/arm.md (*minmax_arithsi): Always require the else
890 clause in the MINUS case.
892 2011-12-05 Richard Guenther <rguenther@suse.de>
894 PR tree-optimization/50904
895 * tree-ssa-loop-im.c (struct mem_ref): Remove vops member.
896 (MEM_ANALYZABLE): New.
897 (memory_references): Remove clobbered_vops and vop_ref_map
898 members, add all_refs_stored_in_loop member.
899 (memref_free): Adjust.
900 (mem_ref_alloc): Likewise.
901 (gather_mem_refs_stmt): Do not record clobbers, instead
902 record refs for unanalyzable stmts.
903 (gather_mem_refs_in_loops): Do not propagate clobbers.
904 (struct vop_to_refs_elt, vtoe_hash, vtoe_eq, vtoe_free,
905 record_vop_access, get_vop_accesses, get_vop_stores,
906 add_vop_ref_mapping): Remove.
907 (create_vop_ref_mapping_loop): Adjust to simply record all stores.
908 (analyze_memory_references): Adjust.
909 (refs_independent_p): Check for not analyzable refs.
910 (can_sm_ref_p): Likewise.
911 (ref_indep_loop_p_1): Simplify.
912 (tree_ssa_lim_finalize): Adjust.
914 * tree-ssa-loop-im.c (stmt_cost): Simplify, use LIM_EXPENSIVE
915 rather than magic constants. Assign zero cost to PAREN_EXPR
916 and SSA_NAME copies. Assign cost proportional to the vector
917 size for vector constructors.
919 2011-12-05 Richard Guenther <rguenther@suse.de>
921 * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
922 * tree-ssa-alias.c (ao_ref_init): Initialize it.
923 (ao_ref_init_from_ptr_and_size): Likewise.
924 (refs_may_alias_p_1): Two volatile accesses conflict.
925 (ref_maybe_used_by_call_p_1): Likewise.
926 (call_may_clobber_ref_p_1): Likewise.
927 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize
930 2011-12-05 Richard Guenther <rguenther@suse.de>
932 * tree-ssa.c (verify_ssa): Verify SSA names in the loop over all SSA
933 names. Remove SSA operand checking, call verify_ssa_operands.
934 * tree-ssa-operands.h (verify_ssa_operands): Declare.
935 * tree-ssa-operands.c (verify_ssa_operands): New function.
937 2011-12-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
939 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Define.
940 * config/arm/arm-protos.h (vfp3_const_double_for_fract_bits): Declare.
941 * config/arm/constraints.md ("Dt"): New constraint.
942 * config/arm/predicates.md
943 (const_double_vcvt_power_of_two_reciprocal): New.
944 * config/arm/vfp.md (FCVTI32typename): New.
945 (FCVT): New iterator.
946 (*combine_vcvt_f32_<FCVTI32typename>): New.
947 (*combine_vcvt_f64_<FCVTI32typename>): New.
949 2011-12-05 Richard Guenther <rguenther@suse.de>
951 * cgraph.c (cgraph_create_edge_1): Initialize
952 call_stmt_cannot_inline_p from the stmt if possible.
953 (cgraph_make_edge_direct): Likewise.
954 * gimple-streamer-in.c (input_gimple_stmt): Do not
955 call gimple_call_set_cannot_inline.
956 * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values.
957 (gimple_call_set_cannot_inline): Remove.
958 (gimple_call_cannot_inline_p): Likewise.
959 * ipa-inline-analysis.c (initialize_inline_failed): Look
960 at the edge call_stmt_cannot_inline_p flag.
961 * ipa-inline.c (can_inline_edge_p): Likewise.
962 (early_inliner): Only update the edge flag.
963 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
964 (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline.
965 * cgraphunit.c (assemble_thunk): Likewise.
966 * gimple-fold.c (gimple_fold_call): Likewise.
968 * tree.h (CALL_CANNOT_INLINE_P): Remove.
969 * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls.
970 * builtins.c (expand_builtin_alloca): With -fmudflap do not expand
972 * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P.
973 * gimple.c (gimple_build_call_from_tree): Do not read
974 CALL_CANNOT_INLINE_P.
975 * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P.
977 2011-12-05 Jakub Jelinek <jakub@redhat.com>
978 Eric Botcazou <ebotcazou@adacore.com>
982 * calls.c (internal_arg_pointer_exp_state): New variable.
983 (internal_arg_pointer_based_exp_1,
984 internal_arg_pointer_exp_scan): New functions.
985 (internal_arg_pointer_based_exp): New function.
986 (mem_overlaps_already_clobbered_arg_p): Use it.
987 (expand_call): Free internal_arg_pointer_exp_state.cache vector
988 and clear internal_arg_pointer_exp_state.scan_start.
990 2011-12-04 Kaz Kojima <kkojima@gcc.gnu.org>
992 * config/sh/linux.h (TARGET_DEFAULT): Add MASK_SOFT_ATOMIC.
993 * config/sh/sync.md: New file.
994 * config/sh/sh.md: Include sync.md.
995 * config/sh/sh.opt (msoft-atomic): New option.
996 * doc/invoke.texi (SH Options): Document it.
998 2011-12-04 Nathan Sidwell <nathan@acm.org>
1000 * gcov-io.h (struct gcov_info): Replace trailing array with
1002 * profile.c (branch_prob): Only call renamed
1003 coverage_begin_function once.
1004 * coverage.h (coverage_begin_output): Rename to ...
1005 (coverage_begin_function): ... here.
1006 * coverage.c (struct function_list): Rename to ...
1007 (struct coverage_data): ... this. Update all uses.
1008 (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals.
1009 (bbg_file_opened, bbg_function_announced): Remove.
1010 (get_coverage_counts): Adjust message.
1011 (coverage_begin_ouput): Rename to ...
1012 (coverage_begin_function): ... here. Move file opening to
1013 coverage_init. Adjust for being called only once.
1014 (coverage_end_function): Remove bbg file and inhibit further
1015 output here on error.
1016 (build_info_type): Adjust for change to pointer to array.
1017 (build_info): Receive array of function pointers and adjust.
1018 (create_coverage): Break into ...
1019 (coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
1020 ... these, and adjust.
1021 (coverage_init): Open the notes file here. Tidy.
1022 (coverage_finish): Call coverage_obj_init etc.
1024 2011-12-04 Ira Rosen <ira.rosen@linaro.org>
1027 * tree-vect-loop.c (vect_create_epilog_for_reduction): Create exit
1028 phi nodes for outer loop in case of double reduction.
1030 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
1033 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
1034 parameter as long long.
1036 2011-12-04 Richard Sandiford <rdsandiford@googlemail.com>
1039 * optabs.c (init_sync_libfuncs): Use "or" rather than "ior"
1040 in the external names.
1042 2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
1044 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for
1045 non-PIC code when targeting 10.7 or later.
1047 2011-12-03 Iain Sandoe <iains@gcc.gnu.org>
1049 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
1051 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
1052 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
1054 2011-12-03 Jakub Jelinek <jakub@redhat.com>
1056 * fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
1057 VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
1058 VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
1059 (fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
1060 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
1061 and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.
1064 * tree-ssa.c (target_for_debug_bind): Also allow is_gimple_reg_type
1065 vars that aren't referenced.
1066 (tree-ssa-live.c (remove_unused_locals): Don't clear TREE_ADDRESSABLE
1067 of unreferenced local vars.
1068 * cfgexpand.c (expand_debug_expr): For DEBUG_IMPLICIT_PTR allow also
1069 TREE_ADDRESSABLE vars that satisfy target_for_debug_bind.
1071 2011-12-03 Anatoly Sokolov <aesok@post.ru>
1073 * config/arm/arm.h (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove.
1074 * config/arm/arm-protos.h (aapcs_libcall_value): Remove.
1075 * config/arm/arm.c (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1076 (arm_libcall_value_1, arm_function_value_regno_p): New function.
1077 (arm_function_value, arm_libcall_value): Use arm_libcall_value_1.
1078 (aapcs_libcall_value): Make static.
1079 (arm_libcall_value): Add static qualifier.
1081 2011-12-02 Jakub Jelinek <jakub@redhat.com>
1084 * config/i386/sse.md (mul<mode>3 with VI1_AVX2 iterator): For
1085 V32QImode use { 0,2,..,14,32,34,..,46,16,18,..,30,48,50,..,62 }
1086 permutation instead of extract even permutation.
1088 2011-12-02 Nathan Sidwell <nathan@acm.org>
1090 * gcov.c (struct arc_info): Add is_throw field.
1091 (struct (block_info): Add exceptional field, reduce flags size to
1093 (struct function_info): Add has_catch field.
1094 (struct line_info): Add unexceptional field.
1095 (process_file): Call find_exception_blocks if necessary.
1096 (read_graph_file): Adjust. Note if an exceptional edge is seen.
1097 (find_exception_blocks): New.
1098 (add_line_counts): Set line's unexceptional flag if not exceptional.
1099 (output_branch_count): Note exceptional arcs, lines and blocks.
1100 * gcov-dump.c (tag_arcs): Decode arc flags.
1101 * doc/gcov.texi: Document '=====' lines.
1103 2011-12-02 Anatoly Sokolov <aesok@post.ru>
1105 * config/ia64/ia64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1106 PRINT_OPERAND_PUNCT_VALID_P): Remove macros.
1107 * config/ia64/ia64-protos.h (ia64_print_operand,
1108 ia64_print_operand_address): Remove.
1109 * config/ia64/ia64.c (TARGET_PRINT_OPERAND,
1110 TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P):
1112 (ia64_print_operand_punct_valid_p): New function.
1113 (ia64_print_operand, ia64_print_operand_address): Make static.
1115 2011-12-02 Michael Meissner <meissner@the-meissners.org>
1118 * config/rs6000/rs6000.c (def_builtin): Use the correct field to
1119 figure out the function's attributes.
1120 (struct builtin_description): Mark mask field as const since we no
1121 longer need to modify it for SPE and PAIRED builtins.
1123 2011-12-02 Joseph Myers <joseph@codesourcery.com>
1127 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
1130 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
1131 zero extend count after the correction to it is done.
1132 (doloop_optimize): Update call to doloop_modify, don't zero extend
1135 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1138 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
1140 (doloop_optimize): Update call to doloop_modify.
1142 2011-12-02 Richard Guenther <rguenther@suse.de>
1145 * ipa.c (varpool_externally_visible_p): Register variables
1146 are always externally visible.
1148 2011-12-02 Sameera Deshpande <sameera.deshpande@arm.com>
1150 * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
1153 2011-12-02 Martin Jambor <mjambor@suse.cz>
1155 PR tree-optimization/50622
1156 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
1157 if both lacc and racc are grp_partial_lhs.
1159 2011-12-01 Kaz Kojima <kkojima@gcc.gnu.org>
1162 * config/sh/sh.c (expand_ashiftrt): Handle TARGET_SH2A same as
1164 (shl_sext_kind): Likewise.
1165 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Likewise.
1166 * config/sh/sh.md (ashlsi3_sh2a, ashrsi3_sh2a, lshrsi3_sh2a): Remove.
1167 (ashlsi3_std): Handle TARGET_SH2A same as TARGET_SH3.
1168 (ashlsi3): Likewise.
1169 (ashrsi3_d): Likewise.
1170 (lshrsi3_d): Likewise.
1171 (lshrsi3): Likewise.
1173 2011-12-01 Diego Novillo <dnovillo@google.com>
1176 * ipa-inline.c (can_inline_edge_p): If the edge E has a statement,
1177 use the statement's inline indicator instead of E's.
1178 Remove consistency check.
1180 2011-12-01 Diego Novillo <dnovillo@google.com>
1185 2011-11-29 Diego Novillo <dnovillo@google.com>
1187 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
1188 Update field call_stmt_cannot_inline_p from call
1189 graph edge, if needed.
1190 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
1192 2011-12-01 Nathan Sidwell <nathan@acm.org>
1194 PR gcov-profile/51113
1195 * coverage.c (build_var): Keep coverage variables static.
1197 2011-12-01 Jakub Jelinek <jakub@redhat.com>
1199 PR tree-optimization/51356
1200 * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
1201 vectype doesn't have VECTOR_MODE_P.
1204 * tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
1205 as unnecessary a store to a variable with gimple reg type.
1206 * tree-ssa-live.c (remove_unused_locals): Clear TREE_ADDRESSABLE bit
1207 on local unreferenced variables.
1208 * cfgexpand.c (expand_gimple_basic_block): Don't emit DEBUG_INSNs
1209 for !target_for_debug_bind variables.
1211 2011-12-01 Patrick Marlier <patrick.marlier@gmail.com>
1214 * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
1215 * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
1216 * cgraphunit.c (cgraph_copy_node_for_versioning): Call it.
1218 2011-12-01 Andrew Pinski <apinski@cavium.com>
1221 * tree.c (free_lang_data_in_decl): Clear FIELD_DECL's
1224 2011-12-01 Jakub Jelinek <jakub@redhat.com>
1226 PR tree-optimization/51246
1227 * tree-predcom.c (replace_ref_with): Handle also clobber on the rhs.
1229 PR rtl-optimization/51014
1230 * loop-unroll.c (apply_opt_in_copies): Ignore label DEBUG_INSNs
1231 both from bb and orig_bb.
1233 2011-12-01 Joern Rennecke <joern.rennecke@embecosm.com>
1235 PR tree-optimization/50802
1236 * tree-vrp.c (simplify_conversion_using_ranges): Rewrite test
1237 considering what happens to ranges during sign changes and/or
1238 intermediate narrowing conversions.
1240 2011-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1243 * config/pa/pa.md (in_branch_delay): Disallow frame related insns.
1244 (in_nullified_branch_delay): Likewise.
1245 (in_call_delay): Likewise.
1247 2011-11-30 Richard Henderson <rth@redhat.com>
1249 * predict.c (expr_expected_value_1): Assume compare-and-swap builtin
1250 boolean return is true.
1252 2011-11-30 Jakub Jelinek <jakub@redhat.com>
1254 PR rtl-optimization/51044
1255 * dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
1256 rather than just insn body.
1259 * function.c (thread_prologue_and_epilogue_insns): If
1260 stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
1264 * tree-eh.c (cleanup_empty_eh_merge_phis): Add check to
1265 avoid creating duplicate edges here.
1266 (cleanup_empty_eh_unsplit): And remove it in the caller.
1268 2011-11-30 Andrew Pinski <apinski@cavium.com>
1271 * c-parser.c (c_parser_postfix_expression): Check groktypename results
1272 before looking at the main variant.
1274 2011-11-30 Jakub Jelinek <jakub@redhat.com>
1276 PR rtl-optimization/48721
1277 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
1278 reg_pending_barrier to TRUE_BARRIER.
1280 PR rtl-optimization/48721
1281 * sched-ebb.c (begin_move_insn): Insert empty unreachable
1282 block after BARRIER if insn is followed by it.
1284 2011-11-30 Richard Henderson <rth@redhat.com>
1286 * config/sparc/sparc-opts.h (enum sparc_memory_model_type): New.
1287 * config/sparc/sparc.opt (mmemory-model=): New option.
1288 * doc/invoke.texi (Sparc Options): Document it.
1289 * config/sparc/sparc.c (sparc_option_override): Provide default
1290 for sparc_memory_model.
1291 (sparc_emit_membar_for_model): Omit barrier combinations that are
1292 implied by the memory model.
1294 2011-11-30 Richard Henderson <rth@redhat.com>
1296 * config/sparc/sync.md (I124MODE): New mode iterator.
1297 (memory_barrier): Remove.
1298 (atomic_exchangesi): New.
1299 (swapsi): Rename from *swapsi.
1300 (atomic_test_and_set<I124MODE>): New.
1301 (ldstubqi): Rename from *ldstubqi, merge with expander.
1302 (ldstub<I24MODE>): Rename from *ldstub<I24MODE>, merge with expander.
1303 (sync_lock_test_and_setsi): Remove.
1304 (sync_lock_test_and_set<I12MODE>): Remove.
1306 2011-11-30 Richard Henderson <rth@redhat.com>
1308 * config/sparc/constraints.md ("w"): New.
1309 * config/sparc/predicates.md (mem_noofs_operand): New.
1310 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Make static.
1311 Generate the boolean result of the atomic_compare_exchange.
1312 (sparc_expand_compare_and_swap): New.
1313 * config/sparc/sync.md (atomic_compare_and_swap<I>): New.
1314 (atomic_compare_and_swap<I48MODE>_1): Rename from
1315 *sync_compare_and_swap<I48MODE>, use mem_noofs_operand.
1316 (*atomic_compare_and_swapdi_v8plus): Rename from
1317 *sync_compare_and_swapdi_v8plus, use mem_noofs_operand.
1318 (sync_compare_and_swap<I12MODE>): Remove.
1319 (sync_compare_and_swap<I48MODE>): Remove.
1321 2011-11-30 Richard Henderson <rth@redhat.com>
1323 * config/sparc/predicates.md (register_or_v9_zero_operand): New.
1324 * config/sparc/sparc.md (UNSPEC_ATOMIC): New.
1325 * config/sparc/sync.md (atomic_load<I>): New.
1326 (atomic_loaddi_1, atomic_store<I>, atomic_storedi_1): New.
1328 2011-11-30 Richard Henderson <rth@redhat.com>
1330 * config/sparc/predicates.md (zero_or_v7_operand): New.
1331 * config/sparc/sparc.c (sparc_emit_membar_for_model): New.
1332 * config/sparc/sparc-protos.h: Update.
1333 * config/sparc/sync.md (mem_thread_fence): New.
1334 (memory_barrier): Use sparc_emit_membar_for_model.
1335 (membar, *membar_empty, *membar_storestore, *membar_storeload): New.
1336 (*membar_v8): Accept and ignore the membar mask.
1337 (*membar): Accept and print the membar mask.
1339 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1341 * config/arm/arm.c (arm_issue_rate): Cortex-A15 can triple issue.
1342 * config/arm/arm.md (mul64): New attribute.
1343 (generic_sched): Cortex-A15 is not scheduled generically.
1344 (cortex-a15.md): Include.
1345 * config/arm/cortex-a15.md: New machine description.
1346 * config/arm/t-arm (MD_INCLUDES): Add cortex-a15.md.
1348 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1350 * config/arm/t-arm (MD_INCLUDES): Ensure all md files are listed.
1352 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1354 * doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
1355 * doc/tm.texi: Regenerate.
1356 * flags.h (flag_next_runtime): Remove references.
1357 * toplev.c: Likewise.
1358 * defaults.h (NEXT_OBJC_RUNTIME): Provide default.
1359 * gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
1360 * config/darwin.c (darwin_override_options): Provide default
1361 Objective-C abi settings and target conflict checks.
1362 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
1363 code. Adjust indenting.
1365 2011-11-29 Joseph Myers <joseph@codesourcery.com>
1367 * config/sh/sh.h (enum reg_class, REG_CLASS_NAMES)
1368 (REG_CLASS_CONTENTS): Add NON_SP_REGS.
1369 (REGCLASS_HAS_GENERAL_REG): Handle NON_SP_REGS.
1370 * config/sh/constraints.md (u): New constraint.
1372 2011-11-29 Oleg Endo <oleg.endo@t-online.de>
1375 * config/sh/sh.c (sh_secondary_reload): Add case when FPUL
1376 register is being loaded from a pseudo in memory.
1378 2011-11-29 DJ Delorie <dj@redhat.com>
1380 * config.gcc (rl78-*-elf): New case.
1381 * doc/extend.texi: Add RL78 documentation.
1382 * doc/invoke.texi: Likewise.
1383 * doc/md.texi: Likewise.
1384 * doc/contrib.texi: Add RL78.
1385 * doc/install.texi: Add rl78-*-elf.
1386 * config/rl78: New directory for the Renesas RL78.
1388 2011-11-29 Jakub Jelinek <jakub@redhat.com>
1390 PR tree-optimization/51247
1391 * tree-vrp.c (extract_range_from_assert): For signed 1-bit precision
1392 types instead of adding 1 subtract -1 and instead of subtracting 1
1393 add -1 to avoid overflows.
1395 2011-11-29 Andrew MacLeod <amacleod@redhat.com>
1398 * optabs.c (maybe_optimize_fetch_op): New. Look for more optimal
1399 instructions for a FECTH_OP or OP_FECTH sequence.
1400 (expand_atomic_fetch_op): Call maybe_optimize_fetch_op.
1402 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
1404 * config/i386/sync.md (UNSPEC_LDA, UNSPEC_STA): New unspecs.
1405 (movdi_via_fpu): Remove.
1406 (loaddi_via_fpu): New insn pattern.
1407 (storedi_via_fpu): Ditto.
1408 (atomic_loaddi_fpu): Use loaddi_via_fpu and storedi_via_fpu.
1409 (atomic_storedi_fpu): Ditto.
1410 * reg-stack.c (get_true_reg): Handle UNSPEC_LDA.
1411 (subst_stack_regs_pat): Handle UNSPEC_STA.
1413 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
1415 * config/i386/i386.md (*floathi<mode>2_i387_with_temp): Do not
1416 allocate scratch memory for alternative 0.
1418 2011-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1420 * config/rs6000/rs6000-builtins.def: Completely rewrite builtin
1421 handling to centralize more of the builtins in this file. Change
1422 some builtin enumerations to be more consistant. Use a new mask
1423 to hold the current builtins, including SPE and PAIRED builtins
1424 which no longer are set via target_flags masks. Add
1425 -mdebug=builtin debug support. For power machines, define all
1426 Altivec and VSX buitins when the compiler starts, but don't allow
1427 the use of a builtin unless the appropriate switch is used, or
1428 #pragma GCC target is used to change the options. If the user
1429 uses #pragma GCC target, update the appropriate hardware macros.
1430 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Ditto.
1431 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Ditto.
1432 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Ditto.
1433 (rs6000_define_or_undefine_macro): Ditto.
1434 (rs6000_target_modify_macros): Ditto.
1435 (rs6000_cpu_cpp_builtins): Ditto.
1436 (altivec_overloaded_builtins): Ditto.
1437 (altivec_build_resolved_builtin): Ditto.
1438 * config/rs6000/rs6000.c (rs6000_target_modify_macros_ptr): Ditto.
1439 (rs6000_builtin_info): Ditto.
1440 (def_builtin): Ditto.
1441 (enable_mask_for_builtins): Ditto.
1442 (DEBUG_FMT_X): Ditto.
1443 (rs6000_debug_reg_global): Ditto.
1444 (rs6000_builtin_mask_calculate): Ditto.
1445 (rs6000_option_override_internal): Ditto.
1446 (rs6000_builtin_conversion): Ditto.
1447 (rs6000_builtin_vectorized_function): Ditto.
1448 (bdesc_3arg): Ditto.
1450 (bdesc_2arg): Ditto.
1451 (builtin_description_predicates): Ditto.
1452 (bdesc_altivec_preds): Ditto.
1453 (bdesc_spe_predicates): Ditto.
1454 (bdesc_spe_evsel): Ditto.
1455 (bdesc_paired_preds): Ditto.
1457 (bdesc_1arg): Ditto.
1458 (rs6000_overloaded_builtin_p): Ditto.
1459 (rs6000_expand_unop_builtin): Ditto.
1460 (bdesc_2arg_spe): Ditto.
1461 (spe_expand_builtin): Ditto.
1462 (rs6000_invalid_builtin): Ditto.
1463 (rs6000_expand_builtin): Ditto.
1464 (rs6000_init_builtins): Ditto.
1465 (spe_init_builtins): Ditto.
1466 (paired_init_builtins): Ditto.
1467 (altivec_init_builtins): Ditto.
1468 (builtin_function_type): Ditto.
1469 (rs6000_common_init_builtins): Ditto.
1470 (rs6000_builtin_reciprocal): Ditto.
1471 (rs6000_builtin_mask_names): Ditto.
1472 (rs6000_pragma_target_parse): Ditto.
1473 (rs6000_function_specific_print): Ditto.
1474 * config/rs6000/rs6000.h (MASK_DEBUG_BUILTIN): Ditto.
1475 (MASK_DEBUG_ALL): Ditto.
1476 (TARGET_DEBUG_BUILTIN): Ditto.
1477 (TARGET_EXTRA_BUILTINS): Ditto.
1478 (REGISTER_TARGET_PRAGMAS): Ditto.
1479 (enum rs6000_btc): Ditto.
1480 (RS6000_BTC_*): Ditto.
1481 (RS6000_BTM_*): Ditto.
1482 (enum rs6000_builtins): Ditto.
1483 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Ditto.
1484 (rs6000_target_modify_macros): Ditto.
1485 (rs6000_target_modify_macros_ptr): Ditto.
1487 * config/rs6000/vector.md (unsfloat<VEC_int><mode>2): Use the
1488 standard name for converting vector unsigned values to floating
1489 point. Delete the TARGET_VECTORIZE_BUILTIN_CONVERSION hook, which
1490 is handled by machine independent code.
1491 * config/rs6000/rs6000.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Ditto.
1492 (rs6000_builtin_conversion): Ditto.
1494 2011-11-29 Dodji Seketeli <dodji@redhat.com>
1496 * tree-diagnostic (struct loc_t): Rename into struct loc_map_pair.
1497 (maybe_unwind_expanded_macro_loc): Adjust.
1499 2011-11-29 David Edelsohn <dje.gcc@gmail.com>
1500 Aldy Hernandez <aldyh@redhat.com>
1502 * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl
1504 (ipa_tm_create_version): Same.
1506 2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
1508 * haifa-sched.c (recompute_todo_spec): Simplify and correct the
1509 code checking for a clobber of a condition register when deciding
1510 whether to predicate.
1512 2011-11-29 Diego Novillo <dnovillo@google.com>
1514 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
1515 Update field call_stmt_cannot_inline_p from call graph edge, if needed.
1516 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
1518 2011-11-29 Sameera Deshpande <sameera.deshpande@arm.com>
1520 * config/arm/arm.md (arm_movdi): Update NEG_POOL_RANGE.
1521 (movdf_soft_insn): Likewise.
1522 * config/arm/fpa.md (thumb2_movdf_fpa): Likewise.
1523 * config/arm/neon.md (neon_mov<mode>): Likewise.
1524 * config/arm/vfp.md (movdi_vfp): Likewise.
1525 (movdi_vfp_cortexa8): Likewise.
1526 (movdf_vfp): Likewise.
1528 2011-11-29 Jakub Jelinek <jakub@redhat.com>
1531 * expr.c (expand_expr_addr_expr_1): Don't call force_operand for
1532 EXPAND_SUM modifier.
1534 2011-11-29 Ira Rosen <ira.rosen@linaro.org>
1536 PR tree-optimization/51301
1537 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check that
1538 the last statement doesn't convert to a bigger type than the original
1539 type of the computation.
1541 2011-11-28 Richard Henderson <rth@redhat.com>
1543 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1544 Handle overlap between retval and oldval. Always compute boolval
1547 2011-11-28 Jakub Jelinek <jakub@redhat.com>
1550 * tree-ssa.c (execute_update_addresses_taken): Remove
1551 var ={v} {CLOBBER} stmts instead of rewriting them into
1552 var_N ={v} {CLOBBER}.
1555 * function.c (convert_jumps_to_returns): When redirecting an edge
1556 succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
1558 PR tree-optimization/50078
1559 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
1560 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
1562 PR tree-optimization/50682
1563 * tree-eh.c (maybe_remove_unreachable_handlers): New function.
1564 * tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
1565 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.
1567 2011-11-28 Georg-Johann Lay <avr@gjlay.de>
1569 * doc/extend.texi (AVR Built-in Functions): Add documentation for
1570 __builtin_avr_map8 and __builtin_avr_map16.
1572 * config/avr/avr.md: Document new %t and %T asm output codes.
1573 (define_c_enum "unspec"): Add UNSPEC_MAP_BITS.
1574 (adjust_len): Add map_bits.
1575 (map_bitsqi, map_bitshi): New insns.
1576 * config/avr/avr-protos.h (avr_out_map_bits): New.
1577 * config/avr/avr-protos.c (print_operand): Implement %t and %T.
1578 (adjust_insn_length): Handle ADJUST_LEN_MAP_BITS.
1579 (avr_double_int_push_digit): New function.
1580 (avr_map, avr_revert_map, avr_swap_map, avr_id_map): New functions.
1581 (avr_sig_map, avr_map_hamming_byte): New functions.
1582 (avr_out_swap_bits, avr_out_revert_bits, avr_move_bits,
1583 avr_out_map_bits): New functions.
1584 (enum avr_builtin_id): Add AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1585 (avr_init_builtins): Populate __builtin_avr_map8, __builtin_avr_map16.
1586 (bdesc_2arg): Add __builtin_avr_map8, __builtin_avr_map16 ...
1587 (avr_expand_builtin): ...and expand them.
1588 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
1589 __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
1591 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1594 * config/mips/mips.c (mips_rtx_costs): Handle baddu.
1596 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1598 * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
1600 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1602 * config/mips/mips-protos.h (mips_emit_binary): Declare.
1603 * config/mips/mips.c (mips_emit_binary): Make global.
1604 (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
1605 (mips_conditional_register_usage): Don't treat LO and HI as
1606 register operands in MIPS16 mode.
1607 (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
1609 * config/mips/predicates.md (muldiv_target_operand): New predicate.
1610 (move_operand): Allow hilo_operand.
1611 * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
1612 target of MIPS16 multiplies, then move it into the target register.
1613 (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
1614 (<u>mulsidi3_32bit_mips16): New expander.
1615 (<u>mulsidi3_32bit): Use muldiv_target_operand.
1616 (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
1617 (<u>mulsidi3_64bit): Require !TARGET_MIPS16. Split into
1618 <u>mulsidi3_64bit_split.
1619 (<u>mulsidi3_64bit_mips16): New expander.
1620 (<u>mulsidi3_64bit_split): Likewise, using expansions from
1621 two previous define_splits.
1622 (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
1623 muldiv_target_operand.
1624 (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
1625 (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
1626 Split into <su>mulsi3_highpart_split.
1627 (<su>mulsi3_highpart_split): New expander.
1628 (<su>muldi3_highpart): Turn into a define_expand.
1629 Use <su>muldi3_highpart_split for MIPS16 code.
1630 (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
1631 Require !TARGET_MIPS16. Split into <su>muldi3_highpart_split.
1632 (<su>muldi3_highpart_split): New expander.
1633 (<u>mulditi3): Explicitly specify LO as the target of MIPS16
1634 multiplies, then move it into the target register.
1635 (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
1636 (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
1637 Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
1638 move LO into operand 0.
1639 (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
1640 from <u>divmod<mode>4. Use muldiv_target_operand.
1641 Require !TARGET_MIPS16. Split into <u>divmod<mode>4_split.
1642 (<u>divmod<mode>4_split): New expander.
1643 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
1644 (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
1646 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1648 * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
1649 and x_operand_reg_set.
1650 (accessible_reg_set, operand_reg_set): New macros.
1651 * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
1653 (saved_accessible_reg_set, saved_operand_reg_set): New variables.
1654 (save_register_info): Save them.
1655 (restore_register_info): Restore them.
1656 (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
1657 Remove NO_REGS registers from operand_reg_set. Treat members
1658 of operand_reg_set as fixed.
1659 * recog.c (general_operand): Check operand_reg_set rather than NO_REGS.
1660 (register_operand, nonmemory_operand): Likewise.
1661 * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
1662 register variables. Check accessible_reg_set and operand_reg_set.
1663 * config/mips/mips.c (mips_conditional_register_usage): Remove
1664 inaccessible register from accessible_reg_set, rather than just
1667 2011-11-27 Gerald Pfeifer <gerald@pfeifer.com>
1669 * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
1671 2011-11-26 Richard Henderson <rth@redhat.com>
1673 * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
1676 2011-11-26 Richard Henderson <rth@redhat.com>
1678 * optabs.c (expand_atomic_fetch_op): Always return result.
1680 * optabs.c (init_sync_libfuncs_1): Include max in iteration.
1682 * omp-low.c (expand_omp_atomic): Assume anything aligned to
1683 BIGGEST_ALIGNMENT is aligned.
1685 2011-11-26 Richard Henderson <rth@redhat.com>
1687 * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
1688 (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
1689 (I): New mode iterator.
1690 (xz): New mode attribute.
1691 * config/m68k/sync.md: New file.
1693 * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
1694 * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
1696 2011-11-26 Nathan Sidwell <nathan@acm.org>
1698 PR gcov-profile/51297
1699 * gcov.c (main): Allocate initial names and sources arrays.
1700 (find_source): Don't check for null name or source arrays here.
1702 2011-11-26 Jakub Jelinek <jakub@redhat.com>
1704 PR rtl-optimization/49912
1705 * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
1706 when counting n_branch.
1708 2011-11-26 Uros Bizjak <ubizjak@gmail.com>
1710 * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
1712 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1715 * calls.c (mem_overlaps_already_clobbered_arg_p):
1716 Return false if no outgoing arguments have been stored so far.
1718 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
1720 * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
1722 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1725 * tree.h (is_builtin_name): No longer external.
1726 * builtins.c (is_builtin_name): Make static.
1727 * varasm.c (incorporeal_function_p): __sync and __atomic external calls
1728 are not incorporeal and may need asm label processing.
1730 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
1733 * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
1734 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1735 Don't bypass TARGET_ALL_DEBUG. Print self-info with ?.
1736 (avr_log_vadump): Support %D and %X to print double_int.
1737 (avr_double_int_pop_digit): New static function.
1738 (avr_dump_double_int_hex): New static function.
1740 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
1743 * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
1746 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1748 * optab.c (maybe_emit_atomic_exchange): New. Try to emit an
1749 atomic_exchange pattern.
1750 (maybe_emit_sync_lock_test_and_set): New. Try to emit an exchange
1751 using __sync_lock_test_and_set.
1752 (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
1753 exchange using a compare_and_swap loop.
1754 (expand_sync_lock_test_and_set): New. Expand sync_lock_test_and_set.
1755 (expand_atomic_test_and_set): New. Expand test_and_set operation.
1756 (expand_atomic_exchange): Use new maybe_emit_* functions.
1757 (expand_atomic_store): Use new maybe_emit_* functions.
1758 * builtins.c (expand_builtin_sync_lock_test_and_set): Call
1759 expand_sync_lock_test_and_set routine.
1760 (expand_builtin_atomic_exchange): Remove parameter from call.
1761 (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
1762 (expand_builtin_atomic_test_and_set): Add target and simply call
1763 expand_atomic_test_and_set.
1764 (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
1765 * expr.h (expand_atomic_exchange): Add parameter.
1766 (expand_sync_lock_test_and_set): New prototype.
1767 (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
1769 2011-11-24 H.J. Lu <hongjiu.lu@intel.com>
1772 * config/i386/i386.h (processor_costs): Revert revision 181357.
1773 * config/i386/i386.c (cost models): Likewise.
1774 (core_cost): Likewise.
1775 (promote_duplicated_reg): Likewise.
1776 (promote_duplicated_reg_to_size): Likewise.
1777 (processor_target): Likewise.
1778 (expand_set_or_movmem_via_loop_with_iter): Likewise.
1779 (expand_set_or_movmem_via_loop): Likewise.
1780 (emit_strset): Likewise.
1781 (expand_movmem_epilogue): Likewise.
1782 (expand_setmem_epilogue): Likewise.
1783 (expand_movmem_prologue): Likewise.
1784 (expand_setmem_prologue): Likewise.
1785 (expand_constant_movmem_prologue): Likewise.
1786 (expand_constant_setmem_prologue): Likewise.
1787 (decide_alg): Likewise.
1788 (decide_alignment): Likewise.
1789 (ix86_expand_movmem): Likewise.
1790 (ix86_expand_setmem): Likewise.
1791 (ix86_slow_unaligned_access): Likewise.
1792 * config/i386/i386.md (strset): Likewise.
1793 * config/i386/sse.md (vec_dupv4si): Likewise.
1794 (vec_dupv2di): Likewise.
1796 2011-11-24 Georg-Johann Lay <avr@gjlay.de>
1798 * config/avr/avr.md (*rotlhi2.15): Set length to 4.
1800 2011-11-24 Razya Ladelsky <razya@il.ibm.com>
1802 * tree-data-ref.c (initialize_data_dependence_relation): Update
1803 comment for the self dependence case.
1804 (compute_self_dependence): Remove.
1805 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
1806 compute_self_dependenc.
1808 2011-11-24 Alan Modra <amodra@gmail.com>
1810 * c-decl.c (warn_if_shadowing): Don't warn if shadowed
1811 identifier is from system header.
1813 2011-11-23 Jakub Jelinek <jakub@redhat.com>
1816 * config/i386/i386.c (decide_alg): Initialize *dynamic_check
1819 2011-11-23 Vladimir Makarov <vmakarov@redhat.com>
1821 PR rtl-optimization/48455
1822 * doc/invoke.texi (-fira-region): Document default values.
1824 * flags-types.h (enum ira_region): Add new value
1825 IRA_REGION_AUTODETECT.
1827 * common.opt (fira-region): Set up initial value to
1828 IRA_REGION_AUTODETECT.
1830 * toplev.c (process_options): Set up flag_ira_region depending on
1833 * ira.c (ira.c): Remove optimize guard for ira_build.
1835 2011-11-23 Chung-Lin Tang <cltang@codesourcery.com>
1837 PR rtl-optimization/50496
1838 * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
1839 only after epilogue is created. Add comments.
1841 2011-11-22 Richard Henderson <rth@redhat.com>
1843 * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
1844 Generate the barrier required for the memory model.
1845 (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
1846 * config/ia64/ia64-protos.h: Update.
1847 * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
1848 (UNSPEC_CMPXCHG_REL): New.
1849 * config/ia64/sync.md (mem_thread_fence): New.
1850 (atomic_load<IMODE>, atomic_store<IMODE>): New.
1851 (atomic_compare_and_swap<IMODE>): New.
1852 (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
1853 (atomic_exchange<IMODE>): New.
1854 (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
1855 (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
1856 (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
1857 (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
1858 (fetchadd_rel_<I48MODE>): New.
1859 (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
1860 (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
1861 (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
1862 (sync_compare_and_swap<IMODE>): Remove.
1863 (sync_lock_release<IMODE>): Remove.
1865 * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
1866 and UNSPECV_* constants.
1868 2011-11-22 Tom de Vries <tom@codesourcery.com>
1870 PR rtl-optimization/50764
1871 * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
1872 not moved past preceding jump.
1874 2011-11-22 Jeff Law <law@redhat.com>
1876 * doc/contrib.texi: Add entry for David Binderman.
1878 2011-11-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1880 * postreload.c (reload_combine): Mark reg_state as invalid at
1881 volatile insns if there has been a use already.
1883 2011-11-21 Aldy Hernandez <aldyh@redhat.com>
1885 * opts.c (finish_options): Do not fail for -fgnu-tm.
1886 * gimple-streamer-out.c (output_gimple_stmt): Handle
1888 * gimple-streamer-in.c (input_gimple_stmt): Same.
1889 * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
1890 (lto_output_node): Write tm_clone bit.
1892 2011-11-22 Ian Lance Taylor <iant@google.com>
1894 * doc/install.texi (Configuration): Correct doc of
1895 --enable-build-poststage1-with-cxx: it is not experimental.
1897 2011-11-22 Jakub Jelinek <jakub@redhat.com>
1899 PR tree-optimization/51074
1900 * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
1901 handling for BYTES_BIG_ENDIAN.
1902 * optabs.c (can_vec_perm_for_code_p): Likewise.
1904 2011-11-22 Michael Matz <matz@suse.de>
1907 * trans-mem.c (expand_block_tm): Ignore clobbers.
1909 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1911 * config/darwin.h (ENDFILE_SPEC): New.
1912 (DARWIN_CRT1_SPEC): Add crttms.o.
1913 (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
1914 * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
1916 2011-11-22 Michael Matz <matz@suse.de>
1919 * tree.c (iterative_hash_expr): Remove break after return.
1921 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1923 * target.def (tm_clone_table_section): New hook.
1924 * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
1925 * doc/tm.texi: Regenerate.
1926 * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
1927 * output.h (default_clone_table_section): New prototype.
1928 * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
1929 * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
1930 * config/darwin.c (darwin_tm_clone_table_section): New.
1932 2011-11-21 Torvald Riegel <triegel@redhat.com>
1934 * trans-mem.c (diagnose_tm_1): Print an expression instead of a
1935 declaration in error messages for indirect calls.
1937 2011-11-21 David S. Miller <davem@davemloft.net>
1939 * config/sparc/sparc.c (sparc_regmode_natural_size): New function
1940 implementing REGMODE_NATURAL_SIZE taking into consideration vector
1942 (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
1943 * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
1944 sparc_modes_tieable_p): Declare.
1945 * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
1946 MODES_TIEABLE_P): Use new helper functions.
1949 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1952 * expmed.c (store_bit_field_1): Use extract_bit_field on big
1953 endian targets if the source cannot be exactly covered by word
1956 2011-11-21 Jakub Jelinek <jakub@redhat.com>
1959 * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
1960 macro instead of XEXP.
1962 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1964 * configure: Regenerate.
1966 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
1968 * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
1969 must not affect cc0.
1970 * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
1971 register does not change cc0. Same for any constant to ld-register.
1973 2011-11-21 Uros Bizjak <ubizjak@gmail.com>
1975 * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
1976 UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
1977 Move from config/i386/i386.md
1978 (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
1979 * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
1980 UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
1981 UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
1982 UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
1983 UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
1984 UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
1985 UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
1986 UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
1987 UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
1988 UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
1989 UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
1990 UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
1991 (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
1992 UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
1994 * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
1995 UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
1996 (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
1997 UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
1998 (sse2_lfence): Move from config/i386/sse.md.
1999 (*sse2_lfence): Ditto.
2000 (sse_sfence): Ditto.
2001 (*sse_sfence): Ditto.
2002 (sse2_mfence): Ditto.
2003 (mfence_sse2): Ditto. Rename from *sse2_mfence. Enable also
2005 (mem_thread_fence): Use mfence_sse2.
2007 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
2009 * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
2010 * config/avr/avr-devices.c: Ditto. And initialize it.
2011 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
2013 * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
2014 (out_movhi_r_mr, out_movhi_mr_r): Remove.
2015 (out_movsi_r_mr, out_movsi_mr_r): Remove.
2016 * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
2017 (*insv.io, *insv.not.io): Ditto.
2018 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
2019 (print_operand): Implement "%i" to print address as I/O address.
2020 (output_movqi): Clean up call of out_movqi_mr_r.
2021 (output_movhi): Clean up call of out_movhi_mr_r.
2022 (avr_file_start): Use avr_current_arch->sfr_offset instead of
2023 magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
2024 (avr_out_sbxx_branch): Use %i instead of %m-0x20.
2025 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
2026 (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
2027 (out_shift_with_cnt): Clean up code: Use avr_asm_len.
2028 (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
2029 (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
2030 Clean up call of avr_out_store_psi.
2031 (output_reload_in_const): Don't cut symbols longer than 2 bytes.
2032 (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
2033 try if setting pre-cleared register is advantageous.
2034 (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
2036 2011-11-20 Joey Ye <joey.ye@arm.com>
2038 * expr.c (expand_expr_real_1): Correctly handle strict volatile
2039 bitfield loads smaller than mode size.
2041 2011-11-20 Richard Henderson <rth@redhat.com>
2043 * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
2045 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
2048 * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
2049 patterns for supported mode only.
2052 * config/i386/i386.c (ix86_expand_builtin)
2053 <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
2055 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
2057 * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
2058 (UNSPEC_MOVNTQ): New unspec.
2059 * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
2060 Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
2061 * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
2063 (STORENT_MODE): Add DI and V4DI modes.
2065 2011-11-20 Nathan Sidwell <nathan@acm.org>
2067 PR gcov-profile/51113
2068 * coverage.c (build_var): Propagate visibility for public
2069 decls. Use make_decl_one_only for PIC correctness.
2072 * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
2073 * gcc.misc-tests/gcov-16.c: New.
2074 * gcc.misc-tests/gcov-17.c: New.
2075 * g++.dg/gcov/gcov-8.C: New.
2076 * g++.dg/gcov/gcov-9.C: New.
2077 * g++.dg/gcov/gcov-10.C: New.
2079 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
2081 PR rtl-optimization/51187
2082 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
2083 is a barrier between the jump and its target label.
2085 2011-11-19 Patrick Marlier <patrick.marlier@gmail.com>
2088 * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
2090 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
2092 * expmed.c (store_bit_field_1): Revert bogus formatting change.
2094 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
2097 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
2098 overlap of src and dest operands.
2100 2011-11-19 Iain Sandoe <iains@gcc.gnu.org>
2102 * config/darwin.h (ASM_DEBUG_SPEC): New.
2103 * config/darwin9.h (ASM_DEBUG_SPEC): New.
2105 2011-11-18 Jan Hubicka <jh@suse.cz>
2107 * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
2110 2011-11-18 Anatoly Sokolov <aesok@post.ru>
2112 * config/cris/cris.c (cris_function_value_regno_p): Make static.
2113 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2114 * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
2115 * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
2117 2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
2120 * doc/extend.texi: Document __builtin_ia32_movnti64.
2122 * config/i386/emmintrin.h (_mm_stream_si64): New.
2124 * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
2126 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
2127 (bdesc_special_args): Update __builtin_ia32_movnti. Add
2128 __builtin_ia32_movnti64.
2129 (ix86_expand_special_args_builtin): Handle
2130 VOID_FTYPE_PLONGLONG_LONGLONG.
2132 * config/i386/i386.md (UNSPEC_MOVNTI): New.
2134 * config/i386/sse.md (sse2_movntsi): Renamed to ...
2135 (sse2_movnti<mode>): This.
2137 2011-11-18 Georg-Johann Lay <avr@gjlay.de>
2140 * config/avr/avr.h (base_arch_s): Add field n_segments.
2141 (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
2142 ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
2143 (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
2144 (INIT_EXPANDERS): New define.
2145 * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
2146 (avr_init_expanders): New.
2147 (avr_emit_movmemhi, avr_out_movmem): New.
2148 (avr_xload_libgcc_p): New.
2149 * config/avr/avr-c.c (avr_register_target_pragmas): Register
2150 address spaces __pgm1, __pgm2, __pgm3, __pgm4 __pgm5, __pgmx.
2151 (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
2152 __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
2153 * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
2155 * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
2156 3 bits instead of just 1.
2157 (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
2158 (progmem_section): Change from section to array of sections.
2159 (progmem_section_prefix): New static variable.
2160 (avr_file_start): Print set for __RAMPZ__
2161 (avr_option_override): Move initialization of RTXes from here...
2162 (avr_init_expanders): ...to this new function.
2163 (avr_pgm_segment): New static function.
2164 (avr_decl_pgm_p): Handle error_mark_node.
2165 (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
2166 (avr_out_xload, avr_find_unused_d_reg): New static functions.
2167 (expand_prologue, expand_epilogue): Use rampz_rtx.
2168 (print_operand): Hande CONST_STRING.
2169 (avr_xload_libgcc_p): New static function.
2170 (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
2171 (avr_progmem_p): Return 2 for 24-bit flash address space.
2172 (avr_out_sbxx_branch): Clean-up code from ASn macros.
2173 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
2174 address and print symbolically.
2175 (avr_asm_named_section, avr_section_type_flags,
2176 avr_encode_section_info, avr_asm_select_section,
2177 avr_addr_space_address_mode, avr_addr_space_pointer_mode,
2178 avr_addr_space_legitimate_address_p, avr_addr_space_convert,
2179 avr_addr_space_legitimize_address): Handle new address spaces.
2180 (avr_output_progmem_section_asm_op): New static function.
2181 (avr_asm_init_sections): Initialize progmem_section[].
2182 (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
2183 (avr_const_address_lo16): New static function.
2184 (avr_assemble_integer): Use it to handle 3-byte integers.
2185 (avr_emit_movmemhi, avr_out_movmem): New functions.
2187 * config/avr/predicates.md (nox_general_operand): Handle new
2189 * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
2190 (adjust_len): Add xload, movmem.
2191 (SP_ADDR): New define_constants.
2192 (isa): Add "lpm", "lpmx", "elpm", "elpmx".
2193 (enabled): Handle them.
2194 (load<mode>_libgcc): New expander.
2195 (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
2196 (xload8_A, xload<mode>_A): New insn-and-splits.
2197 (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
2198 (mov<mode>): Handle new address spaces.
2199 (movmemhi): Rewrite using avr_emit_movmemhi.
2200 (MOVMEM_r_d): New mode attribute.
2201 (movmem_<mode>, movmem_qi_elpm): New insns.
2202 (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
2203 C-code. Use label instead of hard-coded instrunction lengths.
2205 2011-11-18 Martin Jambor <mjambor@suse.cz>
2207 PR tree-optimization/50605
2208 * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
2209 of IPA invariant decls.
2211 2011-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2213 * tree-outof-ssa.c (insert_back_edge_copies): Add call to
2214 mark_dfs_back_edges.
2216 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
2219 * configure.ac: Remove ranlib special-casing for Darwin.
2220 * configure: Regenerate.
2222 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
2224 PR tree-optimization/51118
2225 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
2226 before using TREE_TYPE accessor on expr.
2228 2011-11-17 Jan Hubicka <jh@suse.cz>
2231 * i386.c (atom_cost): Fix 32bit memset description.
2232 (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
2234 (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
2236 (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
2237 when not optimizing always use rep movsb or lincall; do not produce
2238 word sized loops when optimizing memset for size (to avoid need
2239 for large constants).
2240 (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
2241 choose unroll factors better; always do 128bit moves when producing
2242 SSE loops; do not produce loopy epilogue when size is too small.
2243 (promote_duplicated_reg_to_size): Do not look into desired alignments
2244 when doing vector expansion.
2245 (ix86_expand_setmem): Track better when promoted value is available;
2246 choose unroll factors more sanely. Output loopy epilogue only
2249 2011-11-17 Steve Ellcey <sje@cup.hp.com>
2252 * output.h (fprint_w): Remove.
2253 * final.c (fprint_w): Remove.
2254 (output_addr_const): Change fprint_w back to fprintf.
2256 2011-11-17 Andrew Pinski <apinski@cavium.com>
2258 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
2260 2011-11-17 Andrew MacLeod <amacleod@redhat.com>
2262 * builtins.c (expand_builtin): Remove 4th parameter representing
2263 weak/strong mode when __atomic_compare_exchange becomes a library call.
2265 2011-11-17 Richard Henderson <rth@redhat.com>
2267 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
2268 new pseudo for target after convert_modes.
2269 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
2271 2011-11-17 Richard Henderson <rth@redhat.com>
2273 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
2274 new pseudo for target after convert_modes.
2275 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
2277 2011-11-17 Richard Henderson <rth@redhat.com>
2279 * builtins.c (expand_builtin_mem_thread_fence): Remove.
2280 (expand_builtin_mem_signal_fence): Remove.
2281 (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
2282 (expand_builtin_sync_synchronize): Likewise.
2283 (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
2284 * optabs.c (expand_asm_memory_barrier): Split out from
2285 expand_builtin_mem_signal_fence.
2286 (expand_mem_thread_fence): New, a combination of code from
2287 expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
2288 (expand_mem_signal_fence): Moved and renamed from
2289 expand_builtin_mem_signal_fence.
2290 (expand_atomic_exchange): Use expand_mem_thread_fence.
2291 (expand_atomic_load, expand_atomic_store): Likewise.
2292 * expr.h, optabs.h: Update decls.
2294 2011-11-17 Bin Cheng <bin.cheng@arm.com>
2296 PR rtl-optimization/50663
2297 * cprop.c (implicit_set_indexes): New global variable.
2298 (insert_set_in_table): Add additional parameter and record implicit
2300 (hash_scan_set): Add additional parameter and pass it to above.
2301 (hash_scan_insn): Pass false to hash_scan_set.
2302 (compute_hash_table_work): Pass true to hash_scan_set.
2303 (compute_cprop_data): Add implicit set to AVIN of block which the
2304 implicit set is recorded for.
2305 (one_cprop_pass): Handle implicit_set_indexes array.
2307 2011-11-17 Michael Matz <matz@suse.de>
2311 * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
2313 (remove_unused_locals): Ditto.
2315 2011-11-16 Richard Henderson <rth@redhat.com>
2317 * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
2318 ALIAS_SET_MEMORY_BARRIER when creating a new memory.
2319 (alpha_split_atomic_exchange_12): Likewise.
2320 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
2322 2011-11-16 Joseph Myers <joseph@codesourcery.com>
2324 * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
2326 2011-11-16 David Edelsohn <dje.gcc@gmail.com>
2328 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
2329 Default to minimum alignment if decl is NULL.
2331 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
2333 * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
2335 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
2337 2011-11-16 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2339 * doc/invoke.texi: Document AMD bdver1 and btver1.
2341 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
2342 Bernd Schmidt <bernds@coudesourcery.com>
2343 Sebastian Huber <sebastian.huber@embedded-brains.de>
2346 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
2347 the base reg is stored iff compiling for Thumb1.
2349 2011-11-16 Razya Ladelsky <razya@il.ibm.com>
2351 PR tree-optimization/49960
2352 * tree-data-ref.c (initialize_data_dependence_relation): Add
2354 Remove call to compute_self_dependence.
2355 (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
2356 (compute_self_dependence): Remove old code. Add call to
2357 compute_affine_dependence.
2358 (compute_all_dependences): Remove call to compute_self_dependence.
2359 Add call to compute_affine_dependence.
2361 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2364 * expmed.c (store_bit_field_1): Use extract_bit_field on big
2365 endian targets if the source cannot be exactly covered by word
2368 2011-11-15 Joseph Myers <joseph@codesourcery.com>
2370 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
2373 2011-11-15 Richard Henderson <rth@redhat.com>
2375 * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
2376 (alpha_post_atomic_barrier): New.
2377 (alpha_split_atomic_op): New memmodel argument; honor it.
2378 (alpha_split_compare_and_swap): Take array of operands. Honor
2379 memmodel; always set bool output
2380 (alpha_expand_compare_and_swap_12): Similarly.
2381 (alpha_split_compare_and_swap_12): Similarly.
2382 (alpha_split_atomic_exchange): Similarly. Rename from
2383 alpha_split_lock_test_and_set.
2384 (alpha_expand_atomic_exchange_12): Similarly. Rename from
2385 alpha_expand_lock_test_and_set_12.
2386 (alpha_split_atomic_exchange_12): Similarly. Rename from
2387 alpha_split_lock_test_and_set_12.
2388 * config/alpha/alpha-protos.h: Update.
2389 * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
2390 * config/alpha/constraints.md ("w"): New.
2391 * config/alpha/predicates.md (mem_noofs_operand): New.
2392 * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
2393 sync_compare_and_swap<mode>; add the new parameters.
2394 (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
2395 (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
2396 (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
2397 (atomic_<op><mode>): Update from sync_<op><mode>.
2399 2011-11-16 Tom de Vries <tom@codesourcery.com>
2401 * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
2403 2011-11-16 Alan Modra <amodra@gmail.com>
2405 PR rtl-optimization/51051
2407 * function.c (thread_prologue_and_epilogue_insns): Guard
2408 emitting return with single_succ_p test.
2410 2011-11-15 Joern Rennecke <joern.rennecke@embecosm.com>
2412 * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
2413 get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
2415 2011-11-15 Uros Bizjak <ubizjak@gmail.com>
2417 * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
2418 (vec_pack_sfix_trunc_v2df): Ditto.
2419 (vec_pack_sfix_v2df): Ditto.
2420 (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
2421 avx_vec_concatv8si patterns.
2422 (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
2423 avx_vec_concatv8si patterns.
2425 2011-11-15 Torvald Riegel <triegel@redhat.com>
2427 * c-parser.c (c_parser_transaction_expression): Require parentheses
2428 when parsing transaction expressions.
2430 2011-11-15 Tristan Gingold <gingold@adacore.com>
2432 * incpath.c (get_added_cpp_dirs): New function.
2433 * incpath.h (get_added_cpp_dirs): Declare.
2434 * config/vms/vms-c.c (vms_c_register_includes): New function.
2435 (vms_std_modules): New variable.
2436 * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
2437 (vms_c_register_includes): Declare.
2439 2011-11-15 Tristan Gingold <gingold@adacore.com>
2441 * c-family/c-pragma.h (pragma_extern_prefix): Declare.
2442 * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
2443 * config/vms/vms-c.c (saved_extern_prefix): New variable.
2444 (vms_pragma_extern_prefix): New function.
2445 (vms_c_register_pragma): Register vms_pragma_extern_prefix.
2447 2011-11-15 Georg-Johann Lay <avr@gjlay.de>
2450 * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
2451 (REGISTER_TARGET_PRAGMAS): New define.
2452 * config/avr/avr-protos.h (avr_mem_pgm_p): New.
2453 (avr_load_libgcc_p): New.
2454 (avr_register_target_pragmas): New.
2455 (asm_output_external_libcall): Remove.
2456 (avr_log_t): Add field "progmem". Order alphabetically.
2457 * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
2458 * config/avr/avr-c.c (langhooks.h): New include.
2459 (avr_register_target_pragmas): New function. Register address
2461 (avr_cpu_cpp_builtins): Add built-in define __PGM.
2463 * config/avr/avr.c: Include "c-family/c-common.h".
2464 (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
2465 (TARGET_LEGITIMIZE_ADDRESS): Remove define.
2466 (TARGET_ADDR_SPACE_SUBSET_P): Define to...
2467 (avr_addr_space_subset_p): ...this new static function.
2468 (TARGET_ADDR_SPACE_CONVERT): Define to...
2469 (avr_addr_space_convert): ...this new static function.
2470 (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
2471 (avr_addr_space_address_mode): ...this new static function.
2472 (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
2473 (avr_addr_space_pointer_mode): ...this new static function.
2474 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
2475 (avr_addr_space_legitimate_address_p): ...this new static function.
2476 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
2477 (avr_addr_space_legitimize_address): ...this new static function.
2478 (avr_mode_code_base_reg_class): Handle address spaces.
2479 (avr_regno_mode_code_ok_for_base_p): Ditto.
2480 (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
2481 (avr_option_override): Initialize them.
2482 (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
2484 (avr_pgm_segment): New static function.
2485 (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
2486 (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
2487 (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
2488 avr_out_lpm to handle loads from progmem.
2489 (avr_load_libgcc_p): New static function.
2490 (avr_progmem_p): Test if decl is in flash.
2491 (avr_pgm_pointer_const_p): New static function.
2492 (avr_nonconst_pointer_addrspace): New static function.
2493 (avr_pgm_check_var_decl): New static function.
2494 (avr_insert_attributes): Use it. Change error message to report
2495 cause (progmem or address space) when code wants to write to flash.
2496 (avr_section_type_flags): Unset section flag SECTION_BSS for
2499 * config/avr/predicates.md (nop_general_operand): New predicate.
2500 (nox_general_operand): New predicate.
2501 * config/avr/avr.md (LPM_REGNO): New define_constant.
2502 (load<mode>_libgcc): New expander.
2503 (*load.<mode>.libgcc): New insn.
2504 (mov<mode>): Handle loads from non-generic AS.
2505 (movmemhi): Ditto. Propagate address space information to newly
2507 (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
2508 to nox_general_operand.
2509 (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
2510 nop_general_operand.
2511 (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
2512 (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
2513 (split-lpmx): New split.
2514 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
2515 *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
2517 2011-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2519 * ipa-cp.c (ipa_value_from_jfunc): Make global.
2520 (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
2521 (get_indirect_edge_target): Rename, make global.
2522 (devirtualization_time_bonus, estimate_local_effects,)
2523 (ipcp_discover_new_direct_edges): Update.
2524 * ipa-inline-analysis.c (evaluate_conditions_for_edge):
2525 Generalize to also handle types. Rename to ...
2526 (evaluate_properties_for_edge): Use instead of
2527 evaluate_conditions_for_edge.
2528 (estimate_edge_devirt_benefit): New function.
2529 (estimate_calls_size_and_time): Use it.
2530 (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
2531 (inline_merge_summary): Update.
2532 (do_estimate_edge_time, do_estimate_edge_growth): Update. Calculate
2533 parameter information at the call site and pass it on to subroutines.
2534 * tree-inline.c (estimate_num_insns): Distinguish between direct and
2536 (init_inline_once): Set size and time costs or indirect calls.
2537 * tree-inline.h (eni_weights): Add indirect_call_cost.
2539 2011-11-15 Tom de Vries <tom@codesourcery.com>
2541 PR tree-optimization/51005
2542 * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
2543 mark_basic_block_deleted.
2544 (update_worklist): Inline purge_bbs.
2545 (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
2546 (delete_block_update_dominator_info): Remove.
2547 (replace_block_by): Remove update_vops parameter. Partially evaluate
2548 for update_vops == false.
2549 (apply_clusters): Remove update_vops parameter. Remove update_vops
2550 argument in replace_block_by call.
2551 (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
2552 (tail_merge_optimize): Remove update_vops argument to apply_clusters.
2553 Remove call to purge_bbs. Add calls to calculate_dominance_info and
2554 free_dominance_info. Add MAY_HAVE_DEBUG_STMTS before calling
2555 update_debug_stmts. Mark vop var for renaming, if necessary.
2557 2011-11-15 Bernd Schmidt <bernds@codesourcery.com>
2559 PR rtl-optimization/51051
2560 * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
2561 move would cause fallthrough into the exit block.
2563 2011-11-14 Richard Henderson <rth@redhat.com>
2565 * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
2567 (emit_store_conditional): Likewise.
2568 (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
2569 (rs6000_adjust_atomic_subword): New.
2570 (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
2571 (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
2572 for pre-reload expansion.
2573 (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
2574 rs6000_expand_compare_and_swapqhi): Merge into ...
2575 (rs6000_expand_atomic_compare_and_swap): ... here. New function.
2576 rs6000_split_lock_test_and_set; expand immediately. Handle
2578 * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
2579 from UNSPECV_LWSYNC.
2580 * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
2581 (mem_thread_fence): New.
2582 (hwsync): Rename from memory_barrier.
2583 (*hwsync): Rename from *sync_internal.
2584 (lwsync, *lwsync): Mirror hwsync implementation.
2585 (isync): Don't reference memory.
2587 (atomic_load<INT>, atomic_store<INT>): New.
2588 (ATOMIC): New mode iterator.
2589 (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
2590 (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
2591 (sync_compare_and_swap<GPR>): Remove.
2592 (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
2593 (sync_compare_and_swapqhi_internal): Remove.
2594 (sync_lock_test_and_set<GPR>): Remove.
2595 (sync_<FETCHOP><INT1>): Remove.
2596 (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
2597 (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
2598 (sync_old_<FETCHOP><GPR>): Remove.
2599 (*sync_old_<FETCHOP>si_internal): Remove.
2600 (*sync_old_<FETCHOP>di_internal): Remove.
2601 (sync_old_nand<INT1>): Remove.
2602 (*sync_old_nand<GPR>_internal): Remove.
2603 (sync_new_<FETCHOP><GPR>): Remove.
2604 (*sync_new_<FETCHOP>si_internal): Remove.
2605 (*sync_new_<FETCHOP>di_internal): Remove.
2606 (sync_new_nand<INT1>): Remove.
2607 (*sync_new_nand<GPR>_internal): Remove.
2608 (*atomic_andsi, *atomic_anddi): Remove.
2609 (*sync_addshort_internal, *sync_subshort_internal): Remove.
2610 (*sync_andsi_internal, *sync_boolsi_internal): Remove.
2611 (*sync_boolcshort_internal): Remove.
2612 (sync_lock_release<INT1>): Remove.
2613 (atomic_compare_and_swap<INT1>): New.
2614 (atomic_exchange<INT1>): New.
2615 (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
2616 (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
2617 (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
2619 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
2621 * config/i386/sse.md (round<mode>2): Use register_operand for
2622 operand 1 predicate.
2623 (round<mode>2_sfix): Ditto.
2624 (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
2626 2011-11-14 Nathan Sidwell <nathan@acm.org>
2628 * gcov.c (canonicalize_name): Protect use of S_ISLNK.
2630 2011-11-14 Jan Hubicka <jh@suse.cz>
2633 * config/i386/i386.c (core cost model): Correct pasto.
2635 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
2637 * config/i386/sse.md (round<mode>2_sfix): New expander.
2638 (round<mode>2_vec_pack_sfix): Ditto.
2639 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
2640 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
2641 * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
2642 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
2643 V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
2644 * config/i386/i386.c (ix86_builtins): Add
2645 IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
2646 IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
2647 (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
2648 __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
2649 __builtin_ia32_{floorps,ceilps}_sfix{,256}and
2650 __builtin_ia32_roundps_az_sfix{,256} descriptions.
2651 (ix86_expand_sse_round_vec_pack_sfix): New.
2652 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
2653 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
2654 V8SI_FTYPE_V4DF_V4DF_ROUND types. Check last argument of
2655 CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
2656 CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
2657 (ix86_builtin_vectorized_function): Handle
2658 BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
2659 BUILT_IN_{I,L,LL}ROUND{,F}
2661 2011-11-14 Jan Hubicka <jh@suse.cz>
2664 * cgraph.h (varpool_externally_visible_p): Declare.
2665 (varpool_add_new_variable): Declare.
2666 * tree-emultls.c (get_emutls_init_templ_addr,
2667 new_emutls_decl): Use varpool_add_new_variable.
2668 * ipa.c (varpool_externally_visible_p): Export.
2669 * varpool.c (varpool_add_new_variable): New function.
2671 2011-11-14 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
2672 Jan Hubicka <jh@suse.cz>
2674 * config/i386/i386.h (processor_costs): Add second dimension to
2675 stringop_algs array.
2676 * config/i386/i386.c (cost models): Initialize second dimension of
2677 stringop_algs arrays.
2678 (core_cost): New costs based on generic64 costs with updated stringop
2680 (promote_duplicated_reg): Add support for vector modes, add
2682 (promote_duplicated_reg_to_size): Likewise.
2683 (processor_target): Set core costs for core variants.
2684 (expand_set_or_movmem_via_loop_with_iter): New function.
2685 (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
2686 different loops, produced by this function.
2687 (emit_strset): New function.
2688 (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
2689 use SSE-moves where possible.
2690 (expand_setmem_epilogue): Likewise.
2691 (expand_movmem_prologue): Likewise for prologue.
2692 (expand_setmem_prologue): Likewise.
2693 (expand_constant_movmem_prologue): Likewise.
2694 (expand_constant_setmem_prologue): Likewise.
2695 (decide_alg): Add new argument align_unknown. Fix algorithm of
2696 strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
2697 (decide_alignment): Update desired alignment according to chosen move
2699 (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
2700 (ix86_expand_setmem): Likewise.
2701 (ix86_slow_unaligned_access): Implementation of new hook
2702 slow_unaligned_access.
2703 * config/i386/i386.md (strset): Enable half-SSE moves.
2704 * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
2705 (vec_dupv2di): Add expand for vec_dupv2di.
2707 2011-11-14 Dimitrios Apostolou <jimis@gmx.net>
2711 * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
2712 * varasm.c (default_elf_internal_label): Remove.
2714 2011-11-14 Kai Tietz <ktietz@redhat.com>
2716 * gcov.c (generate_results): Add missing semicolon and correct indent.
2718 2011-11-14 Ira Rosen <ira.rosen@linaro.org>
2721 * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
2723 2011-11-14 Mingjie Xing <mingjie.xing@gmail.com>
2725 * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
2726 to @pxref{Function Attributes}.
2728 2011-11-13 Oleg Endo <oleg.endo@t-online.de>
2731 * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
2733 (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
2734 taking the default configuration into account.
2736 2011-11-13 Jonathan Wakely <jwakely.gcc@gmail.com>
2738 * doc/install.texi (Specific): Fix anchor for
2739 x86_64-*-solaris2.1[0-9]*.
2741 2011-11-13 Nathan Sidwell <nathan@acm.org>
2743 * gcov.c (source_prefix, source_length): New globals.
2744 (flag_relative_only): Likewise.
2745 (print_usage, options, process_args): Update.
2746 (generate_results): Use coverage.name, check
2747 flag_relative_only. Adjust messages.
2748 (find_source): Check source_prefix.
2749 (output_lines): Use coverage.name, adjust messages.
2750 * doc/gcov.texi (Invoking Gcov): Document new options.
2752 2011-11-12 Jason Merrill <jason@redhat.com>
2755 * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
2756 (gimplify_modify_expr): Don't try to simplify it.
2758 2011-11-12 Dimitrios Apostolou <jimis@gmx.net>
2761 * config/elfos.h (STRING_ASM_OP): Define.
2762 * varasm.c (default_elf_asm_output_limited_string): Use it.
2765 * gcc/configure.ac: Check for stpcpy declaration.
2766 * system.h: Declare it if not.
2767 * config.in, configure: Regenerate.
2769 2011-11-12 Richard Henderson <rth@redhat.com>
2771 * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
2772 nonimmediate_operand for the destination.
2773 (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
2775 * builtins.c (expand_builtin_compare_and_swap): If target is const0,
2776 don't pass the target to expand_atomic_compare_and_swap.
2777 (expand_builtin_atomic_compare_exchange): Likewise.
2779 * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
2780 * config/sh/sh.c (sh_init_sync_libfuncs): New.
2782 * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
2783 * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
2784 * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
2786 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
2789 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2790 Only expand a symbol ref. into an access when the entity is defined
2793 2011-11-12 Jan Hubicka <jh@suse.cz>
2796 * cgraphunit.c (output_weakrefs): Output really only weakrefs.
2798 2011-11-12 Nathan Sidwell <nathan@acm.org>
2800 * gcov.c (struct name_map): New.
2801 (names, n_names, a_names): New global vars.
2802 (print_usage): Adjust usage.
2803 (generate_results): Canonicalize main file name.
2804 (release_structures): Adjust.
2805 (name_search, name_sort): New callbacks.
2806 (find_source): Look for and create a canonical name.
2807 (canonicalize_name): New.
2808 (make_gcov_file_name): Reimplement and fix mangling.
2810 * doc/gcov.texi: Update documentation about path preservation.
2812 2011-11-11 David S. Miller <davem@davemloft.net>
2814 * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
2815 * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
2817 2011-11-11 Jakub Jelinek <jakub@redhat.com>
2819 * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
2821 * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
2823 (ix86_expand_epilogue): Use it.
2824 * config/i386/i386.md (return, simple_return): Call it in the
2827 PR tree-optimization/51091
2828 * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
2829 rhs also in the va_list_simple_ptr case.
2831 PR tree-optimization/51058
2832 * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
2833 (vect_schedule_slp): Call it.
2834 * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
2835 don't replace scalar calls with setting of their lhs to zero here.
2837 PR tree-optimization/51074
2838 * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
2839 (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
2840 VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
2841 VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
2842 (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
2843 CONSTRUCTOR operands.
2844 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
2846 * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
2847 to 0 .. 2 * elements - 1.
2849 2011-11-11 Richard Henderson <rth@redhat.com>
2851 * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
2852 (dump_gimple_omp_atomic_store): Likewise.
2853 * optabs.c (can_atomic_exchange_p): New.
2854 * optabs.h (can_atomic_exchange_p): Declare.
2855 * omp-low.c (expand_omp_atomic_load): Implement.
2856 (expand_omp_atomic_store): Likewise.
2857 (expand_omp_atomic): Update for new arguments to load/store.
2859 2011-11-11 Eric Botcazou <ebotcazou@adacore.com>
2861 * cprop.c: Adjust outdated comments throughout.
2862 (hash_scan_set): Rename PAT parameter into SET.
2863 (cprop_pavloc): Rename into...
2864 (cprop_avloc): ...this.
2865 (cprop_absaltered): Rename into...
2866 (cprop_kill): ...this.
2867 (alloc_cprop_mem): Adjust for above renaming.
2868 (free_cprop_mem): Likewise.
2869 (compute_cprop_data): Likewise.
2870 (compute_local_properties): Rename TRANSP parameter into KILL and
2871 adjust throughout. Rework comments.
2872 (try_replace_reg): Fix long line.
2873 (cprop_jump): Likewise.
2874 (constprop_register): Fix prototype and take INSN last.
2875 (cprop_insn): Adjust calls to above function. Fix long lines.
2876 (bypass_block): Likewise.
2877 (one_cprop_pass): Likewise.
2879 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
2881 * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
2882 (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
2884 2011-11-11 Jason Merrill <jason@redhat.com>
2886 * varasm.c (default_elf_asm_output_limited_string): #ifdef
2888 (default_elf_asm_output_ascii): Likewise.
2890 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
2893 * config/i386/constraints.md (j): New address constraint.
2894 * config/i386/predicates.md (lea_address_operand): Redefine as
2896 * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
2897 (*lea_4_zext): Ditto.
2899 2011-11-11 David S. Miller <davem@davemloft.net>
2902 2011-11-05 David S. Miller <davem@davemloft.net>
2904 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
2905 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
2906 (*zero_extend_v8qi_<P:mode>_insn,
2907 *zero_extend_v4hi_<P:mode>_insn): New insns.
2908 * config/sparc/sparc.c (vector_init_move_words,
2909 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
2910 sparc_expand_vector_init_vis1): New functions.
2911 (vector_init_bshuffle): Rewrite to handle more cases and make use
2912 of locs[] array prepared by vector_init_prepare_elts.
2913 (vector_init_fpmerge, vector_init_faligndata): Delete.
2914 (sparc_expand_vector_init): Rewrite using new infrastructure.
2916 2011-11-11 Jakub Jelinek <jakub@redhat.com>
2918 * opts-common.c (generate_canonical_option): Free opt_text
2919 it it has been allocated here and not stored anywhere.
2921 * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
2923 (vect_create_new_slp_node): Don't allocate node before checking stmt
2925 (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
2926 free def_stmts vectors and additionally free oprnd_info.
2927 (vect_build_slp_tree): Adjust callers. Call it even if
2928 stop_recursion. If vect_create_new_slp_node or
2929 vect_build_slp_tree fails, properly handle freeing memory.
2930 If it succeeded, clear def_stmts in oprnd_info.
2932 2011-11-11 Dimitrios Apostolou <jimis@gmx.net>
2934 * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
2935 multiple lines for readability.
2936 * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
2937 (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
2938 * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
2939 dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
2940 dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
2941 * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
2943 * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
2944 serving as fast replacements for fprintf integer to string conversions.
2945 (sprint_ul_rev): Internal helper for the above.
2946 (output_addr_const) <CONST_INT>: Don't use fprintf.
2947 * varasm.c: Fix some whitespace inconsistencies.
2948 (default_elf_asm_output_limited_string): New.
2949 (default_elf_asm_output_ascii): Likewise.
2950 (default_elf_internal_label): Likewise.
2951 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
2952 stpcpy instead of sprintf.
2953 (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
2954 (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
2955 STRING_LIMIT macros.
2956 (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
2957 provide the same functionality.
2958 * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
2960 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
2962 * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
2964 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
2967 * builtins.c (expand_builtin_atomic_clear): New. Expand atomic_clear.
2968 (expand_builtin_atomic_test_and_set): New. Expand atomic test_and_set.
2969 (expand_builtin): Add cases for test_and_set and clear.
2970 * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
2971 (BUILT_IN_ATOMIC_CLEAR): New.
2973 2011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2976 * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
2977 value in the current line table.
2979 2011-11-10 Nathan Sidwell <nathan@acm.org>
2981 * gcov.c (struct function_info): Make src an index, not a pointer.
2982 (struct source_info): Remove index and next source fields.
2983 (fn_end): New static var.
2984 (sources_index): Remove.
2985 (sources): Now a pointer to an array, not a list.
2986 (n_sources, a_sources): New.
2987 (process_file): Adjust for changes to read_graph_file. Insert
2988 functions into source lists and check line numbers here.
2989 (generate_results): Only allocate lines for sources with
2990 contents. Adjust for source array.
2991 (release_structures): Likewise.
2992 (find_source): Return source index, adjust for source array.
2993 (read_graph_file): Return function list. Don't insert into source
2995 (read_count_file): Take list of functions.
2996 (solve_flow_graph): Reverse the arc lists here.
2997 (add_line_counts): Adjust for source array.
2999 2011-11-10 Jakub Jelinek <jakub@redhat.com>
3002 * tree-object-size.c (addr_object_size): Check TREE_CODE of
3003 MEM_REF's operand rather than code of the MEM_REF itself.
3005 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
3007 PR rtl-optimization/51040
3008 * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
3009 be AND followed by NOT.
3010 * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
3011 should be AND followed by NOT.
3013 2011-11-10 Jakub Jelinek <jakub@redhat.com>
3015 * vec.h (VEC_BASE): If base is at offset 0 in the structure,
3016 use &(P)->base even if P is NULL.
3018 PR rtl-optimization/51023
3019 * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
3020 val_signbit_known_clear_p for signed comparison narrowing
3021 optimization. Don't check for non-VOIDmode, use
3022 HWI_COMPUTABLE_MODE_P macro.
3023 <case ZERO_EXTEND>: Don't check for non-VOIDmode.
3024 Optimize even when const_op is equal to GET_MODE_MASK (mode),
3025 don't optimize if const_op is negative.
3027 2011-11-10 Richard Guenther <rguenther@suse.de>
3029 PR tree-optimization/51042
3030 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
3031 self-referential expressions. Refactor code to avoid duplication.
3033 2011-11-10 Richard Guenther <rguenther@suse.de>
3035 PR tree-optimization/51070
3036 * tree-loop-distribution.c (generate_builtin): Do not replace
3037 the loop with a builtin if the partition contains statements which
3038 results are used outside of the loop.
3039 (pass_loop_distribution): Verify and collect.
3041 2011-11-10 Richard Guenther <rguenther@suse.de>
3043 PR tree-optimization/51030
3044 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
3045 (value_replacement): Use it to handle trivial non-empty
3046 intermediate blocks.
3048 2011-11-10 Richard Guenther <rguenther@suse.de>
3051 * gimple.c (gimple_has_side_effects): Remove checking code
3052 that doesn't belong here.
3054 2011-11-10 Ira Rosen <ira.rosen@linaro.org>
3056 PR tree-optimization/51058
3057 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
3059 2011-11-10 Jakub Jelinek <jakub@redhat.com>
3061 PR tree-optimization/51000
3062 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
3063 a pattern stmt for a bool store, adjust DR_STMT too.
3064 Don't handle bool conversions to single bit precision lhs.
3065 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
3066 stmt, remove its related stmt and free its stmt_vinfo.
3067 (free_stmt_vec_info): Free also pattern stmt's vinfo and
3068 pattern def stmt's vinfo.
3069 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
3070 free pattern stmt's vinfo here.
3071 (vect_transform_loop): When calling vect_remove_stores,
3072 do gsi_next first and don't call gsi_remove. If not strided
3073 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
3075 2011-11-09 Jakub Jelinek <jakub@redhat.com>
3078 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
3079 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
3082 * function.h (requires_stack_frame_p): New prototype.
3083 * function.c (requires_stack_frame_p): No longer static.
3084 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
3085 stack_realign_fp was just a conservative guess for a function
3086 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
3087 and stack realignment.
3089 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
3091 PR preprocessor/51061
3092 * incpath.c (merge_include_chains): Make sure to not pass null
3093 pointers to free_path.
3095 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
3097 * doc/invoke.texi ([Option Summary, C++ Language Options]):
3098 Add -Wzero-as-null-pointer-constant.
3100 2011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3102 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
3103 * config/arm/arm-tables.opt: Regenerate.
3104 * config/arm/arm-tune.md: Likewise.
3105 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
3106 * doc/invoke.texi: Document -mcpu=cortex-a7.
3108 2011-11-09 Richard Guenther <rguenther@suse.de>
3111 2011-11-09 Richard Guenther <rguenther@suse.de>
3113 * tree-cfg.c (verify_gimple_call): Verify that
3114 gimple_call_cannot_inline_p is returning a conservative
3115 correct result according to gimple_check_call_matching_types.
3117 2011-11-09 Richard Guenther <rguenther@suse.de>
3119 PR tree-optimization/51039
3120 * tree-cfg.c (verify_gimple_call): Verify that
3121 gimple_call_cannot_inline_p is returning a conservative
3122 correct result according to gimple_check_call_matching_types.
3123 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
3124 code dealing with un-inlinablility.
3125 * gimple-streamer-in.c (input_gimple_stmt): Update the
3128 2011-11-09 Richard Guenther <rguenther@suse.de>
3130 PR tree-optimization/51039
3131 * tree-inline.c (setup_one_parameter): Always perform a
3132 valid gimple type change.
3133 (declare_return_variable): Likewise.
3135 2011-11-09 Jakub Jelinek <jakub@redhat.com>
3137 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
3138 vconduv4sfv4si): New patterns.
3139 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
3140 different dest_mode from comparison mode.
3142 2011-11-09 Richard Guenther <rguenther@suse.de>
3144 * gimple-fold.c (canonicalize_constructor_val): Mark
3145 address-taken variables addressable.
3147 2011-11-09 Ira Rosen <ira.rosen@linaro.org>
3149 PR tree-optimization/51015
3150 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
3151 vectype to be set for pattern def stmts.
3153 2011-11-09 Alan Modra <amodra@gmail.com>
3155 * function.c (bb_active_p): Delete.
3156 (dup_block_and_redirect, active_insn_between): New functions.
3157 (convert_jumps_to_returns, emit_return_for_exit): New functions,
3159 (thread_prologue_and_epilogue_insns): ..here. Delete
3160 shadowing variables. Don't do prologue register clobber tests
3161 when shrink wrapping already failed. Delete all last_bb_active
3162 code. Instead compute tail block candidates for duplicating
3163 exit path. Remove these from antic set. Duplicate tails when
3164 reached from both blocks needing a prologue/epilogue and
3165 blocks not needing such.
3166 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
3168 * bb-reorder.c (get_uncond_jump_length): Make global.
3169 * bb-reorder.h (get_uncond_jump_length): Declare.
3170 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
3171 (rtl_split_edge): Likewise. Warning fix.
3172 (rtl_duplicate_bb): New function.
3173 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
3174 * Makefile.in (function.o): Update dependencies.
3176 2011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3177 Georg-Johann Lay <avr@gjlay.de>
3179 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
3181 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3182 * doc/tm.texi: Regenerate.
3184 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
3186 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3187 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
3188 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3189 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
3191 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
3192 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
3193 (avr_regno_mode_code_ok_for_base_p): Ditto.
3194 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
3195 (avr_regno_mode_code_ok_for_base_p): Ditto.
3196 (avr_reg_ok_for_addr_p): Pass AS down to
3197 avr_regno_mode_code_ok_for_base_p.
3199 * addresses.h (base_reg_class): Add address space argument.
3200 Pass to MODE_CODE_BASE_REG_CLASS.
3201 (ok_for_base_p_1): Add address space argument. Pass to
3202 REGNO_MODE_CODE_OK_FOR_BASE_P.
3203 (regno_ok_for_base_p): Add address space argument. Pass to
3206 * regrename.c (scan_rtx_address): Add address space argument.
3207 Pass address space to regno_ok_for_base_p and base_reg_class.
3208 Update recursive calls.
3209 (scan_rtx): Pass address space to scan_rtx_address.
3210 (build_def_use): Likewise.
3211 * regcprop.c (replace_oldest_value_addr): Add address space
3212 argument. Pass to regno_ok_for_base_p and base_reg_class.
3213 Update recursive calls.
3214 (replace_oldest_value_mem): Pass address space to
3215 replace_oldest_value_addr.
3216 (copyprop_hardreg_forward_1): Likewise.
3218 * reload.c (find_reloads_address_1): Add address space argument.
3219 Pass address space to base_reg_class and regno_ok_for_base_p.
3220 Update recursive calls.
3221 (find_reloads_address): Pass address space to base_reg_class,
3222 regno_ok_for_base_p, and find_reloads_address_1.
3223 (find_reloads): Pass address space to base_reg_class.
3224 (find_reloads_subreg_address): Likewise.
3226 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
3227 (ok_for_base_p_nonstrict): Add address space argument. Pass to
3229 (record_address_regs): Add address space argument. Pass to
3230 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
3231 (record_operand_costs): Pass address space to record_address_regs.
3232 (scan_one_insn): Likewise.
3234 * caller-save.c (init_caller_save): Update call to base_reg_class.
3235 * ira-conflicts.c (ira_build_conflicts): Likewise.
3236 * reload1.c (maybe_fix_stack_asms): Likewise.
3238 2011-11-08 Michael Matz <matz@suse.de>
3240 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
3242 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
3244 * tree.h (TREE_CLOBBER_P): New macro.
3245 * gimple.h (gimple_clobber_p): New inline function.
3246 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
3247 that go out of scope and live in memory.
3248 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
3250 * cfgexpand.c (decl_to_stack_part): New static variable.
3251 (add_stack_var): Allocate it, and remember mapping.
3252 (fini_vars_expansion): Deallocate it.
3253 (stack_var_conflict_p): Add early outs.
3254 (visit_op, visit_conflict, add_scope_conflicts_1,
3255 add_scope_conflicts): New static functions.
3256 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
3257 (expand_used_vars): Add scope conflicts.
3258 (expand_gimple_stmt_1): Expand clobbers to nothing.
3259 (expand_debug_expr): Ditto.
3261 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
3262 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
3263 refer to otherwise unused locals.
3264 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
3265 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
3266 SSA names aren't necessary.
3267 (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
3268 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
3269 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
3271 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
3272 don't zero-initialize something.
3273 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
3274 clobber RHS, we don't want PHI nodes with those.
3276 2011-11-08 Jakub Jelinek <jakub@redhat.com>
3278 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
3279 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
3281 2011-11-08 Richard Guenther <rguenther@suse.de>
3283 PR tree-optimization/51012
3284 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
3285 non-inlinable state.
3286 * cgraph.c (cgraph_make_edge_direct): Likewise.
3288 2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
3290 PR rtl-optimization/47698
3291 * ifcvt.c (noce_operand_ok): Move around comment.
3293 2011-11-08 Richard Guenther <rguenther@suse.de>
3296 * lto-opts.c (append_to_collect_gcc_options): Split out from...
3297 (lto_write_options): ... here. Prepend frontend specific flags.
3299 2011-11-08 Jakub Jelinek <jakub@redhat.com>
3301 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
3302 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
3304 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
3305 Handle vectorization of SLP calls.
3306 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
3307 (vect_transform_stmt): Adjust vectorizable_call caller, remove
3309 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
3311 (vect_build_slp_tree): Allow CALL_EXPR.
3313 2011-11-08 Richard Guenther <rguenther@suse.de>
3315 * gimple-fold.c (canonicalize_constructor_val): Make sure
3316 we have referenced vars setup before adding to them.
3318 2011-11-07 Richard Henderson <rth@redhat.com>
3319 Aldy Hernandez <aldyh@redhat.com>
3320 Andrew MacLeod <amacleod@redhat.com>
3321 Torvald Riegel <triegel@redhat.com>
3323 Merged from transactional-memory.
3325 * gtm-builtins.def: New file.
3326 * trans-mem.c: New file.
3327 * trans-mem.h: New file.
3329 * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
3331 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
3332 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
3333 ix86_builtin_tm_load, ix86_builtin_tm_store,
3334 ix86_init_tm_builtins): New.
3335 (ix86_init_builtins): Initialize TM builtins.
3336 (struct ix86_attribute_table): Add "*tm regparm".
3337 * config/i386/i386-builtin-types.def (PV2SI): Define.
3339 Define V2SI_FTYPE_PCV2SI.
3340 Define V4SF_FTYPE_PCV4SF.
3341 Define V8SF_FTYPE_PCV8SF.
3342 Define VOID_PV2SI_V2SI.
3344 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
3345 tm-max-aggregate-size.
3346 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
3347 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
3348 * doc/tm.texi: Regenerate.
3350 * attribs.c (apply_tm_attr): New.
3351 (init_attributes): Allow '*' prefix for overrides.
3352 (register_attribute): Likewise.
3353 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
3354 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
3355 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
3356 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
3357 ATTR_TMPURE_NOTHROW_LIST): New.
3358 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
3359 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
3360 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
3361 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
3362 * builtins.def: Include gtm-builtins.def. Add comments regarding
3363 transactional memory synchronization.
3364 (DEF_TM_BUILTIN): New.
3365 * c-parser.c (struct c_parser): Add in_transaction.
3366 (c_parser_transaction, c_parser_transaction_expression,
3367 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
3368 (c_parser_attribute_any_word): Split out from c_parser_attributes.
3369 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
3370 (c_parser_unary_expression): Same.
3371 * c-tree.h (c_finish_transaction): Declare.
3372 * c-typeck.c (c_finish_transaction): New.
3373 (build_function_call_vec): Call tm_malloc_replacement.
3374 * calls.c (is_tm_builtin): New.
3375 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
3376 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
3377 * cfgexpand.c (expand_call_stmt): Call
3378 mark_transaction_restart_calls.
3379 (gimple_expand_cfg): Free the tm_restart map.
3380 (mark_transaction_restart_calls): New.
3381 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
3382 * cgraph.c (dump_cgraph_node): Handle tm_clone.
3383 * cgraph.h (struct cgraph_node): Add tm_clone field.
3384 (decl_is_tm_clone): New.
3385 (struct cgraph_local_info): Add tm_may_enter_irr.
3386 (cgraph_copy_node_for_versioning): Declare.
3387 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
3388 copy analyzed from old version.
3389 * combine.c (distribute_notes): Handle REG_TM notes.
3390 * common.opt: Add -fgnu-tm.
3391 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
3392 (__do_global_dtors_aux): Deregister clone table.
3393 (frame_dummy): Register clone table.
3394 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
3396 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
3398 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
3399 * gimple-pretty-print.c: Include trans-mem.h.
3400 (dump_gimple_fmt): Add %x.
3401 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
3402 (dump_gimple_eh_else, dump_gimple_transaction): New.
3403 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3404 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
3405 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
3407 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
3408 (walk_gimple_stmt): Initialize and honor removed_stmt.
3409 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3410 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3411 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
3412 * gimple.h (struct gimple_statement_eh_else,
3413 gimple_statement_transaction, GTMA_*): New.
3414 (gimple_statement_d): Add gimple_statement_eh_else and
3416 (gimple_build_eh_else, gimple_build_transaction,
3417 gimple_fold_call, diagnose_tm_safe_errors): Declare.
3418 (get_call_expr_in): Remove prototype.
3419 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3420 (gimple_eh_else_n_body, gimple_eh_else_e_body,
3421 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
3422 gimple_transaction_body, gimple_transaction_label,
3423 gimple_transaction_label_ptr, gimple_transaction_subcode,
3424 gimple_transaction_set_body, gimple_transaction_set_label,
3425 gimple_transaction_set_subcode): New.
3426 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
3427 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
3428 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
3429 (gimplify_transaction): New.
3430 (gimplify_expr): Handle TRANSACTION_EXPR.
3431 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
3432 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
3434 * Makefile.in: Add trans-mem.o and dependencies.
3435 (BUILTINS_DEF): Add gtm-builtins.def.
3436 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
3437 (GTFILES): Add trans-mem.c.
3438 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
3439 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
3440 get_tm_clone_pair): Declare.
3441 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
3442 * passes.c (init_optimization_passes): Place transactional memory
3444 * print-tree.c (print_node): Dump tm-clone.
3445 * recog.c (peep2_attempt): Handle REG_TM.
3446 * reg-notes.def (TM): New.
3447 * rtlanal.c (alloc_reg_note): Handle REG_TM.
3448 * target.def (builtin_tm_load, builtin_tm_store): New.
3449 * targhooks.c (default_builtin_tm_load_store): New.
3450 * targhooks.h (default_builtin_tm_load_store): Declare.
3451 * timevar.def (TV_TRANS_MEM): New.
3452 * toplev.c (compile_file): Call finish_tm_clone_pairs.
3453 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
3454 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
3455 writes into the statements to update labels.
3456 (is_ctrl_altering_stmt): Add TM ending statements. Handle
3458 (verify_gimple_transaction): New.
3459 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
3460 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3461 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
3462 (dump_function_to_file): Display [tm-clone] if applicable.
3463 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
3464 (struct_ptr_hash): Same.
3465 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
3466 (replace_goto_queue_1): Likewise.
3468 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
3469 (lower_try_finally_nofallthru): Likewise.
3470 (lower_try_finally_onedest): Likewise.
3471 (lower_try_finally_copy): Likewise.
3472 (lower_try_finally_switch): Likewise.
3473 (lower_try_finally): Likewise.
3474 (decide_copy_try_finally): Likewise.
3475 (lower_eh_constructs_2): Likewise.
3476 (refactor_eh_r): Likewise.
3477 * tree-flow.h (struct gimple_df): Add tm_restart field.
3478 Define tm_restart_node.
3479 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
3480 (estimate_num_insns): Likewise.
3481 (init_inline_once): Init tm_cost.
3482 * tree-inline.h (struct eni_weights_d): Add tm_cost.
3483 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
3484 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
3485 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
3486 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3487 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
3488 Add support for TM vector loads. Add support for TM logging builtins.
3489 (call_may_clobber_ref_p_1): Add support for vector stores.
3490 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
3491 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
3492 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
3493 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
3494 (local_define_builtin): Handle ECF_TM_PURE.
3495 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
3496 * tree.def (TRANSACTION_EXPR): New.
3497 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
3498 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
3499 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
3500 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
3501 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
3502 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
3503 (struct tree_function_decl): Add tm_clone_flag.
3504 (struct_ptr_eq, struct_ptr_hash): New.
3505 (apply_tm_attr): Declare.
3506 (is_tm_safe_or_pure): New.
3507 (build_tm_abort_call, is_tm_safe, is_tm_pure,
3508 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
3509 tm_malloc_replacement): Declare.
3510 * varasm.c (tm_clone_hash): New.
3511 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
3512 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
3513 (struct tm_alias_pair): New. Declare VEC types for object.
3515 2011-11-07 Richard Henderson <rth@redhat.com>
3517 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
3518 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
3519 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
3520 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
3521 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
3522 rename from the direct_optab_index enum.
3523 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
3524 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
3525 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
3526 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
3527 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
3528 from the optab_table, not the direct_optab_table.
3529 (init_sync_libfuncs): Declare.
3530 (can_compare_and_swap_p): Update parameters.
3531 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
3532 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
3533 test for the legacy compare-and-swap libcall.
3534 (expand_atomic_exchange): Use the legacy test-and-set libcall.
3535 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
3536 (struct atomic_op_functions): Update for optab type changes.
3537 (maybe_emit_op): Likewise.
3538 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
3539 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
3540 to can_compare_and_swap_p.
3541 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
3542 (expand_omp_atomic_pipeline): Likewise.
3543 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
3544 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
3546 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
3548 2011-11-07 Jakub Jelinek <jakub@redhat.com>
3550 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
3551 * config/i386/i386.c (enum ix86_builtins): Add
3552 IX86_BUILTIN_VEC_PACK_SFIX256.
3553 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
3554 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
3555 (ix86_builtin_vectorized_function): Also vectorize lrint using
3556 256-bit vectors for -mavx.
3558 2011-11-07 Anatoly Sokolov <aesok@post.ru>
3560 * config/cris/constraints.md: New file.
3561 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3562 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
3563 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
3564 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
3565 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
3566 * config/cris/cris.c: Incule "tm-constrs.h".
3567 (cris_print_operand): Use satisfies_constraint_O.
3568 (cris_normal_notice_update_cc, cris_rtx_costs): Use
3569 satisfies_constraint_I.
3570 (cris_address_cost): Use satisfies_constraint_L.
3571 * config/cris/cris.md: Include "constraints.md".
3572 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
3573 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
3574 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
3575 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
3576 *extop<mode>si_swap_side): Use satisfies_constraint_N and
3577 satisfies_constraint_J.
3578 (moversideqi movemsideqi mover2side peephole2): Use
3579 satisfies_constraint_N and satisfies_constraint_J.
3580 (andu peephole2): Use satisfies_constraint_I and
3581 satisfies_constraint_O.
3583 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
3585 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
3586 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
3588 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
3590 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
3591 SWITCHABLE_TARGET can change the values during compilation.
3592 (expand_atomic_fetch_op): Handle parameter change ripples for
3593 get_atomic_op_for_code call.
3595 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
3597 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
3599 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
3600 only when originated from that builtin.
3601 (expand_atomic_store): Expand to __sync_lock_release when originated
3603 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
3604 expand_atomic_exchange call originated from here.
3605 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
3606 call originated from here.
3607 (expand_builtin_atomic_exchange): Add origination flag.
3608 (expand_builtin_atomic_store): Add origination flag.
3609 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
3610 parameters to indicate implementation fall back options.
3612 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
3614 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
3615 now, not only CONST_INT and CONST_DOUBLE.
3616 (output_movqi): Use output_reload_in_const.
3617 (output_reload_inhi): Ditto.
3618 (output_reload_insisf): Move assertion to output_reload_in_const.
3619 (avr_out_reload_inpsi): Ditto.
3621 2011-11-07 Nathan Sidwell <nathan@acm.org>
3623 * gcov.c (object_summary): Replace with ...
3624 (object_runs): ... this.
3625 (process_file): Remove functions with no data.
3626 (generate_results): Ignore files with no lines.
3627 (release_function): New helper, broken out of ...
3628 (release_structures): ... here. Use it.
3629 (read_count_file): Adjust for new data file format.
3630 (output_lines): Use object_runs.
3631 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
3632 (struct gcov_ctr_info): Move definition.
3633 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
3635 (struct gcov_info): Add merge function array, remove mask and
3636 counts. Trailing array is array of pointers to function info.
3637 * coverage.c (struct function_list): Replace counter numbers with
3638 counter arrays. Add fndecl field. GTYify.
3639 (counts_entry): Remove chain workspace.
3640 (functions_head): GTYify.
3641 (prg_n_ctrs): Remove.
3643 (tree_ctr_tables): Remove.
3644 (read_counts_file): Cope with blank entries and expect program
3645 summaries before functions. Don't warn on missing entries.
3646 (coverage_counter_alloc): Allocate individual function arrays.
3647 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
3648 for individual function arrays.
3649 (coverage_end_function): GTYify function list object. Finalize
3650 function's counter arrays.
3651 (build_var): New. Create a counter-related variable with
3652 appropriate linkage.
3653 (build_fn_info_type): Adjust for new runtime structure.
3654 (build_fn_info_value): Rename to ...
3655 (build_fn_info): ... here. Build new format data.
3656 (build_ctr_info_type, build_ctr_info_value): Remove.
3657 (build_info_type): New. Build new format data structure.
3658 (build_info): Adjust for new format data.
3659 (create_coverage): Likewise.
3660 * gcov-dump.c (tag_function): Recognize placeholders.
3662 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
3664 * config/avr/constraints.md (Cm2): New constraint for int -2.
3665 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
3666 (*negqihi2): New insn.
3668 2011-11-07 H.J. Lu <hongjiu.lu@intel.com>
3670 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
3671 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
3673 2011-11-07 Jakub Jelinek <jakub@redhat.com>
3675 * config/i386/i386.c (ix86_expand_builtin): If gather mask
3676 argument is known to have all high bits set, pass pc_rtx as
3677 second argument to the expander instead of op0.
3678 * config/i386/sse.md (*avx2_gathersi<mode>_2,
3679 *avx2_gatherdi<mode>_2): New patterns.
3680 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
3681 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
3682 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
3685 PR tree-optimization/50789
3686 * tree-vect-stmts.c (process_use): Add force argument, avoid
3687 exist_non_indexing_operands_for_use_p check if true.
3688 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
3689 STMT_VINFO_GATHER_P.
3690 (gen_perm_mask): New function.
3691 (perm_mask_for_reverse): Use it.
3692 (reverse_vec_element): Rename to...
3693 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
3694 generalize for any permutations.
3695 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
3696 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
3697 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
3698 * doc/tm.texi: Regenerate.
3699 * tree-data-ref.c (initialize_data_dependence_relation,
3700 compute_self_dependence): No longer static.
3701 * tree-data-ref.h (initialize_data_dependence_relation,
3702 compute_self_dependence): New prototypes.
3703 * tree-vect-data-refs.c (vect_check_gather): New function.
3704 (vect_analyze_data_refs): Detect possible gather load data refs.
3705 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
3706 (STMT_VINFO_GATHER_P): Define.
3707 (vect_check_gather): New prototype.
3708 * config/i386/i386-builtin-types.def: Add types for alternate
3710 * config/i386/sse.md (AVXMODE48P_DI): Remove.
3711 (VEC_GATHER_MODE): Rename mode_attr to...
3712 (VEC_GATHER_IDXSI): ... this.
3713 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
3714 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
3715 instead of <VEC_GATHER_MODE>.
3716 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
3717 <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
3718 on src and mask operands.
3719 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
3720 instead of AVXMODE48P_DI.
3721 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
3722 * config/i386/i386.c (enum ix86_builtins): Add
3723 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
3724 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
3725 (ix86_init_mmx_sse_builtins): Create those builtins.
3726 (ix86_expand_builtin): Handle those builtins and adjust expansions
3727 of other gather builtins.
3728 (ix86_vectorize_builtin_gather): New function.
3729 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
3731 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
3733 * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
3735 2011-11-07 Tristan Gingold <gingold@adacore.com>
3737 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
3738 * config/vms/t-vms: Add vms-c.o rule.
3739 * config/vms/vms-c.c: New file.
3740 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
3741 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
3743 2011-11-07 Tristan Gingold <gingold@adacore.com>
3745 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
3746 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
3747 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
3748 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
3749 (SUBTARGET_OS_CPP_BUILTINS): Define.
3750 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
3751 (MASK_RETURN_ADDR): Define in 64 bit mode.
3752 * config/ia64/vms.h: Likewise.
3753 * config/vms/vms.h: New file.
3754 * config/vms/vms64.h: New file.
3755 * config/alpha/vms64.h: Removed.
3756 * config/ia64/vms64.h: Removed.
3757 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
3758 Adjust for above change.
3760 2011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
3763 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
3764 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
3765 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
3766 (movdi_internal_rex64): Likewise.
3768 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
3770 PR rtl-optimization/47698
3771 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
3773 2011-11-07 Tristan Gingold <gingold@adacore.com>
3775 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
3777 (TARGET_OPTION_INIT_STRUCT): Define.
3778 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
3779 (TARGET_MAX_ANCHOR_OFFSET)
3780 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
3782 2011-11-06 Quentin Neill <quentin.neill@amd.com>
3784 Fix r180999, update ChangeLog
3785 * config.gcc: Add f16cintrin.h.
3786 * config/i386/f16cintrin.h: Add missing endif.
3788 2011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
3790 * config.gcc (arm*-*-rtemseabi*): New target.
3791 * config/arm/rtems-eabi.h: New.
3792 * config/arm/t-rtems-eabi: New.
3794 2011-11-06 David S. Miller <davem@davemloft.net>
3796 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
3797 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
3798 *zero_extend_v8qi_<P:mode>_insn,
3799 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
3800 and vec_duplicate instead of using an UNSPEC.
3802 2011-11-07 Alan Modra <amodra@gmail.com>
3805 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
3806 blockage for ABI_V4.
3808 2011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
3810 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
3811 libgcj version bump.
3812 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3814 2011-11-06 Eric Botcazou <ebotcazou@adacore.com>
3816 * gcse.c: Adjust outdated comments throughout.
3817 (struct mem_conflict_info): New structure.
3818 (mems_conflict_for_gcse_p): Use it to communicate with caller.
3819 (load_killed_in_block_p): Pass it to note_stores.
3820 (hash_expr): Remove superfluous line break.
3821 (hash_scan_set): Rename PAT parameter into SET.
3822 (hash_scan_insn): Reorder cases.
3823 (canon_list_insert): Fix long line.
3824 (edge_list): Delete.
3825 (prune_expressions): Rename E local variable into EXPR.
3826 (compute_pre_data): Return struct edge_list * object.
3827 (pre_expr_reaches_here_p_work): Fix formatting.
3828 (process_insert_insn): Move around comment.
3829 (pre_edge_insert): Fix long line.
3830 (pre_insert_copies): Likewise.
3831 (gcse_emit_move_after): Swap SRC and DEST parameters.
3832 (pre_delete): Adjust call to gcse_emit_move_after.
3833 (pre_gcse): Take struct edge_list * parameter. Fix long line.
3834 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
3835 Use a local list of edges.
3836 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
3837 (pre_ldst_expr_hash): Fix long line.
3838 (free_ldst_mems): Rename into...
3839 (free_ld_motion_mems): ...this.
3840 (first_ls_expr): Delete.
3841 (next_ls_expr): Likewise.
3842 (print_ldst_list): Do not use above two functions.
3843 (simple_mem): Adjust interface.
3844 (compute_ld_motion_mems): Fix formatting.
3845 (update_ld_motion_stores): Reuse local variable.
3847 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3849 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
3851 (build_null_declspecs): Initialize align_log and alignas_p fields.
3852 (declspecs_add_alignas): New.
3853 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
3854 (c_parser_declspecs): Handle _Alignas specifiers.
3855 (c_parser_alignas_specifier): New.
3856 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
3857 Diagnose _Alignof (expression).
3858 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
3859 (declspecs_add_alignas): Declare.
3860 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
3861 * ginclude/stdalign.h: New.
3862 * Makefile.in (USER_H): Add stdalign.h.
3864 2011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
3866 * regset.h (fixed_reg_set_regset): Declare.
3867 * dse.c: Include regset.h .
3868 (struct insn_info): Add member fixed_regs_live.
3869 (note_add_store_info): New typedef.
3870 (note_add_store): New function.
3871 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
3872 Use gen_add3_insn / gen_move_insn.
3873 Check new insn for unwanted clobbers before emitting it.
3874 (check_for_inc_dec): Rename to...
3875 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
3876 parameter. Changed all callers in file.
3877 (check_for_inc_dec, copy_fixed_regs): New functions.
3878 (scan_insn): Set fixed_regs_live field of insn_info.
3879 * rtl.h (check_for_inc_dec): Update prototype.
3880 * postreload.c (reload_cse_simplify): Take new signature of
3881 check_ind_dec into account.
3882 * reginfo.c (fixed_reg_set_regset): New variable.
3883 (init_reg_sets_1): Initialize it.
3885 2011-11-06 Jakub Jelinek <jakub@redhat.com>
3887 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
3890 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3892 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
3893 Remove dependence of declaration and target define on definition of
3894 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
3896 2011-11-06 Andrew Macleod <amacleod@redhat.com>
3897 Richard Henderson <rth@redhat.com>
3898 Aldy Hernandez <aldyh@redhat.com>
3900 Merged from cxx-mem-model.
3902 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
3903 * coretypes.h (enum memmodel): New. enumerated memory model type.
3904 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
3905 * genopinit,c (optabs): Add atomic direct optab handlers.
3906 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
3907 * builtin-types.def (BT_CONST_VOLATILE_PTR,
3908 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
3909 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
3910 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
3911 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
3912 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
3913 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
3914 * expr.h (expand_atomic_*): Add prototypes.
3915 (expand_{bool,val}_compare_and_swap): Remove prototypes.
3916 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
3918 * common.opt (Winvalid-memory-model): New warning flag.
3919 (finline-atomics): New. Flag to disable atomic inlining.
3920 * params.h (ALLOW_LOAD_DATA_RACES): New.
3921 (ALLOW_PACKED_LOAD_DATA_RACES): New.
3922 (ALLOW_PACKED_STORE_DATA_RACES): New.
3923 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
3924 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
3925 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
3926 * builtins.c (is_builtin_name): Handle __atomic.
3927 (get_memmodel): New. Extract memory model.
3928 (expand_expr_force_mode): New. Factor out common code for ensuring an
3929 integer argument is in the proper mode.
3930 (expand_builtin_sync_operation): Remove ignore param. Always call
3931 expand_atomic_fetch_op instead of the old expanders.
3932 (expand_builtin_compare_and_swap,
3933 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
3934 call atomic expanders instead of sync expanders.
3935 (expand_builtin_sync_lock_release): Call atomic_store expander.
3936 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3937 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
3938 (expand_builtin_atomic_exchange): New.
3939 (fold_builtin_atomic_always_lock_free,
3940 expand_builtin_atomic_always_lock_free,
3941 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
3943 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
3944 expand_builtin_atomic_signal_fence): New.
3945 (expand_builtin_mem_signal_fence): New.
3946 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
3947 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
3948 * optabs.h (DOI_atomic_*): Define new atomics.
3949 (atomic_*_optab): Define.
3950 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
3952 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
3953 (expand_sync_lock_test_and_set): Remove.
3954 (expand_atomic_load, expand_atomic_store): New.
3955 (expand_atomic_exchange): New.
3956 (expand_atomic_compare_and_swap): New. Implements
3957 atomic_compare_exchange via compare and swap.
3958 (struct atomic_op_functions): Opcode table struct for fetch ops.
3959 (get_atomic_op_for_code): New. Return an opcode table entry.
3960 (maybe_emit_op): New. Try to emit a fetch op.
3961 (expand_atomic_fetch_op): New.
3962 (expand_val_compare_and_swap_1): Remove.
3963 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
3964 (expand_atomic_compare_and_swap): Rename from
3965 expand_atomic_compare_exchange. Rewrite to return both success and
3966 oldval return values; expand via both atomic and sync optabs.
3967 (can_compare_and_swap_p): New.
3968 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
3969 (maybe_gen_insn): Handle 7 and 8 operands.
3970 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
3971 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
3972 builtins instead of __sync builtins.
3973 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
3974 * doc/extend.texi: Document __atomic built-in functions.
3975 * doc/invoke.texi: Document data race parameters.
3976 * doc/md.texi: Document atomic patterns.
3977 * config/i386/i386.md (UNSPEC_MOVA): New.
3978 (UNSPECV_CMPXCHG): Split into ...
3979 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
3980 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
3981 * config/i386/sync.md (ATOMIC): New mode iterator.
3982 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
3983 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
3984 (mem_thread_fence): Rename from memory_barrier.
3985 Handle the added memory model parameter.
3986 (mfence_nosse): Rename from memory_barrier_nosse.
3987 (sync_compare_and_swap<CASMODE>): Split into ...
3988 (atomic_compare_and_swap<SWI124>): this and ...
3989 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
3990 (atomic_compare_and_swap_single<SWI>): Rename from
3991 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
3992 (atomic_compare_and_swap_double<DCASMODE>): Rename from
3993 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
3994 (*atomic_compare_and_swap_doubledi_pic): Rename from
3995 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
3996 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
3998 (*atomic_fetch_add_cmp<SWI>): Similarly.
3999 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
4000 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
4001 (sync_lock_test_and_set<SWI>): Merge with ...
4002 (atomic_exchange<SWI>): ... this.
4004 2011-11-6 Richard Guenther <rguenther@suse.de>
4006 * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
4008 2011-11-06 Ira Rosen <ira.rosen@linaro.org>
4010 * tree-vectorizer.h (vectorizable_condition): Add argument.
4011 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
4012 in SLP. Update calls to vectorizable_condition.
4013 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
4014 the arguments. Pass it to vect_is_simple_use_1.
4015 (vectorizable_condition): Add slp_node to the arguments. Support
4016 vectorization of basic blocks. Fail for reduction in SLP. Update
4017 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
4018 call vect_get_slp_defs to get vector operands.
4019 (vect_analyze_stmt): Update calls to vectorizable_condition.
4020 (vect_transform_stmt): Likewise.
4021 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
4022 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
4024 (vect_build_slp_tree): Handle COND_EXPR.
4025 (vect_analyze_slp_instance): Push pattern statements to root node.
4026 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
4028 2011-11-05 David S. Miller <davem@davemloft.net>
4030 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
4031 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
4032 (*zero_extend_v8qi_<P:mode>_insn,
4033 *zero_extend_v4hi_<P:mode>_insn): New insns.
4034 * config/sparc/sparc.c (vector_init_move_words,
4035 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
4036 sparc_expand_vector_init_vis1): New functions.
4037 (vector_init_bshuffle): Rewrite to handle more cases and make use
4038 of locs[] array prepared by vector_init_prepare_elts.
4039 (vector_init_fpmerge, vector_init_faligndata): Delete.
4040 (sparc_expand_vector_init): Rewrite using new infrastructure.
4042 2011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
4044 * config.gcc (epiphany-*-*): New architecture.
4045 (epiphany-*-elf): New configuration.
4046 * config/epiphany, common/config/epiphany : New directories.
4047 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
4048 (interrupt attribute): Add Epiphany.
4049 (long_call, short_call attribute): Add Epiphany.
4050 * doc/invoke.texi (Options): Add Epiphany options.
4051 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
4052 * doc/install.texi (Options specification):
4053 Add --with-stack-offset=@var{num} description.
4054 (host/target specific issues): Add epiphany-*-elf.
4055 * doc/contrib.texi (Contributors): Mention Epiphany port.
4057 2011-11-05 Jakub Jelinek <jakub@redhat.com>
4059 PR tree-optimization/50693
4060 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
4061 non-forced user labels.
4062 (gimple_merge_blocks): Turn non-forced user labels into
4063 debug bind stmt with the label as first operand and reset value.
4064 (gimple_duplicate_bb): Don't duplicate label debug stmts.
4065 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
4066 * final.c (final_scan_insn): Likewise.
4067 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
4068 * var-tracking.c (debug_label_num): New variable.
4069 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
4070 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
4071 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
4072 NOTE_INSN_DELETED_DEBUG_LABEL.
4073 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
4074 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
4075 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
4076 * gengtype.c (adjust_field_rtx_def): Likewise.
4077 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
4078 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
4079 if their are at the end of function and nop hasn't been emitted.
4080 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
4082 2011-11-05 Georg-Johann Lay <avr@gjlay.de>
4084 PR rtl-optimization/50448
4085 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
4088 2011-11-05 Peter Dufault <dufault@hda.com>,
4089 Sebastian Huber <sebastian.huber@embedded-brains.de>
4091 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4092 Extend rs6000_spe handling.
4094 2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
4096 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
4097 Remove -mcpu=601 multilib.
4098 Remove -Dmpc8260 multilib.
4099 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
4102 2011-11-05 Quentin Neill <quentin.neill@amd.com>
4104 Piledriver f16cintrin.h fix.
4105 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
4106 * config/i386/immintrin.h: Include f16cintrin.h.
4107 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
4110 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4113 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
4115 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
4117 2011-11-04 Alan Modra <amodra@gmail.com>
4119 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
4120 * print-rtl.c (print_rtx): Don't segfault on negative regno.
4122 2011-11-04 David S. Miller <davem@davemloft.net>
4125 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
4126 fact that sparc_emit_float_lib_cmp modifies the comparison in
4129 2011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
4131 * config/lm32/t-rtems: New.
4132 * config.gcc (lm32-*-rtems*): Add t-rtems.
4134 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4137 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
4139 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
4141 PR rtl-optimization/38644
4142 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
4143 for epilogue having stack adjustment.
4145 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
4148 * config/avr/avr-modes.def: New file defining PSImode.
4149 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
4150 __UINT24_MAX__): New built-in defines.
4151 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
4152 ashlpsi, ashrpsi, lshrpsi.
4153 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
4154 (MOVMODE): New mode iterator.
4155 (movpsi): New expander.
4156 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
4157 (*reload_inpsi, *movpsi): New insns.
4158 (*reload_inpsi): New RTL peephole.
4159 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
4160 *addpsi3_sign_extend.hi): New insns.
4161 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
4162 *subpsi3_sign_extend.hi): New insns.
4163 (divmodpsi4, udivmodpsi4): New define insn-and-split.
4164 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
4165 (andpsi3, iorpsi3, xorpsi3): New insns.
4166 (*rotlpsi2.1, *rotlpsi2.23): New insns.
4167 (*rotw<mode>): Insn condition only allow even-sized modes.
4168 (*rotb<mode>): Insn condition allows odd-sized modes.
4169 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
4170 (negpsi2, one_cmplpsi2): New insns.
4171 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
4172 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
4174 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
4175 (cbranchpsi4): New expander.
4176 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
4177 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
4178 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
4179 avr_out_reload_inpsi): New prototypes.
4181 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
4182 (avr_scalar_mode_supported_p): ...this new static function.
4183 (avr_asm_len): Always return "".
4184 (avr_out_load_psi, avr_out_store_psi): New static functions.
4185 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
4186 (avr_out_tstpsi): New function.
4187 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
4188 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
4189 (avr_simplify_comparison_p): Ditto.
4190 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
4191 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
4192 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
4193 (avr_rtx_costs_1): Report PSI costs.
4194 (avr_libcall_value): Handle odd-sized parameters.
4195 (avr_init_builtin_int24): New static function to define built-in
4196 24-bit types __int24 and __uint24.
4197 (avr_init_builtins): Use it.
4199 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
4202 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
4203 support for VFP floating point model.
4205 2011-11-04 Tristan Gingold <gingold@adacore.com>
4207 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
4209 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
4212 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
4214 PR tree-optimization/50730
4215 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4216 analysis if encountered unsupported data-ref.
4218 2011-11-04 Jakub Jelinek <jakub@redhat.com>
4220 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
4222 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
4224 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
4225 For floatunsv8siv8sf2 require TARGET_AVX2.
4227 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
4228 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
4229 signalling comparison instead of non-signalling. Store into
4230 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
4231 subtracted and 0 otherwise.
4232 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
4234 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
4235 already for TARGET_SSE2. Xor in vector initialized by
4236 ix86_expand_adjust_ufix_to_sfix_si at the end.
4237 (vec_pack_ufix_trunc_<mode>): Likewise.
4239 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
4240 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
4241 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
4242 vectorizable_type_demotion and vectorizable_type_promotion did.
4243 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
4244 is {,un}signed {char,short}.
4245 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
4246 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
4247 Push vec_dest back to the vec_dsts vector at the end.
4248 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
4249 one step. Removed multi_step_cvt, vec_dsts, slp_node and
4250 prev_stmt_info arguments, add vec_dest argument. Push always
4251 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
4252 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
4253 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
4254 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
4255 vectorizable_type_promotion. Call vectorizable_conversion even
4256 for SLP bb vectorization.
4257 (vect_transform_stmt): Call vectorizable_conversion instead of
4258 vectorizable_type_demotion and vectorizable_type_promotion.
4259 (supportable_widening_operation): Clear *multi_step_cvt first,
4260 simplify c1/c2 computation, free *interm_types vector on failure.
4261 (supportable_narrowing_operation): Clear *multi_step_cvt first,
4262 free *interm_types vector on failure, handle multi-step
4265 2011-11-04 Tristan Gingold <gingold@adacore.com>
4267 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
4268 argument. Conditionally generate crash debug info. Adjust
4269 for alpha_funcs_tree removal.
4270 (machine_function): Add links field.
4271 (alpha_start_function): Conditionally generate crash debug info.
4272 (alpha_end_function): Adjust call to alpha_write_linkage.
4273 (alpha_funcs): Remove.
4274 (links_kind): Remove.
4275 (alpha_links): Remove num, target and lkind field. Add func field.
4276 (alpha_links_tree): Remove.
4277 (alpha_funcs_tree): Remove.
4278 (alpha_need_linkage): Remove.
4279 (alpha_use_linkage): Change prototype. Adjust.
4280 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
4281 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
4282 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
4283 (alpha_need_linkage): Remove.
4284 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
4285 Adjust calls to alpha_need_linkage.
4287 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
4289 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
4291 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
4293 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
4294 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
4295 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
4297 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4300 * config/arm/t-bpabi: New file.
4301 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
4303 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
4304 arm*-*-uclinux*eabi.
4305 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
4308 2011-11-03 Michael Matz <matz@suse.de>
4311 * configure.ac: Check for -fno-exceptions -fno-rtti.
4312 * configure: Regenerate.
4313 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
4314 (ALL_CXXFLAGS): Use it.
4316 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
4318 * config/i386/i386.md: Use {} for multi-line preparation statements.
4320 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
4322 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
4323 (movtf_insn_sp32): ...this.
4324 (movtf_insn_sp64_no_fpu): Consolidate into...
4325 (movtf_insn_sp64): ...this.
4326 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
4327 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
4329 2011-11-03 Tristan Gingold <gingold@adacore.com>
4331 * config/vms/vms.c (vms_patch_builtins): Fix typo.
4333 2011-11-03 Richard Guenther <rguenther@suse.de>
4336 * lto-opts.c: Re-implement.
4337 * lto-streamer.h (lto_register_user_option): Remove.
4338 (lto_read_file_options): Likewise.
4339 (lto_reissue_options): Likewise.
4340 (lto_clear_user_options): Likewise.
4341 (lto_clear_file_options): Likewise.
4342 * opts-global.c (post_handling_callback): Remove.
4343 (set_default_handlers): Do not set post_handling_callback.
4344 (decode_options): Remove LTO specific code.
4345 * lto-wrapper.c (merge_and_complain): New function.
4346 (run_gcc): Read all input file options and
4347 prepend a merged set before the linker driver options.
4348 * gcc.c (driver_post_handling_callback): Remove.
4349 (set_option_handlers): Do not set post_handling_callback.
4350 * opts-common.c (handle_option): Do not call post_handling_callback.
4351 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
4353 2011-11-03 Richard Guenther <rguenther@suse.de>
4355 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
4357 2011-11-03 Martin Jambor <mjambor@suse.cz>
4359 * ipa-prop.c (type_change_info): New fields offset, object,
4360 known_current_type and multiple_types_encountered.
4361 (extr_type_from_vtbl_ptr_store): New function.
4362 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
4363 the result is different from the previous one.
4364 (detect_type_change): Renamed to detect_type_change_1. New parameter
4365 comp_type. Set up new fields in tci, build known type jump
4366 functions if the new type can be identified.
4367 (detect_type_change): New function.
4368 * tree.h (DECL_CONTEXT): Comment new use.
4370 2011-11-03 Richard Guenther <rguenther@suse.de>
4373 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
4374 decode an encoded literal '.
4376 2011-11-03 Tristan Gingold <gingold@adacore.com>
4378 * collect2.c (main): Add support of -f (response file) on AIX.
4380 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
4382 PR tree-optimization/50912
4383 * tree-vectorizer.h (slp_void_p): New.
4384 (struct _slp_tree): Replace left and right with children. Update
4386 (struct _slp_oprnd_info): New.
4387 (vect_get_vec_defs): Declare.
4388 (vect_get_slp_defs): Update arguments.
4389 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
4390 vect_get_vec_defs instead of vect_get_slp_defs.
4391 (vectorizable_reduction): Likewise.
4392 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
4393 Update call to vect_get_slp_defs.
4394 (vectorizable_conversion): Update call to vect_get_vec_defs.
4395 (vectorizable_assignment, vectorizable_shift,
4396 vectorizable_operation): Likewise.
4397 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
4399 (vectorizable_type_promotion, vectorizable_store): Likewise.
4400 (vect_analyze_stmt): Fix typo.
4401 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
4402 (vect_print_slp_tree, vect_mark_slp_stmts,
4403 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4404 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4405 vect_schedule_slp_instance): Likewise.
4406 (vect_create_new_slp_node): New.
4407 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
4408 (vect_get_and_check_slp_defs): Pass information about defs using
4409 oprnds_info, allow any number of operands.
4410 (vect_build_slp_tree): Likewise. Update calls to
4411 vect_get_and_check_slp_defs. Fix comments.
4412 (vect_analyze_slp_instance): Move node creation to
4413 vect_create_new_slp_node.
4414 (vect_get_slp_defs): Allow any number of operands.
4416 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
4417 Iain Sandoe <iains@gcc.gnu.org>
4419 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
4420 (get_ppc476_thunk_name): Use it.
4421 (rs6000_code_end): Likewise.
4422 (macho_branch_islands): Fix typo.
4424 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4425 Jason Merrill <jason@redhat.com>
4428 * configure.ac: Add -Wno-narrowing to warning options.
4429 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4431 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
4434 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
4435 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
4436 (movdf_insn_sp64): Likewise.
4437 (DFmode splitter): Do not test TARGET_FPU.
4438 (movtf_insn_sp32): Reindent constraints.
4439 (movtf_insn_sp32_no_fpu): Likewise.
4440 (movtf_insn_sp64): Likewise.
4441 (movtf_insn_sp64_hq): Likewise.
4442 (movtf_insn_sp64_no_fpu): Likewise.
4444 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4447 * builtins.c (fold_builtin_memchr): Fix cast.
4449 2011-11-02 Teresa Johnson <tejohnson@google.com>
4451 * config/i386/predicates.md (promotable_binary_operator): Add minus
4452 to the list of promotable operators.
4454 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4456 * gthr-single.h, gthr.h: Move to ../libgcc.
4457 * gthr-aix.h: Move to ../libgcc/config/rs6000.
4458 * gthr-dce.h: Move to ../libgcc/config/pa.
4459 * gthr-lynx.h: Move to ../libgcc/config.
4460 * gthr-mipssde.h: Move to ../libgcc/config/mips.
4461 * gthr-posix.h: Move to ../libgcc/config.
4462 * gthr-rtems.h: Likewise.
4463 * gthr-tpf.h: Move to ../libgcc/config/s390.
4464 * gthr-vxworks.h: Move to ../libgcc/config.
4465 * gthr-win32.h: Move to ../libgcc/config/i386.
4466 * configure.ac (gthread_flags): Remove
4467 (gthr-default.h): Don't create.
4468 (thread_file): Don't substitute.
4469 * configure: Regenerate.
4470 * Makefile.in (GCC_THREAD_FILE): Remove.
4471 (GTHREAD_FLAGS): Remove.
4472 (libgcc.mvars): Remove GTHREAD_FLAGS.
4473 * config/t-vxworks (EXTRA_HEADERS): Remove.
4475 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4476 Paolo Bonzini <bonzini@gnu.org>
4478 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
4479 * configure: Regenerate.
4480 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
4481 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
4482 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
4483 (clean): Remove libgcc_tm.h
4484 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
4485 * config.gcc (libgcc_tm_file): Remove.
4486 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
4487 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
4488 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
4489 (avr-*-rtems*): Likewise.
4490 (avr-*-*): Likewise.
4491 (frv-*-elf): Likewise.
4492 (frv-*-*linux*): Likewise.
4493 (h8300-*-rtems*): Likewise.
4494 (h8300-*-elf*): Likewise.
4495 (i[34567]86-*-darwin*): Likewise.
4496 (x86_64-*-darwin*): Likewise.
4497 (rx-*-elf*): Likewise.
4498 (tic6x-*-elf): Likewise.
4499 (tic6x-*-uclinux): Likewise.
4500 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
4502 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4504 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
4505 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
4506 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
4507 (INCLUDES_FOR_TARGET): Remove.
4508 (LIBGCC2_CFLAGS): Don't export.
4509 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
4511 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
4512 (libgcc.mvars): Likewise.
4513 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
4514 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
4515 TARGET_LIBGCC2_CFLAGS.
4517 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
4518 * config/darwin-64.c: Move to ../libgcc/config.
4519 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
4520 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
4521 config/udivmodsi4.c: Move to ../libgcc/config.
4522 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
4523 * config/memcmp.c, config/memcpy.c, config/memmove.c,
4524 config/memset.c: Move to ../libgcc/config.
4525 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
4526 * config/t-freebsd: Remove.
4527 * config/t-freebsd-thread: Move to ../libgcc/config.
4528 * config/t-libgcc-pic: Move to ../libgcc/config.
4529 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
4530 * config/t-linux: Remove.
4531 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
4533 * config/t-openbsd-thread: Move to ../libgcc/config.
4534 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
4535 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
4536 * config/t-svr4: Remove.
4537 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
4538 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
4539 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
4540 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
4541 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
4542 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
4543 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
4544 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
4545 config/arm/fp16.c, config/arm/linux-atomic.c,
4546 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
4547 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
4548 (TARGET_LIBGCC2_CFLAGS): Remove.
4549 * config/arm/t-bpabi, config/arm/t-linux: Remove.
4550 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
4551 (LIB2FUNCS_STATIC_EXTRA): Remove.
4552 * config/arm/t-netbsd: Remove.
4553 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
4554 (TARGET_LIBGCC2_CFLAGS): Remove.
4555 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
4556 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
4557 (TARGET_LIBGCC2_CFLAGS): Remove.
4558 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
4559 (LIBGCC, INSTALL_LIBGCC): Remove.
4560 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
4561 * config/bfin/t-bfin-linux: Likewise.
4562 * config/bfin/t-bfin-uclinux: Likewise.
4563 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4564 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4565 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4566 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
4567 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
4568 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
4569 * config/cris/arit.c: Move to ../libgcc/config/cris.
4570 * config/cris/cris_abi_symbol.c: Remove.
4571 * config/cris/cris.h: Remove obsolete comment.
4572 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
4573 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
4574 ($(LIB2FUNCS_EXTRA)): Remove.
4575 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
4577 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4578 * config/fr30/t-fr30: Remove.
4579 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
4580 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
4581 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
4582 to ../libgcc/config/frv.
4583 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
4584 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
4585 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
4586 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4587 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
4588 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
4589 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
4590 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
4591 (LIBGCC, INSTALL_LIBGCC): Remove.
4592 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
4593 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
4594 * config/i386/t-cygwin: Remove.
4595 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
4596 (LIB2FUNCS_EXCLUDE): Remove.
4597 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
4598 (LIBGCC, INSTALL_LIBGCC): Remove.
4599 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
4600 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
4601 * config/i386/t-mingw-w32: Likewise.
4602 * config/i386/t-mingw-w64: Likewise.
4603 * config/i386/t-openbsd: Likewise.
4604 * config/i386/t-nto: Remove.
4605 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
4606 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
4607 (quadlib.c): Remove.
4608 * config/ia64/t-ia64: Remove comment.
4609 * config/iq2000/lib2extra-funcs.c: Move to
4610 ../libgcc/config/iq2000/lib2funcs.c.
4611 * config/iq2000/t-iq2000: Remove.
4612 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
4613 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
4614 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4615 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
4616 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4617 (INSTALL_LIBGCC): Remove.
4618 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
4619 * config/m68k/t-floatlib: Remove.
4620 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
4621 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
4623 (LIBGCC, INSTALL_LIBGCC): Remove.
4624 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
4625 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
4626 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
4627 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4628 (INSTALL_LIBGCC): Remove.
4629 * config/mips/t-isa3264: Likewise.
4630 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
4631 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4632 (INSTALL_LIBGCC): Remove.
4633 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
4634 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4635 (INSTALL_LIBGCC): Remove.
4636 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
4637 (LIB2FUNCS_STATIC_EXTRA): Remove.
4638 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
4639 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
4640 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
4641 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
4642 ../libgcc/config/pa.
4643 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
4644 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
4645 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
4646 * config/pa/t-linux, config/pa/t-linux64: Remove.
4647 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
4648 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
4649 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
4651 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
4652 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
4653 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
4654 * config/rs6000/crtresfpr.asm: Move to
4655 ../libgcc/config/rs6000/crtresfpr.S.
4656 * config/rs6000/crtresgpr.asm: Move to
4657 ../libgcc/config/rs6000/crtresgpr.S.
4658 * config/rs6000/crtresxfpr.asm: Move to
4659 ../libgcc/config/rs6000/crtresxfpr.S.
4660 * config/rs6000/crtresxgpr.asm: Move to
4661 ../libgcc/config/rs6000/crtresxgpr.S.
4662 * config/rs6000/crtsavfpr.asm: Move to
4663 ../libgcc/config/rs6000/crtsavfpr.S.
4664 * config/rs6000/crtsavgpr.asm: Move to
4665 ../libgcc/config/rs6000/crtsavgpr.S.
4666 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
4667 * config/rs6000/darwin-fpsave.asm: Move to
4668 ../libgcc/config/rs6000/darwin-fpsave.S.
4669 * config/rs6000/darwin-gpsave.asm: Move to
4670 ../libgcc/config/rs6000/darwin-gpsave.S.
4671 * config/rs6000/darwin-tramp.asm: Move to
4672 ../libgcc/config/rs6000/darwin-tramp.S.
4673 * config/rs6000/darwin-vecsave.asm: Move to
4674 ../libgcc/config/rs6000/darwin-vecsave.S.
4675 * config/rs6000/darwin-world.asm: Move to
4676 ../libgcc/config/rs6000/darwin-world.S.
4677 * config/rs6000/e500crtres32gpr.asm: Move to
4678 ../libgcc/config/rs6000/e500crtres32gpr.S.
4679 * config/rs6000/e500crtres64gpr.asm: Move to
4680 ../libgcc/config/rs6000/e500crtres64gpr.S.
4681 * config/rs6000/e500crtres64gprctr.asm: Move to
4682 ../libgcc/config/rs6000/e500crtres64gprctr.S.
4683 * config/rs6000/e500crtrest32gpr.asm: Move to
4684 ../libgcc/config/rs6000/e500crtrest32gpr.S.
4685 * config/rs6000/e500crtrest64gpr.asm: Move to
4686 ../libgcc/config/rs6000/e500crtrest64gpr.S.
4687 * config/rs6000/e500crtresx32gpr.asm: Move to
4688 ../libgcc/config/rs6000/e500crtresx32gpr.S.
4689 * config/rs6000/e500crtresx64gpr.asm: Move to
4690 ../libgcc/config/rs6000/e500crtresx64gpr.S.
4691 * config/rs6000/e500crtsav32gpr.asm: Move to
4692 ../libgcc/config/rs6000/e500crtsav32gpr.S.
4693 * config/rs6000/e500crtsav64gpr.asm: Move to
4694 ../libgcc/config/rs6000/e500crtsav64gpr.S.
4695 * config/rs6000/e500crtsav64gprctr.asm: Move to
4696 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
4697 * config/rs6000/e500crtsavg32gpr.asm: Move to
4698 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
4699 * config/rs6000/e500crtsavg64gpr.asm: Move to
4700 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
4701 * config/rs6000/e500crtsavg64gprctr.asm: Move to
4702 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
4703 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
4704 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
4705 (TARGET_LIBGCC2_CFLAGS): Remove.
4706 * config/rs6000/t-aix52: Likewise.
4707 * config/rs6000/t-darwin: Remove.
4708 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
4709 (LIB2FUNCS_EXTRA): Remove.
4710 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
4711 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
4712 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
4713 (INSTALL_LIBGCC): Remove.
4714 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
4715 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
4716 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
4717 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
4718 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
4719 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
4720 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
4721 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
4722 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
4723 * config/rs6000/t-vxworks: Remove comment.
4724 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
4725 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
4726 * config/sh/linux-atomic.asm: Move to
4727 ../libgcc/config/sh/linux-atomic.S.
4728 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
4729 * config/sh/t-netbsd: Remove.
4730 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
4732 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
4733 * config/sparc/t-leon: Likewise.
4734 * config/sparc/t-leon3: Likewise.
4735 * config/sparc/t-linux64: Likewise.
4736 * config/sparc/t-netbsd64: Fix typo.
4738 * config/spu/divmodti4.c, config/spu/divv2df3.c,
4739 config/spu/float_disf.c, config/spu/float_unsdidf.c,
4740 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
4741 config/spu/mfc_multi_tag_release.c,
4742 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
4743 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
4744 config/spu/multi3.c: Move to ../libgcc/config/spu.
4745 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
4746 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
4747 (INSTALL_LIBGCC): Remove.
4748 * config/stormy16/stormy16-lib2.c: Move to
4749 ../libgcc/config/stormy16/lib2.c.
4750 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
4751 ../libgcc/config/stormy16/ashlsi3.c.
4752 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
4753 ../libgcc/config/stormy16/ashrsi3.c.
4754 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
4755 ../libgcc/config/stormy16/clzhi2.c.
4756 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
4757 ../libgcc/config/stormy16/cmpsi2.c.
4758 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
4759 ../libgcc/config/stormy16/ctzhi2.c.
4760 * config/stormy16/stormy16-lib2-divsi3.c: Move to
4761 ../libgcc/config/stormy16/divsi3.c.
4762 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
4763 ../libgcc/config/stormy16/ffshi2.c.
4764 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
4765 ../libgcc/config/stormy16/lshrsi3.c.
4766 * config/stormy16/stormy16-lib2-modsi3.c: Move to
4767 ../libgcc/config/stormy16/modsi3.c.
4768 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
4769 ../libgcc/config/stormy16/parityhi2.c.
4770 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
4771 ../libgcc/config/stormy16/popcounthi2.c.
4772 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
4773 ../libgcc/config/stormy16/ucmpsi2.c.
4774 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
4775 ../libgcc/config/stormy16/udivmodsi4.c.
4776 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
4777 ../libgcc/config/stormy16/udivsi3.c.
4778 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
4779 ../libgcc/config/stormy16/umodsi3.c.
4780 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
4781 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
4782 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
4783 * config/xtensa/t-elf: Remove.
4784 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
4785 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
4787 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
4788 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
4789 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
4790 (*-*-openbsd*): Likewise.
4791 Remove t-openbsd-thread for posix threads.
4792 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
4793 (alpha*-*-freebsd*): Likewise.
4794 (alpha*-*-netbsd*): Likewise.
4795 (alpha*-*-openbsd*): Likewise.
4796 (alpha64-dec-*vms*): Likewise.
4797 (alpha*-dec-*vms*): Likewise.
4798 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
4799 (arm*-*-linux*): Remove t-linux from tmake_file.
4800 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
4801 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
4802 arm*-*-uclinux*eabi.
4803 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
4804 tmake_file for arm*-*-eabi*.
4805 (fr30-*-elf): Remove tmake_file.
4806 (hppa*64*-*-linux*): Remove tmake_file.
4807 (hppa*-*-linux*): Likewise.
4808 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
4810 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
4811 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
4813 (i[34567]86-*-elf*): Remove tmake_file.
4814 (x86_64-*-elf*): Likewise.
4815 (i[34567]86-*-nto-qnx*): Likewise.
4816 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
4817 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
4818 from tmake_file if using win32 threads.
4819 (iq2000*-*-elf*): Remove tmake-file.
4820 (microblaze*-linux*): Likewise.
4821 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
4822 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
4823 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
4824 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
4825 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
4826 (xtensa*-*-elf*): Remove tmake_file.
4828 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4830 * Makefile.in (LIB1ASMSRC): Don't export.
4831 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
4832 * config/arm/arm.c: Update lib1funcs.asm filename.
4833 * config/arm/linux-eabi.h: Likewise.
4834 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
4835 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
4836 ../libgcc/config/arm.
4837 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
4838 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4839 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
4840 * config/arm/t-bpabi: Likewise.
4841 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4842 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
4843 * config/arm/t-strongarm-elf: Likewise.
4844 * config/arm/t-symbian: Likewise.
4845 * config/arm/t-vxworks: Likewise.
4846 * config/arm/t-wince-pe: Likewise.
4847 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
4848 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4849 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
4850 * config/bfin/t-bfin: Remove.
4851 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4852 * config/bfin/t-bfin-linux: Likewise.
4853 * config/bfin/t-bfin-uclinux: Likewise.
4854 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
4855 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4856 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
4857 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4858 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
4859 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4860 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
4861 * config/h8300/lib1funcs.asm: Move to
4862 ../libgcc/config/h8300/lib1funcs.S.
4863 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4864 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
4865 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4866 * config/i386/t-interix: Likewise.
4867 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
4868 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
4869 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4870 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
4871 * config/m32c/m32c.c: Update m32c-lib1.S filename.
4872 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
4873 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4874 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
4875 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
4876 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
4877 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
4878 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4879 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
4880 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4881 * config/mips/mips16.S: Move to ../libgcc/config/mips.
4882 * config/mips/t-libgcc-mips16: Remove.
4883 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
4884 * config/pa/milli64.S: Move to ../libgcc/config/pa.
4885 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
4886 * config/pa/t-linux64: Likewise.
4887 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
4888 ../libgcc/config/picochip/lib1funcs.S.
4889 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
4890 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
4891 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
4892 * config/sh/sh.h: Update lib1funcs.asm filename.
4893 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
4894 * config/sh/t-netbsd: Likewise.
4895 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
4897 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
4898 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
4899 * config/sparc/lb1spl.asm: Remove.
4900 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4901 * config/sparc/t-leon: Likewise.
4902 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
4903 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
4904 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
4905 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
4906 * config/vax/t-linux: Remove.
4907 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
4908 ../libgcc/config/xtensa.
4909 * config/xtensa/lib1funcs.asm: Move to
4910 ../libgcc/config/xtensa/lib1funcs.S.
4911 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4912 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
4913 (bfin*-*): Likewise.
4914 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
4915 mips/t-libgcc-mips16 from tmake_file.
4916 (mips*-*-linux*): Likewise.
4917 (mips*-sde-elf*): Likewise.
4918 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
4919 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
4920 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
4921 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
4922 (mips-*-elf*, mipsel-*-elf*): Likewise.
4923 (mips64-*-elf*, mips64el-*-elf*): Likewise.
4924 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
4925 (mips*-*-rtems*): Likewise.
4926 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
4927 (vax-*-linux*): Remove vax/t-linux from tmake_file.
4929 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4931 * config.gcc (extra_parts): Remove.
4932 (*-*-freebsd*): Remove extra_parts.
4933 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
4934 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
4935 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
4936 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
4937 *-*-netbsdelf[2-9]*.
4938 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
4939 (alpha*-*-linux*): Remove extra_parts.
4940 (alpha*-*-freebsd*): Likewise.
4941 (bfin*-linux-uclibc*): Likewise.
4942 (fr30-*-elf): Likewise.
4943 (moxie-*-elf): Likewise.
4944 (moxie-*-uclinux*): Likewise.
4945 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
4946 (h8300-*-elf*): Likewise.
4947 (hppa*64*-*-hpux11*): Remove extra_parts.
4948 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
4950 (x86_64-*-elf*): Likewise.
4951 (i[34567]86-*-freebsd*): Remove tmake_file.
4952 (x86_64-*-freebsd*): Likewise.
4953 (x86_64-*-netbsd*): Likewise.
4954 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
4955 t-libc-ok from tmake_file.
4956 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4957 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4958 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
4961 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
4962 Remove i386/t-crtstuff from tmake_file.
4963 (i[34567]86-*-lynxos*): Likewise.
4965 (ia64*-*-elf*): Remove extra_parts.
4966 (ia64*-*-freebsd*): Likewise.
4967 (ia64*-*-linux*): Likewise.
4968 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
4969 (m32r-*-elf*): Remove extra_parts.
4970 (m32rle-*-elf*): Likewise.
4971 (m32r-*-rtems*): Likewise.
4972 (m68k-*-elf*, fido-*-elf*): Likewise.
4973 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
4974 (m68k-*-rtems*): Remove extra_parts.
4975 (mep-*-*): Likewise.
4976 (microblaze*-linux*): Likewise.
4977 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
4978 (mips*-*-linux*): Likewise.
4979 (powerpc-*-lynxos*): Likewise.
4980 (s390x-ibm-tpf*): Likewise.
4981 (score-*-elf): Likewise.
4983 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
4984 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
4985 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
4986 Remove sh/t-superh from tmake_file for sh*-superh-elf.
4987 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
4988 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
4989 (sh-wrs-vxworks): Likewise.
4990 (sparc-*-linux*): Remove extra_parts.
4991 (sparc64-*-linux*): Likewise.
4992 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
4993 (xstormy16-*-elf): Likewise.
4994 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
4995 (am33_2.0-*-linux*): Remove extra_parts.
4996 * configure.ac (extra_parts): Don't substitute.
4997 * configure: Regenerate.
4998 * crtstuff.c: Move to ../libgcc.
4999 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
5000 (EXTRA_PARTS): Remove.
5001 (CRTSTUFF_T_CFLAGS): Remove.
5002 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
5003 (GCC_EXTRA_PARTS): Remove.
5004 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
5005 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
5006 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
5007 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
5008 ($(T)crtbeginT.o): Remove.
5009 * config/alpha/t-vms (EXTRA_PARTS): Remove.
5010 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
5011 * config/alpha/vms-dwarf2.asm: Move to
5012 ../libgcc/config/alpha/vms-dwarf2.S.
5013 * config/alpha/vms-dwarf2eh.asm: Move to
5014 ../libgcc/config/alpha/vms-dwarf2eh.S.
5015 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
5016 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
5017 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
5018 ($(T)crti.o, $(T)crtn.o): Remove.
5019 * config/arm/t-linux: Remove comment.
5020 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
5021 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
5022 ($(T)crti.o, $(T)crtn.o): Remove.
5023 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
5024 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
5025 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
5026 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
5027 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
5028 ($(T)crti.o, $(T)crtn.o): Remove.
5029 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
5030 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
5031 (EXTRA_MULTILIB_PARTS): Remove.
5032 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
5033 EXTRA_MULTILIB_PARTS): Remove.
5034 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
5035 ($(T)crtlibid.o): Remove.
5036 (EXTRA_MULTILIB_PARTS): Remove.
5037 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
5038 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
5039 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
5040 (EXTRA_MULTILIB_PARTS): Remove.
5041 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5042 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
5043 CRTSTUFF_T_CFLAGS_S): Remove.
5044 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
5045 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5046 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
5047 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
5048 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
5049 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
5050 ../libgcc/config/frv.
5051 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
5052 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
5053 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5054 (CRTSTUFF_T_CFLAGS): Remove.
5055 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
5056 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
5057 * config/h8300/t-elf: Remove.
5058 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
5059 Move to ../libgcc/config/i386.
5060 * config/i386/t-crtstuff: Remove.
5061 * config/i386/t-i386elf: Remove.
5062 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
5063 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
5064 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
5065 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
5066 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
5067 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
5068 * config/ia64/t-vms: Remove.
5069 * config/ia64/vms-crtinit.asm: Move to
5070 ../libgcc/config/ia64/vms-crtinit.S.
5071 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
5072 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
5073 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5074 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
5075 ($(T)crtinit.o, $(T)crtfini.o): Remove.
5076 (m32rx, m32r2): Remove.
5077 (EXTRA_MULTILIB_PARTS): Remove.
5078 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
5079 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
5080 * config/m68k/t-crtstuff: Remove.
5081 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5082 * config/m68k/t-m68kelf: Remove.
5083 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
5084 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
5085 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
5086 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
5087 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
5088 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
5089 (EXTRA_MULTILIB_PARTS): Remove.
5090 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
5091 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
5092 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
5093 EXTRA_PARTS): Remove.
5094 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
5095 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
5096 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
5097 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
5098 ($(T)crti.o, $(T)crtn.o): Remove.
5099 (EXTRA_MULTILIB_PARTS): Remove.
5100 * config/mips/t-isa3264: Likewise.
5101 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
5102 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
5103 (CRTSTUFF_T_CFLAGS): Remove.
5104 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
5105 ($(T)crti.o, $(T)crtn.o): Remove.
5106 (EXTRA_MULTILIB_PARTS): Remove.
5107 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
5109 ($(T)crti.o, $(T)crtn.o): Remove.
5110 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
5111 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
5112 (EXTRA_MULTILIB_PARTS): Remove.
5113 ($(T)crti.o, $(T)crtn.o): Remove.
5114 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
5115 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
5116 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
5117 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
5118 * config/pa/stublib.c: Move to libgcc/config/pa.
5119 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5120 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
5121 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
5122 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
5123 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
5124 ($(T)libgcc_stub.a): Remove.
5125 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
5126 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
5127 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
5128 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
5129 ($(T)libgcc_stub.a): Remove.
5130 * config/rs6000/eabi-cn.asm: Move to
5131 ../../../libgcc/config/rs6000/eabi-cn.S.
5132 * config/rs6000/eabi-ci.asm: Move to
5133 ../../../libgcc/config/rs6000/eabi-ci.S.
5134 * config/rs6000/sol-ci.asm: Move to
5135 ../../../libgcc/config/rs6000/sol-ci.S.
5136 * config/rs6000/sol-cn.asm: Move to
5137 ../../../libgcc/config/rs6000/sol-cn.S.
5138 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
5139 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5140 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
5142 (EXTRA_MULTILIB_PARTS): Remove.
5143 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
5144 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
5145 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
5146 ($(T)ncrtn$(objext)): Remove.
5147 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5148 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5149 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
5150 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
5151 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
5152 * config/score/t-score-elf: Remove.
5153 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
5154 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
5155 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
5156 * config/sh/lib1funcs-4-300.asm: Move to
5157 ../../../libgcc/config/sh/lib1funcs-4-300.S.
5158 * config/sh/lib1funcs-Os-4-200.asm: Move to
5159 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
5160 * config/sh/t-elf: Remove.
5161 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5162 * config/sh/t-linux64: Remove.
5163 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
5164 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
5165 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
5166 ($(T)ic_invalidate_array_4-100.o)
5167 ($(T)libic_invalidate_array_4-100.a)
5168 ($(T)ic_invalidate_array_4-200.o)
5169 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
5170 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
5171 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
5172 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
5173 ($(T)libgcc-4-300.a): Remove.
5174 * config/sh/t-superh: Remove.
5175 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5176 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
5177 * config/spu/cache.S: Move to ../libgcc/config/spu.
5178 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
5179 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
5180 (EXTRA_MULTILIB_PARTS): Remove.
5181 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
5182 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
5183 ($(T)cache64k.o, $(T)cache128k.o): Remove.
5184 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
5185 * config/t-libc-ok: Remove.
5186 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5187 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
5188 * config/t-netbsd: Remove.
5189 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
5190 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5191 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
5192 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
5193 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
5194 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
5195 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
5196 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5197 (EXTRA_MULTILIB_PARTS): Remove.
5198 * config/xtensa/t-linux: Remove.
5199 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
5201 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
5203 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
5204 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
5206 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5208 PR translation/45116
5209 * Makefile.in (slibdir): Remove, don't export.
5210 (SHLIB_NM_FLAGS): Remove.
5211 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
5212 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
5213 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
5214 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
5215 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
5216 (gccspec.o): Likewise.
5217 (installdirs): Don't create $(DESTDIR)$(slibdir).
5218 * configure.ac (slibdir): Remove.
5219 * configure: Regenerate.
5220 * libgcc-libsystem.ver: Move to ../libgcc/config.
5221 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
5222 * config/libgcc-glibc.ver: Move to ../libgcc/config.
5223 * config/t-libunwind (SHLIB_LC): Remove.
5224 * config/t-linux (SHLIB_MAPFILES): Remove.
5225 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
5226 * config/t-slibgcc-elf-ver: Remove.
5227 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
5229 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
5230 to ../libgcc/config/alpha.
5231 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
5232 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
5233 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
5234 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
5235 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
5236 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
5237 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
5238 * config/arm/t-symbian (SHLIB_LC): Remove.
5239 * config/bfin/libgcc-bfin.ver: Move to
5240 ../libgcc/config/bfin/libgcc-glibc.ver.
5241 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
5242 * config/c6x/libgcc-c6xeabi.ver: Move to
5243 ../libgcc/config/c6x/libgcc-eabi.ver.
5244 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
5245 * config/cris/libgcc.ver: Move to
5246 ../libgcc/config/cris/libgcc-glibc.ver.
5247 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5248 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
5249 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
5250 * config/i386/darwin-libgcc.10.4.ver: Move to
5251 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
5252 * config/i386/darwin-libgcc.10.5.ver: Move to
5253 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
5254 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
5255 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
5256 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
5257 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
5258 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
5259 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
5260 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
5261 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
5262 ../libgcc/config/i386.
5263 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
5264 ../libgcc/config/i386.
5265 * config/i386/t-linux: Move to ../libgcc/config/i386.
5266 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
5267 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
5268 * config/i386/t-mingw-w64: Likewise.
5269 * config/i386/t-mingw32: Remove.
5270 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
5271 to ../libgcc/config/ia64.
5272 * config/ia64/t-glibc: Remove.
5273 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
5274 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
5275 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
5276 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
5277 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
5278 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
5279 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
5280 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
5281 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
5282 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
5283 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
5284 Move to ../libgcc/config/pa.
5285 * config/rs6000/darwin-libgcc.10.4.ver: Move to
5286 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
5287 * config/rs6000/darwin-libgcc.10.5.ver: Move to
5288 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
5289 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
5290 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
5291 * config/rs6000/t-aix52: Likewise.
5292 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
5293 ../libgcc/config/sh.
5294 * config/sparc/libgcc-sparc-glibc.ver: Move to
5295 ../libgcc/config/sparc/libgcc-glibc.ver.
5296 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
5297 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
5298 * config/xtensa/libgcc-xtensa.ver: Move to
5299 ../libgcc/config/xtensa/libgcc-glibc.ver.
5300 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
5301 t-slibgcc in tmake_file.
5302 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
5303 *-*-freebsd[34].* with pthreads.
5304 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
5305 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
5306 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
5307 (*-*-netbsd*): Likewise.
5308 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
5309 (*-*-*vms*): Add t-slibgcc to tmake_file.
5310 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
5311 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
5313 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
5315 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
5317 (crisv32-*-linux*, cris-*-linux*): Likewise.
5318 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
5319 pa/t-slibgcc-dwarf-ver from tmake_file.
5320 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
5322 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
5323 (hppa*64*-*-hpux11*): Likewise.
5324 (hppa[12]*-*-hpux11*): Likewise.
5325 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
5327 (x86_64-*-darwin*): Likewise.
5328 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
5329 Add t-slibgcc to tmake_file.
5330 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5331 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
5333 Remove i386/t-mingw-pthread from tmake_file.
5334 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
5335 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
5336 (ia64-hp-*vms*): Likewise.
5337 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
5339 (m32rle-*-linux*): Likewise.
5340 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
5341 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
5342 t-slibgcc-nolc-override from tmake_file.
5343 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
5345 (powerpc-*-darwin*): Likewise.
5346 (powerpc64-*-darwin*): Likewise.
5347 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
5348 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5349 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
5350 t-slibgcc to tmake_file.
5351 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
5352 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
5353 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
5354 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
5355 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
5356 (sparc64-*-linux*): Likewise.
5357 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
5359 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5360 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
5363 2011-11-02 Richard Guenther <rguenther@suse.de>
5365 PR tree-optimization/50902
5366 * tree-vect-stmts.c (vectorizable_load): Properly convert
5367 an invariant initializer element.
5369 2010-11-02 Richard Guenther <rguenther@suse.de>
5371 PR tree-optimization/50890
5372 * gimple.h (gimple_fold_call): Remove.
5373 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
5374 (gimple_fold_call): ... here. Make static. Update the
5375 cannot-inline flag on direct calls.
5376 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
5377 from the statements to the edges.
5379 2011-11-01 Ian Lance Taylor <iant@google.com>
5381 * godump.c (struct macro_hash_value): Define.
5382 (macro_hash_hashval): New static function.
5383 (macro_hash_eq, macro_hash_del): New static functions.
5384 (go_define): Use macro_hash_value to store values in macro_hash.
5385 Replace an old value on a redefinition. Don't print anything to
5387 (go_undef): Delete the entry from the hash table.
5388 (go_output_typedef): For an enum, use macro_hash_value, and don't
5389 print anything to go_dump_file.
5390 (go_print_macro): New static function.
5391 (go_finish): Traverse macro_hash with go_print_macro.
5392 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
5394 2011-11-02 Alan Modra <amodra@gmail.com>
5396 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
5398 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5401 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
5403 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
5405 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
5407 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
5409 * config/i386/i386.md (splitters for int-float conversion): Use
5410 SUBREG_REG on SUBREGs in splitter constraints.
5412 2011-11-01 Jakub Jelinek <jakub@redhat.com>
5414 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
5416 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
5418 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
5419 (ssepackfltmode): New mode attr.
5420 (vec_pack_ufix_trunc_<mode>): New expander.
5422 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
5425 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
5426 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
5428 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
5430 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
5431 * config/rs6000/476.h: New file.
5432 * config/rs6000/476.opt: Likewise.
5433 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
5434 (SET_TARGET_LINK_STACK): Likewise.
5435 (TARGET_ASM_CODE_END): Define.
5436 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
5437 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
5438 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
5439 code if TARGET_LINK_STACK.
5440 (rs6000_emit_load_toc_table): Likewise.
5441 (output_function_profiler): Likewise
5442 (macho_branch_islands): Likewise
5443 (machopic_output_stub): Likewise
5444 (get_ppc476_thunk_name): New function.
5445 (rs6000_code_end): Likewise.
5446 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
5447 Convert to a define_expand.
5448 (load_toc_v4_PIC_1_normal): New define_insn.
5449 (load_toc_v4_PIC_1_476): Likewise.
5450 (load_toc_v4_PIC_1b_normal): Likewise.
5451 (load_toc_v4_PIC_1b_476): Likewise.
5453 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
5456 * config/avr/avr.opt (-mbranch-cost=): New option.
5457 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
5458 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
5459 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
5460 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
5461 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
5463 2011-11-01 Tom de Vries <tom@codesourcery.com>
5465 PR tree-optimization/50908
5466 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
5467 before update_vuses, test for 1 predecessor rather than two.
5468 (delete_block_update_dominator_info): New function, part of it factored
5470 (replace_block_by): Use delete_block_update_dominator_info. Call
5471 update_vuses after deleting bb1 and updating dominator info, instead of
5474 2011-11-01 David S. Miller <davem@davemloft.net>
5476 * config/sparc/sparc.c (vector_init_faligndata): New function.
5477 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
5479 * config/sparc/sparc.c (sparc_expand_vcond): New function.
5480 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
5481 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
5482 (vconduv8qiv8qi): Likewise.
5484 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
5487 * cselib.c (cfa_base_preserved_regno): Initialize.
5488 (cselib_expand_value_rtx_1): Don't expand it.
5489 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
5490 Check it's only zero if result is NULL.
5492 2011-11-01 Jakub Jelinek <jakub@redhat.com>
5494 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
5497 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
5498 (sseintvecmodelower): New mode iterator.
5499 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
5500 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
5501 (floatunsv4siv4sf2): Macroize into...
5502 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
5504 2011-10-31 David S. Miller <davem@davemloft.net>
5506 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
5508 * dwarf2out.c (cached_next_real_insn): New.
5509 (dwarf2out_end_epilogue): Set it to NULL_RTX.
5510 (dwarf2out_var_location): Remove cached_next_real_insn local static.
5512 2011-10-31 Richard Henderson <rth@redhat.com>
5514 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
5515 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
5516 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
5517 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
5518 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
5519 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
5520 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
5521 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
5522 * config/i386/i386.md (splitters for int-float conversion): Likewise.
5523 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
5524 (bdesc_args): Likewise.
5525 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
5526 (ix86_vectorize_builtin_conversion): Remove.
5527 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
5529 2011-10-31 Martin Jambor <mjambor@suse.cz>
5531 * ipa-prop.c (mark_modified): Moved up in the file.
5532 (is_parm_modified_before_call): Renamed to
5533 is_parm_modified_before_stmt, moved up in the file.
5534 (load_from_unmodified_param): New function.
5535 (compute_complex_assign_jump_func): Also attempt to create pass
5536 through jump functions for values loaded from (addressable)
5539 2011-10-31 Jakub Jelinek <jakub@redhat.com>
5541 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
5542 in a loop and has different type from op0, cast it to op0's type
5543 before the loop first. For slp give up. Don't crash if op1_vectype
5546 2011-10-31 Paul Brook <paul@codesourcery.com>
5548 * cgraphunit.c: Don't mark clones as static constructors.
5550 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
5552 * gcc-ar: Do not include stdio.h.
5554 2011-10-31 Diego Novillo <dnovillo@google.com>
5556 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
5558 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
5561 2011-10-30 David S. Miller <davem@davemloft.net>
5563 * config/sparc/sparc.c (vector_init_bshuffle): New function.
5564 (vector_init_fpmerge): New function.
5565 (sparc_expand_vector_init): Use them to improve non-const cases.
5567 * dwarf2out.c (dwarf2out_var_location): When processing several
5568 consecutive location notes, cache the result of next_real_insn().
5570 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
5572 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
5573 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
5574 (vec_dupv4sf): Remove expander.
5575 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
5576 (vec_dupv2df): Remove expander.
5577 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
5578 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
5579 (*vec_dupv4si): Merge *vec_dupv4si_avx.
5580 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
5582 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
5584 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
5585 * optabs.c (supportable_convert_operation): New function.
5586 * optabs.h (supportable_convert_operation): New prototype.
5587 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
5588 behavior for NONE modifier case.
5589 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
5591 2011-10-30 Jakub Jelinek <jakub@redhat.com>
5593 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
5594 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
5596 (vect_vect_recog_func_ptrs): Add it.
5598 2011-10-30 David S. Miller <davem@davemloft.net>
5600 * reorg.c (label_before_next_insn): New function.
5601 (relax_delay_slots): Use it instead of prev_label.
5602 * rtl.h (prev_label): Delete declaration.
5603 * emit-rtl.c (prev_label): Remove.
5605 2011-10-30 Revital Eres <revital.eres@linaro.org>
5607 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
5608 as BB_DISABLE_SCHEDULE.
5609 (mark_loop_unsched): New function.
5610 (sms_schedule): Call it.
5612 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5615 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
5616 (cmpib_comparison_operator): Likewise.
5617 (following_cal, output_and, output_ior, output_move_double,
5618 output_fp_move_double, output_block_move, output_block_clear,
5619 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
5620 output_movb, output_parallel_movb, output_parallel_addb, output_call,
5621 output_indirect_call, output_millicode_call, output_mul_insn,
5622 output_div_insn, output_mod_insn, singlemove_string,
5623 output_arg_descriptor, output_global_address, print_operand,
5624 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
5625 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
5626 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
5627 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
5628 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
5629 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
5630 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
5631 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
5632 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
5633 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
5634 exported functions and variables with "pa_".
5635 * config/pa/predicates.md: Likewise.
5636 * config/pa/pa64-hpux.h: likewise.
5637 * config/pa/som.h: Likewise.
5638 * config/pa/elf.h: Likewise.
5639 * config/pa/pa64-linux.h: Likewise.
5640 * config/pa/pa.md: Likewise.
5641 * config/pa/pa.c: Likewise.
5642 * config/pa/pa-linux.h: Likewise.
5643 * config/pa/pa.h: Likewise.
5644 * config/pa/constraints.md: Likewise.
5646 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
5648 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
5650 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
5651 * config/i386/i386.c: Update all uses.
5653 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
5655 * config/i386/i386.md (lshlv16qi3): Remove expander.
5656 (lshrv16qi3): New expander.
5657 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
5658 using any_shiftrt code iterator. Cleanup.
5659 (ashlv16qi3): Cleanup.
5662 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5665 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
5667 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
5668 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
5670 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
5673 * config/avr/avr.opt (-maccumulate-args): New option.
5674 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
5675 avr_starting_frame_offset.
5676 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
5677 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
5678 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
5679 (UNSPECV_WRITE_SP): New constant.
5680 (*addhi3_sp_R): Rewrite to...
5681 (*addhi3_sp): ...this new insn.
5682 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
5683 (movhi_sp_r): ...this new insn.
5684 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
5685 (avr_starting_frame_offset): New.
5686 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
5687 (avr_starting_frame_offset): New function.
5688 (avr_outgoing_args_size): New static function.
5689 (avr_initial_elimination_offset): Use it.
5690 (avr_simple_epilogue): Use it.
5691 (avr_asm_function_end_prologue): Use it.
5692 (expand_epilogue): Use it.
5693 (expand_prologue): Use it. Break out code to...
5694 (avr_prologue_setup_frame): ...this new static function.
5695 (avr_can_eliminate): Allow eliminating to frame pointer if there
5697 (avr_frame_pointer_required_p): Use frame pointer if target has a
5699 * config/avr/constraints.md (R): Remove.
5700 (Csp): New constraint.
5701 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
5703 2011-10-29 Andi Kleen <ak@linux.intel.com>
5705 * gcc-ar.c (target_machine): Add.
5707 2011-10-29 Anatoly Sokolov <aesok@post.ru>
5709 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
5710 cris_constant_index_p, cris_base_p, cris_index_p,
5711 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
5712 cris_legitimate_address_p): New functions.
5713 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5714 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
5715 from rtx to const_rtx.
5716 (cris_print_operand_address, cris_address_cost,
5717 cris_side_effect_mode_ok): Use
5718 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
5719 cris_biap_index_p and cris_bdap_index_p.
5720 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
5721 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
5722 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5723 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
5724 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
5725 cris_biap_index_p and cris_bdap_index_p.
5726 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
5728 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
5729 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
5731 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
5733 2011-10-21 Andi Kleen <ak@linux.intel.com>
5735 * ggc-page (PAGE_ALIGN): Add.
5736 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
5737 Replace ROUND_UP with PAGE_ALIGN.
5739 2011-10-20 Andi Kleen <ak@linux.intel.com>
5741 * ggc-page (alloc_anon): Add check argument.
5742 (alloc_page): Add fallback to 1 page allocation.
5743 Adjust alloc_anon calls to new argument.
5745 2011-10-18 Andi Kleen <ak@linux.intel.com>
5747 * ggc-page (release_pages): First free large continuous
5748 chunks in the madvise path.
5750 2011-10-18 Andi Kleen <ak@linux.intel.com>
5752 * ggc-page.c (alloc_pages): Always round up entry_size.
5754 2011-10-19 Andi Kleen <ak@linux.intel.com>
5756 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
5757 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
5758 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
5759 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
5760 (install): Depend on install-gcc-ar.
5761 (install-gcc-ar): Add.
5762 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
5763 * gcc-ar.c: Add new file.
5765 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
5767 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
5768 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
5770 (VStype_div): Use vector types for V2DF/V4SF.
5771 (VStype_sqrt): Use *sqrt types.
5772 (VS_spdp_type): Change type to vecdouble.
5773 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
5774 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
5775 vsx_xvcvspuxds): Likewise.
5776 (*vsx_fms<mode>4): Set type via <VStype_mul>.
5777 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
5779 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
5780 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
5781 power7-dsqrt): Correct insn latency.
5782 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
5783 (power7-veccmp): Delete.
5784 (power7-vecfloat): Correct latency/dispatch/VSU values.
5785 (define_bypass "power7-vecfloat"): Correct latency and types.
5786 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
5787 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
5789 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
5791 * config/i386/i386.md (shift_insn): Rename code attribute from
5792 shiftrt_insn. Also handle ashift RTX.
5793 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
5794 (vshift): New code attribute.
5795 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
5796 (any_lshift): Move and rename code iterator from ...
5797 * config/i386/sse.md (lshift): ... here.
5798 (lshift_insn): Remove code attribute.
5799 (lshift): Remove code attribute.
5800 (vlshr<mode>3): Use lshiftrt RTX.
5801 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
5802 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
5803 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
5804 any_lshift code iterator. Update asm template.
5805 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
5806 usign any_lshift code iterator.
5807 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
5808 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
5809 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
5811 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
5814 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
5815 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
5817 (*parityqihi2): Same for 8-bit parity.
5819 2011-10-28 Julian Brown <julian@codesourcery.com>
5821 PR rtl-optimization/47918
5822 * reload1.c (set_initial_label_offsets): Use initial offsets
5823 for labels on the nonlocal_goto_handler_labels chain.
5825 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
5827 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
5828 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
5829 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
5830 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
5832 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
5833 (GP_SAVE_INLINE): Likewise.
5834 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5835 RESTORE_FP_SUFFIX): Set to empty strings.
5836 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
5837 (debug_stack_info): Print savres_strategy.
5838 (rs6000_savres_routine_name): Implement for Darwin.
5839 (rs6000_make_savres_rtx): Adjust used register for Darwin.
5840 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
5841 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
5842 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
5843 * config/rs6000/darwin-gpsave.asm: New file.
5845 2011-10-28 Jakub Jelinek <jakub@redhat.com>
5847 * config/i386/sse.md (VI4SD_AVX2): Removed.
5848 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
5849 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
5850 Add another expander using VI48_128 iterator for
5851 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
5853 (vlshr<mode>3): Likewise. Change register_operand predicate to
5854 nonimmediate_operand on last operand in the VI12_128 expander.
5855 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
5856 (vashrv4si3, vashrv8si3): New expanders.
5857 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
5858 avx2_<lshift>vv2di): Removed.
5859 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
5860 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
5861 iterator. Simplify pattern.
5863 2010-10-28 Richard Guenther <rguenther@suse.de>
5866 * lto-wrapper.c (get_options_from_collect_gcc_options):
5867 Properly count arguments.
5868 (run_gcc): Use an obstack to collect argv, properly separate
5869 switches and their arguments.
5871 2011-10-28 Jakub Jelinek <jakub@redhat.com>
5873 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
5874 vector mode from vectype's mode.
5876 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
5878 PR rtl-optimization/49720
5879 * simplify-rtx.c (simplify_relational_operation_1): Detect
5880 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
5881 simplifies to (eq/ne x (cst2 - cst1))" case.
5883 2011-10-27 David S. Miller <davem@davemloft.net>
5885 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
5886 (*snedi_zero): Likewise.
5887 (*snedi_zero_trunc): Likewise.
5888 (snedi_special_vis3): New expander.
5889 (*snedi_zero_vis3): New insn.
5890 (*snedi_zero_trunc_vis3): Likewise.
5891 (*sltu_insn_vis3): Likewise.
5892 (*sltu_insn_vis3_trunc): Likewise.
5894 (*addxc_trunc_sp64_vis3): Likewise.
5895 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
5896 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
5897 sequences on DImode values.
5899 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
5902 * regcprop.c (copyprop_hardreg_forward_1): Reject the
5903 transformation when we narrow the mode on big endian.
5905 2011-10-27 Jakub Jelinek <jakub@redhat.com>
5907 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
5908 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
5909 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
5911 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
5912 overrides for -masm=intel memory.
5913 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
5914 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
5915 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
5916 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
5917 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
5918 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
5919 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
5921 2011-10-27 Martin Jambor <mjambor@suse.cz>
5923 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
5925 (ipa_compute_jump_functions_for_edge): Likewise.
5926 (ipa_compute_jump_functions): Likewise.
5927 (ipa_analyze_indirect_call_uses): Likewise.
5928 (ipa_analyze_call_uses): Likewise.
5929 (ipa_analyze_params_uses): Likewise.
5930 (ipa_analyze_node): Likewise.
5932 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
5935 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
5936 constraints. Change alternative 1 to "x,m,1".
5938 2011-10-27 Jakub Jelinek <jakub@redhat.com>
5940 * Makefile.in (build/gencheck.o): Depend on tree.def and
5941 c-family/c-common.def.
5943 * tree-ssa-strlen.c: Include expr.h.
5944 (get_stridx): Don't use c_strlen, instead use string_constant
5945 and compute string length from it.
5946 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
5948 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
5950 PR rtl-optimization/46603
5952 * reload.c (push_reload): In the out case, restore previous behavior
5953 for subregs that don't have word mode.
5955 2011-10-27 Ian Lance Taylor <iant@google.com>
5957 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
5958 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
5959 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
5962 2011-10-27 Richard Henderson <rth@redhat.com>
5964 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
5965 selector. Save the qimode constant selector for later use by the
5966 qimode vec_perm pattern.
5968 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
5970 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
5971 to unit_req_factor to the right enum type.
5972 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
5973 hwloop_optimize): Remove unused variables.
5975 2010-10-27 Richard Guenther <rguenther@suse.de>
5978 * tree-vect-generic.c (do_binop): Handle scalar operands.
5980 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5983 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
5984 from different units in a single alternative.
5986 2011-10-26 David S. Miller <davem@davemloft.net>
5988 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
5989 if we're comparing DImode and comparison is other than EQ or NE.
5991 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
5992 LEU/LTU/GEU/GTU is attempted.
5993 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
5995 (*neg_seqsi_sign_extend): Likewise.
5996 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
5997 *neg_sgeu_extend_sp64): New insns.
5999 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
6000 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
6001 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
6002 (*mov<I:mode>_cc_reg_sp64): Likewise.
6003 (*movsf_cc_v9): Likewise.
6004 (*movsf_cc_reg_sp64): Likewise.
6005 (*movdf_cc_v9): Likewise.
6006 (*movdf_cc_reg_sp64): Likewise.
6007 (*movtf_cc_hq_v9): Likewise.
6008 (*movtf_cc_reg_hq_sp64): Likewise.
6009 (*movtf_cc_v9): Likewise.
6010 (*movtf_cc_reg_sp64): Likewise.
6011 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
6012 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
6014 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
6016 * reload.c (reload_inner_reg_of_subreg): Change type of return value
6017 and type of OUTPUT parameter to bool and adjust. Document MODE and
6018 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
6019 and improve associated comment.
6020 (push_reload): Clarify and update comments about reloading of subregs.
6021 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
6022 for the reloading of subregs in the out case as well.
6024 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
6027 * var-tracking.c (rtx_debug_expr_p): New.
6028 (use_type): Don't use debug exprs to track non-VTA variables.
6030 2011-10-26 Jeff Law <law@redhat.com>
6032 * doc/invoke.texi (sink-frequency-threshold): Document.
6033 * tree-ssa-sink.c: Include params.h.
6034 (select_best_block): New function.
6035 (statement_sink_location): Use it.
6036 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
6038 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
6041 * config/darwin.c (top level): Amend comments concerning LTO output.
6042 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
6043 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
6044 (LTO_NAMES_SECTION): Rename.
6045 (darwin_asm_named_section): Record LTO section counts and switches
6046 in a vec of darwin_lto_section_e.
6047 (darwin_file_start): Remove unused code.
6048 (darwin_file_end): Put an LTO section termination label. Handle
6049 output of the wrapped LTO sections, index and names table.
6051 2011-10-26 Alan Modra <amodra@gmail.com>
6053 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
6055 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
6056 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
6057 simple_return in pattern, emit instruction, and set jump_label.
6058 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
6059 simple_return rather than return.
6060 (emit_cfa_restores): New function.
6061 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
6062 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
6063 when using out-of-line gpr restore. Add missing LR and FP regs
6064 cfa_restores for out-of-line fpr restore. Consolidate code setting
6065 up cfa_restores. Formatting. Use LR_REGNO define.
6066 (rs6000_output_mi_thunk): Use simple_return rather than return.
6067 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
6068 (return_internal*): Likewise.
6069 (any_return, return_pred, return_str): New iterators.
6070 (return, conditional return insns): Provide both return and
6071 simple_return variants.
6072 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
6073 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
6074 Move r11 and r0 later to suit shrink-wrapping.
6076 2011-10-26 Richard Guenther <rguenther@suse.de>
6078 * lto-wrapper.c (run_gcc): Properly init/free obstack.
6080 2011-10-26 Jakub Jelinek <jakub@redhat.com>
6082 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
6083 * config/i386/predicates.md (vsib_address_operand,
6084 vsib_mem_operator): New predicates.
6085 * config/i386/i386.c (ix86_print_operand_address): Handle
6086 UNSPEC_VSIBADDR addresses.
6087 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
6088 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
6089 UNSPEC_VSIBADDR address.
6090 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
6091 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
6093 2011-10-26 Tom de Vries <tom@codesourcery.com>
6095 PR tree-optimization/50763
6096 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
6097 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
6099 2011-10-26 Richard Guenther <rguenther@suse.de>
6102 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
6103 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
6104 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
6105 (run_gcc): Use it. Filter out language specific options.
6107 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
6109 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
6112 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
6115 * gcc.c (main): Fix fatal_error string for translation.
6117 2011-10-25 Ian Lance Taylor <iant@google.com>
6119 * tree-eh.c (do_return_redirection): Remove return_value_p
6120 parameter. Change all callers.
6121 (lower_try_finally_nofallthru): Remove local return_val.
6122 (lower_try_finally_onedest): Likewise.
6123 (lower_try_finally_copy): Likewise.
6124 (lower_try_finally_switch): Likewise.
6126 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
6128 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
6129 remove "&& !TARGET_64BIT"
6130 (*mmx_maskmovq_rex): Removed.
6132 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
6134 PR rtl-optimization/46603
6135 * reload.c (push_reload): In the out case, reload the subreg as well
6136 as the reg if it has word mode.
6138 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
6140 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
6141 suppress debug info for the parent type.
6143 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
6145 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
6147 2011-10-25 Richard Henderson <rth@redhat.com>
6149 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
6150 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
6152 * config/rs6000/altivec.md (vec_extract_evenv8hi,
6153 vec_extract_evenv16qi, vec_extract_oddv4si,
6154 vec_extract_oddv4sf): Remove.
6156 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
6157 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
6158 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
6159 vec_interleave_highv4sf, vec_interleave_lowv4sf,
6160 vec_interleave_highv4si, vec_interleave_lowv4si,
6161 vec_interleave_highv8hi, vec_interleave_lowv8hi,
6162 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
6164 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
6165 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
6166 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
6167 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
6168 vec_interleave_low_optab, vec_extract_even_optab,
6169 vec_extract_odd_optab with expand_vec_perm.
6170 (can_vec_perm_for_code_p): New.
6172 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
6173 fallback via can_vec_perm_for_code_p.
6174 (vect_strided_load_supported): Likewise.
6175 * tree-vect-generic.c (expand_vector_operations_1): Never lower
6176 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
6177 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
6179 * target.def (vec_perm_const_ok): Change parameters to mode and
6181 * doc/tm.texi: Rebuild.
6182 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
6183 parameters to mode and array of indicies.
6184 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
6185 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
6186 Change parameters to mode and array of indicies.
6187 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
6188 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
6189 parameters to mode and rtx inputs. Try lowering to QImode
6190 vec_perm_const before trying fully variable permutation.
6191 * optabs.h: Update decls.
6192 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
6193 VECTOR_CST to pass to can_vec_perm_p.
6194 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
6195 from int pointer to unsigned char pointer.
6196 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
6197 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
6199 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
6200 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6201 VEC_INTERLEAVE_LOW_EXPR): Likewise.
6203 2011-10-25 Mike Stump <mikestump@comcast.net>
6205 * reload.c (regno_clobbered_p): Fix typo.
6207 2011-10-25 Dodji Seketeli <dodji@redhat.com>
6209 * input.c (expand_location): Rewrite using linemap_resolve_location
6210 and linemap_expand_location. Add a comment.
6212 2011-10-25 Jakub Jelinek <jakub@redhat.com>
6214 PR tree-optimization/50596
6215 * tree-vect-stmts.c (vect_mark_relevant): Only use
6216 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
6217 (vectorizable_store): If is_pattern_stmt_p look through
6218 VIEW_CONVERT_EXPR on lhs.
6219 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
6220 Use unsigned type instead of signed.
6221 (vect_recog_bool_pattern): Optimize also stores into bool memory in
6222 addition to casts from bool to integral types.
6223 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
6224 created, don't create it again.
6226 2011-10-25 Kai Tietz <ktietz@redhat.com>
6228 * config/i386/i386.c (ix86_frame_pointer_required): Require
6229 frame-pointer, if setjmp is used for 32-bit ms-abi.
6231 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6233 * builtins.c (set_builtin_user_assembler_name): Remove extra
6234 newline added in October 11th, 2011 change.
6236 2011-10-24 David S. Miller <davem@davemloft.net>
6238 * config/sparc/little-endian.opt: Delete.
6239 * config.gcc: Remove references to config/sparc/little-endian.opt
6240 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
6241 * config/sparc/linux64.h: Delete references to -mlittle-endian.
6242 * config/sparc/netbsd-elf.h: Likewise.
6243 * config/sparc/openbsd64.h: Likewise.
6244 * config/sparc/sparc.h: Likewise.
6245 * config/sparc/sp64-elf.h: Likewise and delete overrides for
6246 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6247 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
6248 to MASK_LITTLE_ENDIAN.
6249 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
6251 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
6252 Only use D, Y, and Z constraints in vector insns.
6254 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
6255 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
6257 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
6258 into *movdi_insn_sp32.
6259 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
6260 one pattern called *movdi_insn_sp64.
6261 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
6262 Consolidate into one pattern called *movsf_insn.
6263 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
6264 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
6265 into *movdf_insn_sp32.
6266 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
6267 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
6269 (*zero_extendsidi2_insn_sp64_novis3,
6270 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
6271 called *zero_extendsidi2_insn_sp64.
6272 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
6273 Consolidate into one pattern named *sign_extendsidi2_insn.
6274 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
6275 Consolidate into one pattern named *mov<VM32:mode>_insn.
6276 (*mov<VM64:mode>_insn_sp64_novis3,
6277 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
6278 named *mov<VM64:mode>_insn_sp64.
6279 (*mov<VM64:mode>_insn_sp32_novis3,
6280 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
6281 named *mov<VM64:mode>_insn_sp32.
6283 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6285 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
6286 (zero_length_string): Change assertion to accept strinfo without
6287 length but with stmt instead.
6288 Set the endptr pointer also if starting a new chain.
6289 (adjust_related_strinfos): Ignore strinfos marked for delayed
6291 (handle_builtin_strcpy): Mark earlier strinfo elements also for
6292 delayed length computation.
6294 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
6297 Port from 4.6 branch r180379
6298 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
6299 handling and indirect jump/calls on devices > 128k.
6301 2011-10-24 Anatoly Sokolov <aesok@post.ru>
6302 Georg-Johann Lay <avr@gjlay.de>
6305 * doc/extend.texi (Declaring Attributes of Functions):
6306 Document OS_main and OS_task attributes.
6307 (Specifying Attributes of Variables): Move up
6308 subsection "AVR Variable Attributes" as of alphabetical order.
6310 2011-10-24 Richard Guenther <rguenther@suse.de>
6312 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
6313 to vector element type.
6314 (vectorizable_assignment): Bail out for non-mode-precision operations.
6315 (vectorizable_shift): Likewise.
6316 (vectorizable_operation): Likewise.
6317 (vectorizable_type_demotion): Likewise.
6318 (vectorizable_type_promotion): Likewise.
6319 (vectorizable_store): Handle non-mode-precision stores.
6320 (vectorizable_load): Handle non-mode-precision loads.
6321 (get_vectype_for_scalar_type_and_size): Return a vector type
6322 for non-mode-precision integers.
6323 * tree-vect-loop.c (vectorizable_reduction): Bail out for
6324 non-mode-precision reductions.
6326 2011-10-24 Julian Brown <julian@codesourcery.com>
6328 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
6329 setting CC_REVERSED for FP comparisons.
6331 2011-10-24 Richard Guenther <rguenther@suse.de>
6333 PR tree-optimization/50838
6334 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
6335 a MEM_REF base if we change it.
6337 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
6340 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
6342 PR rtl-optimization/50833
6343 * function.c (thread_prologue_and_epilogue_insns): Expect the
6344 return insn optimization only if optimize.
6346 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
6348 * config/avr/avr.c: Break long lines.
6349 Define target hooks on the fly if applicable.
6350 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
6352 (targetm): Move definition to end of file.
6353 (avr_can_eliminate): Make static on the fly.
6354 (avr_frame_pointer_required_p): Ditto.
6355 (avr_hard_regno_scratch_ok): Ditto.
6356 (avr_builtin_setjmp_frame_value): Make static on the fly.
6357 Indent according to coding rules.
6358 (avr_case_values_threshold): Ditto.
6359 (avr_attribute_table): Move down.
6361 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
6363 PR tree-optimization/50730
6364 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
6365 analysis if encountered unsupported data-ref.
6367 2011-10-23 David S. Miller <davem@davemloft.net>
6369 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
6371 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
6372 append -mcpu=v9 when -mv8plus is given.
6374 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
6375 between float and non-float regs when VIS3.
6376 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
6377 use a restore when the source is a float register.
6378 (sparc_split_regreg_legitimate): When VIS3 allow moves between
6379 float and integer regs.
6380 (sparc_register_move_cost): Adjust to account for VIS3 moves.
6381 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
6382 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
6383 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
6384 float and integer regs we sometimes need a FP_REGS class
6385 intermediate move to satisfy the reload. When this happens
6386 specify an extra cost of 2.
6387 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
6388 (*movdi_insn_sp32_v9): Likewise.
6389 (*movdi_insn_sp64): Likewise.
6390 (*movsf_insn): Likewise.
6391 (*movdf_insn_sp32_v9): Likewise.
6392 (*movdf_insn_sp64): Likewise.
6393 (*zero_extendsidi2_insn_sp64): Likewise.
6394 (*sign_extendsidi2_insn): Likewise.
6395 (*movsi_insn_vis3): New insn.
6396 (*movdi_insn_sp32_v9_vis3): New insn.
6397 (*movdi_insn_sp64_vis3): New insn.
6398 (*movsf_insn_vis3): New insn.
6399 (*movdf_insn_sp32_v9_vis3): New insn.
6400 (*movdf_insn_sp64_vis3): New insn.
6401 (*zero_extendsidi2_insn_sp64_vis3): New insn.
6402 (*sign_extendsidi2_insn_vis3): New insn.
6403 (TFmode reg/reg split): Make sure both REG operands are float.
6404 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
6405 easy constant to integer reg alternatives.
6406 (*mov<VM64:mode>_insn_sp64): Likewise.
6407 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
6408 (*mov<VM32:mode>_insn_vis3): New insn.
6409 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
6410 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
6411 (VM64 reg<-->reg split): New splitter for 32-bit.
6413 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
6414 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
6416 * config/sparc/sparc.md (DImode reg/reg split): Use it.
6417 (DFmode reg/reg split): Likewise.
6419 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
6420 generating fzero and fone instructions.
6421 (DImode const_int --> reg splitter): Only trigger for integer regs.
6423 * config/sparc/predicates.md (input_operand): Disallow vector
6424 constants other than 0 and -1.
6425 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
6426 NO_REGS for vector constants other than 0 and -1.
6428 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
6429 SPARC_INT_REG_P): Define.
6430 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
6431 (REGNO_OK_FOR_INDEX_P): Likewise.
6432 * config/sparc/sparc.c (gen_df_reg): Likewise.
6433 (eligible_for_return_delay): Likewise.
6434 (eligible_for_sibcall_delay): Likewise.
6435 (sparc_legitimate_address_p): Likewise.
6436 (emit_save_or_restore_regs): Likewise.
6437 (registers_ok_for_ldd_peep): Likewise.
6438 * config/spac/sparc.md (DI mode splitters): Likewise.
6439 (SF mode const splitters): Likewise.
6440 (DF mode splitters): Likewise.
6441 (32-bit DI mode logical op splitters): Likewise.
6443 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6447 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6450 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
6452 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
6454 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
6455 (VI248_256): Remove mode iterator.
6456 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
6457 instead of gen_avx2_lshlv4di3.
6458 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
6459 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
6461 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
6463 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
6464 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
6465 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
6466 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
6467 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
6468 iterator. Use sseintprefix mode attribute.
6469 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
6470 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
6471 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
6472 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
6473 iterator. Use sseintprefix mode attribute.
6474 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
6476 (*avx2_gatherdi<mode>): Ditto.
6477 (*avx2_gatherdi<mode>256): Ditto.
6478 (VI48_AVX2): Remove mode iterator.
6479 (gthrlastfp): Remove mode attribute.
6481 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6484 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
6486 2011-10-23 Tom de Vries <tom@codesourcery.com>
6488 PR tree-optimization/50763
6489 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
6491 (same_succ_flush_bbs): Use same_succ_flush_bb.
6492 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
6493 release_last_vdef and delete_basic_block.
6494 (unlink_virtual_phi): New function.
6495 (update_vuses): Add and use vuse1_phi_args argument. Set var to
6496 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
6497 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
6498 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
6499 to limit replacement of uses. Propagate phi argument for phis with a
6501 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
6502 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
6503 vuse1_phi_args as argument to call to update_vuses. Call
6504 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
6505 CDI_DOMINATORS info.
6506 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
6507 call to free_dominance_info. Only call calculate_dominance_info once.
6509 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
6511 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
6513 PR tree-optimization/44683
6514 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
6515 we can be sure that there are no signed zeros involved.
6517 2011-10-23 Jan Hubicka <jh@suse.cz>
6519 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
6521 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
6524 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
6525 Remove (match_dup 0).
6526 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
6527 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
6528 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
6529 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
6530 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
6531 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
6533 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
6535 PR tree-optimization/50819
6536 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
6538 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
6539 vect_analyze_data_ref_dependences.
6540 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
6541 the last argument. Check load-after-store dependence for unknown
6542 dependencies in basic blocks.
6543 (vect_analyze_data_ref_dependences): Update call to
6544 vect_analyze_data_ref_dependences.
6545 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
6546 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
6547 (vect_slp_analyze_bb_1): Update call to
6548 vect_analyze_data_ref_dependences. Don't call
6549 vect_bb_vectorizable_with_dependencies.
6551 2011-10-22 David S. Miller <davem@davemloft.net>
6553 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
6554 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
6555 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
6556 (sparc_secondary_reload): New function.
6558 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
6559 (struct processor_costs): Move from here..
6560 * config/sparc/sparc.c (struct processor_costs): To here.
6561 (sparc_costs): Mark static.
6563 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
6564 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
6565 Get rid of declarations.
6567 2011-10-21 Paul Brook <paul@codesourcery.com>
6569 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
6570 c6x_asm_init_sections): New functions.
6571 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
6573 2011-10-21 Jakub Jelinek <jakub@redhat.com>
6576 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
6577 V4DImode and V8SImode for !TARGET_AVX2.
6579 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
6582 * sched-deps.c (add_dependence): If not doing predication, promote
6583 REG_DEP_CONTROL to REG_DEP_ANTI.
6585 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
6587 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
6588 instead of X to avr_legitimize_reload_address.
6589 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
6590 first argument's type from rtx to rtx*.
6591 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
6592 Pass PX to push_reload instead of &X. Change log messages for
6595 2011-10-21 Roland Stigge <stigge@antcom.de>
6597 PR translation/47064
6598 * params.def: Fix typo "compilatoin" -> "compilation".
6600 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
6601 Kirill Yukhin <kirill.yukhin@intel.com>
6604 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
6605 if max_level allows that.
6607 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
6609 * reg-notes.def (DEP_CONTROL): New.
6610 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
6611 not doing speculation.
6612 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
6613 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
6614 * function.c (record_hard_reg_sets, record_hard_reg_uses,
6615 record_hard_reg_uses_1): Remove; move to rtlanal.c.
6616 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
6617 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
6618 (MUST_RECOMPUTE_SPEC_P): New macro.
6619 (real_insn_for_shadow): New function.
6620 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
6621 toggle_cancelled_flags): New static functions.
6622 (schedule_insn): Relax an assert to only check for empty hard back
6623 dependencies. Skip cancelled dependencies. Call
6624 check_clobbered_conditions.
6625 (copy_insn_list): Remove function, renamed moved to lists.c.
6626 (save_backtrack_point): Use new spelling copy_INSN_LIST.
6627 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
6628 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
6629 (estimate_insn_tick): Ignore cancelled dependencies.
6630 (haifa_speculate_insn): Move declaration.
6631 (try_ready): Move code into recompute_todo_spec and call it. Tweak
6632 some asserts. Ensure predicated patterns are restored if necessary.
6633 Dump DEP_CONTROL flag.
6634 (haifa_change_pattern): Merge with sched_change_pattern.
6635 (sched_change_pattern): Remove function.
6636 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
6637 uses changed to simply not test NON_FLUSH_JUMP_P.
6638 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
6640 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
6641 (reg_pending_control_uses, control_dependency_cache): New static
6643 (sched_get_reverse_condition_uncached): New function.
6644 (sd_find_dep_between): Remove pointless assert. Look in
6645 control_dependency_cache.
6646 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
6647 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
6648 and control_dependency_cache.
6649 (sd_unresolve_dep): Use dep_spec_p.
6650 (add_dependence): Now a wrapper around add_dependence_1, handling
6651 REG_DEP_CONTROL specially.
6652 (flush_pending_lists): Clear pending_jump_insns.
6653 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
6654 (sched_analyze_2): Unconditionally add to pending memory flushes,
6655 keep previous behaviour but apply it to pending_jump_insns instead.
6656 (sched_analyze_insn): Defer adding jump reg dependencies using
6657 reg_pending_control_uses; add them to the control_uses list. Handle
6658 pending_jump_insns and control_uses when adding dependence lists.
6659 (deps_analyze_insn): Update INSN_COND_DEPS.
6660 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
6661 last_pending_memory_flush.
6662 (init_deps): Initialize pending_jump_insns.
6663 (free_deps): Free control_uses.
6664 (remove_from_deps): Remove from pending_jump_insns.
6665 (init_deps_global): Allocate reg_pending_control_uses).
6666 (finish_deps_global): Free it.
6667 (add_dependence_1): Renamed from add_dependence. Handle
6669 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
6670 (copy_INSN_LIST, concat_INSN_LIST): Declare.
6671 * sched-int.h (struct deps_reg): Add control_uses.
6672 (struct deps_desc): Add pending_jump_insns.
6673 (struct _haifa_deps_insn_data): Add cond_deps.
6674 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
6675 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
6676 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
6677 (DEP_CONTROL): New macro.
6678 (DEP_TYPES): Include it.
6679 (HARD_DEP): Adjust definition.
6680 (DEP_CANCELLED): New macro.
6681 (enum SCHED_FLAGS): Add DO_PREDICATION.
6682 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
6683 * sched-rgn.c (concat_INSN_LIST): Remove function.
6684 (deps_join): Handle pending_jump_insns.
6685 (free_pending_lists): Likewise.
6686 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
6689 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
6692 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
6693 (__tablejump__): Consistently use EIND for indirect jump/call.
6694 (__tablejump_elpm__): Ditto.
6696 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
6698 * config/c6x/c6x.md (attr "op_pattern"): New.
6699 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
6700 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
6702 * config/c6x/c6x-mult.md: Regenerate.
6703 * config/c6x/c6x.c: Include "regrename.h".
6704 (unit_req_table): New typedef.
6705 (unit_reqs): Use it for the declaration.
6706 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
6707 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
6709 (count_unit_reqs): New arg reqs. All callers changed. Use
6710 get_unit_reqs, and don't merge here.
6711 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
6712 using unit_req_factor.
6713 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
6715 (c6x_reorg): Add reg notes problem, and call df_analyze.
6716 * Makefile.in ($(out_object_file)): Depend on regrename.h.
6718 2011-10-21 Kai Tietz <ktietz@redhat.com>
6720 * fold-const.c (simple_operand_p_2): Handle integral
6721 casts from boolean-operands.
6723 2011-10-21 Jan Hubicka <jh@suse.cz>
6725 * cgraph.c (dump_cgraph_node): Dump alias flag.
6726 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
6728 (get_alias_symbol): New function.
6729 (output_weakrefs): Output also weakrefs with no destinatoin.
6730 (lto_output_node): Output weakref alias flag when at function boundary.
6732 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
6735 * config/arm/driver-arm.c (vendors): Make static.
6737 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
6739 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
6740 (ix86_emit_swsqrtsf): Force a into register.
6742 2011-10-20 Mike Stump <mikestump@comcast.net>
6744 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
6745 after validate_change wipes it out.
6747 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6749 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
6750 before using the shufb instruction.
6752 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
6755 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
6756 memory operand order.
6757 (bmi2_bzhi_<mode>3): Ditto.
6758 (bmi2_pdep_<mode>3): Ditto.
6759 (bmi2_pext_<mode>3): Ditto.
6761 2011-10-20 Richard Henderson <rth@redhat.com>
6763 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
6764 * optabs.c (can_vec_perm_expr_p): Update to match.
6765 (expand_vec_perm_expr): Likewise.
6766 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
6767 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
6768 * doc/tm.texi.in: Likewise.
6770 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
6773 * config/i386/i386.c (processor_target_table): Change Atom
6774 align_loops_max_skip to 15.
6776 2011-10-20 Richard Henderson <rth@redhat.com>
6778 * target.def (builtin_vec_perm): Remove.
6779 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6781 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
6782 (IX86_BUILTIN_VEC_PERM_*): Remove.
6783 (bdesc_args): Remove vec_perm builtins
6784 (ix86_expand_builtin): Likewise.
6785 (ix86_expand_vec_perm_const_1): Rename from
6786 ix86_expand_vec_perm_builtin_1.
6787 (extract_vec_perm_cst): Merge into...
6788 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
6789 ix86_vectorize_builtin_vec_perm_ok.
6790 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6792 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
6793 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6795 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
6796 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6798 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
6801 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
6802 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
6803 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
6804 implements vectorized single float division and vectorized sqrtf(x)
6805 with reciprocal sequence with additional Newton-Raphson step with
6808 2011-10-20 Dodji Seketeli <dodji@redhat.com>
6810 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
6811 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
6812 it was done in ggc-page.c.
6815 * doc/cppopts.texi: Use @smallexample/@end smallexample in
6816 documentation for -fdebug-cpp instead of @quotation/@end quotation
6817 that is not supported by contrib/texi2pod.pl.
6819 2011-10-19 Jan Hubicka <jh@suse.cz>
6821 * ipa-inline.c (inline_small_functions): Always update all calles after
6824 2011-10-19 Jan Hubicka <jh@suse.cz>
6827 * ipa-inline.c (inline_small_functions): Fix checking code to not make
6828 effect on fibheap stability.
6830 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
6832 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
6834 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6837 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
6840 2011-10-20 Richard Guenther <rguenther@suse.de>
6842 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
6843 and rotates to the set of expensive operations.
6845 2011-10-19 David S. Miller <davem@davemloft.net>
6847 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
6848 (sparc_emit_set_const32): Likewise.
6849 (sparc_emit_set_const64_longway): Likewise.
6850 (sparc_emit_set_const64): Likewise.
6851 (sparc_legitimize_pic_address): Likewise.
6852 (memory_ok_for_ldd): Likewise.
6854 2011-10-20 Dehao Chen <dehao@google.com>
6856 * profile.c (compute_branch_probabilities): Compute and dump the
6857 overlap between the static estimation and the instrumentation profile.
6858 (OVERLAP_BASE): New macro.
6859 (compute_frequency_overlap): New function
6861 2011-10-19 Jakub Jelinek <jakub@redhat.com>
6863 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
6864 d->op1 instead of d->op0 for the second vpshufb.
6865 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
6866 (ix86_expand_vec_perm_const): If mask indicates two operands are
6867 needed, but both are the same and expanding them as d.op0 == d.op1
6868 failed, retry with d.op0 != d.op1.
6869 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
6870 also for d.nelt == 32.
6873 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
6876 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
6878 * regrename.h: New file.
6879 * regrename.c: Include it. Also include "emit-rtl.h".
6880 (struct du_head, struct du_chain, du_head_p DEF_VEC and
6881 DEF_VEC_ALLOC_P): Move to regrename.h.
6882 (do_replace): Remove declaration.
6883 (insn_rr): New variable.
6884 (cur_operand): New static variable.
6885 (regrename_chain_from_id): Renamed from chain_from_id and no longer
6886 static. All callers changed.
6887 (record_operand_use): New static function.
6888 (scan_rtx_reg): Use it.
6889 (find_best_rename_reg): New function, broken out of rename_chains.
6890 (rename_chains): Use it. Don't update chain regno and nregs here, ...
6891 (regrename_do_replace): ... do it here instead. Renamed from
6892 do_replace, and no longer static. All callers changed.
6893 (regrename_analyze): No longer static. New arg bb_mask.
6894 All callers changed. If bb_mask is nonzero, use it to limit the
6895 number of basic blocks we analyze. If we failed to analyze a block,
6896 clear insn operand data.
6897 (record_out_operands): New arg insn_info. Update cur_operand if it is
6899 (build_def_use): If insn_rr is nonnull, pass an insn_info to
6900 record_out_operands, and update cur_operand here as well.
6901 (regrename_init, regrename_finish): New functions.
6902 (regrename_optimize): Use them.
6903 * Makefile.in (regrename.o): Adjust dependencies.
6905 2011-10-19 Tom de Vries <tom@codesourcery.com>
6907 PR tree-optimization/50769
6908 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
6909 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
6910 dummy argument .MEM to phi when increasing number of arguments of phi by
6911 redirecting edges to the block with phi.
6913 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6916 * configure.ac: Save and restore CXXFLAGS around
6917 gcc_AC_CHECK_DECLS uses.
6918 Check for madvise() declaration with g++ if --enable-build-with-cxx.
6919 * configure: Regenerate.
6920 * config.in: Regenerate.
6921 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
6923 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
6926 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
6927 (variable_part): Replace offset with union.
6928 (enum onepart_enum, onepart_enum_t): New.
6929 (variable_def): Drop cur_loc_changed, add onepart.
6930 (value_chain_def, const_value_chain): Remove.
6931 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
6932 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
6933 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
6934 (value_chain_pool, value_chains): Remove.
6935 (dropped_values): New.
6936 (struct parm_reg): Only if HAVE_window_save.
6937 (vt_stack_adjustments): Don't record register arguments.
6939 (dv_onepart_p): Return a onepart_enum_t.
6940 (onepart_pool): New.
6943 (variable_htab_free): Release onepart aux data. Reset flags.
6944 (value_chain_htab_hash, value_chain_htab_eq): Remove.
6945 (unshare_variable): Use onepart field. Propagate onepart aux
6946 data or offset. Drop cur_loc_changed.
6947 (val_store): Cope with NULL insn. Rephrase dump output. Check
6948 for unsuitable locs. Add FIXME on using cselib locs.
6949 (val_reset): Remove FIXME of unfounded concerns.
6950 (val_resolve): Check for unsuitable locs. Add FIXME on using
6952 (variable_union): Use onepart field, adjust access to offset.
6954 (VALUE_CHANGED, DECL_CHANGED): Update doc.
6955 (set_dv_changed): Clear NO_LOC_P when changed.
6956 (find_loc_in_1pdv): Use onepart field.
6957 (intersect_loc_chains): Likewise.
6958 (unsuitable_loc): New.
6959 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
6960 (add_value_chain, add_value_chains): Remove.
6961 (add_cselib_value_chains, remove_value_chain): Likewise.
6962 (remove_value_chains, remove_cselib_value_chains): Likewise.
6963 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
6964 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
6965 (variable_merge_over_cur): Likewise. Adjust access to offset.
6966 Drop cur_loc_changed.
6967 (variable_merge_over_src): Use onepart field.
6968 (remove_duplicate_values): Likewise.
6969 (variable_post_merge_new_vals): Likewise.
6970 (find_mem_expr_in_1pdv): Likewise.
6971 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
6973 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
6974 (variable_different_p): Use onepart field. Move onepart test out
6976 (argument_reg_set): Drop.
6977 (add_uses, add_stores): Preserve but do not record in dynamic
6978 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
6979 Avoid unsuitable address expressions.
6980 (EXPR_DEPTH): Unlimit.
6981 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
6982 (prepare_call_arguments): Use DECL_RTL_IF_SET.
6983 (dump_var): Adjust access to offset.
6984 (variable_from_dropped, recover_dropped_1paux): New.
6985 (variable_was_changed): Drop cur_loc_changed. Use onepart.
6986 Preserve onepart aux in empty_var. Recover empty_var and onepart
6987 aux from dropped_values.
6988 (find_variable_location_part): Special-case onepart. Adjust
6990 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
6991 access to offset. Initialize onepaux. Drop value chains.
6992 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
6993 (VEC (variable, heap), VEC (rtx, stack)): Define.
6994 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
6995 ignore_cur_loc. Add expanding, pending, depth.
6996 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
6997 (loc_exp_dep_insert, loc_exp_dep_set): New.
6998 (notify_dependents_of_resolved_value): New.
6999 (update_depth, vt_expand_var_loc_chain): New.
7000 (vt_expand_loc_callback): Revamped.
7001 (resolve_expansions_pending_recursion): New.
7002 (INIT_ELCD, FINI_ELCD): New.
7003 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
7004 parameter, adjust all callers.
7005 (vt_expand_loc_dummy): Drop.
7006 (vt_expand_1pvar): New.
7007 (emit_note_insn_var_location): Operate on non-debug decls only.
7008 Revamp multi-part cur_loc recomputation and one-part expansion.
7009 Drop cur_loc_changed. Adjust access to offset.
7010 (VEC (variable, heap)): Drop.
7011 (changed_variables_stack, changed_values_stack): Drop.
7012 (check_changed_vars_0, check_changed_vars_1): Remove.
7013 (check_changed_vars_2, check_changed_vars_3): Remove.
7014 (values_to_stack, remove_value_from_changed_variables): New.
7015 (notify_dependents_of_changed_value, process_changed_values): New.
7016 (emit_notes_for_changes): Revamp onepart updates.
7017 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
7018 and value chains. Propagate onepaux. Recover empty_var and onepaux
7019 from dropped_values.
7020 (emit_notes_for_differences_2): Drop value chains.
7021 (emit_notes_in_bb): Adjust.
7022 (vt_emit_notes): Drop value chains, changed_variables_stack.
7023 Initialize and release dropped_values.
7024 (create_entry_value): Revamp.
7025 (vt_add_function_parameter): Use new interface.
7026 (note_register_arguments): Remove.
7027 (vt_initialize): Drop value chains and register arguments.
7028 (vt_finalize): Drop value chains. Release windowed_parm_regs only
7029 if HAVE_window_save.
7030 * rtl.h: Document various pass-local uses of RTL flags.
7031 * tree.h (DECL_RTL_KNOWN_SET): New.
7032 * doc/invoke.texi (param max-vartrack-expr-depth): Update
7033 description and default.
7035 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
7038 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
7039 (adjust_len): Ditto.
7040 (addhi3): Don't pipe through short; use gen_int_mode instead.
7041 Prior to reload, expand to gen_addhi3_clobber.
7042 (*addhi3): Use avr_out_plus_noclobber if applicable, use
7043 out_plus_noclobber in cc and adjust_len attribute.
7044 (addhi3_clobber): 2 new RTL peepholes.
7045 (addhi3_clobber): New insn.
7046 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
7047 * config/avr/avr.c (avr_out_plus_noclobber): New function.
7048 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
7049 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
7050 Set cc0 to set_zn for adiw on 16-bit values.
7051 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
7052 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
7054 2011-10-19 Richard Guenther <rguenther@suse.de>
7057 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
7058 the condition is properly gimple before using it.
7059 * tree-eh (stmt_could_throw_1_p): Properly extract the
7060 operation type from comparisons.
7062 2011-10-19 Roland Stigge <stigge@antcom.de>
7064 PR translation/48638
7065 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
7067 2011-10-19 Roland Stigge <stigge@antcom.de>
7069 PR translation/49517
7070 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
7072 2011-10-19 Richard Guenther <rguenther@suse.de>
7075 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
7077 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
7079 PR rtl-optimization/50340
7080 * sel-sched-ir.c (update_target_availability): LHS register
7081 availability is not known if the unavailable LHS of the other
7082 expression is a different register.
7084 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7087 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
7088 floating-point comparisons.
7090 2011-10-19 Jan Hubicka <jh@suse.cz>
7092 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
7093 destination declared.
7094 (output_weakrefs): New function.
7095 * varpool.c (varpool_create_variable_alias): Handle external aliases.
7097 2011-10-19 Jakub Jelinek <jakub@redhat.com>
7099 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
7100 second argument instead of mode.
7102 2011-10-18 Jakub Jelinek <jakub@redhat.com>
7104 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
7105 mode SUBREG of operands[0] as target.
7106 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
7107 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
7108 (expand_vec_perm_1): Handle identity and some broadcast
7110 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
7111 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
7112 For d->testing_p return true earlier to avoid creating more GC
7114 (expand_vec_perm_vpermq_perm_1): New function.
7115 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
7116 earlier to avoid creating more GC garbage. Fix handling of
7117 V16HImode. Avoid some SUBREGs in SET_DEST.
7118 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
7120 (expand_vec_perm_vpshufb4_vpermq2): New function.
7121 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
7122 and expand_vec_perm_vpshufb4_vpermq2.
7124 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
7126 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
7129 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
7131 PR tree-optimization/50717
7132 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
7133 parameter. Calculate 'type' from stmt.
7134 (convert_mult_to_widen): Update call the is_widening_mult_p.
7135 (convert_plusminus_to_widen): Likewise.
7137 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7139 * config/spu/spu.c (struct machine_function): New data structure.
7140 (spu_init_machine_status): New function.
7141 (spu_option_override): Install it.
7142 (get_pic_reg): Set and use cfun->machine->pic_reg.
7143 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
7144 (need_to_save_reg): Use cfun->machine->pic_reg instead of
7145 checking crtl->uses_pic_offset_table.
7146 (spu_expand_prologue): Likewise.
7148 2011-10-18 Jakub Jelinek <jakub@redhat.com>
7150 PR tree-optimization/50735
7151 * function.c (gimplify_parameters): Use create_tmp_var instead of
7152 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
7153 or vector type, set DECL_GIMPLE_REG_P.
7155 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
7157 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
7158 * config/arm/arm.opt: Add 'native' processor_type and
7159 arm_arch enum values.
7160 * config/arm/arm.h (host_detect_local_cpu): New prototype.
7161 (EXTRA_SPEC_FUNCTIONS): New define.
7162 (MCPU_MTUNE_NATIVE_SPECS): New define.
7163 (DRIVER_SELF_SPECS): New define.
7164 * config/arm/driver-arm.c: New file.
7165 * config/arm/x-arm: New file.
7166 * doc/invoke.texi (ARM Options): Document -mcpu=native,
7167 -mtune=native and -march=native.
7169 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
7171 PR rtl-optimization/50205
7172 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
7173 p->x is a register. Forbid substitution when the same register is
7174 found in a different mode.
7175 (count_occurrences_equiv): Assert that 'what' is a register.
7177 2011-10-18 Richard Guenther <rguenther@suse.de>
7179 PR tree-optimization/50767
7180 * tree-ssa-pre.c (create_expression_by_pieces): Update the
7183 2011-10-18 Julian Brown <julian@codesourcery.com>
7185 * config/arm/arm.c (arm_block_move_unaligned_straight)
7186 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
7187 (arm_movmemqi_unaligned): New.
7188 (arm_gen_movmemqi): Support unaligned block copies.
7190 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
7192 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
7193 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
7194 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
7195 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7196 (op_code_prio): Likewise.
7197 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
7198 * optabs.c (optab_for_tree_code): Handle
7199 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7200 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
7201 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
7202 * genopinit.c (optabs): Initialize the new optabs.
7203 * expr.c (expand_expr_real_2): Handle
7204 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7205 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
7206 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
7207 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
7208 VEC_WIDEN_LSHIFT_LO_EXPR): New.
7209 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
7210 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
7211 vect_recog_widen_shift_pattern.
7212 (vect_handle_widen_mult_by_const): Rename...
7213 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
7214 Add a new argument, update documentation.
7215 (vect_recog_widen_mult_pattern): Assume that only second
7216 operand can be constant. Update call to
7217 vect_handle_widen_op_by_const.
7218 (vect_recog_over_widening_pattern): Fix typo.
7219 (vect_recog_widen_shift_pattern): New.
7220 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
7222 (supportable_widening_operation): Likewise.
7223 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
7224 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7225 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7226 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
7227 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
7228 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
7230 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
7232 * config/arm/iterators.md (V_innermode): New.
7233 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
7236 2011-10-18 Richard Guenther <rguenther@suse.de>
7238 * tree-ssa-alias.h (struct pt_solution): Remove
7239 vars_contains_restrict member.
7240 (pt_solutions_same_restrict_base): Remove.
7241 (pt_solution_set): Adjust.
7242 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
7243 vars_contains_restrict handling.
7244 (dump_points_to_solution): Likewise.
7245 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
7246 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
7248 (new_var_info): Do not initialize it.
7249 (ipa_escaped_pt): Adjust.
7250 (make_constraint_from_restrict): Make the tag global.
7251 (make_constraint_from_global_restrict): New function.
7252 (make_constraint_from_heapvar): Remove.
7253 (create_variable_info_for): Do not make restrict vars point
7255 (intra_create_variable_infos): Likewise.
7256 (find_what_var_points_to): Remove vars_contains_restrict handling.
7257 (pt_solution_set): Adjust.
7258 (pt_solution_ior_into): Likewise.
7259 (pt_solutions_same_restrict_base): Remove.
7260 (compute_points_to_sets): Do not test is_restrict_var.
7261 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
7262 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7264 2011-10-18 Tom de Vries <tom@codesourcery.com>
7266 PR tree-optimization/50672
7267 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
7269 (mark_virtual_phi_result_for_renaming): Use
7270 mark_virtual_operand_for_renaming.
7271 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
7272 * tree-ssa-tail-merge.c (release_last_vdef): New function.
7273 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
7274 deleted basic block.
7275 (tail_merge_optimize): Add argument to call to purge_bbs.
7277 2011-10-18 Richard Guenther <rguenther@suse.de>
7280 * expr.c (get_object_or_type_alignment): New function.
7281 (expand_assignment): Use it.
7282 (expand_expr_real_1): Likewise.
7284 2011-10-18 Dodji Seketeli <dodji@redhat.com>
7287 * input.c (dump_line_table_statistics): Use long, not size_t.
7289 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
7291 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
7293 2011-10-17 Simon Baldwin <simonb@google.com>
7294 Ian Lance Taylor <iant@google.com>
7296 * configure.ac: Add --with-native-system-header-dir. Set and
7297 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
7298 when setting target_header_dir.
7299 * config.gcc: Always set native_system_header_dir.
7300 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
7301 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
7303 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
7304 native_system_header_dir.
7305 (spu-*-elf*): Set native_system_header_dir.
7306 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
7307 @NATIVE_SYSTEM_HEADER_DIR@.
7308 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
7309 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
7310 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
7311 STANDARD_INCLUDE_COMPONENT.
7312 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
7313 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
7314 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
7315 STANDARD_INCLUDE_COMPONENT.
7316 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
7317 * config/i386/t-mingw-w32: Likewise.
7318 * config/i386/t-mingw-w64: Likewise.
7319 * config/spu/t-spu-elf: Likewise.
7320 * config/i386/t-djgpp: Remove.
7321 * config/t-gnu: Remove.
7322 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
7323 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
7324 STANDARD_INCLUDE_COMPONENT.
7325 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
7326 * config/spu/spu-elf.h: Likewise.
7327 * config/vms/xm-vms.h: Likewise.
7328 * config/gnu.h: Likewise.
7329 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
7330 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
7331 NATIVE_SYSTME_HEADER_COMPONENT.
7332 * doc/install.texi (Configuration): Document
7333 --with-native-system-header-dir. Mention it in the documentation
7334 for --with-sysroot and --with-build-sysroot.
7335 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
7336 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
7337 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
7338 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
7339 * doc/fragments.texi (Target Fragment): Don't document
7340 NATIVE_SYSTEM_HEADER_DIR.
7341 * configure, doc/tm.texi: Rebuild.
7343 2011-10-17 Richard Henderson <rth@redhat.com>
7345 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
7348 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
7350 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
7351 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
7353 2011-10-17 David S. Miller <davem@davemloft.net>
7355 * config/sparc/sparc-modes.def: Add single entry vector modes for
7357 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
7359 (mov<V32:mode>): Revert back to plain SFmode pattern.
7360 (*movsf_insn): Likewise.
7361 (mov<V64:mode>): Revert back to plain DFmode pattern.
7362 (*movdf_insn_sp32): Likewise.
7363 (*movdf_insn_sp32_v9): Likewise.
7364 (*movdf_insn_sp64): Likewise.
7365 (V64 mode splitters) Likewise.
7366 (addsi3): Remove VIS alternatives.
7368 (and<V64I:mode>3): Revert to DImode only pattern.
7369 (and<V64I:mode>3_sp32): Likewise.
7370 (*and<V64I:mode>3_sp64): Likewise.
7371 (and<V32I:mode>3): Likewise.
7372 (*and_not_<V64I:mode>_sp32): Likewise.
7373 (*and_not_<V64I:mode>_sp64): Likewise.
7374 (*and_not_<V32I:mode>): Likewise.
7375 (ior<V64I:mode>3): Likewise.
7376 (*ior<V64I:mode>3_sp32): Likewise.
7377 (*ior<V64I:mode>3_sp64): Likewise.
7378 (ior<V32I:mode>3): Likewise.
7379 (*or_not_<V64I:mode>_sp32): Likewise.
7380 (*or_not_<V64I:mode>_sp64): Likewise.
7381 (*or_not_<V32I:mode>): Likewise.
7382 (xor<V64I:mode>3): Likewise.
7383 (*xor<V64I:mode>3_sp32): Likewise.
7384 (*xor<V64I:mode>3_sp64): Likewise.
7385 (xor<V32I:mode>3): Likewise.
7386 (V64I mode splitters): Likewise.
7387 (*xor_not_<V64I:mode>_sp32): Likewise.
7388 (*xor_not_<V64I:mode>_sp64): Likewise.
7389 (*xor_not_<V32I:mode>): Likewise.
7390 (one_cmpl<V64I:mode>2): Likewise.
7391 (*one_cmpl<V64I:mode>2_sp32): Likewise.
7392 (*one_cmpl<V64I:mode>2_sp64): Likewise.
7393 (one_cmpl<V32I:mode>2): Likewise.
7394 (VM32, VM64, VMALL): New mode iterators.
7395 (vbits, vconstr, vfptype): New mode attributes.
7396 (mov<VMALL:mode>): New expander.
7397 (*mov<VM32:mode>_insn): New insn.
7398 (*mov<VM64:mode>_insn_sp64): New insn.
7399 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
7400 specifically for the register to memory case.
7401 (vec_init<mode>): New expander.
7402 (VADDSUB): New mode iterator.
7403 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
7405 (<plusminus_insn><mode>3): New consolidated pattern.
7406 (VL): New mode iterator for logical operations.
7407 (vlsuf): New more attribute.
7408 (vlop): New code iterator.
7409 (vlinsn, vlninsn): New code attributes.
7410 (<code><mode>3): New insn to non-negated vector logical ops.
7411 (*not_<code><mode>3): Likewise for negated variants.
7412 (*nand<mode>_vis): New insn.
7413 (vlnotop): New code iterator.
7414 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
7415 (one_cmpl<mode>2): New insn.
7416 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
7417 (bshuffle<VM64:mode>_vis): Likewise.
7418 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
7419 (fp<plusminus_insn>64_vis): Use V1DI mode.
7420 (VASS mode iterator): Use V1SI not SI mode.
7421 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
7422 single-entry vector mode changes.
7423 (sparc_expand_builtin): Likewise.
7424 (sparc_expand_vector_init): New function.
7425 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
7427 2011-10-17 Kai Tietz <ktietz@redhat.com>
7429 * fold-const.c (simple_operand_p_2): New function.
7430 (fold_truthop): Rename to
7431 (fold_truth_andor_1): function name.
7432 Additionally remove branching creation for logical and/or.
7433 (fold_truth_andor): Handle branching creation for logical and/or here.
7435 2011-10-17 Andi Kleen <ak@linux.intel.com>
7437 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
7439 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
7441 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
7442 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
7443 (adjust_len): Add alternative "call".
7444 (isa, enabled): New insn attributes.
7445 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
7447 (*sbrx_branch<mode>): Ditto.
7448 (*sbrx_and_branch<mode>): Ditto.
7449 (*sbix_branch): Ditto.
7450 (*sbix_branch_bit7): Ditto.
7451 (*sbix_branch_tmp): Ditto.
7452 (*sbix_branch_tmp_bit7): Ditto.
7454 (negsi2): Use attribute "isa" instead of assembler dialect.
7455 (extendhisi2): Ditto.
7456 (call_insn, call_value_insn): Set adjust_len attribute.
7457 (indirect_jump): Indent to coding rules.
7458 (call_prologue_saves): Use isa attribute instead of mcu_mega.
7459 (epilogue_restores): Ditto. Fix setting of SP as described in the
7461 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
7462 and *indirect_jump_avr6.
7463 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
7464 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
7465 (*tablejump_rjmp, *tablejump_lib): Remove.
7466 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
7468 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7471 * doc/invoke.texi ([Wnonnull]): Update.
7473 2011-10-17 Richard Henderson <rth@redhat.com>
7476 * optabs.c (expand_vec_perm_expr): Fix indexing error.
7478 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
7480 * configure.ac: Display `yes' if the SystemTap header has been found.
7481 * configure: Regenerate.
7483 2011-10-08 Andi Kleen <ak@linux.intel.com>
7486 * config.in, configure: Regenerate.
7487 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
7488 * ggc-page.c (USING_MADVISE): Add.
7489 (page_entry): Add discarded field.
7490 (alloc_page): Check for discarded pages.
7491 (release_pages): Add USING_MADVISE branch.
7493 2011-10-17 Richard Guenther <rguenther@suse.de>
7495 PR tree-optimization/50729
7496 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
7497 (simplify_conversion_using_ranges): Properly test the
7498 intermediate result.
7500 2011-10-15 Tom Tromey <tromey@redhat.com>
7501 Dodji Seketeli <dodji@redhat.com>
7503 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
7504 * ggc-none.c (ggc_round_alloc_size): New public stub function.
7505 * ggc-page.c (ggc_alloced_size_order_for_request): New static
7506 function. Factorized from ggc_internal_alloc_stat.
7507 (ggc_round_alloc_size): New public function. Uses
7508 ggc_alloced_size_order_for_request.
7509 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
7510 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
7511 from ggc_internal_alloc_zone_stat.
7512 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
7513 * toplev.c (general_init): Initialize
7514 line_table->alloced_size_for_request.
7516 2011-10-15 Tom Tromey <tromey@redhat.com>
7517 Dodji Seketeli <dodji@redhat.com>
7519 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
7520 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
7522 (dump_line_table_statistics): Define new function.
7523 * input.h (dump_line_table_statistics): Declare new function.
7524 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
7526 2011-10-15 Tom Tromey <tromey@redhat.com>
7527 Dodji Seketeli <dodji@redhat.com>
7529 * doc/cppopts.texi: Document -fdebug-cpp.
7530 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
7532 2011-10-15 Tom Tromey <tromey@redhat.com>
7533 Dodji Seketeli <dodji@redhat.com>
7535 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
7537 * diagnostic.c (diagnostic_report_current_module): Add a location
7538 parameter to the function definition. Use it instead of
7539 input_location. Resolve the virtual location rather than just
7540 looking up its map and risking to touch a resulting macro map.
7541 (default_diagnostic_starter): Pass the relevant diagnostic
7542 location to diagnostic_report_current_module.
7543 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
7544 (virt_loc_aware_diagnostic_finalizer): Likewise.
7545 (diagnostic_report_current_function): Pass the
7546 relevant location to diagnostic_report_current_module.
7547 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
7549 * toplev.c (general_init): By default, use the new
7550 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
7551 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
7553 2011-10-15 Tom Tromey <tromey@redhat.com>
7554 Dodji Seketeli <dodji@redhat.com>
7556 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
7557 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
7558 preprocessor related options.
7560 2011-10-15 Tom Tromey <tromey@redhat>
7561 Dodji Seketeli <dodji@redhat.com>
7563 * input.h (struct expanded_location): Move to libcpp/line-map.h.
7564 (LOCATION_COLUMN): New accessor
7565 (in_system_header_at): Use linemap_location_in_system_header_p.
7566 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
7567 touching the internals of struct line_map. Use the public API instead.
7568 (diagnostic_report_diagnostic): Don't use relational operator '<'
7569 on virtual locations. Use linemap_location_before_p instead.
7570 * input.c (expand_location): Adjust to expand to the tokens'
7571 spelling location when macro location tracking is on.
7574 2011-10-08 Andi Kleen <ak@linux.intel.com>
7576 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
7578 2011-10-13 Andi Kleen <ak@linux.intel.com>
7580 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
7582 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
7584 PR tree-optimization/50727
7585 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
7586 DEF_STMT to the list of statements to be replaced by the
7589 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
7591 PR rtl-optimization/50615
7592 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
7594 2011-10-16 Jakub Jelinek <jakub@redhat.com>
7596 PR tree-optimization/50596
7597 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
7598 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
7599 vect_recog_bool_pattern.
7600 (check_bool_pattern, adjust_bool_pattern_cast,
7601 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
7603 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
7605 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
7606 treat the first load of the node as the first element in its
7608 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
7609 necessary and possible.
7610 (vect_build_slp_tree): Add new argument. Allow load groups of any size
7611 in basic blocks. Keep all the loads for further permutation check.
7612 Use the new argument to determine if there is a permutation. Update
7613 the recursive calls.
7614 (vect_supported_load_permutation_p): Allow subchains of interleaving
7615 chains in basic block vectorization.
7616 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
7617 Check load permutation based on the new parameter.
7618 (vect_schedule_slp_instance): Don't start from the first element in
7619 interleaving chain unless the loads are permuted.
7621 2011-10-15 Jan Hubicka <jh@suse.cz>
7625 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
7626 after function body.
7628 2011-10-15 Richard Henderson <rth@redhat.com>
7630 * tree-vect-slp.c: Include langhooks.h.
7631 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
7632 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
7633 mask creation for VEC_PERM_EXPR.
7634 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
7636 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
7637 * Makefile.in (tree-vect-slp.o): Update dependency.
7638 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
7640 2011-10-15 Alan Modra <amodra@gmail.com>
7643 * ifcvt.c (dead_or_predicable): Revert accidental commit with
7644 HAVE_simple_return test.
7646 2011-10-15 Alan Modra <amodra@gmail.com>
7648 * ifcvt.c (dead_or_predicable): Disable if-conversion when
7649 doing so is likely to kill a shrink-wrapping opportunity.
7651 PR rtl-optimization/49941
7652 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
7654 * rtl.h (set_return_jump_label): Declare.
7655 * function.c (set_return_jump_label): New function, extracted..
7656 (thread_prologue_and_epilogue_insns): ..from here. Use it in
7657 another instance to set return jump_label.
7658 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
7659 * reorg.c (find_end_label): Likewise.
7661 2011-10-14 David S. Miller <davem@davemloft.net>
7663 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
7664 with a more complete cpp test.
7665 * config/sparc/linux64.h: Likewise.
7666 * config/sparc/linux.h: Likewise.
7667 * config/sparc/sparc.opt (sparc_debug): New target variable.
7668 (mdebug): New target option.
7669 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
7670 TARGET_DEBUG_OPTIONS): New defines.
7671 * config/sparc/sparc.c (debug_target_flag_bits,
7672 debug_target_flags): New functions.
7673 (sparc_option_override): Add name strings back to cpu_table[].
7674 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
7675 out the target flags before and after override processing as well
7676 as the selected cpu. If MASK_V8PLUS, make sure that the selected
7679 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
7682 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
7683 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
7684 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
7685 and instruction commutative.
7686 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
7687 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
7688 tstsi_t_zero_extract_subreg_xor_little,
7689 tstsi_t_zero_extract_subreg_xor_big): New insns.
7690 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
7692 (*andsi_compact): Reorder alternatives so that K08 is considered first.
7694 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
7697 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
7698 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
7700 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
7702 * invoke.texi (AVR Options): Avoid \leq{}.
7704 2011-10-14 Kai Tietz <ktietz@redhat.com>
7706 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
7707 transformation the operands have compatible types.
7709 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7711 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
7712 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
7713 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
7714 mode iterator and any_extend code iterator.
7715 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
7716 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
7717 also for TARGET_SSE4_1 using pmuldq insn.
7718 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
7719 (sse2_sse4_1): New code attr.
7720 (udot_prodv4si): Macroize using any_extend code iterator.
7721 (<s>dot_prodv8si): New expander.
7723 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
7725 * config/i386/i386.c (atom_cost): Changed cost for loading
7726 QImode using movzbl.
7728 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7730 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
7731 change on October 11th, 2011.
7733 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7735 * config/i386/sse.md (vec_interleave_high<mode>,
7736 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
7737 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
7738 (ix86_expand_vec_perm_builtin_1): Call it.
7740 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
7742 Fix thinko from r179765
7743 * config/avr/avr.c (avr_option_override): Don't override
7744 flag_omit_frame_pointer if not actually needed.
7746 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
7749 * doc/invoke.texi (AVR Options): Document -mstrict-X.
7751 * config/avr/avr.opt (-mstrict-X): New option.
7752 (avr_strict_X): New variable reflecting -mstrict-X.
7753 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
7754 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
7755 (avr_legitimate_address_p): Pass outer_code to
7756 avr_reg_ok_for_addr_p and use that function in case PLUS.
7757 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
7758 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
7759 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
7761 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7763 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
7766 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
7767 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
7768 Use <sseinsnmode> instead of TI in mode attr.
7770 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7772 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
7773 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
7774 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
7775 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
7777 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7779 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
7780 (arm_output_strex): Support strexd.
7781 (arm_output_it): New helper to output it in Thumb2 mode only.
7782 (arm_output_sync_loop): Support DI mode. Change comment to
7783 not support const_int.
7784 (arm_expand_sync): Support DI mode.
7785 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
7787 * config/arm/iterators.md (NARROW): move from sync.md.
7788 (QHSD): New iterator for all current ARM integer modes.
7789 (SIDI): New iterator for SI and DI modes only.
7790 * config/arm/sync.md (sync_predtab): New mode_attr.
7791 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
7792 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
7793 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
7794 (sync_nandsi): Fold into sync_nand<mode>.
7795 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
7796 (sync_new_nandsi): Fold into sync_new_nand<mode>.
7797 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
7798 (sync_old_nandsi): Fold into sync_old_nand<mode>.
7799 (sync_compare_and_swap<mode>): Support SI & DI.
7800 (sync_lock_test_and_set<mode>): Likewise.
7801 (sync_<sync_optab><mode>): Likewise.
7802 (sync_nand<mode>): Likewise.
7803 (sync_new_<sync_optab><mode>): Likewise.
7804 (sync_new_nand<mode>): Likewise.
7805 (sync_old_<sync_optab><mode>): Likewise.
7806 (sync_old_nand<mode>): Likewise.
7807 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
7808 (arm_sync_lock_test_and_setsi): Likewise.
7809 (arm_sync_new_<sync_optab>si): Likewise.
7810 (arm_sync_new_nandsi): Likewise.
7811 (arm_sync_old_<sync_optab>si): Likewise.
7812 (arm_sync_old_nandsi): Likewise.
7813 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
7814 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
7815 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
7816 (arm_sync_new_nand<mode> NARROW): Likewise.
7817 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
7818 (arm_sync_old_nand<mode> NARROW): Likewise.
7820 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7823 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
7825 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7827 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
7829 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7831 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
7833 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7835 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
7836 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
7838 2011-10-14 Richard Guenther <rguenther@suse.de>
7840 PR tree-optimization/50723
7841 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
7843 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
7845 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
7848 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7851 * doc/invoke.texi ([Wformat-zero-length]): Update.
7853 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
7856 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
7857 build for powerpc targets. (darwin_patch_builtins): Only build for
7860 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7862 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
7863 (avx_cvtdq2pd256_2): ... this.
7864 (sseunpackfltmode): New mode attr.
7865 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
7866 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
7867 using VI2_AVX2 iterator.
7868 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
7870 2011-10-13 David S. Miller <davem@davemloft.net>
7872 * config/sparc/sparc.md (plusminus): New code iterator.
7873 (plusminus_insn): New code attr.
7874 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
7875 using plusminus and plusminus_insn.
7876 (fpadd64_vis, fpsub64_vis): Likewise.
7878 2011-10-13 Richard Henderson <rth@redhat.com>
7880 * doc/md.texi (vec_perm): Document fallback to byte permutation.
7881 * genopinit.c (optabs): Add vec_perm_const.
7882 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
7883 Reject non-vector modes. Allow fallback to byte permutation.
7884 (expand_vec_perm_expr_1): Split out from ...
7885 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
7886 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
7887 * tree-vect-generic.c (lower_vec_perm): Update for name change.
7889 2011-10-13 Richard Henderson <rth@redhat.com>
7891 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
7893 * config/rs6000/spu.md (vec_permv16qi): New pattern.
7895 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
7896 * config/i386/i386-protos.h: Update.
7897 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
7898 (vec_perm_const<VEC_PERM_CONST>): New expander.
7900 * optabs.c (expand_vector_broadcast): New.
7901 (expand_binop): Expand scalar shifts of vectors to vector shifts
7902 of vectors, if the former isn't supported.
7903 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
7904 here; always simplify to scalar shift of vector if possible.
7906 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
7907 test for vector splat.
7909 2011-10-13 Jakub Jelinek <jakub@redhat.com>
7911 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
7913 2011-10-13 Jakub Jelinek <jakub@redhat.com>
7914 Richard Guenther <rguenther@suse.de>
7916 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
7917 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
7919 2011-10-13 Jakub Jelinek <jakub@redhat.com>
7921 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
7922 * config/i386/i386.c (ix86_build_const_vector): Handle
7923 also V32QI, V16QI, V16HI and V8HI modes.
7924 (emit_reduc_half): New function.
7925 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
7926 Use emit_reduc_half helper function.
7928 2011-10-13 Lawrence Crowl <crowl@google.com>
7929 Diego Novillo <dnovillo@google.com>
7931 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
7932 (input_function): ... here.
7933 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
7934 (output_function): ... here.
7936 2011-10-13 Gabriel Charette <gchare@google.com>
7937 Diego Novillo <dnovillo@google.com>
7939 * streamer-hooks.h (struct streamer_hooks): Add hooks
7940 input_location and output_location.
7941 * lto-streamer-in.c (lto_input_location): Use
7942 streamer_hooks.input_location, if set.
7943 * lto-streamer-out.c (lto_output_location): Use
7944 streamer_hooks.output_location, if set.
7946 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
7948 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
7949 * config/sparc/sparc.opt (mfix-at697f): New option.
7950 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7951 (sparc_reorg): New function.
7953 2011-10-13 Richard Guenther <rguenther@suse.de>
7955 PR tree-optimization/50712
7956 * ipa-split.c (split_function): Always re-gimplify parameters
7957 when they are not gimple vals before passing them. Properly
7958 check for type compatibility.
7960 2011-10-13 Tom de Vries <tom@codesourcery.com>
7962 * function.c (gimplify_parameters): Set number of arguments of call to
7963 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
7965 2011-10-13 Tom de Vries <tom@codesourcery.com>
7967 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
7968 for static const strings.
7969 * varasm.c (build_constant_desc): Generate the memory location of the
7970 constant using gen_const_mem.
7972 2011-10-13 Richard Guenther <rguenther@suse.de>
7974 PR tree-optimization/50698
7975 * tree-data-ref.c (split_constant_offset_1): Also process
7978 2011-10-12 David S. Miller <davem@davemloft.net>
7980 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
7981 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
7983 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
7985 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
7986 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
7987 Reimplement as unspecs and remove inaccurate comments.
7988 (vis3_shift_patname): New code attr.
7989 (<vis3_shift_insn><vbits>_vis): Rename to
7990 "v<vis3_shift_patname><mode>3".
7991 (vis3_addsub_ss_patname): New code attr.
7992 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
7993 "<vis3_addsub_ss_patname><mode>3".
7994 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
7995 accommodate pattern name changes.
7997 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
7998 to zero when assembler lacks support for such instructions.
7999 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
8000 and MASK_FMAF in defaults when assembler lacks necessary support.
8002 2011-10-12 Jakub Jelinek <jakub@redhat.com>
8004 * config/i386/sse.md (vec_unpacks_lo_<mode>,
8005 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
8006 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
8007 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
8008 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
8010 * config/i386/sse.md (vec_avx2): New mode_attr.
8011 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
8012 (mul<mode>3): ... this.
8014 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
8015 * config/i386/i386.c (ix86_expand_vec_perm): Handle
8016 V16QImode and V32QImode for TARGET_AVX2.
8017 (MAX_VECT_LEN): Increase to 32.
8018 (expand_vec_perm_blend): Add support for 32-byte integer
8019 vectors with TARGET_AVX2.
8020 (valid_perm_using_mode_p): New function.
8021 (expand_vec_perm_pshufb): Add support for 32-byte integer
8022 vectors with TARGET_AVX2.
8023 (expand_vec_perm_vpshufb2_vpermq): New function.
8024 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
8025 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
8027 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
8028 and expand_vec_perm_vpshufb2_vpermq_even_odd.
8029 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
8030 32-byte integer vector modes.
8031 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
8032 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
8033 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
8035 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
8036 match_dup, instead add 4 new operands and require they have
8037 right cross-lane values.
8038 (avx2_permv4di): Change into define_expand.
8039 (avx2_permv4di_1): New instruction.
8040 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
8041 for "xm" constrained operand.
8042 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
8044 * config/i386/sse.md (avx2_gathersi<mode>,
8045 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
8046 match_scratch, change memory_operand to register_operand,
8047 add (mem:BLK (scratch)) use.
8048 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
8049 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
8050 add earlyclobber to the output operand and match_scratch,
8051 add (mem:BLK (scratch)) use, change the other mem to match_operand.
8052 Use %p6 instead of %c6 in the pattern.
8053 * config/i386/i386.c (ix86_expand_builtin): Adjust for
8054 operand 2 being a Pmode register_operand instead of memory_operand.
8056 2011-10-12 Kai Tietz <ktietz@redhat.com>
8058 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
8060 2011-10-12 Steve Ellcey <sje@cup.hp.com>
8062 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
8064 2011-10-12 Richard Guenther <rguenther@suse.de>
8066 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
8067 of the first store we visit in a basic-block.
8068 (get_continuation_for_phi): Search for a candidate VUSE that
8069 might dominates all others. Do pairwise disambiguation against
8072 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
8074 PR tree-optimization/50189
8075 * tree-vrp.c (extract_range_from_assert): Use the type of
8076 the variable, not the limit.
8078 2011-10-12 Richard Guenther <rguenther@suse.de>
8080 PR tree-optimization/50700
8081 * tree-object-size.c (addr_object_size): Simplify and treat
8082 MEM_REF bases consistently.
8084 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
8086 * function.c (prepare_shrink_wrap, bb_active_p): New function.
8087 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
8088 prepare_shrink_wrap, then recompute bb_active_p for the last block.
8090 2011-10-12 Joseph Myers <joseph@codesourcery.com>
8093 * convert.c (convert_to_integer): Do not narrow operands of
8094 pointer subtraction.
8096 2011-10-12 Nick Clifton <nickc@redhat.com>
8098 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
8099 emit a .eabi_attribute assembler directive, possibly with a
8101 * config/arm/arm.c (arm_file_start): Use the new macro.
8102 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
8104 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
8107 * config/avr/avr.md (*movqi): Rename to movqi_insn.
8108 (*call_insn): Rename to call_insn.
8109 (*call_value_insn): Rename to call_value_insn.
8110 * config/avr/avr.c (avr_2word_insn_p): New static function.
8111 (jump_over_one_insn_p): Use it.
8113 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
8115 * expr.h (copy_blkmode_to_reg): Declare.
8116 * expr.c (copy_blkmode_to_reg): New function.
8117 (expand_assignment): Don't expand register RESULT_DECLs before
8118 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
8119 RESULT_DECL register.
8120 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
8121 * stmt.c (expand_return): Move BLKmode-to-register code into
8122 copy_blkmode_to_reg.
8124 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
8127 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
8128 (mov<F:mode>cc): Likewise.
8130 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8132 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
8134 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8136 * tree.h (built_in_decls): Delete old interface with two parallel
8137 arrays to hold standard builtin declarations, and replace it with
8138 a function based interface that can support creating builtins on
8139 the fly in the future. Change all uses, and poison the old
8140 names. Make sure 0 is not a legitimate builtin index.
8141 (implicit_built_in_decls): Ditto.
8142 (built_in_info): Ditto.
8143 (BUILTIN_VALID_P): Ditto.
8144 (builtin_decl_explicit): Ditto.
8145 (builtin_decl_implicit): Ditto.
8146 (set_builtin_decl): Ditto.
8147 (set_builtin_decl_implicit_p): Ditto.
8148 (builtin_decl_explicit_p): Ditto.
8149 (builtin_decl_implicit_p): Ditto.
8150 * tree-complex.c (expand_complex_libcall): Ditto.
8151 * tree-loop-distribution.c (generate_memset_zero): Ditto.
8152 * tree-ssa-strlen.c (get_string_length): Ditto.
8153 (handle_builtin_strcpy): Ditto.
8154 (handle_builtin_strcat): Ditto.
8155 * tree.c (iterative_hash_expr): Ditto.
8156 (local_define_builtin): Ditto.
8157 (build_common_builtin_nodes): Ditto.
8158 * builtins.c (built_in_decls): Ditto.
8159 (implicit_built_in_decls): Ditto.
8160 (built_in_info): Ditto
8161 (expand_builtin_classify_type): Ditto.
8162 (mathfn_built_in_1): Ditto.
8163 (expand_builtin_cexpi): Ditto.
8164 (expand_builtin_mempcpy_args): Ditto.
8165 (expand_builtin_stpcpy): Ditto.
8166 (gimplify_va_arg_expr): Ditto.
8167 (expand_builtin_sync_operation): Ditto.
8168 (build_builtin_expect_predicate): Ditto.
8169 (fold_builtin_memory_op): Ditto.
8170 (fold_builtin_strcpy): Ditto.
8171 (fold_builtin_stpcpy): Ditto.
8172 (fold_builtin_strncpy): Ditto.
8173 (fold_builtin_interclass_mathfn): Ditto.
8174 (fold_builtin_classify): Ditto.
8175 (fold_builtin_2): Ditto.
8176 (fold_builtin_strstr): Ditto.
8177 (fold_builtin_strrchr): Ditto.
8178 (fold_builtin_strpbrk): Ditto.
8179 (fold_builtin_strcat): Ditto.
8180 (fold_builtin_strncat): Ditto.
8181 (fold_builtin_strcspn): Ditto.
8182 (fold_builtin_fputs): Ditto.
8183 (fold_builtin_sprintf): Ditto.
8184 (fold_builtin_snprintf): Ditto.
8185 (expand_builtin_memory_chk): Ditto.
8186 (fold_builtin_memory_chk): Ditto.
8187 (fold_builtin_stxcpy_chk): Ditto.
8188 (fold_builtin_strncpy_chk): Ditto.
8189 (fold_builtin_strcat_chk): Ditto.
8190 (fold_builtin_strncat_chk): Ditto.
8191 (fold_builtin_sprintf_chk_1): Ditto.
8192 (fold_builtin_snprintf_chk_1): Ditto.
8193 (fold_builtin_printf): Ditto.
8194 (fold_builtin_fprintf): Ditto.
8195 (fold_call_stmt): Ditto.
8196 (set_builtin_user_assembler_name): Ditto.
8197 * tree-emutls.c (emutls_common_1): Ditto.
8198 * omp-low.c (scan_omp): Ditto.
8199 (lower_rec_input_clauses): Ditto.
8200 (lower_reduction_clauses): Ditto.
8201 (expand_parallel_call): Ditto.
8202 (expand_task_call): Ditto.
8203 (maybe_catch_exception): Ditto.
8204 (optimize_omp_library_calls): Ditto.
8205 (expand_omp_for_generic): Ditto.
8206 (expand_omp_for_static_nochunk): Ditto.
8207 (expand_omp_for_static_chunk): Ditto.
8208 (expand_omp_sections): Ditto.
8209 (expand_omp_atomic_fetch_op): Ditto.
8210 (expand_omp_atomic_pipeline): Ditto.
8211 (expand_omp_atomic_mutex): Ditto.
8212 (lower_omp_single_simple): Ditto.
8213 (lower_omp_single_copy): Ditto.
8214 (lower_omp_master): Ditto.
8215 (lower_omp_ordered): Ditto.
8216 (lower_omp_critical): Ditto.
8217 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
8218 * builtins.c (DEF_BUILTIN_STUB): Ditto.
8219 (BUILT_IN_NONE): Ditto.
8220 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
8221 * gimple-low.c (lower_function_body): Ditto.
8222 (lower_builtin_setjmp): Ditto.
8223 * c-decl.c (merge_decls): Ditto.
8224 * tree-eh.c (lower_resx): Ditto.
8225 (lower_resx): Ditto.
8226 (lower_eh_dispatch): Ditto.
8227 * function (gimplify_parameters): Ditto.
8228 * c-typeck.c (build_function_call_vec): Ditto.
8229 * gimplify.c (build_stack_save_restore): Ditto.
8230 (gimplify_vla_decl): Ditto.
8231 (gimplify_modify_expr_to_memcpy): Ditto.
8232 (gimplify_modify_expr_to_memset): Ditto.
8233 (gimplify_variable_sized_compare): Ditto.
8234 (gimplify_function_tree): Ditto.
8235 * calls.c (emit_call_1): Ditto.
8236 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
8237 * tree-nested.c (convert_nl_goto_reference): Ditto.
8238 (convert_tramp_reference_op): Ditto.
8239 (finalize_nesting_tree_1): Ditto.
8240 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8241 (tree_ssa_prefetch_arrays): Ditto.
8242 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
8243 * system.h (built_in_decls): Ditto.
8244 (implicit_built_in_decls): Ditto.
8245 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8246 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
8247 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
8248 (ix86_veclibabi_svml): Ditto.
8249 (ix86_veclibabi_acml): Ditto.
8250 * config/vms/vms.c (vms_patch_builtins): Ditto.
8251 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
8252 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
8253 (rs6000_builtin_vectorized_libmass): Ditto.
8254 (rs6000_init_builtins): Ditto.
8255 * config/darwin.c (darwin_override_options): Ditto.
8256 (darwin_patch_builtin): Ditto.
8257 (darwin_rename_builtins): Ditto.
8258 * config/pa/pa.c (pa_init_builtins): Ditto.
8260 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8262 * tree.h (copy_ref_info): Expose existing function.
8263 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
8264 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
8266 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
8268 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
8270 (avr_regno_mode_code_ok_for_base_p): New prototype.
8271 * config/avr/avr.h (BASE_REG_CLASS): Remove.
8272 (REGNO_OK_FOR_BASE_P): Remove.
8273 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
8274 (REG_OK_FOR_BASE_STRICT_P): Remove.
8275 (MODE_CODE_BASE_REG_CLASS): New define.
8276 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
8277 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
8278 (avr_regno_mode_code_ok_for_base_p): New function.
8279 (avr_reg_ok_for_addr_p): New static function.
8280 (avr_legitimate_address_p): Use it. Beautify.
8282 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
8285 * config/avr/avr.md (cc): Add out_plus attribute alternative.
8286 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
8287 avr_out_plus for all CONST_INT addends.
8288 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
8289 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
8291 (avr_out_plus_1): Change prototype and report effect on cc0.
8292 (avr_out_plus): Ditto.
8293 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
8295 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
8297 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
8300 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
8302 * doc/invoke.texi: Document new warning.
8303 * common.opt (Wvector-operation-performance): Define new warning.
8304 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
8306 (exapnd_vector_parallel): Warn about expanded vector operation.
8307 (lower_vec_shuffle): Warn about expanded vector operation.
8308 * c-typeck.c (c_build_vec_perm_expr): Store correct location
8309 when creating VEC_PERM_EXPR.
8311 2011-10-11 Richard Guenther <rguenther@suse.de>
8313 PR tree-optimization/50204
8314 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
8315 two argument handling from ...
8316 (get_continuation_for_phi): ... here. Handle arbitrary number
8319 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
8321 * modulo-sched.c: Fix comment typo. Mention the possibility
8322 of using scheduling windows of II+1 cycles.
8324 2011-10-11 Tristan Gingold <gingold@adacore.com>
8326 * doc/invoke.texi (C Dialect Options): Document
8327 -fallow-parameterless-variadic-functions.
8328 * c-parser.c (c_parser_parms_list_declarator): Handle it.
8330 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8332 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
8333 to 0 if frame pointer is needed for unwinding.
8335 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
8338 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
8339 optab_index to enum direct_optab_index.
8340 (vec_perm_optab): Update.
8342 2011-10-10 Anatoly Sokolov <aesok@post.ru>
8344 * config/cris/cris.c (cris_preferred_reload_class): New function.
8345 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8346 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
8348 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8350 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
8352 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
8353 (*tablejump_enh, *tablejump): Remove insns.
8354 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
8355 EIJMP for indirect jump. Use LPM Z+ where available.
8357 2011-10-10 Richard Henderson <rth@redhat.com>
8359 * doc/md.texi (vec_perm_const): Fix typo in cindex.
8361 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
8362 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
8364 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
8366 2011-10-10 Richard Guenther <rguenther@suse.de>
8369 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
8370 mark symbols for renaming. Append the VUSE to all statements
8371 that possibly can have one.
8373 2011-10-10 Richard Guenther <rguenther@suse.de>
8375 * ipa-split.c (pass_split_functions): Add verification TODOs.
8376 (pass_feedback_split_functions): Likewise.
8378 2011-10-10 Richard Guenther <rguenther@suse.de>
8381 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
8382 only when optimizing.
8384 2011-10-10 Nick Clifton <nickc@redhat.com>
8387 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
8388 df_get_live_out instead of accessing the bitmaps directly.
8389 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
8390 df_live_add_problem and df_analyze.
8392 2011-10-10 Michael Matz <matz@suse.de>
8395 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
8397 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8399 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
8400 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
8401 (node_sched_params): Remove first_reg_move and nreg_moves.
8402 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
8403 (update_node_sched_params): Move up file.
8404 (print_node_sched_params): Print the stage. Don't dump info related
8405 to first_reg_move and nreg_moves.
8406 (set_columns_for_row): New function.
8407 (set_columns_for_ps): Move up file and use set_columns_for_row.
8408 (schedule_reg_move): New function.
8409 (schedule_reg_moves): Call extend_node_sched_params and
8410 schedule_reg_move. Extend size of uses bitmap. Initialize
8411 num_consecutive_stages. Return false if a move could not be
8413 (apply_reg_moves): Don't emit moves here.
8414 (permute_partial_schedule): Handle register moves.
8415 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
8416 to the same stage-count test as ddg nodes.
8417 (generate_prolog_epilog): Update calls accordingly.
8418 (sms_schedule): Allow move-scheduling to add a new first stage.
8420 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8422 * modulo-sched.c (ps_insn): Adjust comment.
8423 (ps_reg_move_info): New structure.
8424 (partial_schedule): Add reg_moves field.
8425 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
8426 (node_sched_params): Turn first_reg_move into an identifier.
8427 (ps_reg_move): New function.
8428 (ps_rtl_insn): Cope with register moves.
8429 (ps_first_note): Adjust comment and assert that the instruction
8430 isn't a register move.
8431 (node_sched_params): Replace with...
8432 (node_sched_param_vec): ...this vector.
8433 (set_node_sched_params): Adjust accordingly.
8434 (print_node_sched_params): Take a partial schedule instead of a ddg.
8435 Use ps_rtl_insn and ps_reg_move.
8436 (generate_reg_moves): Rename to...
8437 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
8438 move in the partial schedule, but don't emit it here. Don't perform
8439 register substitutions here either.
8440 (apply_reg_moves): New function.
8441 (duplicate_insns_of_cycles): Use register indices directly,
8442 rather than finding instructions using PREV_INSN. Use ps_reg_move.
8443 (sms_schedule): Call schedule_reg_moves before committing to
8444 a partial schedule. Try the next ii if the schedule fails.
8445 Use apply_reg_moves instead of generate_reg_moves. Adjust
8446 call to print_node_sched_params. Free node_sched_param_vec
8447 instead of node_sched_params.
8448 (create_partial_schedule): Initialize reg_moves.
8449 (free_partial_schedule): Free reg_moves.
8451 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8453 * modulo-sched.c (ps_insn): Replace node field with an identifier.
8454 (SCHED_ASAP): Replace with..
8455 (NODE_ASAP): ...this macro.
8456 (SCHED_PARAMS): New macro.
8457 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
8458 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
8459 (node_sched_params): Remove asap.
8460 (ps_rtl_insn, ps_first_note): New functions.
8461 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
8463 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
8464 (generate_reg_moves): Pass ids to the SCHED_* macros.
8465 (update_node_sched_params): Take a ps insn identifier rather than
8466 a node as parameter. Use ps_rtl_insn.
8467 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
8468 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
8469 (optimize_sc): Update for above field and SCHED_* macro changes.
8470 Update calls to try_scheduling_node_in_cycle and
8471 update_node_sched_params.
8472 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
8473 macro changes. Use ps_rtl_insn and ps_first_note.
8474 (sms_schedule): Pass ids to the SCHED_* macros.
8475 (get_sched_window): Adjust for above field and SCHED_* macro changes.
8476 Use NODE_ASAP instead of SCHED_ASAP.
8477 (try_scheduling_node_in_cycle): Remove node parameter. Update
8478 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
8479 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
8480 (ps_insert_empty_row): Adjust for above field changes.
8481 (compute_split_row): Use ids rather than nodes.
8482 (verify_partial_schedule): Adjust for above field changes.
8483 (print_partial_schedule): Use ps_rtl_insn.
8484 (create_ps_insn): Take an id rather than a node.
8485 (ps_insn_find_column): Adjust for above field changes.
8487 (ps_insn_advance_column): Adjust for above field changes.
8488 (add_node_to_ps): Remove node parameter. Update call to
8490 (ps_has_conflicts): Use ps_rtl_insn.
8491 (ps_add_node_check_conflicts): Replace node parameter than an id.
8493 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8495 * modulo-sched.c (undo_replace_buff_elem): Delete.
8496 (generate_reg_moves): Don't build and return an undo list.
8497 (free_undo_replace_buff): Delete.
8498 (sms_schedule): Adjust call to generate_reg_moves.
8499 Don't call free_undo_replace_buff.
8501 2011-10-10 Matthias Klose <doko@ubuntu.com>
8503 * common/config/m32c: Remove empty directory.
8505 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8507 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
8509 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8512 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
8513 atmega164a to 0x100.
8515 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
8517 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
8518 the replacement if the conversion to the LHS type is not useless.
8520 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
8522 PR tree-optimization/50635
8523 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
8524 DEF_STMT to the list of statements to be replaced by the
8526 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
8528 2011-10-09 Anatoly Sokolov <aesok@post.ru>
8530 * system.h: Commit forgotten hunk in previous patch.
8531 (OUTPUT_ADDR_CONST_EXTRA): Poison.
8533 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
8536 * doc/objc.texi (Garbage Collection): Updated example to protect
8537 +initialize against execution in subclasses.
8539 2011-10-07 Richard Henderson <rth@redhat.com>
8541 * doc/extend.texi (__builtin_shuffle): Improve the description to
8542 include the modulus of the selector. Mention OpenCL.
8543 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
8545 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
8546 * genopinit.c (optabs): Rename vshuffle to vec_perm.
8547 * c-typeck.c (c_build_vec_perm_expr): Rename from
8548 c_build_vec_shuffle_expr. Update for name changes.
8549 * optabs.c (expand_vec_perm_expr_p): Rename from
8550 expand_vec_shuffle_expr_p.
8551 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
8552 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
8553 (vec_perm_optab): Rename from vshuffle_optab.
8554 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
8555 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
8556 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
8558 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
8559 ix86_expand_vshuffle.
8560 * config/i386/i386-protos.h: Update.
8561 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
8562 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
8564 2011-10-07 Richard Henderson <rth@redhat.com>
8566 * config/i386/predicates.md (avx2_pblendw_operand): New.
8567 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
8568 (avx2_pblendw, *avx2_pblendw): New expander and insn.
8570 2011-10-07 Richard Henderson <rth@redhat.com>
8572 * config/i386/i386.c (bdesc_args): Update code for
8573 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
8574 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
8575 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
8576 * config/i386/sse.md (mode iterator V16): Add V2TI.
8577 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
8578 (mode attr ssse3_avx2): Add V2TI.
8579 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
8581 2011-10-07 David S. Miller <davem@davemloft.net>
8584 * configure.ac: Add .register directives to VIS3 test.
8585 * configure: Regenerate.
8587 2011-10-07 Richard Henderson <rth@redhat.com>
8589 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
8591 2011-10-07 Richard Henderson <rth@redhat.com>
8594 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
8596 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
8598 * config/arm/predicates.md (shift_amount_operand): Remove constant
8600 (shift_operator): Check range of constants for all shift operators.
8602 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8604 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
8605 Load GOT pointer for non-pic builds.
8606 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
8607 (s390_emit_call): Likewise.
8609 2011-10-07 Tom de Vries <tom@codesourcery.com>
8612 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
8613 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
8615 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
8616 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
8617 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8618 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8619 * tree-ssa-ccp.c (evaluate_stmt): Set align for
8620 BUILT_IN_ALLOCA_WITH_ALIGN.
8621 (fold_builtin_alloca_for_var): Rename to ...
8622 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
8623 BUILT_IN_ALLOCA_WITH_ALIGN argument.
8624 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
8625 fold_builtin_alloca_with_align.
8626 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8627 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
8629 * ipa-pure-const.c (special_builtin_state): Handle
8630 BUILT_IN_ALLOCA_WITH_ALIGN.
8631 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
8632 (call_may_clobber_ref_p_1): Same.
8633 * function.c (gimplify_parameters): Lower vla to
8634 BUILT_IN_ALLOCA_WITH_ALIGN.
8635 * gimplify.c (gimplify_vla_decl): Same.
8636 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8637 * tree-mudflap.c (mf_xform_statements): Same.
8638 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
8639 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
8640 * varasm.c (incorporeal_function_p): Same.
8641 * tree-object-size.c (alloc_object_size): Same.
8642 * gimple.c (gimple_build_call_from_tree): Same.
8644 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
8646 * function.c (frame_required_for_rtx): Remove function.
8647 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
8648 changed. Compute a set of mentioned registers and compare against
8649 the new arg rather than calling frame_required_for_rtx.
8650 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
8651 reg set. Convert the unconverted_simple_returns mechanism to store
8652 jump insns rather than their basic blocks. Also check the
8653 orig_entry_edge destination for new blocks.
8655 2011-10-07 Jakub Jelinek <jakub@redhat.com>
8657 PR tree-optimization/50650
8658 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
8659 call vect_is_simple_cond here, instead fail if cond_expr isn't
8660 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
8661 for cond_expr's first operand.
8662 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
8663 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
8665 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8667 * config/s390/s390.md (DWH, dwh): New mode macros.
8668 ("umulsidi3"): Extend to support "umulditi3" as well.
8670 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
8671 H.J. Lu <hongjiu.lu@intel.com>
8674 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
8675 integer PLUS RTX to a register to improve address combine.
8677 2011-10-06 Richard Henderson <rth@redhat.com>
8679 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
8680 parameter; use it to decide whether to merge two notes.
8681 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
8682 for the deallocation case as well.
8684 2011-10-06 Anatoly Sokolov <aesok@post.ru>
8686 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
8687 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
8688 * doc/tm.texi: Regenerate.
8689 * target.def (output_addr_const_extra): Use
8690 hook_bool_FILEptr_rtx_false.
8691 * targhooks.c (default_asm_output_addr_const_extra): Remove.
8692 * targhooks.h (default_asm_output_addr_const_extra): Remove.
8693 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
8694 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
8696 2011-10-06 David S. Miller <davem@davemloft.net>
8698 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
8699 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
8700 SI mode 64-bit code gen case explicitly zero-extend and truncate.
8701 (*popcount<mode>_sp64): Split up into...
8702 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
8703 SImode case use truncate.
8704 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
8705 subtract so the compiler can optimize it.
8706 (SIDI): Remove unused mode iterator.
8708 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
8710 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
8711 on the orig_entry_edge. Don't account for it in prologue_clobbered.
8713 2011-10-06 Jakub Jelinek <jakub@redhat.com>
8715 PR tree-optimization/50596
8716 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
8717 (NUM_PATTERNS): Change to 6.
8718 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
8720 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
8721 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
8722 if it already has one, and don't set STMT_VINFO_VECTYPE in it
8723 if it is already set.
8724 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
8725 COND_EXPR in pattern stmts.
8726 (vect_is_simple_cond): No longer static.
8728 2001-10-06 Richard Henderson <rth@redhat.com>
8730 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
8731 * config/i386/sse.md (sseshuffint): Remove.
8732 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
8733 (VSHUFFLE_AVX2): New mode iterator.
8734 (vshuffle<mode>): Use it.
8735 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
8737 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
8738 for vector_all_ones_operand.
8739 (ix86_expand_int_vcond): Distinguish between comparison mode
8740 and data mode. Allow them to differ.
8741 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
8743 2001-10-06 Richard Henderson <rth@redhat.com>
8745 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
8746 mask operand. Tidy the code.
8748 2011-10-06 Jakub Jelinek <jakub@redhat.com>
8750 * tree-vect-patterns.c (vect_pattern_recog_1): Use
8751 vect_recog_func_ptr typedef for the first argument.
8752 (vect_pattern_recog): Rename vect_recog_func_ptr variable
8753 to vect_recog_func, use vect_recog_func_ptr typedef for it.
8755 PR tree-optimization/49279
8756 * tree-ssa-structalias.c (find_func_aliases): Don't handle
8758 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
8759 restrict propagation.
8760 * tree-ssa.c (useless_type_conversion_p): Don't return false
8761 if TYPE_RESTRICT differs.
8763 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
8765 * function.c (thread_prologue_and_epilogue_insns): Build a vector
8766 of unconverted simple return blocks rather than trying to
8767 recompute them later based on bb_flags bitmap tests.
8769 2011-10-06 Michael Matz <matz@suse.de>
8771 * tree-flow.h (get_var_ann): Don't declare.
8772 * tree-flow-inline.h (get_var_ann): Remove.
8773 (set_is_used): Use var_ann, not get_var_ann.
8774 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
8775 * tree-profile.c (gimple_gen_edge_profiler): Call
8776 find_referenced_var_in.
8777 (gimple_gen_interval_profiler): Ditto.
8778 (gimple_gen_pow2_profiler): Ditto.
8779 (gimple_gen_one_value_profiler): Ditto.
8780 (gimple_gen_average_profiler): Ditto.
8781 (gimple_gen_ior_profiler): Ditto.
8782 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
8783 (gimple_gen_ic_func_profiler): Call add_referenced_var.
8784 * tree-mudflap.c (execute_mudflap_function_ops): Call
8787 2011-10-06 Jakub Jelinek <jakub@redhat.com>
8789 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
8790 don't set SSA_NAME_DEF_STMT that has been already set by
8791 gimple_build_assign_with_ops.
8792 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
8793 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
8796 * tree.h (avoid_folding_inline_builtin): New prototype.
8797 * builtins.c (avoid_folding_inline_builtin): No longer static.
8798 * gimple-fold.c (gimple_fold_builtin): Give up if
8799 avoid_folding_inline_builtin returns true.
8801 2011-10-06 Richard Guenther <rguenther@suse.de>
8803 * tree-vect-generic.c (vector_element): Look at previous
8806 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
8809 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
8810 __powerpc__, __PPC__, __unix__.
8812 2011-10-06 Michael Matz <matz@suse.de>
8814 * i386/i386.opt (recip_mask, recip_mask_explicit,
8815 x_recip_mask_explicit): New variables and cl_target member.
8816 (mrecip=): New option.
8817 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
8818 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
8819 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
8820 TARGET_RECIP_VEC_SQRT): New tests.
8821 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
8822 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
8823 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
8824 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
8825 * i386/i386.c (ix86_option_override_internal): Set recip_mask
8826 for -mrecip and -mrecip=options.
8827 (ix86_function_specific_save): Save recip_mask_explicit.
8828 (ix86_function_specific_restore): Restore recip_mask_explicit.
8830 * doc/invoke.texi (ix86 Options): Document the new option.
8832 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
8835 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
8837 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
8840 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
8841 output of a previous pass through legitimize_reload_address.
8842 Do not attempt to optimize addresses if the base register is
8843 equivalent to a constant.
8845 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8847 * function.c (thread_prologue_and_epilogue_insns): Mark
8848 last_bb_active as possibly unused. It is unused for targets which
8849 do neither have "return" nor "simple_return" expanders.
8851 2011-10-06 Richard Guenther <rguenther@suse.de>
8853 * fold-const.c (fold_ternary_loc): Also fold non-constant
8854 vector CONSTRUCTORs. Make more efficient.
8855 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
8856 (cprop_into_stmt): Don't propagate into virtual operands.
8857 (optimize_stmt): Really dump original statement.
8859 2011-10-06 Nick Clifton <nickc@redhat.com>
8861 * config/rx/rx.md (smin3): Revert previous delta.
8863 2011-10-06 Richard Guenther <rguenther@suse.de>
8865 PR tree-optimization/38884
8866 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
8867 reads from aggregate SSA names.
8869 2011-10-05 Jakub Jelinek <jakub@redhat.com>
8871 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
8872 argument, truncate it at the beginning instead of allocating there
8873 and freeing at the end.
8874 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
8875 pass its address to vect_pattern_recog_1.
8877 2011-10-05 David S. Miller <davem@davemloft.net>
8879 * config/sparc/sparc.opt (POPC): New option.
8880 * doc/invoke.texi: Document it.
8881 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
8882 default on Niagara-2 and later.
8883 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8884 * config/sparc/sparc.md (SIDI): New mode iterator.
8885 (ffsdi2): Delete commented out pattern and comments.
8886 (popcount<mode>2, clz<mode>2): New expanders.
8887 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
8888 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
8890 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
8893 * c-tree.h (c_expr_t): New typedef for struct c_expr.
8894 (C_EXPR_APPEND): New macro.
8895 * c-parser.c (c_parser_get_builtin_args): Preserve
8896 original_tree_code of c_expr structure.
8897 (c_parser_postfix_expression): Adjust to the new function.
8899 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
8901 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
8902 if profiling after the prologue.
8904 2011-10-05 Jakub Jelinek <jakub@redhat.com>
8906 PR tree-optimization/50613
8907 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
8908 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
8909 and if it is neither that not SSA_NAME, give up.
8911 2011-10-05 Richard Henderson <rth@redhat.com>
8913 * tree-vect-generic.c (vector_element): Never fail. Use
8914 build_zero_cst. Tidy up type references.
8915 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
8916 code duplication. Do update_stmt here ...
8917 (expand_vector_operations_1): ... not here.
8919 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
8920 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
8921 duplication. Handle V2DI without SSE4.1.
8922 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
8923 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
8925 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
8927 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
8928 of "found". Simplify return value calculation.
8929 (distance_agu_use): Ditto.
8931 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
8934 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
8935 if the function was not shrink-wrapped.
8936 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
8938 * function.c (thread_prologue_and_epilogue_insns): Make sure the
8939 shrink_wrapped flag is set even if there is no dump file.
8941 2011-10-05 DJ Delorie <dj@redhat.com>
8942 Nick Clifton <nickc@redhat.com>
8944 * config/rx/rx.opt (mpid): Define.
8945 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
8946 (MULTILIB_DIRNAMES): Add pid.
8947 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
8948 (rx_num_interrupt_regs): New variable.
8949 (rx_gp_base_regnum): New function. Returns the number of the
8950 small data area register.
8951 (rx_pid_base_regnum): New function. Returns the number of the pid
8953 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
8954 (rx_pid_data_operand): New function. Returns whether an object is
8955 in the position independent data area.
8956 (rx_legitimize_address): New function. Puts undecided PID
8957 objects in the PID data area.
8958 (rx_is_legitimate_address): Add support for PID operands.
8959 (rx_print_operand_address): Likewise.
8960 (rx_print_operand): Likewise.
8961 (rx_maybe_pidify_operand): New function. Determine if an operand
8962 is suitable for PID addressing.
8963 (rx_gen_move_template): Add PID support.
8964 (rx_conditional_register_usage): Likewise.
8965 (rx_option_override): Initialise rx_num_interrupt_regs.
8966 (rx_is_legitimate_constant): Add support for PID constants.
8967 (TARGET_LEGITIMIZE_ADDRESS): Define.
8968 * config/rx/constraints.md (Rpid): Define.
8970 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
8971 (tablejump): Add PID support.
8973 (mov<>_internal): Likewise.
8974 (addsi3): Convert to an expander. Add PID support.
8975 (pid_addr): New pattern.
8976 * config/rx/rx.h (CPP_SPEC): Define.
8977 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
8978 (CASE_VECTOR_PC_RELATIVE): Define.
8979 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
8980 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
8981 * doc/invoke.texi (RX Options): Document -mpid command line option.
8983 2011-10-05 Richard Guenther <rguenther@suse.de>
8985 PR tree-optimization/38885
8986 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
8989 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
8991 * doc/invoke.texi (-fshrink-wrap): Document.
8992 * opts.c (default_options_table): Add it.
8993 * common.opt (fshrink-wrap): Add.
8994 * function.c (emit_return_into_block): Remove useless declaration.
8995 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
8996 requires_stack_frame_p, gen_return_pattern): New static functions.
8997 (emit_return_into_block): New arg simple_p. All callers changed.
8998 Use gen_return_pattern.
8999 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
9000 * config/i386/i386.md (return): Expand into a simple_return.
9001 (simple_return): New expander):
9002 (simple_return_internal, simple_return_internal_long,
9003 simple_return_pop_internal_long, simple_return_indirect_internal):
9004 Renamed from return_internal, return_internal_long,
9005 return_pop_internal_long and return_indirect_internal; changed to use
9007 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
9009 (ix86_pad_returns): Likewise.
9010 * function.h (struct rtl_data): Add member shrink_wrapped.
9011 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
9012 are not jumps or sibcalls can't be compared.
9014 2011-10-05 Richard Guenther <rguenther@suse.de>
9016 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
9018 (simplify_unary_expression): Handle BIT_FIELD_REFs.
9019 (try_to_simplify): Handle BIT_FIELD_REFs.
9021 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
9023 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
9024 * config/avr/avr.c (avr_out_addto_sp): New function.
9025 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
9026 * config/avr/avr.md (adjust_len): Add "addto_sp".
9027 (*movhi_sp): Remove insn.
9028 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
9030 2011-10-05 Richard Guenther <rguenther@suse.de>
9032 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
9033 with an embedded expression valueize and fold that as well.
9034 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
9035 results from gimple_fold_stmt_to_constant_1.
9037 2011-10-05 Nick Clifton <nickc@redhat.com>
9039 * config/rx/rx.md (tablejump): Add missing label.
9040 (adddi3_internal): Mark operand 0 as early-clobbered.
9041 (smaxsi3): Revert previous delta.
9042 (adc_internal): Fix whitespace in generated asm.
9043 (adc_flags): Likewise.
9045 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9047 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
9048 with the new widening_optab_handler.
9050 2011-10-05 Richard Guenther <rguenther@suse.de>
9052 PR tree-optimization/50609
9053 * gimple-fold.c (fold_array_ctor_reference): Also handle
9054 vector typed constructors.
9055 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
9056 for vector typed constructors.
9058 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
9060 * config/i386/i386.c (ix86_emit_binop): New static function.
9061 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
9063 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
9065 2011-10-04 David S. Miller <davem@davemloft.net>
9067 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
9068 UNSPEC_XMUL): New unspecs.
9069 (muldi3_v8plus): Use output_v8plus_mult.
9070 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
9071 New VIS 3.0 combiner patterns.
9072 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
9073 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
9074 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
9075 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
9077 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
9078 (output_v8plus_mult): New function.
9079 * config/sparc/sparc-protos.h: Declare it.
9080 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
9081 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
9082 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
9083 * doc/extend.texi: Document new builtins.
9085 2011-10-04 Richard Henderson <rth@redhat.com>
9087 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
9088 Avoid save_expr unless two_arguments.
9090 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
9092 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
9093 * config/i386/mingw32.h (CPP_SPEC): Likewise.
9095 2011-10-04 David S. Miller <davem@davemloft.net>
9097 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
9100 2011-10-04 Jakub Jelinek <jakub@redhat.com>
9102 PR tree-optimization/50604
9103 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
9104 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
9105 last argument to memcpy has size_type_node type instead of ssizetype.
9106 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
9107 instead of TREE_TYPE (len) as type for newlen.
9109 PR tree-optimization/50522
9110 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
9112 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
9115 * fold-const.c (fold_unary_loc): Don't optimize
9116 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
9117 casting the inner pointer if it isn't TYPE_RESTRICT.
9118 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
9119 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
9121 2011-10-04 Joseph Myers <joseph@codesourcery.com>
9123 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
9125 2011-10-04 Jan Hubicka <jh@suse.cz>
9127 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
9128 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
9129 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
9130 * lto-cgraph.c (order_base): New static var.
9131 (lto_output_node): Stream in order.
9132 (lto_output_varpool_node): Stream out order.
9133 (input_node): Stream in order.
9134 (input_varpool_node): Stream out order.
9135 (input_cgraph_1): Initialize order base; update call of
9136 lto_input_toplevel_asms.
9138 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
9141 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
9143 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
9145 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
9146 function. Log if avr_log.legitimize_reload_address.
9148 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
9150 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
9152 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9154 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
9155 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
9157 2011-10-03 David S. Miller <davem@davemloft.net>
9159 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
9160 GSR_REG an input operand to UNSPEC instead of a parallel USE.
9161 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
9162 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
9163 Reference GSR_REG in DI mode, simplify convoluted expressions by using
9165 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
9167 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
9169 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
9171 2011-10-03 Jakub Jelinek <jakub@redhat.com>
9172 Ian Lance Taylor <iant@google.com>
9174 * godump.c (go_output_typedef): Support printing enum values that
9175 don't fit in a signed HOST_WIDE_INT.
9177 2011-10-03 Anatoly Sokolov <aesok@post.ru>
9179 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
9180 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9181 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9182 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
9184 2011-10-03 Anatoly Sokolov <aesok@post.ru>
9186 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
9187 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9188 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9189 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
9191 2011-10-03 Steve Ellcey <sje@cup.hp.com>
9194 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
9195 (gcc_cv_ld_static_option): Ditto.
9196 (gcc_cv_ld_dynamic_option): Ditto.
9197 * configure: Regenerate.
9199 2011-10-03 David S. Miller <davem@davemloft.net>
9201 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
9202 and 'si' patterns which describe the GSR changes explicitly in the
9203 RTL using zero_extract.
9204 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
9206 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
9207 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
9209 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9211 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
9212 if given expression can be expanded by the target.
9213 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
9214 using target vector instructions.
9215 * optabs.h: New optab vshuffle.
9216 (expand_vec_shuffle_expr_p): New prototype.
9217 (expand_vec_shuffle_expr): New prototype.
9218 (vshuffle_optab): New optab.
9219 * genopinit.c: Adjust to support vecshuffle.
9220 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
9221 * expr.c (expand_expr_real_2): Adjust.
9222 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
9223 recognizing the cases of two and three arguments.
9224 (convert_arguments) (build_binary_op)
9225 (scalar_to_vector) (build_array_ref): Spurious whitespace.
9226 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
9227 * tree.def: New tree code VEC_SHUFFLE_EXPR.
9228 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
9229 * tree-vect-generic.c (vector_element): New function. Returns an
9230 element of the vector at the given position.
9231 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
9232 by the backend or expand an expression piecewise.
9233 (expand_vector_operations_1): Adjusted.
9234 (gate_expand_vector_operations_noop): New gate function.
9235 * Makefile.in (tree-vect-generic.o): New include.
9236 * gimple.c (get_gimple_rhs_num_ops): Adjust.
9237 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
9238 * passes.c: Move veclower down.
9239 * tree-pretty-print.c (dump_generic_node): Recognize
9240 VEC_SHUFFLE_EXPR as valid expression.
9241 * c-parser.c (c_parser_get_builtin_args): Helper function for the
9242 builtins with variable number of arguments.
9243 (c_parser_postfix_expression): Use a new helper function for
9244 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
9245 * tree-ssa-operands: Adjust.
9246 * c-family/c-common.c: New __builtin_shuffle keyword.
9247 * c-family/c-common.h: New __builtin_shuffle keyword.
9248 * gcc/doc/extend.texi: Adjust.
9250 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
9251 between the vector and the type of the mask when shuffling.
9252 (vecshuffle<mode>): New expansion.
9253 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
9254 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
9255 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
9257 2011-10-03 Jakub Jelinek <jakub@redhat.com>
9259 PR tree-optimization/50587
9260 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
9261 arg0 is not a SSA_NAME.
9263 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
9265 * ipa-inline-analysis.c (MAX_TIME): Update comment.
9267 2011-10-02 Richard Henderson <rth@redhat.com>
9268 David S. Miller <davem@davemloft.net>
9270 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
9271 conditional insn type setting, we always emit a shift.
9272 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
9273 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
9274 * config/sparc/predicates.md (const_one_operand): Delete.
9276 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
9278 * invoke.texi (SPARC Options): Refer to GNU/Linux.
9280 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9282 * config/mips/mips.c (mips_frame_barrier): New function.
9283 (mips_expand_prologue): Call it after allocating stack space.
9284 (mips_deallocate_stack): New function.
9285 (mips_expand_epilogue): Call mips_frame_barrier and
9286 mips_deallocate_stack.
9288 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9291 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
9292 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
9293 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
9295 2011-10-02 Jan Hubicka <jh@suse.cz>
9297 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
9299 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
9300 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
9301 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
9302 functions are reachable when address is taken.
9303 * tree-sra.c (modify_function): Free dominance info.
9305 2011-10-02 Jan Hubicka <jh@suse.cz>
9307 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
9309 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
9310 (reset_inline_summary): New function.
9311 (compute_inline_parameters, inline_node_removal_hook,
9312 inline_edge_removal_hook): Use it.
9313 (inline_free_summary): Reset holders correctly.
9314 (inline_generate_summary): Free summary before computing it.
9316 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
9318 PR preprocessor/36819
9319 * incpath.c (merge_include_chains): Call free_path on
9320 heads[QUOTE] and tails[QUOTE].
9322 2011-10-02 Jan Hubicka <jh@suse.cz>
9325 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
9326 when resolution is already availbale from plugin.
9327 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
9328 * cgraph.c (ld_plugin_symbol_resolution): Add
9329 prevailing_def_ironly_exp.
9330 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
9331 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
9333 * varasm.c (resolution_to_local_definition_p): Add
9334 LDPR_PREVAILING_DEF_IRONLY_EXP.
9335 (resolution_local_p): Likewise.
9337 2011-10-01 David S. Miller <davem@davemloft.net>
9339 * config/sparc/sparc.opt (VIS3): New option.
9340 * doc/invoke.texi: Document it.
9341 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
9342 not capable of such instructions.
9343 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
9344 to 0x300 when TARGET_VIS3.
9345 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
9346 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
9347 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
9348 (V64N8, VASS): New mode iterators.
9349 (vis3_shift, vis3_addsub_ss): New code iterators.
9350 (vbits, vconstr): New mode attributes.
9351 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
9352 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
9353 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
9354 fmean16_vis, fpadd64_vis, fpsub64_vis,
9355 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
9356 VIS 3.0 instruction patterns.
9357 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
9358 default when targetting capable cpus. TARGET_VIS3 implies
9359 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
9360 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
9361 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
9363 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
9364 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
9365 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
9366 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
9367 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
9368 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
9369 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
9370 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
9371 * doc/extend.texi: Document new VIS 3.0 builtins.
9373 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
9375 * ira-color.c (assign_hard_reg): Fix typo.
9377 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
9379 * doc/extend.texi: Add missing ','.
9381 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
9383 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
9384 Enable -fmodulo-sched at -O2 and above.
9385 * config/c6x/c6x.md (doloop_end): New expander.
9386 (mvilc, sploop, spkernel, loop_end): New patterns.
9387 (loop_end with memory destination splitter): New.
9388 * config/c6x/c6x.c: Include "hw-doloop.h".
9389 (enum unitreqs): New.
9390 (unit_req_table): New typedef.
9391 (unit_reqs): New static variable.
9392 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
9393 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
9394 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
9395 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
9396 (struct c6x_sched_context): New member last_scheduled_iter0.
9397 (init_sched_state): Initialize it.
9398 (c6x_variable_issue): Update it.
9399 (sploop_max_uid_iter0): New static variable.
9400 (c6x_sched_reorder_1): Be careful about issuing sploop.
9401 (c6x_reorg): Call c6x_hwlooops before the final schedule.
9403 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
9406 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
9407 * config/avr/avr.c (avr_address_cost): Use it.
9408 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
9409 (avr_log_vadump): Unknown %-codes finish printing.
9411 2011-09-30 Jakub Jelinek <jakub@redhat.com>
9414 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
9415 input constraints allow mem and not reg, pass true instead of
9416 false as second argument to maybe_fold_reference.
9418 PR tree-optimization/46309
9419 * fold-const.c (make_range, merge_ranges): Remove prototypes.
9420 (make_range_step): New function.
9421 (make_range): Use it.
9422 * tree.h (make_range_step): New prototypes.
9423 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
9424 * tree-ssa-reassoc.c: Include diagnostic-core.h.
9425 (struct range_entry): New type.
9426 (init_range_entry, range_entry_cmp, update_range_test,
9427 optimize_range_tests): New functions.
9428 (reassociate_bb): Call optimize_range_tests.
9430 2011-09-30 Jakub Jelinek <jakub@redhat.com>
9431 Richard Guenther <rguenther@suse.de>
9433 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
9434 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
9435 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
9436 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
9437 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
9438 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
9440 2011-09-30 Jan Beulich <jbeulich@suse.com>
9442 * lto-cgraph.c (output_cgraph): Remove processing of
9443 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
9444 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
9445 lto_input_toplevel_asms() instead.
9446 * lto-section-in.c (lto_section_name): Add "asm" entry.
9447 * lto-streamer-in.c (lto_input_toplevel_asms): New.
9448 * lto-streamer-out.c (lto_output_toplevel_asms): New.
9449 * lto-streamer.h (LTO_minor_version): Bump.
9450 (enum lto_section_type): Add LTO_section_asm.
9451 (struct lto_asm_header): New.
9452 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
9453 * tree-streamer.h (streamer_write_string_cst): Declare.
9454 * tree-streamer-out.c (write_string_cst): Rename to
9455 streamer_write_string_cst and make global. Handle incoming string
9457 (streamer_write_tree_header): Adjust call to renamed function.
9459 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
9461 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
9462 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
9463 modulo_last_stage): New static variables.
9464 (set_modulo_params, discard_delay_pairs_above): New functions.
9465 (struct delay_pair): New member stages.
9466 (htab_i2_traverse, htab_i1_traverse): New static functions.
9467 (record_delay_slot_pair): New arg stages. All callers changed.
9469 (pair_delay): Take stages into account.
9470 (add_delay_dependencies): Don't do so for stage pairs.
9471 (struct sched_block_state): New member modulo_epilogue.
9472 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
9473 (unschedule_insns_until): Decrease modulo_insns_scheduled.
9474 Set HARD_DEP without using or.
9475 (resolve_dependencies): New static function.
9476 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
9477 If it is true, allow only insns with INSN_EXACT_TICK set.
9478 (schedule_block): Return bool, always true for normal scheduling,
9479 true or false depending on modulo scheduling success otherwise.
9480 Add bookkeeping for modulo scheduling, and call resolve_dependencies
9481 on everything left over after a modulo schedule.
9482 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
9483 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
9485 (set_modulo_params, discard_delay_pairs_above): Declare.
9486 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
9487 * doc/invoke.texi (--param): Document it.
9489 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
9490 New arg modulo_scheduling. All callers changed. Move note handling
9491 code here from schedule_ebbs.
9492 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
9493 out of schedule_ebbs.
9494 (schedule_ebbs): Call them. Remove note handling code moved to
9496 * sched-int.h (schedule_ebb, schedule_ebbs_init,
9497 schedule_ebbs_finish): Declare.
9499 2011-09-30 Richard Guenther <rguenther@suse.de>
9502 * tree-cfg.c (verify_gimple_comparison): Compare component
9503 mode sizes for vector comparisons.
9505 2011-09-30 Revital Eres <revital.eres@linaro.org>
9507 * ddg.c (autoinc_var_is_used_p): New function.
9508 (create_ddg_dep_from_intra_loop_link,
9509 add_cross_iteration_register_deps): Call it.
9510 * ddg.h (autoinc_var_is_used_p): Declare.
9511 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
9512 (sms_schedule): Handle instructions with REG_INC.
9514 2011-09-30 Revital Eres <revital.eres@linaro.org>
9516 * modulo-sched.c (generate_reg_moves): Skip instructions that
9517 do not set a register and verify no regmoves are created for
9518 !single_set instructions.
9520 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
9522 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
9525 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9528 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
9529 (qhs_zextenddi_op): New.
9530 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
9531 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
9532 Distinguish between ARM and Thumb2 states.
9534 2011-09-30 David S. Miller <davem@davemloft.net>
9536 * config/sparc/sparc.opt (VIS2): New option.
9537 * doc/invoke.texi: Document it.
9538 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
9539 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
9540 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
9541 (define_attr type): New insn type 'edgen'.
9542 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
9543 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
9544 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
9546 * niagara.md: Handle edgen.
9547 * niagara2.md: Likewise.
9548 * ultra1_2.md: Likewise.
9549 * ultra3.md: Likewise.
9550 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
9551 to 0x200 when TARGET_VIS2.
9552 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
9553 default when targetting capable cpus. TARGET_VIS2 implies
9554 TARGET_VIS, clear and it when TARGET_FPU is disabled.
9555 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
9556 (sparc_expand_builtin): Fix predicate indexing when builtin returns
9558 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
9559 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
9560 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
9561 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
9562 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
9563 * doc/extend.texi: Document new VIS 2.0 builtins.
9565 2011-09-29 Nick Clifton <nickc@redhat.com>
9566 Bernd Schmidt <bernds@codesourcery.com>
9568 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
9569 * config/frv/frvend.c: Likewise.
9570 * config/frv/frv.c (frv_function_prologue): Move misplaced
9571 CALL_ARG_LOCATION notes back to their proper locations.
9573 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
9576 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
9577 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
9579 (avr_legitimate_address_p): Use avr_edump to print log information
9580 filtered by avr_log.
9581 (extra_constraint_Q): Ditto.
9582 (avr_legitimize_address): Ditto.
9583 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
9584 (final_prescan_insn): Use avr_log.rtx_costs as filter.
9586 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
9588 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
9589 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
9590 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
9591 NEON vector and structure modes to be tied.
9593 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9595 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
9596 forward declaration.
9597 (remove_duplicate_close_phi): Detect and repair creation of
9598 duplicate close-phis for a containing loop.
9600 2011-09-27 Andi Kleen <ak@linux.intel.com>
9602 * gcc.c (get_local_tick). Rename to get_random_number. Read from
9603 /dev/urandom. Add getpid call.
9604 (compare_debug_dump_opt_spec_function): Drop getpid call.
9606 2011-09-26 Andi Kleen <ak@linux.intel.com>
9608 * toplev.c (init_local_tick): Try reading random seed
9611 2011-09-26 Andi Kleen <ak@linux.intel.com>
9613 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
9614 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
9615 Handle numerical random seed.
9616 * lto-streamer.h (lto_file_decl_data): Change id to
9617 unsigned HOST_WIDE_INT.
9618 * toplev.c (random_seed): Add.
9619 (init_random_seed): Change for numerical random seed.
9620 (get_random_seed): Return as HOST_WIDE_INT.
9621 (set_random_seed): Crc32 existing string.
9622 * toplev.h (get_random_seed): Change to numercal return.
9623 * tree.c (get_file_function_name): Remove CRC. Handle
9624 numerical random seed.
9626 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
9629 * config.gcc (extra_objs): Add avr-log.o for $target in:
9630 avr-*-rtems*, avr-*-*.
9631 * config/avr/t-avr (avr-log.o): New rule to compile...
9632 * config/avr/avr-log.c: ...this new file.
9633 * config/avr/avr.opt (mlog=): New option.
9634 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
9635 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
9636 (avr_log_set_avr_log): New prototype.
9637 (avr_log_t): New typedef.
9638 (avr_log): New declaration.
9639 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
9641 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9643 * expr.c (do_store_flag): Expand vector comparison by
9644 building an appropriate VEC_COND_EXPR.
9645 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
9646 (c_objc_common_truthvalue_conversion): Adjust.
9647 * tree-vect-generic.c (do_compare): Helper function.
9648 (expand_vector_comparison): Check if hardware supports
9649 vector comparison of the given type or expand vector piecewise.
9650 (expand_vector_operation): Treat comparison as binary
9651 operation of vector type.
9652 (expand_vector_operations_1): Adjust.
9654 2011-09-29 Richard Guenther <rguenther@suse.de>
9656 * tree.c (build_opaque_vector_type): Make opaque vectors
9657 variant types of the corresponding non-opaque type. Make
9658 sure to share opaque vector types properly.
9660 2011-09-29 David S. Miller <davem@davemloft.net>
9662 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
9663 UNSPEC_ARRAY32): New unspec.
9664 (define_attr type): New type 'array'.
9665 (array{8,16,32}<P:mode>_vis): New patterns.
9666 * config/sparc/ultra1_2.md: Add reservations for 'array'.
9667 * config/sparc/ultra3.md: Likewise.
9668 * config/sparc/niagara.md: Likewise.
9669 * config/sparc/niagara2.md: Likewise.
9670 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
9672 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
9673 __vis_array32): New.
9674 * doc/extend.texi: Document new VIS builtins.
9676 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
9677 (VIS pixel-compare insn): Just use <gcond:name>.
9679 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
9680 code iterator used, so just use <code>. There are two mode iterators
9681 so explicitly use <GCM:gcm_name>.
9683 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
9685 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
9688 2011-09-28 David S. Miller <davem@davemloft.net>
9690 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
9691 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
9692 (UNSPEC_FCMP): New unspec.
9693 (gcond): New code iterator.
9694 (gcond_name): New code attr.
9695 (GCM): New mode iterator.
9696 (gcm_name): New mode attr.
9697 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
9699 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
9702 * config/sh/sh.md (negdi2): Move expansion into split to
9703 allow more combination options. Add T_REG clobber.
9704 (abssi2): New expander.
9705 (*negdi2, *abssi2, *negabssi2): New insns.
9706 (cneg): Change from insn to insn_and_split. Rename to
9707 negsi_cond. Add alternative for non-SH4.
9709 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
9711 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
9712 (neon_move_hi_quad_<mode>): Likewise.
9713 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
9715 2011-09-28 Nick Clifton <nickc@redhat.com>
9717 * config/rx/predicates.md (rx_minmax_operand): New predicate.
9718 Accepts immediates and a restricted subset of MEMs.
9719 * config/rx/rx.md (int_modes): New iterator.
9720 (smaxsi3, sminsi3): Delete and replace with...
9721 (smax<int_mode>3, smin<int_mode>3): New patterns.
9722 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
9724 2011-09-28 Richard Guenther <rguenther@suse.de>
9727 * fold-const.c (try_move_mult_to_index): Handle &a.array the
9728 same as &a.array[0].
9730 2011-09-28 Kai Tietz <ktietz@redhat.com>
9732 * configure.ac: Add test for new section attribute
9733 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
9734 * config.in: Regenerated.
9735 * configure: Regenerated.
9736 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
9737 new section flag "e" for excluded sections, if supported.
9738 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
9740 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
9742 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
9745 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
9747 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
9750 2011-09-27 Sriraman Tallam <tmsriram@google.com>
9752 * output.h (SECTION_EXCLUDE): New macro.
9753 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
9755 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
9757 * fwprop.c (forward_propagate_and_simplify): After checking
9758 reg/subreg combinations, check whether the modes are the same.
9760 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
9761 Richard Sandiford <rdsandiford@googlemail.com>
9763 * config/mips/mips.c (mips_add_cfa_restore): New function.
9764 (mips16e_save_restore_reg): Use it.
9765 (mips_restore_reg): Likewise. Split double FPRs for
9766 REG_CFA_RESTORE notes.
9768 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
9772 * tree-sra.c (build_ref_for_model): Use the type of the field as
9773 the type of the COMPONENT_REF.
9775 2011-09-27 Jeff Law <law@redhat.com>
9777 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
9778 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
9779 (find_if_case_1): Use the probability of the THEN clause when
9780 determining if speculation is profitable.
9781 (find_if_case_2): Similarly for the ELSE clause.
9783 2011-09-27 Jakub Jelinek <jakub@redhat.com>
9785 * common.opt: Add -foptimize-strlen option.
9786 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
9787 (tree-sssa-strlen.o): Add dependencies.
9788 * opts.c (default_options_table): Enable -foptimize-strlen
9789 by default at -O2 if not -Os.
9790 * passes.c (init_optimization_passes): Add pass_strlen
9791 after pass_object_sizes.
9792 * timevar.def (TV_TREE_STRLEN): New timevar.
9793 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
9794 * tree-pass.h (pass_strlen): Declare.
9795 * tree-ssa-strlen.c: New file.
9796 * c-decl.c (merge_decls): If compatible stpcpy prototype
9797 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
9799 2011-09-27 Tom de Vries <tom@codesourcery.com>
9802 * tree-ssa-tail-merge.c: New file.
9803 (struct same_succ_def): Define.
9804 (same_succ, const_same_succ): New typedef.
9805 (struct bb_cluster_def): Define.
9806 (bb_cluster, const_bb_cluster): New typedef.
9807 (struct aux_bb_info): Define.
9808 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
9809 (gvn_uses_equal): New function.
9810 (same_succ_print, same_succ_print_traverse, update_dep_bb)
9811 (stmt_update_dep_bb, local_def, same_succ_hash)
9812 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
9813 (same_succ_reset): New function.
9814 (same_succ_htab, same_succ_edge_flags)
9815 (deleted_bbs, deleted_bb_preds): New var.
9816 (debug_same_succ): New function.
9817 (worklist): New var.
9818 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
9819 (init_worklist, delete_worklist, delete_basic_block_same_succ)
9820 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
9821 (print_cluster, debug_cluster, update_rep_bb)
9822 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
9823 (all_clusters): New var.
9824 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
9825 (merge_clusters, set_cluster): New function.
9826 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
9827 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
9828 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
9829 (find_clusters_1, find_clusters): New function.
9830 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
9831 (update_bbs): New var.
9832 (apply_clusters): New function.
9833 (update_debug_stmt, update_debug_stmts): New function.
9834 (tail_merge_optimize): New function.
9835 tree-pass.h (tail_merge_optimize): Declare.
9836 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
9837 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
9838 (tree-ssa-tail-merge.o): New rule.
9839 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
9840 default at OPT_LEVELS_2_PLUS.
9841 * tree-ssa-sccvn.c (vn_valueize): Move to ...
9842 * tree-ssa-sccvn.h (vn_valueize): Here.
9843 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
9844 * common.opt (ftree-tail-merge): New switch.
9845 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
9846 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
9847 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
9848 (-ftree-tail-merge, max-tail-merge-comparisons)
9849 (max-tail-merge-iterations): New item.
9851 2011-09-27 Jan Hubicka <jh@suse.cz>
9853 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
9855 2011-09-27 Jan Hubicka <jh@suse.cz>
9857 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
9858 parameters passed by reference; handle loads from non-SSA scalars
9859 and update comments.
9861 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
9863 PR rtl-optimization/50249
9864 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
9865 instead of opnum and type. All callers changed. Remove useless
9867 Search forward for other reloads of the same type for the same operand
9868 using the same register; if any are found, return false.
9869 (reload_regs_reach_end_p): Same argument changes; all callers changed.
9871 2011-09-27 Andi Kleen <ak@linux.intel.com>
9872 Jan Hubicka <jh@suse.cz>
9874 * doc/invoke.texi (ffat-lto-objects): Document.
9875 * toplev.c (compile_file): Do not output assembly when doing slim lto;
9876 Output __gnu_slim_lto when doing slim lto.
9877 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
9878 (cgraph_optimize): Return early when doing slim lto.
9879 * opts.c (finish_options): Complain about lack of linker plugin
9880 when doing slim lto.
9881 * common.opt (ffat-lto-objects): New.
9883 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
9885 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
9886 between signed and unsigned.
9888 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
9890 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
9892 (vectorizable_type_promotion): Likewise.
9893 (vect_analyze_stmt): Call vectorizable_type_demotion and
9894 vectorizable_type_promotion for basic blocks.
9895 (supportable_widening_operation): Don't assume loop vectorization.
9896 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
9897 basic blocks. Update vectorization factor for basic block
9899 (vect_analyze_slp_instance): Allow multiple types for basic block
9900 vectorization. Recheck unrolling factor after construction of SLP
9903 2011-09-27 Richard Guenther <rguenther@suse.de>
9905 * tree-object-size.c (compute_object_sizes): Fix dumping of
9908 2011-09-27 Richard Guenther <rguenther@suse.de>
9910 PR tree-optimization/50363
9911 * tree-ssa-pre.c (create_expression_by_pieces): Handle
9912 pointer conversions in POINTER_PLUS_EXPRs properly.
9914 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
9916 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
9917 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
9918 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
9919 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
9920 that produce subreg moves. Define using VQX iterators.
9922 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
9924 * config/avr/avr.md (ashrqi3): Split alternative "n"
9925 into its remaining parts C03, C04, C05, C06, C07 and describe
9926 impact in CC by attribute "cc" appropriately.
9927 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
9930 2011-09-27 Jakub Jelinek <jakub@redhat.com>
9932 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
9933 from 3 x MAX_MACHINE_MODE.
9934 (CONSTM1_RTX): Define.
9935 * emit-rtl.c (const_tiny_rtx): Change into array of
9936 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
9937 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
9939 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
9940 MODE_VECTOR_INT modes.
9941 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
9942 Optimize if one operand is CONSTM1_RTX.
9943 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
9946 2011-09-26 David S. Miller <davem@davemloft.net>
9948 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
9949 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
9950 * config/sparc/visintrin.h: Update edge and pixel-compare
9951 intrinsics to return 'long' instead of 'int'.
9952 * doc/extend.texi: Update documentation to match.
9953 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
9954 flat, allow any instruction. Otherwise, when V9 allow parallels
9955 which consist only of sets to registers outside of %o0 to %o5.
9956 (sparc_vis_init_builtins): Update VIS builtin types for edge
9959 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
9960 is enabled, mark %gsr as global.
9961 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
9962 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
9964 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
9965 which will now define __VIS and __VIS__ when -mvis is enabled.
9966 * config/sparc/t-sparc: Likewise.
9967 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
9968 and add t-sparc to tmake_file for all sparc targets.
9969 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
9970 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
9972 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
9973 builtins for VIS vector addition and subtraction.
9974 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
9975 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
9976 __vis_fpsub32, __vis_fpsub32s): New.
9977 * doc/extend.texi: Document new VIS intrinsics.
9979 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
9981 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
9982 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
9983 EQ/NE comparisons against +/-1 in the case of unused-after,
9986 2011-09-26 Jakub Jelinek <jakub@redhat.com>
9988 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
9989 gctx.into_ssa after push_gimplify_context.
9991 * gimple.c (gimple_build_call_valist): New function.
9992 * gimple.h (gimple_build_call_valist): New prototype.
9993 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
9994 (update_gimple_call): Likewise.
9995 (update_call_from_tree): Use finish_update_gimple_call.
9996 * tree-ssa-propagate.h (update_gimple_call): New prototype.
9998 2011-09-26 Richard Guenther <rguenther@suse.de>
10000 PR tree-optimization/50472
10001 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
10002 volatile references.
10004 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
10006 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
10007 * target.def: (addr_space_subset_p): Likewise.
10009 2011-09-26 Tom de Vries <tom@codesourcery.com>
10011 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
10012 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
10013 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
10016 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
10019 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
10020 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
10021 output_reload_insisf.
10022 (adjust_len): Set default to "no".
10023 Remove alternative "yes". Add alternatives: "mov8", "mov16",
10024 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
10025 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
10026 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
10027 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
10028 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
10029 *lshrsi3_const): Set attribute "adjust_len".
10030 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
10031 (output_movsisf): Don't pass insn to output_reload_insisf.
10032 (adjust_insn_length): Handle new alternatives to adjust_len.
10033 Remove handling of ADJUST_LEN_YES. Clean-up code.
10035 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
10037 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
10038 may_trap_p to detect loads that may trap of fault.
10040 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
10042 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
10043 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
10044 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
10046 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
10047 * config/avr/avr.c: Rename output_reload_insisf_1 to
10048 output_reload_in_const.
10049 (avr_popcount_each_byte): Handle SFmode, too.
10050 (output_reload_in_const): Change so it can handle HI loads, too.
10051 Use avr_popcount_each_byte to work out if scratch register must be
10052 created on the fly.
10053 (output_reload_inhi): Rewrite using output_reload_in_const and...
10054 (output_movhi): ...use it to print constants' loads.
10055 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
10057 2011-09-25 David S. Miller <davem@davemloft.net>
10059 * config/sparc/constraints.md (C, P, Z): New constraints for
10060 const_doube, const_int, and const_vector "all ones" values.
10061 Make unused constraint letters comment match reality.
10062 * config/sparc/predicates.md (const_all_ones_operand,
10063 register_or_zero_or_all_ones_operand): New predicates.
10064 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
10065 as well as zero constants when VIS.
10066 (sparc_legitimate_constant_p): Likewise.
10067 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
10068 (movsf_insn): Likewise
10069 (movdi_insn_sp64): Add fone alternative.
10070 (movdf_insn_sp32_v9): Likewise.
10071 (movdf_insn_sp64): Likewise.
10073 * configure.ac: Add feature check to make sure the assembler
10074 supports the FMAF, HPC, and VIS 3.0 instructions found on
10075 Niagara-3 and later cpus.
10076 * configure: Rebuild.
10077 * config.in: Likewise.
10078 * config/sparc/sparc.opt: New option '-mfmaf'.
10079 * config/sparc/sparc.md: Add float fused multiply-add patterns.
10080 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
10081 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
10082 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
10083 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
10084 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
10085 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
10087 (sparc_rtx_costs): Handle 'FMA'.
10088 * doc/invoke.texi: Document -mfmaf.
10090 2011-09-25 Jakub Jelinek <jakub@redhat.com>
10092 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
10093 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
10094 DECL_BY_REFERENCE parameters.
10096 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
10098 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
10099 if there is no outgoing edge.
10101 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
10104 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
10106 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
10107 of vect_analyze_bb here.
10108 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
10110 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
10112 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
10113 Allow not simple iv if analyzing basic block.
10114 (create_data_ref): Update call to dr_analyze_innermost.
10115 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
10116 * tree-loop-distribution.c (generate_memset_zero): Likewise.
10117 * tree-predcom.c (find_looparound_phi): Likewise.
10118 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
10120 2011-09-24 David S. Miller <davem@davemloft.net>
10122 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
10123 (SPARC_GSR_REG): Define.
10124 (FIXED_REGISTERS): Mark GSR as fixed.
10125 (CALL_USED_REGISTERS): Mark GSR as call used.
10126 (HARD_REGNO_NREGS): GSR is always 1 register.
10127 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
10128 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
10129 (REGISTER_NAMES): Add "%gsr".
10130 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
10131 (UNSPEC_WRGSR): New unspec.
10132 (GSR_REG): New constant.
10133 (type): Add new insn type 'gsr'.
10134 (fpack16_vis, fpackfix_vis, fpack32_vis,
10135 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
10136 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
10137 rdgsr_v8plus): New expanders and insns.
10138 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
10139 using patterns which show that this is a plus in addition to a
10140 modification of GSR_REG, instead of an unspec.
10141 * config/sparc/ultra1_2.md: Handle 'gsr'.
10142 * config/sparc/ultra3.md: Likewise.
10143 * config/sparc/niagara.md: Likewise.
10144 * config/sparc/niagara2.md: Likewise.
10145 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
10147 (sparc_option_override): Make -mvis imply -mv8plus.
10148 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
10150 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
10151 __builtin_vis_read_gsr.
10152 (sparc_expand_buildin): Handle builtins that take one argument and
10154 (sparc_fold_builtin): Never fold writes to %gsr.
10155 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
10156 * doc/extend.texi: Document new VIS intrinsics.
10158 2011-09-23 Jan Hubicka <jh@suse.cz>
10160 * ipa-inline-transform.c (inline_call): Add comment.
10161 * ipa-inline.h (inline_param_summary): New structure and vector.
10162 (struct inline_edge_summary): Add param field.
10163 * ipa-inline-analysis.c (CHANGED): New constant.
10164 (add_clause): Handle CHANGED and NOT_CONSTANT.
10165 (predicate_probability): New function.
10166 (dump_condition): Dump CHANGED predicate.
10167 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
10168 of unknown function wide invariant.
10169 (evaluate_conditions_for_edge): Handle change probabilities.
10170 (inline_edge_duplication_hook): Copy param summaries.
10171 (inline_edge_removal_hook): Free param summaries.
10172 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
10173 sizes; dump param summaries.
10174 (will_be_nonconstant_predicate): Use CHANGED predicate.
10175 (record_modified_bb_info): New structure.
10176 (record_modified): New function.
10177 (param_change_prob): New function.
10178 (estimate_function_body_sizes): Compute param summaries.
10179 (estimate_edge_size_and_time): Add probability argument.
10180 (estimate_node_size_and_time): Add inline_param_summary argument;
10181 handle predicate probabilities.
10182 (remap_predicate): Fix formating.
10183 (remap_edge_change_prob): New function.
10184 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
10185 (remap_edge_predicates): ... this one.
10186 (inline_merge_summary): Remap edge summaries; handle predicate
10187 probabilities; remove param summaries after we are done.
10188 (do_estimate_edge_time): Update.
10189 (do_estimate_edge_growth): Update.
10190 (read_inline_edge_summary): Read param info.
10191 (inline_read_summary): Fix formating.
10192 (write_inline_edge_summary): Write param summaries.
10194 2011-09-23 Jakub Jelinek <jakub@redhat.com>
10196 * config/i386/i386.c (ix86_print_operand): Handle %~.
10197 (ix86_print_operand_punct_valid_p): Return true also for '~'.
10198 * config/i386/sse.md (i128): New mode_attr.
10199 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
10200 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
10201 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
10202 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
10203 patterns, use "<sseinsnmode>" for "mode" attribute.
10204 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
10205 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
10206 %~128 in the patterns, use "OI" for "mode" attribute.
10208 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
10211 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
10212 "tstsi", "compare".
10213 (*cmpqi_sign_extend): Use s8_operand.
10214 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
10215 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
10217 (out_tsthi, out_tstsi): Remove prototypes.
10218 (avr_out_tsthi, avr_out_tstsi): New prototypes.
10219 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
10220 (avr_asm_len): Negative length now sets *plen to -length.
10221 (compare_sign_p): Return bool instead of int.
10222 (compare_diff_p, compare_eq_p): Ditto and make static.
10223 (avr_out_tsthi): New function.
10224 (avr_out_tstsi): New function.
10225 (avr_out_compare): New function.
10226 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
10227 ADJUST_LEN_COMPARE.
10229 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
10232 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
10233 (addsi3): Rewrite using QI scratch register. Adjust text
10234 peepholes using plus:SI.
10235 (*addsi3_zero_extend.hi): New insn.
10236 (*subsi3_zero_extend.hi): New insn.
10237 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
10238 (*subsi3_zero_extend): Ditto.
10239 (subsi3): Change predicate #2 to register_operand.
10240 * config/avr/avr-protos.h (avr_out_plus): New prototype.
10241 (avr_out_plus_1): New static function.
10242 (avr_out_plus): New function.
10243 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
10245 2011-09-23 Jakub Jelinek <jakub@redhat.com>
10247 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
10248 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
10250 2011-09-23 Ian Lance Taylor <iant@google.com>
10252 * godump.c (go_define): Treat a single character in single quotes,
10253 or a string, as an operand.
10255 2011-09-23 Martin Jambor <mjambor@suse.cz>
10257 * ipa-prop.h (jump_func_type): Updated comments.
10258 (ipa_known_type_data): New type.
10259 (ipa_jump_func): Use it to describe known type jump functions.
10260 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
10261 reflect the new known type jump function contents.
10262 (compute_known_type_jump_func): Likewise.
10263 (combine_known_type_and_ancestor_jfs): Likewise.
10264 (try_make_edge_direct_virtual_call): Likewise.
10265 (ipa_write_jump_function): Likewise.
10266 (ipa_read_jump_function): Likewise.
10267 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
10268 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
10269 (propagate_accross_jump_function): Likewise.
10271 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
10274 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
10275 (rotlqi3_4): Turn insn into expander.
10276 (*rotlqi3): New insn.
10277 (rotlhi3, rotlsi3): Support rotate left/right by 1.
10278 (*rotlhi2.1, *rotlhi2.15): New insns.
10279 (*rotlsi2.1, *rotlsi2.31): New insns.
10280 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
10282 2011-09-23 Bin Cheng <bin.cheng@arm.com>
10284 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
10286 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10288 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
10290 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10292 * reload.c (find_reloads): Set operand_mode to Pmode for address
10293 operands consisting of just a CONST_INT.
10295 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
10298 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
10299 blendv, force op_true to register if it doesn't satisfy
10300 nonimmediate_operand predicate.
10302 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
10304 PR middle-end/50113
10305 PR middle-end/50061
10306 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
10307 get the locate.where_pad value for register-only arguments.
10308 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
10309 (arm_pad_reg_upward): Handle null types.
10311 2011-09-22 Jan Hubicka <jh@suse.cz>
10313 * ipa-inline-analysis.c: Fix overly long lines.
10315 2011-09-22 Jan Hubicka <jh@suse.cz>
10317 * ipa-inline-transform.c (inline_call): Always update jump functions
10319 * ipa-inline.c (ipa_inline): Likewise; do not call
10320 ipa_create_all_structures_for_iinln.
10321 (ipa_inline): Always free jump functions.
10322 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
10323 (remap_edge_predicates): Fix pasto.
10324 (inline_merge_summary): Remove nlined edge predicate; remove hack.
10325 (inline_analyze_function): Always initialize jump functions.
10326 (inline_generate_summary): Likewise.
10327 (inline_write_summary): Always write jump functions when ipa-cp
10329 (inline_read_summary): Always read jump functions when ipa-cp
10331 * ipa-prop.c (iinlining_processed_edges): Remove.
10332 (update_indirect_edges_after_inlining): Do not use
10333 iinlining_processed_edges; instead set param_index to -1.
10334 (propagate_info_to_inlined_callees): Only try to indirect inlining
10335 when asked to do so; update jump functions of indirect calls, too;
10336 remove jump functions of the inlined edge.
10337 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
10338 (ipa_create_all_structures_for_iinln): Remove.
10339 (ipa_free_all_structures_after_iinln): Do not free
10340 iinlining_processed_edges.
10341 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
10343 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
10345 * config/arm/predicates.md (expandable_comparison_operator): New
10346 predicate, extracted from...
10347 (arm_comparison_operator): ...here.
10348 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
10349 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
10350 (movdfcc): Use expandable_comparison_operator.
10352 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
10356 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
10357 (avr_popcount_each_byte): New prototype.
10358 * config/avr/avr.c (avr_popcount): New static function.
10359 (avr_popcount_each_byte): New function.
10360 (avr_out_bitop): New function.
10361 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
10362 avr_out_bitop. Cleanup code.
10363 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
10364 (Ca4, Co4, Cx4): New constraints.
10365 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
10367 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
10368 (andsi3, iorsi3, xorsi3): Ditto.
10369 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
10371 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
10373 PR tree-optimization/50451
10374 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
10375 constant operands in reduction.
10376 (vect_get_slp_defs): Don't create vector operand for NULL scalar
10379 2011-09-22 David S. Miller <davem@davemloft.net>
10381 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
10382 fpack16, fpack32, fpackfix as const.
10384 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
10385 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
10386 constants. Use them everywhere.
10388 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
10390 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
10391 Added AND special case. Adapted comments.
10392 (sh_rtx_costs): Added XOR and IOR case.
10394 2011-09-21 Jan Hubicka <jh@suse.cz>
10396 * ipa-inline-analsis.c (compute_inline_parameters): Set
10397 cfun and current_function_decl.
10399 2011-09-21 Jan Hubicka <jh@suse.cz>
10401 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
10402 handled components in parameter of builtin_constant_p.
10403 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
10405 2011-09-21 Jan Hubicka <jh@suse.cz>
10407 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
10408 * ipa-inline.h (estimate_edge_time): Fix pasto.
10409 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
10411 2011-09-21 Jakub Jelinek <jakub@redhat.com>
10413 * config/i386/i386.c (ix86_expand_sse_movcc): Use
10414 blendvps, blendvpd and pblendvb if possible.
10416 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
10419 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
10420 operand 1 predicate to register_operand and operand 2 predicate
10421 to nonimmediate_operand.
10422 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
10423 xop_pcmov, force op_true to register. Also, force op_false to
10424 register if it doesn't satisfy nonimmediate_operand predicate.
10426 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
10428 * config/i386/bmi2intrin.h (_mulx_u64): New.
10429 (_mulx_u32): Ditto.
10431 2011-09-21 Jan Hubicka <jh@suse.cz>
10433 PR tree-optimization/50433
10434 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
10435 Use get_base_address.
10437 2011-09-21 Jakub Jelinek <jakub@redhat.com>
10439 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
10440 nonimmediate_operand instead of register_operand predicate for operands
10441 1 and 2, force them into registers if expanding them as comparison.
10442 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
10443 V8HImode force into register just operand 1.
10445 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
10448 * config/avr/avr.c (avr_function_arg_advance): Change error to
10449 warning if a fixed register is needed as function argument.
10451 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
10455 * config/avr/avr.md (adjust_len): New insn attribute.
10456 (*reload_insi, *reload_insf): Use it.
10457 (*movsi, *movsf): Use new interface of output_movsisf.
10458 * config/avr/avr-protos.h (output_movsisf): Change prototype.
10459 * config/avr/avr.c (output_movsisf): Ditto.
10460 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
10461 lengths of insns *reload_insi, *reload_insf.
10462 (output_reload_insisf_1): New static function.
10463 (output_reload_insisf): Use it.
10465 2011-09-21 David S. Miller <davem@davemloft.net>
10467 * config/sparc/sparc.c (def_builtin): Change from macro into function.
10468 (def_builtin_const): New.
10469 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
10470 other than alignaddr and falignaddr.
10472 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
10473 UNSPEC_FCMPEQ): New unspec codes.
10474 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
10475 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
10476 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
10477 new pixel compare VIS patterns.
10478 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
10479 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
10480 __vis_fcmpeq16, __vis_fcmpeq32): New.
10481 * doc/extend.texi: Document new pixel compare VIS intrinsics.
10483 2011-09-21 Tom de Vries <tom@codesourcery.com>
10485 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
10487 2011-09-20 David S. Miller <davem@davemloft.net>
10489 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
10490 (aligneddrl<P:mode>_vis): New pattern.
10491 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
10492 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
10493 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
10494 alignaddrl insn, and adjust edge operations for updated types.
10495 * config/sparc/visintrin.h: Likewise.
10496 * doc/extend.texi: Make typing in VIS documentation match reality.
10498 2011-09-20 Terry Guo <terry.guo@arm.com>
10500 * config/arm/arm-arches.def: Add armv6s-m.
10501 * config/arm/arm-tables.opt: Regenerate.
10503 2011-09-20 Wei Guozhi <carrot@google.com>
10505 PR rtl-optimization/49452
10506 * postreload.c (reload_combine): Invalidate use information when across
10509 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
10511 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
10512 Remove maintenance overhead.
10513 (haifa_sched_init, sched_finish): Update.
10515 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
10517 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
10518 to calculate unit, prefix_rep and prefix_data16 attributes.
10519 (*mov<mode>_internal): Ditto for unit attribute.
10520 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
10521 (*movv2sf_internal): Ditto.
10522 * config/i386/sse.md (VI1248_256): Remove mode iterator.
10523 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
10524 (*avx2_eq<mode>3): Ditto.
10525 (avx2_gt<mode>3): Ditto.
10527 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
10529 * config/i386/i386.md (maxmin): New code iterator.
10530 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
10531 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
10533 (*avx2_<maxmin:code><mode>3): Macroize isn from
10534 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
10535 maxmin code iterator.
10536 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
10537 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
10538 <umaxmin:code>v16qi3.
10540 2011-09-19 Alan Modra <amodra@gmail.com>
10541 Michael Meissner <meissner@linux.vnet.ibm.com>
10544 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
10545 split the load of the indirect function's TOC from the call to
10546 prevent the compiler from moving the load of the new TOC above
10547 code that references the current function's TOC.
10548 (call_indirect_aix<ptrsize>_internal): Ditto.
10549 (call_indirect_aix<ptrsize>_nor11): Ditto.
10550 (call_indirect_aix<ptrsize>_internal2): Ditto.
10551 (call_value_indirect_aix<ptrsize>): Ditto.
10552 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10553 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10554 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10556 2011-09-19 Jakub Jelinek <jakub@redhat.com>
10558 * config/i386/sse.md (*sse4_1_extractps): Change into
10559 define_insn_and_split, add =x 0 n and =x x n alternatives
10560 and split them after reload.
10562 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
10564 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
10566 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
10568 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
10570 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
10572 PR tree-optimization/50413
10573 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
10574 a basic block if one of its data-refs can't be analyzed.
10576 2011-09-19 Paul Brook <paul@codesourcery.com>
10578 * config/arm/predicates.md (shift_amount_operand): Check constant
10579 shift count is in range.
10580 (const_shift_operand): Remove.
10582 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
10583 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10586 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
10587 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
10589 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
10591 * config/i386/bmiintrin.h: Remove tmp.
10592 * config/i386/tbmintrin.h: Likewise.
10594 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
10596 PR tree-optimization/50414
10597 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
10600 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
10602 PR tree-optimization/50412
10603 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
10604 acceses that require epilogue loop if vectorizing outer loop.
10606 2011-09-17 David S. Miller <davem@davemloft.net>
10608 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
10609 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
10611 (define_attr type): New type 'edge'.
10612 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
10613 edge32l_vis): New patterns.
10614 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
10615 * config/sparc/ultra3.md: Likewise.
10616 * config/sparc/niagara.md: Likewise.
10617 * config/sparc/niagara2.md: Likewise.
10618 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
10619 builtins for VIS edge instructions.
10620 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
10621 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
10623 (__v8qi, __v4qi): Make unsigned.
10624 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
10625 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
10626 __vis_fpack32): Fix types.
10627 * doc/extend.texi: Document new 'edge' VIS intrinsics.
10629 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
10631 (niagara3_costs): New.
10632 (sparc_option_override): Use it.
10633 * gcc/config/sparc/niagara2.md: Adjust with more accurate
10634 Niagara-3 reservations.
10636 2011-09-17 Jakub Jelinek <jakub@redhat.com>
10638 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
10639 (sse2_avx, sseinsnmode): Add V2TI.
10640 (REDUC_SMINMAX_MODE): New mode iterator.
10641 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
10642 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
10643 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
10644 (sse2_lshrv1ti3): Rename to...
10645 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
10646 iterator. Move before umaxmin expanders.
10647 * config/i386/i386.h (VALID_AVX256_REG_MODE,
10648 SSE_REG_MODE_P): Accept V2TImode.
10649 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
10650 V16HImode, V8SImode and V4DImode.
10652 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
10654 (ix86_build_signbit_mask): Likewise.
10655 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
10656 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
10657 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
10658 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
10659 (<code><mode>3) ... this.
10660 (avx2_<code><mode>3 smaxmin expand): Rename to...
10661 (<code><mode>3) ... this.
10662 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
10663 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
10664 VI8_AVX2 mode iterator.
10665 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
10666 VI8_AVX2 mode iterator.
10667 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
10670 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
10672 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
10675 2011-09-16 David S. Miller <davem@davemloft.net>
10677 * config/sparc/visintrin.h: New file.
10678 * config.gcc: Add it to extra_headers on sparc.
10680 2011-09-16 Jakub Jelinek <jakub@redhat.com>
10682 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
10683 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
10684 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
10685 reduc_smin_v4sf): Adjust callers.
10686 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
10689 * config/i386/sse.md (vec_extract_hi_<mode>,
10690 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
10691 vextracti128 instead of vextractf128 for -mavx2 and
10692 integer vectors. For V4DFmode fix up mode attribute.
10693 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
10694 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
10695 instead of V8SF mode attribute.
10696 (avx2_extracti128): Change into define_expand.
10697 * config/i386/i386.c (ix86_expand_vector_extract): Handle
10698 32-byte vector modes if TARGET_AVX.
10700 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
10702 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
10703 (umulqi3_highpart, smulqi3_highpart): Ditto.
10704 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
10705 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
10706 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
10708 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
10711 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
10712 (*maddqi4, *maddqi4.const): New insns.
10713 (*msubqi4, *msubqi4.const): New insns.
10714 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
10715 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
10716 HImode by 1 in the case of multiplying with a CONST_INT.
10717 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
10719 2011-09-15 Jan Hubicka <jh@suse.cz>
10722 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
10723 error_mark_node in the DECL_INITIAL of vtable.
10725 2011-09-15 Diego Novillo <dnovillo@google.com>
10727 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
10728 @SYSROOT_CFLAGS_FOR_TARGET@.
10729 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
10730 * configure: Regenerate.
10731 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
10732 Remove setting of GCC_UNDER_TEST.
10734 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
10736 * config/i386/i386.c (output_fp_compare): Return %v prefixed
10737 instruction mnemonics for TARGET_AVX.
10739 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
10740 "type" attribute calculation.
10741 (*movdf_internal): Ditto.
10742 (*movsf_internal): Ditto.
10744 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
10746 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
10748 2011-09-15 Jason Merrill <jason@redhat.com>
10751 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
10753 2011-09-15 Jan Hubicka <jh@suse.cz>
10755 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
10756 simplify obviously true clauses.
10757 (and_predicates, or_predicates): Add conditions parameter.
10758 (inline_duplication_hoook): Update.
10759 (mark_modified): New function.
10760 (unmodified_parm): New function.
10761 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
10762 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
10763 Use unmodified_parm.
10764 (estimate_function_body_sizes): Update.
10765 (remap_predicate): Update.
10767 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
10769 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
10770 read-after-read dependencies in basic block SLP.
10772 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10774 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
10777 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10779 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
10782 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10784 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
10787 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10789 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
10791 * config/rs6000/constraints.md: Likewise.
10793 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10795 * config/microblaze/microblaze.md: Use match_test rather than
10796 eq/ne symbol_ref throughout file.
10798 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10800 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
10803 2011-09-14 Tom de Vries <tom@codesourcery.com>
10805 PR middle-end/50251
10806 * explow.c (emit_stack_restore): Set crtl->need_drap if
10807 stack_restore is emitted.
10809 2011-09-14 Julian Brown <julian@codesourcery.com>
10811 * config/arm/arm.c (arm_override_options): Add unaligned_access
10813 (arm_file_start): Emit attribute for unaligned access as appropriate.
10814 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
10815 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
10816 (insv, extzv): Add unaligned-access support.
10817 (extv): Change to expander. Likewise.
10818 (extzv_t1, extv_regsi): Add helpers.
10819 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
10820 (unaligned_storesi, unaligned_storehi): New.
10821 (*extv_reg): New (previous extv implementation).
10822 * config/arm/arm.opt (munaligned_access): Add option.
10823 * config/arm/constraints.md (Uw): New constraint.
10824 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
10825 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
10826 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
10827 volatile accesses when -fstrict-volatile-bitfields is in effect.
10828 (extract_bit_field_1): Likewise.
10830 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
10832 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
10833 a scalar integer before applying integer-only optimisations to
10836 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
10838 * config/mips/mips.c (mips_expand_epilogue): Generate a
10839 simple_return only if the return address is in r31.
10841 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
10843 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
10844 NULL for a jump that is a cc0 insn, pick the previous insn for
10847 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10849 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
10852 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10854 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
10857 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10859 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
10860 symbol_ref throughout file.
10862 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10864 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
10867 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10869 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
10872 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10874 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
10876 * config/arm/neon.md: Likewise.
10877 * config/arm/vfp.md: Likewise.
10878 * config/arm/thumb2.md: Likewise.
10879 * config/arm/cortex-m4.md: Likewise.
10881 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
10883 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
10884 define_insn patterns for combine.
10886 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
10888 * reorg.c: Always define make_return_insns.
10890 2011-09-13 Jan Hubicka <jh@suse.cz>
10893 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
10895 2011-09-13 Jan Hubicka <jh@suse.cz>
10898 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
10900 2011-09-13 Paul Brook <paul@codesourcery.com>
10902 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10903 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
10904 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
10905 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
10906 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
10907 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
10908 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
10909 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
10910 enabling unwind tables.
10911 (c6x_debug_unwind_info): New function.
10912 (TARGET_ARM_EABI_UNWINDER): Define.
10913 (TARGET_DEBUG_UNWIND_INFO): Define.
10914 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
10915 (TARGET_EXTRA_CFI_SECTION): Remove.
10916 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
10917 * ginclude/unwind-arm-common.h: New file.
10919 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
10922 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
10923 * config/avr/avr.md: (extend_s): New code attribute.
10924 (mul_r_d): New code attribute.
10925 (*maddqihi4, *umaddqihi4): New insns.
10926 (*msubqihi4, *umsubqihi4): New insns.
10927 (*usmaddqihi4, *sumaddqihi4): New insns.
10928 (*usmsubqihi4, *susubdqihi4): New insns.
10929 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
10930 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
10931 (*umsubqihi4.uconst.ashift): New insn-and-split.
10932 (*msubqihi4.sconst.ashift): New insn-and-split.
10933 (*sumaddqihi4.uconst): New insn-and-split.
10934 (*sumsubqihi4.uconst): New insn-and-split.
10935 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
10936 PLUS:HI and MINUS:HI.
10938 2011-09-13 Revital Eres <revital.eres@linaro.org>
10940 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
10941 (optimize_sc): Adjust call to remove_node_from_ps.
10942 (sms_schedule): Add print info.
10944 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
10946 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
10949 2011-09-12 Jakub Jelinek <jakub@redhat.com>
10952 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
10953 NOTE_INSN_CFI notes, with the exception of
10954 NOTE_INSN_SWITCH_TEXT_SECTIONS.
10956 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
10957 Richard Sandiford <rdsandiford@googlemail.com>
10959 * config/mips/mips.c (mips_epilogue): New structure.
10960 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
10961 restoring registers.
10962 (mips_epilogue_emit_cfa_restores): New function.
10963 (mips_epilogue_set_cfa): Likewise.
10964 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
10965 the current CFA register from the stack, redefine the CFA in terms
10966 of the stack pointer.
10967 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
10968 to the epilogue instructions.
10970 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
10972 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
10974 (mips16e_build_save_restore): Update accordingly.
10976 2011-09-12 Jakub Jelinek <jakub@redhat.com>
10978 PR rtl-optimization/50212
10979 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10980 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
10983 * calls.c (load_register_parameters): Use use_reg_mode instead
10984 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
10986 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
10987 for stack CALL_INSN_FUNCTION_USAGE uses.
10988 * expr.h (use_reg_mode): New prototype.
10989 (use_reg): Changed into inline around use_reg_mode.
10990 * expr.c (use_reg): Renamed to...
10991 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
10992 mode to that mode instead of VOIDmode.
10993 * var-tracking.c (prepare_call_arguments): Don't track parameters
10994 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
10995 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
10998 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
11001 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
11002 (progmem_section): New Variable.
11003 (avr_asm_init_sections): Initialize it.
11004 (TARGET_ASM_SELECT_SECTION): Define to...
11005 (avr_asm_select_section): ... this new Function.
11006 (avr_replace_prefix): New Function.
11007 (avr_asm_function_rodata_section): Use it.
11008 (avr_insert_attributes): Don't add section attribute for PROGMEM.
11009 (avr_section_type_flags): Use avr_progmem_p instead of section
11010 name to detect if object is in PROGMEM.
11011 (avr_asm_named_section): Set section name prefix for objects in
11014 2011-09-12 Jakub Jelinek <jakub@redhat.com>
11017 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
11018 sprintf format string.
11020 2011-09-12 Richard Guenther <rguenther@suse.de>
11022 PR tree-optimization/50343
11023 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
11024 that the reduction is over an SSA name before checking its definition.
11026 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
11028 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
11031 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
11033 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
11035 * config/mips/sb1.md: Likewise.
11036 * config/mips/predicates.md: Replace (match_test "!...")
11037 with (not (match_test "..."))
11038 * config/mips/constraints.md: Likewise.
11040 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
11042 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
11043 * config/arm/arm-tables.opt: Regenerate.
11044 * config/arm/arm-tune.md: Regenerate.
11045 * config/arm/arm.c (arm_file_start): Output .arch directive when
11046 user passes -mcpu=generic-*.
11047 (arm_issue_rate): Add genericv7a support.
11048 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
11049 (ASM_CPU_SPEC): New define.
11050 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
11051 * config/arm/semi.h (ASM_SPEC): Likewise.
11052 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
11053 and -mtune=generic-*.
11055 2011-09-09 Richard Guenther <rguenther@suse.de>
11057 PR tree-optimization/50328
11058 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
11059 constant or default-def operand.
11061 2011-09-09 Richard Guenther <rguenther@suse.de>
11063 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
11066 2011-09-09 Richard Guenther <rguenther@suse.de>
11068 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
11069 instead of a statement.
11070 * gimple-fold.c (fold_stmt_inplace): Likewise.
11071 * sese.c (graphite_copy_stmts_from_block): Adjust.
11072 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11073 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
11075 (forward_propagate_addr_into_variable_array_index): Likewise.
11076 (forward_propagate_addr_expr_1): adjust.
11077 (associate_plusminus): Likewise.
11078 (ssa_forward_propagate_and_combine): Likewise.
11079 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
11080 (execute_cse_reciprocals): Likewise.
11081 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
11083 2011-09-09 Nick Clifton <nickc@redhat.com>
11085 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
11086 Return a positive value to indicate that the bits at the
11087 bottom of the register should be cleared.
11089 2011-09-09 Richard Guenther <rguenther@suse.de>
11091 * tree-ssa-operands.c (swap_tree_operands): Always adjust
11092 existing operand positions.
11094 2011-09-09 Richard Guenther <rguenther@suse.de>
11096 PR middle-end/50333
11097 * tree-data-ref.c (split_constant_offset): Do not try to handle
11100 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
11102 PR tree-optimization/50318
11103 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
11104 typo in use of mult_rhs1 and mult_rhs2.
11106 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
11108 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
11109 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
11111 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
11113 * config/arm/arm.md (push_multi): Emit predicates.
11114 (push_fp_multi): Likewise.
11115 * config/arm/arm.c (vfp_output_fstmd): Likewise.
11117 2011-09-08 Dodji Seketeli <dodji@redhat.com>
11119 PR c++/33255 - Support -Wunused-local-typedefs warning
11120 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
11121 (pushdecl): Use the new record_locally_defined_typedef.
11122 (store_parm_decls): Allocate cfun->language.
11123 (finish_function): Use the new maybe_warn_unused_local_typedefs,
11124 and free cfun->language.
11125 (c_push_function_context): Allocate cfun->language here only if needed.
11126 (c_pop_function_context): Likewise, mark cfun->language
11127 for collection only when it should be done.
11128 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
11129 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
11130 maybe_record_local_typedef_use.
11131 * doc/invoke.texi: Update documentation for
11132 -Wunused-local-typedefs.
11134 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
11136 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
11137 (ix86_avoid_lea_for_add): Likewise.
11138 (ix86_avoid_lea_for_addr): Likewise.
11139 (ix86_split_lea_for_addr): Likewise.
11141 * config/i386/i386.c (LEA_MAX_STALL): New.
11142 (increase_distance): Likewise.
11143 (insn_defines_reg): Likewise.
11144 (insn_uses_reg_mem): Likewise.
11145 (distance_non_agu_define_in_bb): Likewise.
11146 (distance_agu_use_in_bb): Likewise.
11147 (ix86_lea_outperforms): Likewise.
11148 (ix86_ok_to_clobber_flags): Likewise.
11149 (ix86_avoid_lea_for_add): Likewise.
11150 (ix86_avoid_lea_for_addr): Likewise.
11151 (ix86_split_lea_for_addr): Likewise.
11152 (distance_non_agu_define): Search in pred BBs added.
11153 (distance_agu_use): Search in succ BBs added.
11154 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
11155 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
11156 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
11158 * config/i386/i386.md: Split added to transform non destructive
11159 add into move and add.
11160 (lea_1): transformed into insn_and_split to avoid AGU stalls.
11161 (lea<mode>_2): Likewise.
11163 2011-09-08 Martin Jambor <mjambor@suse.cz>
11165 PR tree-optimization/50287
11166 * ipa-split.c (split_function): Do not create SSA names for
11167 non-gimple-registers.
11169 2011-09-08 Richard Guenther <rguenther@suse.de>
11171 PR tree-optimization/19831
11172 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
11173 skip builtins with vdefs that do not really store something.
11174 (propagate_necessity): For calls to free that we can associate
11175 with an allocation function do not mark the freed pointer
11176 definition necessary.
11177 (eliminate_unnecessary_stmts): Remove a call to free if
11178 the associated call to an allocation function is not necessary.
11180 2011-09-08 Richard Guenther <rguenther@suse.de>
11182 PR tree-optimization/19831
11183 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
11184 allocation functions as necessary.
11186 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
11188 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
11190 (darwin_default_min_version): Amended to provide defaults
11191 for the cross directory case.
11192 (darwin_driver_init): call darwin_default_min_version unconditionally.
11193 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
11194 * config/darwin9.h: Likewise.
11195 * config/darwin10.h: Likewise.
11196 * config/rs6000/darwin7.h: Likewise.
11198 2011-09-08 Jakub Jelinek <jakub@redhat.com>
11201 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
11202 code early if TARGET_AVX.
11203 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
11205 2011-09-07 Jakub Jelinek <jakub@redhat.com>
11207 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
11211 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
11212 "mode" attribute computation.
11214 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
11216 * regrename.c (struct du_head): Make nregs signed.
11217 (closed_chains): Remove.
11218 (create_new_chain): Return the new chain.
11219 (chain_from_id): New static function.
11220 (dump_def_use_chain): Change argument to be an int, indicating
11221 the first ID to print. All callers changed.
11222 (merge_overlapping_regs): Use chain_from_id. Assert that
11223 chains don't conflict with themselves.
11224 (rename_chains): Take no argument. Iterate over id_to_chain
11225 rather to find chains to rename. Clear tick before the main loop.
11226 (struct incoming_reg_info): New struct.
11227 (struct bb_rename_info): New struct.
11228 (init_rename_info, set_incoming_from_chain, merge_chains): New
11230 (regrename_analyze): New static function, broken out of
11231 regrename_optimize. Record and make use of open chain information
11232 at basic block boundaries, and merge chains where possible.
11233 (scan_rtx_reg): Make this_nregs signed. Don't update
11235 (build_def_use): Return a bool to indicate success. All callers
11236 changed. Don't initialize global data here.
11237 (regrename_optimize): Move most code out of here into
11239 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
11240 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
11241 static inline functions.
11242 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
11244 * bb-reorder.c (insert_section_boundary_note): Don't check
11245 optimize_function_for_speed_p.
11246 (gate_handle_partition_blocks): Do it here instead.
11247 (gate_handle_reorder_blocks): Move preliminary checks here ...
11248 (rest_of_handle_reorder_blocks): ... from here.
11250 2011-09-07 Martin Jambor <mjambor@suse.cz>
11252 PR middle-end/50301
11253 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
11254 function index bounds.
11255 (perhaps_add_new_callers): Likewise.
11257 2011-09-07 Martin Jambor <mjambor@suse.cz>
11259 PR tree-optimization/49911
11260 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
11261 enumerations to the corresponding plain integer type.
11263 2011-09-07 Richard Guenther <rguenther@suse.de>
11265 PR tree-optimization/50319
11266 * tree-if-conv.c (set_bb_predicate): Assert we only set
11267 canonical predicates.
11268 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
11269 around canonical predicates.
11270 (predicate_bbs): Do not re-gimplify already canonical
11271 predicates. Properly unshare them though.
11272 (find_phi_replacement_condition): Simplify.
11274 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
11277 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
11278 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
11279 reusing the old code from get_arm_condition_code. Return ARM_NV
11280 for invalid comparison codes.
11281 (get_arm_condition_code): Redefine in terms of
11282 maybe_get_arm_condition_code.
11283 * config/arm/predicates.md (arm_comparison_operator): Use
11284 maybe_get_arm_condition_code.
11286 2011-09-07 Richard Guenther <rguenther@suse.de>
11288 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11289 Canonicalize negated predicates by swapping edges.
11290 (forward_propagate_into_cond): Likewise.
11292 2011-09-07 Richard Guenther <rguenther@suse.de>
11294 PR tree-optimization/50213
11295 * tree-flow.h (simple_iv_increment_p): Declare.
11296 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
11298 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
11299 not propagate simple IV counter increments.
11301 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
11302 Iain Sandoe <iains@gcc.gnu.org>
11304 * config/rs6000/rs6000.c (compute_save_world_info): Test
11305 cfun->has_nonlocal_label to determine if the out-of-line save
11306 world call may be used.
11308 2011-09-07 Nick Clifton <nickc@redhat.com>
11310 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
11311 label on the parallel part of the insn.
11313 2011-09-07 Jakub Jelinek <jakub@redhat.com>
11316 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
11317 avoid_constant_pool_reference first instead of last.
11319 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11321 * doc/configfiles.texi (Configuration Files): Update documentation
11322 about tm_p.h and remove FIXME comment.
11324 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
11326 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
11327 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
11329 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
11331 * config/darwin10.h Remove duplicate LIB_SPEC.
11333 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
11335 PR middle-end/44382
11336 * target.def (reassociation_width): New hook.
11338 * doc/tm.texi.in (reassociation_width): Likewise.
11340 * doc/tm.texi (reassociation_width): Likewise.
11342 * doc/invoke.texi (tree-reassoc-width): New param documented.
11344 * hooks.h (hook_int_uint_mode_1): New default hook.
11346 * hooks.c (hook_int_uint_mode_1): Likewise.
11348 * config/i386/i386.h (ix86_tune_indices): Add
11349 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
11351 (TARGET_REASSOC_INT_TO_PARALLEL): New.
11352 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
11354 * config/i386/i386.c (initial_ix86_tune_features): Add
11355 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
11357 (ix86_reassociation_width): New function.
11359 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
11361 * tree-ssa-reassoc.c (get_required_cycles): New function.
11362 (get_reassociation_width): Likewise.
11363 (swap_ops_for_binary_stmt): Likewise.
11364 (rewrite_expr_tree_parallel): Likewise.
11366 (rewrite_expr_tree): Refactored. Part of code moved into
11367 swap_ops_for_binary_stmt.
11369 (reassociate_bb): Now checks reassociation width to be used and
11370 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
11372 2011-09-06 Richard Guenther <rguenther@suse.de>
11374 PR tree-optimization/47025
11375 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
11377 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
11379 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
11380 definitely points to.
11381 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11382 BUILT_IN_VA_START doesn't let its va_list argument escape.
11383 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
11384 not make any previous stores necessary.
11386 2011-09-06 Martin Jambor <mjambor@suse.cz>
11388 * ipa-inline.h (struct inline_summary): Move versionable flag...
11389 * cgraph.h (struct cgraph_local_info): ...here
11390 * ipa-cp.c (determine_versionability): Use the new versionable flag.
11391 (determine_versionability): Likewise.
11392 (ipcp_versionable_function_p): Likewise.
11393 (ipcp_generate_summary): Likewise.
11394 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
11396 (compute_inline_parameters): Do not clear the versionable flag.
11397 (inline_read_section): Do not stream the versionable flag.
11398 (inline_write_summary): Likewise.
11399 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
11400 (input_overwrite_node): Likewise.
11402 2011-09-06 Richard Guenther <rguenther@suse.de>
11404 PR tree-optimization/48149
11405 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
11406 (vn_valueize): Move earlier.
11407 (valueize_expr): Use vn_valueize.
11408 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
11410 (simplify_unary_expression): Simplify.
11412 2011-09-06 Richard Guenther <rguenther@suse.de>
11414 PR tree-optimization/48317
11415 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
11417 (sizeof_vn_nary_op): New inline function.
11418 (vn_nary_op_lookup_pieces): Adjust.
11419 (vn_nary_op_insert_pieces): Likewise.
11420 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
11421 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
11422 any number of operands.
11423 (vn_nary_length_from_stmt): New function.
11424 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
11425 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
11427 (vn_nary_op_lookup): Likewise.
11428 (vn_nary_op_lookup_stmt): Likewise.
11429 (vn_nary_op_insert_into): Likewise.
11430 (vn_nary_op_insert_stmt): Likewise.
11431 (visit_use): Handle CONSTRUCTOR as nary.
11432 * tree-ssa-pre.c (phi_translate_1): Adjust.
11433 (create_expression_by_pieces): Likewise.
11434 (compute_avail): Likewise.
11436 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
11438 * config/arm/arm.c (arm_preferred_simd_mode): Check
11439 TARGET_NEON_VECTORIZE_DOUBLE instead of
11440 TARGET_NEON_VECTORIZE_QUAD.
11441 (arm_autovectorize_vector_sizes): Likewise.
11442 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
11443 mask of mvectorize-with-neon-double. Add RejectNegative.
11444 (mvectorize-with-neon-double): New.
11446 2011-09-06 Richard Guenther <rguenther@suse.de>
11448 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
11450 2011-09-06 Tom de Vries <tom@codesourcery.com>
11452 * recog.c (asm_labels_ok): New function.
11453 (check_asm_operands): Use asm_labels_ok.
11455 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
11458 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
11459 (PMODE_INSN): New macro.
11460 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
11461 (mips_got_load, mips_expand_synci_loop): Likewise.
11462 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
11463 cprestore patterns.
11464 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
11465 copygp_mips16 patterns.
11466 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
11467 and use_cprestore patterns.
11468 (mips_override_options): Check for incompatible -mabi and -mlong
11470 * config/mips/mips.md (unspec_got<mode>): Rename to...
11471 (unspec_got_<mode>): ...this.
11472 (copygp_mips16): Use the Pmode iterator.
11473 (potential_cprestore, cprestore, use_cprestore): Likewise.
11474 (clear_cache, indirect_jump): Use PMODE_INSN.
11475 (indirect_jump<mode>): Rename to...
11476 (indirect_jump_<mode>): ...this.
11477 (tablejump): Use PMODE_INSN.
11478 (tablejump<mode>): Rename to...
11479 (tablejump_<mode>): ...this.
11480 (exception_receiver): Handle restore_gp_si and restore_gp_di.
11481 (restore_gp): Use the Pmode iterator.
11482 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
11485 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
11487 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
11488 Fix the type of the BIT_AND_EXPR.
11490 2011-09-05 David S. Miller <davem@davemloft.net>
11492 * config.host: Add driver-sparc.o and sparc/x-sparc on
11493 native sparc*-*-linux* builds.
11494 * config/sparc/driver-sparc.c: Correct Linux strings.
11495 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
11496 * config/sparc/linux64.h: Likewise.
11497 * doc/invoke.texi: Document that Linux also supports
11498 -mcpu=native and -mtune=native on sparc.
11500 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
11501 PROCESSOR_NIAGARA4): New.
11502 * config/sparc/sparc.opt: Handle new processor types.
11503 * config/sparc/sparc.md: Add to "cpu" attribute.
11504 * config/sparc/sparc.h (TARGET_CPU_niagara3,
11505 TARGET_CPU_niagara4): New, treat as niagara2.
11506 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
11507 * config/sparc/sol2.h: Likewise.
11508 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
11509 * config/sparc/sparc.c (sparc_option_override): Add
11510 niagara3 and niagara4 handling.
11511 (sparc32_initialize_trampoline): Likewise.
11512 (sparc64_initialize_trampoline): Likewise.
11513 (sparc_use_sched_lookahead): Likewise.
11514 (sparc_issue_rate): Likewise.
11515 (sparc_register_move_cost): Likewise.
11516 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
11517 and niagara4 as appropriate.
11518 * doc/invoke.texi: Document new processor types.
11519 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
11520 and --with-tune options.
11522 * config/sparc/sol2-64.h: Move ...
11523 * config/sparc/default-64.h: ... to here. Update comment.
11524 * config.gcc: Update Solaris sparc to use default-64.h, also
11525 prefix this header into the list on sparc64-*-linux.
11526 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
11527 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
11530 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
11533 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
11534 that contain global register variable.
11536 2011-09-05 Richard Guenther <rguenther@suse.de>
11538 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
11540 2011-09-05 Richard Guenther <rguenther@suse.de>
11542 * stor-layout.c (layout_type): Use size_binop for array size
11545 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
11547 * config/avr/avr.h (progmem_section): Remove Declaration.
11548 * config/avr/avr.c (progmem_section): Make static and rename to
11549 progmem_swtable_section.
11550 (avr_output_addr_vec_elt): No need to switch sections.
11551 (avr_asm_init_sections): Use output_section_asm_op as section
11552 callback for progmem_swtable_section.
11553 (avr_output_progmem_section_asm_op): Remove Function.
11554 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
11555 (avr_asm_function_rodata_section): New static Function.
11556 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
11557 alignment 2**1 for jump tables.
11559 2011-09-04 Jan Hubicka <jh@suse.cz>
11561 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
11562 parameter is SSA name.
11564 2011-09-04 Richard Guenther <rguenther@suse.de>
11567 2011-08-31 Richard Guenther <rguenther@suse.de>
11569 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
11572 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
11575 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
11577 2011-09-04 Jakub Jelinek <jakub@redhat.com>
11578 Ira Rosen <ira.rosen@linaro.org>
11580 PR tree-optimization/50208
11581 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
11582 argument. Check that def_stmt is inside the loop.
11583 (vect_recog_widen_mult_pattern): Update calls to
11584 vect_handle_widen_mult_by_cons.
11585 (vect_operation_fits_smaller_type): Check that def_stmt is
11588 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
11590 * tree-vectorizer.c (vect_print_dump_info): Print line
11591 number when dumping to a file.
11592 (vectorize_loops): Add new messages to dump file.
11594 2011-09-03 Martin Jambor <mjambor@suse.cz>
11596 * ipa-prop.h (ipa_jump_func_t): New typedef.
11597 (struct ipa_edge_args): Removed field argument_count, field
11598 jump_functions turned into a vector.
11599 (ipa_set_cs_argument_count): Removed.
11600 (ipa_get_cs_argument_count): Updated to work on vectors.
11601 (ipa_get_ith_jump_func): Likewise.
11602 * ipa-prop.c (ipa_count_arguments): Removed.
11603 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
11604 jump functions. Update caller.
11605 (compute_pass_through_member_ptrs): Likewise.
11606 (compute_cst_member_ptr_arguments): Likewise.
11607 (ipa_compute_jump_functions_for_edge): Get number of arguments from
11608 the statement, allocate vector.
11609 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
11610 (duplicate_ipa_jump_func_array): Removed.
11611 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
11612 (ipa_read_node_info): Allocate vector.
11614 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11616 PR middle-end/50232
11617 * config/pa/pa.md (return): Define "return" insn pattern.
11618 (epilogue): Use it when no epilogue is needed.
11619 * config/pa/pa.c (pa_can_use_return_insn): New function.
11620 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
11622 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
11624 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
11625 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
11626 Force at least BITS_PER_UNIT alignment on the new variable.
11628 2011-09-02 Gary Funck <gary@intrepid.com>
11630 * opts.c (print_specific_help): Fix off-by-one compare in
11632 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11633 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
11634 Increase by +5 to allow for more languages.
11635 * optc-gen.awk: Generate #if that ensures that the number of
11636 languages is within the implementation-defined limit.
11638 2011-09-02 Michael Matz <matz@suse.de>
11640 PR middle-end/50260
11641 * ipa-split.c (split_function): Call add_referenced_var.
11643 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
11644 (cond_if_else_store_replacement_1): Ditto.
11645 * tree-ssa-pre.c (get_representative_for): Ditto.
11646 (create_expression_by_pieces): Ditto.
11647 (insert_into_preds_of_block): Ditto.
11648 * tree-sra.c (create_access_replacement): Ditto.
11649 (get_replaced_param_substitute): Ditto.
11651 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
11653 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
11655 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
11656 (l1w, s1w, l2w, s2w): Define in the main automaton.
11657 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
11659 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
11660 (c6x_unit_names): Add the new units.
11661 (c6x_unit_codes): New static array.
11662 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
11663 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
11664 UNIT_QID_SIDE_OFFSET): New macros.
11665 (RESERVATION_S2): Adjust value.
11666 (c6x_option_override): Compute c6x_unit_codes.
11667 (assign_reservations): Take the unit_mask of the last instruction
11668 into account. Detect floating point reservations by looking for
11669 the new units. Don't assign reservations if the field is already
11671 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
11672 (init_sched_state): Initialize it.
11673 (c6x_clear_sched_context): Free it.
11674 (insn_set_clock): Clear reservation.
11675 (prev_cycle_state): New static variable.
11676 (c6x_init_sched_context): Save it.
11677 (c6x_sched_init): Allocate space for it and clear it.
11678 (c6x_sched_dfa_pre_cycle_insn): New static function.
11679 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
11680 (c6x_variable_issue): Only record units in the unit_mask that
11681 were not set at the start of the cycle.
11682 (c6x_variable_issue): Compute and store the unit_mask from the
11684 (reorg_split_calls): Ensure the new information remains correct.
11685 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
11686 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
11687 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
11688 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
11689 Add special reservations.
11690 * config/c6x/c6x-sched.md: Regenerate.
11692 2011-09-02 Martin Jambor <mjambor@suse.cz>
11694 * ipa-prop.h (ipa_node_params): Removed fields
11695 called_with_var_arguments and node_versionable.
11696 (ipa_set_called_with_variable_arg): Removed.
11697 (ipa_is_called_with_var_arguments): Likewise.
11698 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
11699 (determine_versionability): Do not check for type attributes and va
11700 builtins. Record versionability into inline summary.
11701 (initialize_node_lattices): Do not check
11702 ipa_is_called_with_var_arguments.
11703 (propagate_constants_accross_call): Likewise, ignore arguments we do
11704 not have PARM_DECLs for, set variable flag for parameters that were
11705 not passed a value.
11706 (create_specialized_node): Dump info that we cannot change signature.
11707 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
11708 number of arguments.
11709 (ipa_make_edge_direct_to_target): Likewise.
11710 (ipa_update_after_lto_read): Likewise.
11711 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
11712 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
11713 they were remapped.
11715 2011-09-02 Richard Guenther <rguenther@suse.de>
11717 PR tree-optimization/27460
11718 PR middle-end/29269
11719 * doc/md.texi (vcond): Document.
11720 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
11721 optab with two modes.
11722 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
11723 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
11724 (vcond_optab): Adjust.
11725 (vcondu_optab): Likewise.
11726 (expand_vec_cond_expr_p): Adjust prototype.
11727 * optabs.c (get_vcond_icode): Adjust.
11728 (expand_vec_cond_expr_p): Likewise.
11729 (expand_vec_cond_expr): Likewise.
11730 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
11732 (vectorizable_condition): Allow differing types for comparison
11734 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
11735 for the comparison.
11736 * config/i386/sse.md (vcond<mode>): Split to
11737 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
11738 vcond<V_128:mode><VI124_128:mode> and
11739 vcondu<V_128:mode><VI124_128:mode>.
11740 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
11741 (vconduv2di): Likewise.
11742 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
11743 (vcondu<mode>): Likewise.
11744 * config/ia64/vect.md (vcond<mode>): Likewise.
11745 (vcondu<mode>): Likewise.
11746 (vcondv2sf): Likewise.
11747 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
11748 * config/rs6000/paired.md (vcondv2sf): Likewise.
11749 * config/rs6000/vector.md (vcond<mode>): Likewise.
11750 (vcondu<mode>): Likewise.
11751 * config/spu/spu.md (vcond<mode>): Likewise.
11752 (vcondu<mode>): Likewise.
11754 2011-09-02 Richard Guenther <rguenther@suse.de>
11756 * pretty-print.h (pp_unsigned_wide_integer): New.
11757 * tree-pretty-print.c (dump_generic_node): Print unsigned
11758 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
11760 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
11763 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
11764 valid CONST_VECTOR operands.
11765 (rs6000_expand_vector_init): Likewise.
11767 2011-09-02 Martin Jambor <mjambor@suse.cz>
11769 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
11770 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
11771 BINFO_VTABLE. Parameter delta removed, all callers updated.
11772 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
11774 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
11776 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
11777 handling of thunk_delta.
11778 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
11779 (devirtualization_time_bonus): Do not handle thunk deltas.
11780 (ipcp_discover_new_direct_edges): Likewise.
11781 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11782 (try_make_edge_direct_simple_call): Likewise.
11783 (try_make_edge_direct_virtual_call): Likewise.
11784 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
11785 parameter set as unused.
11786 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
11787 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
11788 parameter set as unused.
11789 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
11790 (input_edge_opt_summary): Likewise.
11791 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
11792 BINFO_VIRTUALS at all.
11793 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
11795 2011-09-02 Richard Guenther <rguenther@suse.de>
11797 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
11798 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
11800 2011-08-31 Richard Guenther <rguenther@suse.de>
11802 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
11803 handling here, from ...
11804 (expand_expr_real_1): ... here.
11805 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
11807 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
11808 a GIMPLE_TERNARY_RHS.
11809 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
11810 and VEC_COND_EXPR here ...
11811 (verify_gimple_assign_single): ... not here.
11812 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
11813 * tree-object-size.c (cond_expr_object_size): Adjust.
11814 (collect_object_sizes_for): Likewise.
11815 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
11816 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
11817 (ssa_forward_propagate_and_combine): Adjust.
11818 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
11820 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
11821 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
11822 * tree-vect-stmt.c (vectorizable_condition): Likewise.
11823 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
11824 (extract_range_from_assignment): Likewise.
11826 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
11828 * config/i386/i386.md: Use (match_test ...) for attribute tests.
11829 * config/i386/mmx.md: Likewise.
11830 * config/i386/sse.md: Likewise.
11831 * config/i386/predicates.md (call_insn_operand): Use
11832 (not (match_test "...")) instead of (match_test "!...")
11833 * config/i386/constraints.md (w): Likewise.
11835 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
11837 * doc/md.texi: Describe the use of match_tests in attribute tests.
11838 * rtl.def (MATCH_TEST): Update commentary.
11839 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
11840 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
11842 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
11844 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
11845 (attr_string): Use copy_md_ptr_loc.
11847 2011-08-31 Martin Jambor <mjambor@suse.cz>
11849 PR middle-end/49886
11850 * ipa-inline-analysis.c (compute_inline_parameters): Set
11851 can_change_signature of noes with typde attributes.
11852 * ipa-split.c (split_function): Do not skip any arguments if
11853 can_change_signature is set.
11855 2011-08-31 Martin Jambor <mjambor@suse.cz>
11857 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
11860 2011-08-31 Richard Guenther <rguenther@suse.de>
11862 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
11865 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
11867 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
11869 2011-08-31 Tom de Vries <tom@codesourcery.com>
11871 PR middle-end/43513
11872 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
11873 * tree-ssa-ccp.c (params.h): Include.
11874 (fold_builtin_alloca_for_var): New function.
11875 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
11877 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
11879 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11882 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
11884 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
11885 b3 and b4 unsigned.
11887 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
11889 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
11892 2011-08-30 Richard Guenther <rguenther@suse.de>
11894 PR middle-end/48571
11895 * gimple.h (maybe_fold_offset_to_address): Remove.
11896 (maybe_fold_offset_to_reference): Likewise.
11897 (maybe_fold_stmt_addition): Likewise.
11898 (may_propagate_address_into_dereference): Likewise.
11899 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
11901 * gimple-fold.c (canonicalize_constructor_val): Likewise.
11902 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
11904 (may_propagate_address_into_dereference): Remove.
11905 (maybe_fold_offset_to_array_ref): Likewise.
11906 (maybe_fold_offset_to_reference): Likewise.
11907 (maybe_fold_offset_to_address): Likewise.
11908 (maybe_fold_stmt_addition): Likewise.
11909 (fold_gimple_assign): Do not reconstruct array references but
11910 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
11912 (gimple_fold_stmt_to_constant_1): Likewise.
11913 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11914 * gimplify.c (gimplify_conversion): Likewise.
11915 (gimplify_expr): Likewise.
11917 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
11919 * config/i386/fmaintrin.h: New.
11920 * config.gcc: Add fmaintrin.h.
11921 * config/i386/i386.c
11922 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
11923 <IX86_BUILTIN_VFMADDSD3>: Likewise.
11924 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
11925 (*fmai_fmadd_<mode>): Likewise.
11926 (*fmai_fmsub_<mode>): Likewise.
11927 (*fmai_fnmadd_<mode>): Likewise.
11928 (*fmai_fnmsub_<mode>): Likewise.
11929 * config/i386/immintrin.h: Add fmaintrin.h.
11931 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
11933 * genautomata.c (NO_COMB_OPTION): New macro.
11934 (no_comb_flag): New static variable.
11935 (gen_automata_option): Handle NO_COMB_OPTION.
11936 (comb_vect_p): False if no_comb_flag.
11937 (add_vect): Move computation of min/max values. Return early if
11939 * doc/md.texi (automata_option): Document no-comb-vect.
11941 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
11942 "__x86.get_pc_thunk".
11944 * bb-reorder.c (insert_section_boundary_note): Only do it if
11945 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
11947 2011-08-30 Christian Bruel <christian.bruel@st.com>
11949 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
11952 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
11954 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
11955 to off. Document switch.
11956 * doc/invoke.texi (-msave-toc-indirect): Ditto.
11958 2011-08-29 Jakub Jelinek <jakub@redhat.com>
11960 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
11961 conditionals and comments inside macro arguments.
11963 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
11964 Richard Guenther <rguenther@suse.de>
11966 * tree.h (constant_boolean_node): Adjust prototype.
11967 * fold-const.c (fold_convert_loc): Move aggregate conversion
11969 (constant_boolean_node): Make value parameter boolean, add
11970 vector type handling.
11971 (fold_unary_loc): Use constant_boolean_node.
11972 (fold_binary_loc): Preserve types properly when folding
11973 COMPLEX_EXPR <__real x, __imag x>.
11974 * gimplify.c (gimplify_expr): Handle vector comparison.
11975 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
11977 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
11980 2011-08-29 Jakub Jelinek <jakub@redhat.com>
11982 PR middle-end/48722
11983 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
11984 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
11985 (verify_rtl_sharing): Likewise and verify_rtx_sharing
11987 (unshare_all_rtl_in_chain): For CALL_INSNs
11988 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
11990 2011-08-29 Richard Guenther <rguenther@suse.de>
11992 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
11993 on the built ADDR_EXPR.
11995 2011-08-29 Jakub Jelinek <jakub@redhat.com>
11998 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
11999 before adding ENTRY_VALUE to val->locs.
12001 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
12004 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
12007 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
12009 * doc/rtl.texi (simple_return): Document.
12010 (parallel, PATTERN): Here too.
12011 * doc/md.texi (return): Mention it's allowed to expand to simple_return
12013 (simple_return): Document standard pattern.
12014 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
12015 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
12016 * reorg.c (function_return_label, function_simple_return_label):
12017 New static variables, replacing...
12018 (end_of_function_label): ... this.
12019 (simplejump_or_return_p): New static function.
12020 (optimize_skip, steal_delay_list_from_fallthrough,
12021 fill_slots_from_thread): Use it.
12022 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
12023 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
12024 (find_end_label): Take a new arg which is one of the two return
12025 rtxs. Depending on which, set either function_return_label or
12026 function_simple_return_label. All callers changed.
12027 (make_return_insns): Make both kinds.
12028 (dbr_schedule): Adjust for two kinds of end labels.
12029 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
12030 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
12031 (gen_expand, gen_split): Use ANY_RETURN_P.
12032 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
12033 * rtl.def (SIMPLE_RETURN): New code.
12034 * ifcvt.c (find_if_case_1): Be more careful about
12035 redirecting jumps to the EXIT_BLOCK.
12036 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
12037 returnjump_p_1): Handle SIMPLE_RETURNs.
12038 * print-rtl.c (print_rtx): Likewise.
12039 * rtl.c (copy_rtx): Likewise.
12040 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
12041 * combine.c (simplify_set): Likewise.
12042 * resource.c (find_dead_or_set_registers, mark_set_resources):
12044 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
12045 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
12046 (init_emit_regs): Initialize simple_return_rtx.
12047 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
12048 force_nonfallthru_and_redirect.
12049 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
12050 (GR_SIMPLE_RETURN): New enum value.
12051 (simple_return_rtx): New macro.
12052 * basic-block.h (force_nonfallthru_and_redirect): Adjust
12054 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
12055 argument. All callers changed. Be careful about what kinds of
12056 returnjumps to generate.
12057 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
12058 ix86_pad_short_function): Likewise.
12059 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
12061 * config/mips/mips.md (any_return): New code_iterator.
12062 (optab): Add cases for return and simple_return.
12063 (return): Expand to a simple_return.
12064 (simple_return): New pattern.
12065 (*<optab>, *<optab>_internal for any_return): New patterns.
12066 (return_internal): Remove.
12067 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
12068 a simple_return_internal.
12070 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
12072 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
12073 (vec_extract_lo_<mode>): Prevent both operands in memory.
12074 (vec_extract_lo_v16hi): Ditto.
12075 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
12077 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
12079 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
12080 (*sse2_mulv4si3): Ditto.
12082 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
12083 notes to REG_EQUAL.
12085 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
12088 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
12089 when all outputs are unused.
12090 (sse4_2_pcmpistr): Ditto.
12092 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
12094 * config/i386/i386.md (round<mode>2): New expander.
12095 * config/i386/i386.c (enum ix86_builtins): Add
12096 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
12097 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
12099 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
12100 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
12102 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
12104 PR middle-end/50083
12105 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
12106 only when TARGET_C99_FUNCTIONS.
12107 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
12108 <BUILT_IN_RINT{,F,L}>: Ditto.
12110 2011-08-26 Michael Matz <matz@suse.de>
12111 Jakub Jelinek <jakub@redhat.com>
12114 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
12115 don't call strlen twice, use memcpy.
12117 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
12119 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
12120 * config/i386/bmiintrin.h: Likewise.
12121 * config/i386/lzcntintrin.h: Likewise.
12123 * config/i386/immintrin.h: Include <lzcntintrin.h>,
12124 <bmiintrin.h> and <bmi2intrin.h>.
12126 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12129 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
12130 * configure: Regenerate.
12132 2011-08-26 Jakub Jelinek <jakub@redhat.com>
12135 * c-typeck.c (c_process_expr_stmt): Skip over nops and
12136 call mark_exp_read even if exprv is ADDR_EXPR.
12138 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
12140 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
12141 to df_set_dead_notes_for_mw.
12143 2011-08-26 Richard Guenther <rguenther@suse.de>
12145 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
12147 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
12148 Tom de Vries <tom@codesourcery.com>
12150 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
12151 (struct ivopts_data): Add loop_single_exit_p field.
12152 (niter_for_exit): Change parameter desc_p into return value. Return
12153 desc if desc->may_be_zero. Free desc if unused.
12154 (niter_for_single_dom_exit): Change return type.
12155 (find_induction_variables): Handle changed return type of
12156 niter_for_single_dom_exit. Dump may_be_zero.
12157 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
12158 (set_use_iv_cost): Add and handle comp parameter.
12159 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
12160 comp argument to set_use_iv_cost.
12161 (strip_wrap_conserving_type_conversions, expr_equal_p)
12162 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
12163 (may_eliminate_iv): Add comp parameter. Handle new return type of
12164 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
12165 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
12166 and may_eliminate_iv.
12167 (rewrite_use_compare): Move call to iv_elimination_compare to ...
12168 (may_eliminate_iv): Here.
12169 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
12171 2011-08-26 Tom de Vries <tom@codesourcery.com>
12173 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
12174 accessing TREE_TYPE.
12176 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
12178 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
12179 (*ior_scc_scc_cmp): Likewise
12180 (*and_scc_scc): Likewise.
12181 (*and_scc_scc_cmp): Likewise.
12182 (*and_scc_scc_nodom): Likewise.
12183 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
12185 2011-08-26 Jakub Jelinek <jakub@redhat.com>
12187 * rtlanal.c (nonzero_bits1): Handle CLRSB.
12189 2011-08-26 Richard Guenther <rguenther@suse.de>
12191 * expr.c (string_constant): Handle &MEM_REF.
12193 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
12195 * config/arm/arm.c (struct four_ints): New type.
12196 (count_insns_for_constant): Delete function.
12197 (find_best_start): Delete function.
12198 (optimal_immediate_sequence): New function.
12199 (optimal_immediate_sequence_1): New function.
12200 (arm_gen_constant): Move constant splitting code to
12201 optimal_immediate_sequence.
12202 Rewrite constant negation/invertion code.
12204 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
12206 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
12207 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
12208 Remove prototype. Remove static function type.
12209 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
12210 Add arch attribute.
12211 * config/arm/constraints.md (Pj, PJ): New constraints.
12213 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12215 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
12216 ("cortex_a9_multiply_long"): New and use above. Handle all
12217 long multiply cases.
12218 ("cortex_a9_multiply"): Handle smmul and smmulr.
12219 ("cortex_a9_mac"): Handle smmla.
12221 2011-08-25 Richard Henderson <rth@redhat.com>
12225 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
12226 non-constant stack adjutment.
12227 * expr.c (find_args_size_adjust): Break out from ...
12228 (fixup_args_size_notes): ... here.
12229 * rtl.h (find_args_size_adjust): Declare.
12231 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
12233 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
12234 sse4 and sse4_noavx.
12235 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
12236 (*pushdf_rex64): Change Y2 register constraint to x.
12237 (*movdf_internal_rex64): Ditto.
12238 (*zero_extendsidi2_rex64): Ditto.
12239 (*movdi_internal): Change Y2 register constraint to x
12240 and update "isa" attribute.
12242 (*movdf internal): Ditto.
12243 (zero_extendsidi2_1): Ditto.
12244 (*truncdfdf_mixed): Ditto.
12245 (*truncxfdf2_mixed): Ditto.
12246 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
12247 register constraint to x.
12248 (*movv2sf_internal_rex64): Ditto.
12249 (*mov<mode>_internal): Change Y2 register constraint to x
12250 and add "isa" attribute.
12251 (*movv2sf_internal): Ditto.
12252 (*vec_extractv2si_1): Ditto.
12253 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
12254 constraints to x and update "isa" attribute.
12255 (*vec_interleave_highv2df): Change Y3 registerconstraint
12256 to x and update "isa" attribute.
12257 (*vec_interleave_lowv2df): Ditto.
12258 (*vec_concatv2df): Change Y2 register constraint to x and
12259 update "isa" attribute.
12260 (sse2_loadld): Ditto.
12261 (*vec_extractv2di_1): Ditto.
12262 (*vec_dupv4si): Ditto.
12263 (*vec_dupv2di): Ditto.
12264 (*vec_concatv4si): Ditto.
12265 (vec_concatv2di): Ditto.
12266 * config/i386/constraints.md (Y2): Remove.
12270 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
12272 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
12273 dump_def_use_chain): Don't declare.
12274 (mark_conflict, create_new_chain): Move before users.
12275 (regrename_optimize): Move to near end of file.
12277 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12279 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
12280 (secondary_input_reload_class): Remove Prototype.
12281 * config/avr/avr.c (byte_immediate_operand): Remove Function.
12282 * config/avr/avr.md (setmemhi): Use u8_operand.
12283 (strlenhi): Use const0_rtx for comparison.
12284 * config/avr/avr.h (avr_reg_order): Remove Declaration.
12286 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12288 * config/avr/avr.c (reg_class_tab): Make local to
12289 avr_regno_reg_class. Return smallest register class available.
12291 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12293 * config/avr/avr.c (STR_PREFIX_P): New Define.
12294 (avr_asm_declare_function_name): Use it.
12295 (avr_asm_named_section): Use it.
12296 (avr_section_type_flags): Use it.
12298 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
12300 * doc/md.texi (automata_option): Document collapse-ndfa.
12301 * genautomata.c (COLLAPSE_OPTION): New macro.
12302 (collapse_flag): New static variable.
12303 (struct description): New member normal_decls_num.
12304 (struct automaton): New members advance_ainsn and collapse_ainsn.
12305 (gen_automata_option): Check for COLLAPSE_OPTION.
12306 (collapse_ndfa_insn_decl): New static variable.
12307 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
12308 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
12309 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
12310 necessary. Use normal_decls_num rather than decls_num, remove
12311 test for special decls.
12312 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
12313 (make_automaton); Likewise. Use the new advance_cycle_insn member
12314 of struct automaton.
12315 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
12317 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
12318 transition. Create the necessary transitions for it.
12319 (create_ainsns): Return void. Take an automaton_t argument, and
12320 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
12322 (COLLAPSE_NDFA_VALUE_NAME): New macro.
12323 (output_tables): Output code to define it.
12324 (output_internal_insn_code_evaluation): Output code to accept
12325 const0_rtx as collapse-ndfa transition.
12326 (output_default_latencies, output_print_reservation_func,
12327 output_print_description): Reorganize loops to use normal_decls_num
12328 as loop bound; remove special case for advance_cycle_insn_decl.
12329 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
12330 (check_automata_insn_issues): Check for collapse_ainsn.
12331 (expand_automate): Allocate sufficient space. Initialize
12334 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12336 * config/avr/avr.md: Fix indentation from r177991.
12338 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
12340 * regrename.c (struct du_head): Remove member terminated.
12341 (create_new_chain): Don't initialize it.
12342 (scan_rtx_reg): Don't set or test it, test the open_chains_set
12344 (tick, this_tick): New global variables, moved out of
12345 regrename_optimize.
12346 (current_id, open_chains, closed_chains, open_chains_set,
12347 live_in_chains, live_hard_regs): Reorder declarations.
12348 (dump_def_use_chain): Move function earlier in the file.
12349 (rename_chains): New static function, broken out of
12350 regrename_optimize.
12351 (regrename_optimize): Use it. Remove #if 0'ed code.
12353 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12355 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
12357 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
12360 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
12362 2011-08-24 Richard Guenther <rguenther@suse.de>
12364 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
12365 ref in the basic-block case. Move stripping array-refs
12366 to the place we create an access-function for it. Remove
12367 bogus stripping down a MEM_REF to its base.
12369 2011-08-24 Richard Guenther <rguenther@suse.de>
12371 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
12372 with -fno-strict-overflow.
12374 2011-08-24 Richard Guenther <rguenther@suse.de>
12376 * tree-vectorizer.c (vect_print_dump_info): Avoid the
12377 file and location clutter when dumping to dump files.
12379 2011-08-24 Simon Baldwin <simonb@google.com>
12381 * gengtype-state.c (write_state): Remove timestamped header line.
12383 2011-08-24 Joseph Myers <joseph@codesourcery.com>
12385 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
12386 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
12387 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
12388 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
12389 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
12390 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
12391 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
12393 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
12395 2011-08-24 Joseph Myers <joseph@codesourcery.com>
12397 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
12399 2011-08-24 Richard Guenther <rguenther@suse.de>
12401 PR tree-optimization/50067
12402 * tree-data-ref.c (dr_analyze_indices): Do not add an access
12403 function for a MEM_REF base that has no evolution in the loop
12404 nest or that is not analyzable.
12406 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
12408 * ira.c (ira_init_register_move_cost): Check small subclasses
12409 through ira_reg_class_max_nregs and ira_available_class_regs.
12411 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
12413 * config/i386/constraints.md (Yp): New register constraint.
12414 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
12415 Yp register constraint.
12416 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
12417 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
12418 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
12420 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
12422 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
12424 2011-08-23 Mark Heffernan <meheff@google.com>
12426 PR middle-end/38509
12427 * common.opt (Wfree-nonheap-object): New option.
12428 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
12429 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
12431 (expand_builtin): Make warning conditional.
12433 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
12435 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
12436 (length_immediate): Handle imulx, ishiftx and rotatex.
12439 (enabled): Handle bmi2.
12440 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
12441 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
12442 (*bmi2_umulditi3_1): New insn pattern.
12443 (*bmi2_umulsidi3_1): Ditto.
12444 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
12445 (*bmi2_ashl<mode>3_1): New insn pattern.
12446 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
12447 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
12448 (*bmi2_ashlsi3_1_zext): New insn pattern.
12449 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
12450 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
12451 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
12452 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
12453 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
12455 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
12456 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
12457 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
12459 (*bmi2_rorx<mode>3_1): New insn pattern.
12460 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
12461 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
12462 (*rotatert<mode>3_1 splitter): Ditto.
12463 (*bmi2_rorxsi3_1_zext): New insn pattern.
12464 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
12465 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
12466 (*rotatertsi3_1_zext splitter): Ditto.
12468 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
12470 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
12471 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
12472 (ix86_handle_option): Handle OPT_mbmi2 case.
12473 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
12474 (x86_64-*-*): Likewise.
12475 * config/i386/bmi2intrin.h: New file.
12476 * config/i386/cpuid.h (bit_BMI2): New.
12477 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12479 * config/i386/i386-c.c (ix86_target_macros_internal):
12480 Conditionally define __BMI2__.
12481 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
12482 Handle BMI2 option.
12483 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
12484 (print_reg): New code.
12485 (ix86_print_operand): Likewise.
12486 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
12487 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
12488 IX86_BUILTIN_PEXT64.
12489 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
12490 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
12491 IX86_BUILTIN_PEXT64.
12492 * config/i386/i386.h (TARGET_BMI2): New.
12493 * config/i386/i386.md (UNSPEC_PDEP): New.
12494 (UNSPEC_PEXT): Likewise.
12495 (*bmi2_bzhi_<mode>3): Likewise.
12496 (*bmi2_pdep_<mode>3): Likewise.
12497 (*bmi2_pext_<mode>3): Likewise.
12498 * config/i386/i386.opt (mbmi2): New.
12499 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
12501 * doc/extend.texi: Document BMI2 built-in functions.
12502 * doc/invoke.texi: Document -mbmi2.
12504 2011-08-23 Jakub Jelinek <jakub@redhat.com>
12506 PR middle-end/50161
12507 * simplify-rtx.c (simplify_const_unary_operation): If
12508 op is CONST_INT, don't look at op_mode, but use instead mode.
12509 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
12510 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
12511 operation and TRUNCATE/ZERO_EXTEND if needed.
12512 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
12513 Document that operand mode must be same as operation mode,
12515 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
12516 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
12517 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
12518 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
12519 use the mode of operand for the operation and add truncate
12520 or zero_extend around if needed.
12521 * config/c6x/c6x.md (ctzdi2): Likewise.
12522 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
12524 2011-08-12 Michael Matz <matz@suse.de>
12526 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
12527 (gimple_expand_cfg): Merge alignment info for coalesced pointer
12530 2011-08-23 Richard Guenther <rguenther@suse.de>
12532 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
12533 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
12534 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
12536 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
12537 (mem_refs_may_alias_p): Adjust.
12538 * tree-data-ref.h (dr_may_alias_p): Adjust.
12539 * tree-data-ref.c: Include tree-affine.h.
12540 (dr_analyze_indices): Do nothing for the non-loop case.
12541 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
12542 more cases in the non-loop case.
12543 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
12544 calls to dr_may_alias_p.
12545 (write_alias_graph_to_ascii_ecc): Likewise.
12546 (write_alias_graph_to_ascii_dot): Likewise.
12547 (build_alias_set_optimal_p): Likewise.
12549 2011-08-23 Richard Guenther <rguenther@suse.de>
12551 PR tree-optimization/50162
12552 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
12554 2011-08-23 Richard Guenther <rguenther@suse.de>
12556 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
12557 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
12558 (create_data_ref): Also dump access functions for the created data-ref.
12560 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
12561 Kirill Yukhin <kirill.yukhin@intel.com>
12564 * config/i386/sse.md (VI_AVX2): New.
12565 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
12566 (*<plusminus_insn><mode>3): Ditto.
12567 (<sse2_avx2>_andnot<mode>3): Ditto.
12568 (*andnot<mode>3): Fix order of cond operands.
12569 Add asserts for correct TARGET_xxx.
12570 (*<any_logic:code><mode>3): Ditto.
12572 2011-08-22 Anatoly Sokolov <aesok@post.ru>
12574 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
12575 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
12576 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
12577 regclass argument type to reg_class_t. Change 'max' and 'v' vars
12578 and return types to unsigned char. Use reg_class_contents instead
12580 (TARGET_CLASS_MAX_NREGS): Define.
12582 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
12584 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
12585 to make computed_jump_p return true.
12587 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12589 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
12590 (PICFLAG_FOR_TARGET): Substitute.
12591 * aclocal.m4: Regenerate.
12592 * configure: Regenerate.
12594 2011-08-22 Dodji Seketeli <dodji@redhat.com>
12596 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
12597 after reading in the pch.
12599 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
12601 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
12602 * configure: Regenerated.
12604 2011-08-22 Jakub Jelinek <jakub@redhat.com>
12606 PR tree-optimization/50133
12607 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
12608 from stmt instead of some statement around gsi.
12610 PR middle-end/50141
12611 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
12612 innerdecl is a VAR_DECL.
12614 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
12616 * config/i386/avx2intrin.h: New file.
12617 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
12618 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
12619 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
12620 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
12621 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
12622 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
12623 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
12624 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
12625 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
12626 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
12627 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
12628 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
12629 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
12630 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
12631 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
12632 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
12633 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
12634 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
12635 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
12636 VOID_FTYPE_PV8SI_V8SI_V8SI,
12637 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
12638 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
12639 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
12640 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
12641 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
12642 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
12643 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
12644 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
12645 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
12646 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
12647 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
12648 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
12649 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
12650 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
12651 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
12652 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
12653 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
12654 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
12655 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
12656 V4DI_FTYPE_V4DI_INT_CONVERT,
12657 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
12658 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
12659 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
12660 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
12661 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
12662 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
12663 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
12664 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
12665 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
12666 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
12667 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
12668 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
12669 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
12670 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12671 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12672 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12673 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
12674 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
12675 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
12676 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
12677 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
12678 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
12679 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
12680 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
12681 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
12682 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
12683 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
12684 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
12685 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
12686 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
12687 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
12688 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
12689 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
12690 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
12691 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
12692 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
12693 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
12694 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
12695 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
12696 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
12697 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
12698 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
12699 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
12700 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
12701 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
12702 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
12703 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
12704 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
12705 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
12706 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
12707 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
12708 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
12709 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
12710 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
12711 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
12712 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
12713 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
12714 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
12715 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
12716 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
12717 IX86_BUILTIN_VBROADCASTSS_PS256,
12718 IX86_BUILTIN_VBROADCASTSD_PD256,
12719 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
12720 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
12721 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
12722 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
12723 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
12724 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
12725 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
12726 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
12727 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
12728 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
12729 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
12730 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
12731 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
12732 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
12733 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
12734 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
12735 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
12736 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
12737 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
12738 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
12739 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
12740 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
12741 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
12742 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
12743 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
12744 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
12745 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
12746 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
12747 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
12748 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
12749 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
12750 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
12751 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
12752 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
12753 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
12754 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
12755 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
12756 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
12757 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
12758 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
12759 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
12760 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
12761 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
12762 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12763 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12764 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12765 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
12766 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
12767 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
12768 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
12769 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
12770 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
12771 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
12772 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
12773 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
12774 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
12775 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
12776 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
12777 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
12778 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
12779 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
12780 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
12781 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
12782 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
12783 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
12784 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
12785 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
12786 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
12787 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
12788 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
12789 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
12790 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
12791 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
12792 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
12793 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
12794 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
12795 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
12796 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
12797 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
12798 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
12799 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
12800 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
12801 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
12802 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
12803 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
12804 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
12805 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
12806 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
12807 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
12808 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
12809 IX86_BUILTIN_VBROADCASTSD_PD256,
12810 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
12811 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
12812 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
12813 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
12814 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
12815 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
12816 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
12817 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
12818 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
12819 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
12820 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
12821 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
12822 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
12823 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
12824 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
12825 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
12826 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
12827 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
12828 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
12829 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
12830 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
12831 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
12832 IX86_BUILTIN_GATHERDIV8SI.
12833 (ix86_preferred_simd_mode): Support AVX2 modes.
12834 (ix86_expand_args_builtin): Support AVX2 builtins.
12835 (ix86_expand_special_args_builtin): Likewise.
12836 (ix86_expand_builtin): Likewise.
12837 * config/i386/i386.md (UNSPEC_VPERMSI): New.
12838 (UNSPEC_VPERMDF): Likewise.
12839 (UNSPEC_VPERMSF): Likewise.
12840 (UNSPEC_VPERMDI): Likewise.
12841 (UNSPEC_VPERMTI): Likewise.
12842 (UNSPEC_GATHER): Likewise.
12843 (ssemodesuffix): Extend.
12844 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
12846 * config/i386/predicates.md (const1248_operand): New.
12847 * config/i386/sse.md (VI1_AVX2): New mode iterator.
12848 (VI2_AVX2): Likewise.
12849 (VI4_AVX2): Likewise.
12850 (VI8_AVX2): Likewise.
12851 (VIMAX_AVX2): Likewise.
12852 (SSESCALARMODE): Likewise.
12853 (VI12_AVX2): Likewise.
12854 (VI24_AVX2): Likewise.
12855 (VI124_AVX2): Likewise.
12856 (VI248_AVX2): Likewise.
12857 (VI48_AVX2): Likewise.
12858 (VI4SD_AVX2): Likewise.
12859 (V48_AVX2): Likewise.
12860 (AVX256MODE2P): Likewise.
12861 (AVXMODE48P_DI): Likewise.
12862 (sse2_avx2): New mode attribute.
12863 (ssse3_avx2): Likewise.
12864 (sse4_1_avx2): Likewise.
12865 (avx_avx2): Likewise.
12866 (ssebytemode): Likewise.
12867 (AVXTOSSEMODE): Likewise.
12868 (AVXMODE48P_DI): Likewise.
12869 (gthrfirstp): Likewise.
12870 (gthrlastp): Likewise.
12871 (lshift): New code_iterator
12872 (lshift): New code attribute.
12873 (lshift): Likewise.
12874 (ssescalarmodesuffix): Update.
12875 (sseunpackmode): Likewise.
12876 (ssepackmode): Likewise.
12877 (avx2_vec_dupv4sf): New insn pattern.
12878 (avx2_vec_dupv8sf): Likewise.
12879 (avx2_interleave_highv4di): Likewise.
12880 (avx2_interleave_lowv4di): Likewise.
12881 (avx2_umulv4siv4di3): Likewise
12882 (*avx2_umulv4siv4di3): Likewise
12883 (avx2_pmaddwd): Likewise.
12884 (*avx2_pmaddwd): Likewise.
12885 (avx2_lshrqv4di3): Likewise.
12886 (avx2_lshlqv4di3): Likewise.
12887 (avx2_lshl<mode>3): Likewise.
12888 (avx2_<umaxmin:code><mode>3): Likewise.
12889 (*avx2_<umaxmin:code><mode>3): Likewise.
12890 (avx2_<smaxmin:code><mode>3): Likewise.
12891 (*avx2_<smaxmin:code><mode>3): Likewise.
12892 (avx2_eq<mode>3): Likewise.
12893 (*avx2_eq<mode>3): Likewise.
12894 (avx2_gt<mode>3): Likewise.
12895 (avx2_interleave_highv32qi): New.
12896 (avx2_interleave_lowv32qi): Likewise.
12897 (avx2_interleave_highv16hi): Likewise.
12898 (avx2_interleave_lowv16hi): Likewise.
12899 (avx2_interleave_highv8si): Likewise.
12900 (avx2_interleave_lowv8si): Likewise.
12901 (avx2_pshufd): Likewise.
12902 (avx2_pshufd_1): Likewise.
12903 (avx2_pshuflwv3): Likewise.
12904 (avx2_pshuflw_1): Likewise.
12905 (avx2_pshufhwv3): Likewise.
12906 (avx2_pshufhw_1): Likewise.
12907 (avx2_uavgv32qi3): Likewise.
12908 (*avx2_uavgv32qi3): Likewise.
12909 (avx2_uavgv16hi3): Likewise.
12910 (*avx2_uavgv16hi3): Likewise.
12911 (avx2_pmovmskb): Likewise.
12912 (avx2_phaddwv16hi3): Likewise.
12913 (avx2_phadddv8si3): Likewise.
12914 (avx2_phaddswv16hi3): Likewise.
12915 (avx2_phsubwv16hi3): Likewise.
12916 (avx2_phsubdv8si3): Likewise.
12917 (avx2_phsubswv16hi3): Likewise.
12918 (avx2_pmaddubsw256): Likewise.
12919 (avx2_umulhrswv16hi3): Likewise.
12920 (*avx2_umulhrswv16hi3): Likewise.
12921 (avx2_packusdw): Likewise.
12922 (avx2_pblendd<mode>): Likewise.
12923 (avx2_<code>v16qiv16hi2): Likewise.
12924 (avx2_<code>v8qiv8si2): Likewise.
12925 (avx2_<code>v8hiv8si2): Likewise.
12926 (avx2_<code>v4qiv4di2): Likewise.
12927 (avx2_<code>v4hiv4di2): Likewise.
12928 (avx2_<code>v4siv4di2): Likewise.
12929 (avx2_pbroadcast<mode>): Likewise.
12930 (avx2_permvarv8si): Likewise.
12931 (avx2_permv4df): Likewise.
12932 (avx2_permvarv8sf): Likewise.
12933 (avx2_permv4di): Likewise.
12934 (avx2_permv2ti): Likewise.
12935 (avx2_vec_dupv4df): Likewise.
12936 (avx2_vbroadcasti128_<mode>): Likewise.
12937 (avx2_vec_set_lo_v4di): Likewise.
12938 (avx2_vec_set_hi_v4di): Likewise.
12939 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
12940 (avx2_extracti128): Likewise.
12941 (avx2_inserti128): Likewise.
12942 (avx2_ashrvv8si): Likewise.
12943 (avx2_ashrvv4si): Likewise.
12944 (avx2_<lshift>vv8si): Likewise.
12945 (avx2_<lshift>v<mode>): Likewise.
12946 (avx2_<lshift>vv2di): Likewise.
12947 (avx2_gathersi<mode>): Likewise.
12948 (*avx2_gathersi<mode>): Likewise.
12949 (avx2_gatherdi<mode>): Likewise.
12950 (*avx2_gatherdi<mode>): Likewise.
12951 (avx2_gatherdi<mode>256): Likewise.
12952 (*avx2_gatherdi<mode>256): Likewise.
12953 (<plusminus_insn><mode>3): Use VI mode iterator.
12954 (*<plusminus_insn><mode>3): Use VI mode iterator.
12955 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
12956 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
12957 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
12958 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
12959 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
12960 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
12961 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
12962 Use VI2_AVX2 mode iterator.
12963 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
12964 Use VI2_AVX2 mode iterator.
12965 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
12966 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
12967 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
12968 Use VI4_AVX2 mode iterator.
12969 (ashr<mode>3): Use VI24_AVX2 mode iterator.
12970 (lshr<mode>3): Use VI248_AVX2 mode iterator.
12971 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
12972 Use VIMAX_AVX2 mode iterator.
12973 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
12974 Use VI mode iterator.
12975 (*andnot<mode>3): Update for AVX2.
12976 (*<any_logic:code><mode>3): Likewise.
12977 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
12978 Use VI1_AVX mode iterator.
12979 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
12980 Use VI2_AVX mode iterator.
12981 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
12982 Use VI1_AVX mode iterator.
12983 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
12984 Use VI8_AVX2 mode iterator.
12985 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
12986 Use VI1_AVX2 mode iterator.
12987 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
12988 Use VI124_AVX2 mode iterator.
12989 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
12990 Use SSESCALARMODE mode iterator.
12991 (abs<mode>2): Use VI124_AVX2 mode iterator.
12992 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
12993 Use VI8_AVX2 mode iterator.
12994 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
12995 Use VI1_AVX2 mode iterator.
12996 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
12997 Use VI1_AVX2 mode iterator.
12998 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
12999 Use VI2_AVX2 mode iterator.
13000 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
13001 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
13002 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
13003 avx_maskstore<ssemodesuffix><avxsizesuffix>.
13004 Use V48_AVX2 mode iterator.
13005 * doc/extend.texi: Document AVX2 built-in functions.
13006 * doc/invoke.texi: Document -mavx2.
13008 2011-08-22 Matthias Klose <doko@debian.org>
13011 2011-07-11 Arthur Loiret <aloiret@debian.org>
13012 Matthias Klose <doko@debian.org>
13013 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
13014 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
13016 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
13018 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
13021 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
13022 to #ifndef HONOR_REG_ALLOC_ORDER block.
13024 2011-08-21 Richard Henderson <rth@redhat.com>
13026 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
13027 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
13028 * resource.c (next_insn_no_annul): Likewise.
13029 (mark_set_resources): Likewise.
13030 * reorg.c (delete_from_delay_slot): Likewise.
13031 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
13032 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
13034 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
13036 * config/i386/i386.md (any_div): Remove.
13037 (sgnprefix): Update for removal.
13040 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
13042 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
13043 for ira_reg_class_max_nregs. Increase pressure by 1.
13044 (mark_pseudo_regno_subword_dead): Use allocno class
13045 for ira_reg_class_max_nregs.
13047 2011-08-20 Richard Henderson <rth@redhat.com>
13049 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
13050 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
13051 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
13052 config/c6x/ltf.c: Adjust include path for soft-fp.
13054 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
13057 * config.gcc (tm_file): Add initfini-array.h if
13058 .init_arrary/.fini_array are supported.
13060 * crtstuff.c: Don't generate .ctors nor .dtors sections if
13061 USE_INITFINI_ARRAY is defined.
13063 * output.h (default_elf_init_array_asm_out_constructor): New.
13064 (default_elf_fini_array_asm_out_destructor): Likewise.
13065 * varasm.c (elf_init_array_section): Likewise.
13066 (elf_fini_array_section): Likewise.
13067 (get_elf_initfini_array_priority_section): Likewise.
13068 (default_elf_init_array_asm_out_constructor): Likewise.
13069 (default_elf_fini_array_asm_out_destructor): Likewise.
13071 * config/initfini-array.h: New.
13073 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
13075 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
13076 OK for ST_REGS and FP_REGS before taking those classes into account.
13078 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
13080 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
13081 before checking for annulled branches.
13083 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
13085 * config/i386/i386.c (ix86_binary_operator_ok): Use
13086 satisfies_constraint_L.
13088 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
13089 Michael Matz <matz@suse.de>
13091 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
13092 trunc (a + copysign (nextafter (0.5, 0.0), a)).
13094 2011-08-20 Anatoly Sokolov <aesok@post.ru>
13096 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13097 * doc/tm.texi: Regenerate.
13098 * targhooks.c (default_preferred_output_reload_class): Don't use
13099 PREFERRED_OUTPUT_RELOAD_CLASS macro.
13100 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
13102 2011-08-20 Jakub Jelinek <jakub@redhat.com>
13104 PR tree-optimization/48739
13105 * tree-ssa.c: Include cfgloop.h.
13106 (execute_update_addresses_taken): When updating ssa, if in loop closed
13107 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
13108 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
13110 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
13112 PR rtl-optimization/49936
13113 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
13114 for calculation of max register move costs.
13116 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13118 * c-parser.c (c_parser_postfix_expression): Convert operands of
13119 __builtin_complex to their semantic types.
13121 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
13123 PR middle-end/49721
13124 * explow.c (convert_memory_address_addr_space): Also permute the
13125 conversion and addition of constant for zero-extend.
13127 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13129 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
13130 * doc/extend.texi (__builtin_complex): Document.
13132 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13134 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
13135 beyond conversions.
13136 (convert_mult_to_widen): Convert constant inputs to the right type.
13137 (convert_plusminus_to_widen): Don't automatically reject inputs that
13138 are not an SSA_NAME.
13139 Convert constant inputs to the right type.
13141 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13143 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
13144 to the correct type.
13146 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13148 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
13149 unsigned inputs of different modes.
13150 (convert_plusminus_to_widen): Likewise.
13152 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13154 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
13156 Use 'type' from caller, not inferred from 'rhs'.
13157 Don't reject non-conversion statements. Do return lhs in this case.
13158 (is_widening_mult_p): Add new argument 'type'.
13159 Use 'type' from caller, not inferred from 'stmt'.
13160 Pass type to is_widening_mult_rhs_p.
13161 (convert_mult_to_widen): Pass type to is_widening_mult_p.
13162 (convert_plusminus_to_widen): Likewise.
13164 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13166 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
13167 Ensure the the larger type is the first operand.
13169 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13171 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
13172 unsupported unsigned multiplies to signed.
13173 (convert_plusminus_to_widen): Likewise.
13175 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13177 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
13178 conversion statement separating multiply-and-accumulate.
13180 2011-08-19 Richard Guenther <rguenther@suse.de>
13182 PR tree-optimization/50067
13183 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
13184 offset only if we accounted for it.
13186 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13188 * config/arm/arm.md (maddhidi4): Remove '*' from name.
13189 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
13190 * optabs.c (find_widening_optab_handler_and_mode): New function.
13191 (expand_widen_pattern_expr): Use find_widening_optab_handler.
13192 (expand_binop_directly): Likewise.
13193 (expand_binop): Likewise.
13194 * optabs.h (find_widening_optab_handler): New macro define.
13195 (find_widening_optab_handler_and_mode): New prototype.
13196 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
13197 type precision rules.
13198 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
13199 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
13200 (is_widening_mult_rhs_p): Allow widening by more than one mode.
13201 Explicitly disallow mis-matched input types.
13202 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
13203 input types to fit the new handler.
13204 (convert_plusminus_to_widen): Likewise.
13206 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13208 * expr.c (expand_expr_real_2): Use widening_optab_handler.
13209 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
13210 (gen_insn): $N now means $a must be wider than $b, not consecutive.
13211 * optabs.c (widened_mode): New function.
13212 (expand_widen_pattern_expr): Use widening_optab_handler.
13213 (expand_binop_directly): Likewise.
13214 (expand_binop): Likewise.
13215 * optabs.h (widening_optab_handlers): New struct.
13216 (optab_d): New member, 'widening'.
13217 (widening_optab_handler): New function.
13218 (set_widening_optab_handler): New function.
13219 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
13220 widening_optab_handler.
13221 (convert_plusminus_to_widen): Likewise.
13223 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13225 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
13227 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
13228 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
13230 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13232 * opth-gen.awk: Do not declare target save/restore structures and
13233 functions if IN_RTS defined.
13235 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13238 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
13239 when stack was realigned in interrupt handler prologue.
13241 2011-08-18 Joseph Myers <joseph@codesourcery.com>
13243 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
13244 (quals_from_declspecs): Assert _Noreturn not present.
13245 (grokdeclarator): Handle _Noreturn.
13246 (build_null_declspecs): Initialize noreturn_p.
13247 (declspecs_add_scspec): Handle RID_NORETURN.
13248 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
13249 (c_parser_attributes): Handle RID_NORETURN.
13250 * c-tree.h (struct c_declspecs): Add noreturn_p.
13251 * ginclude/stdnoreturn.h: New.
13252 * Makefile.in (USER_H): Add stdnoreturn.h.
13254 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
13256 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
13257 (OPTION_MASK_ISA_AVX_UNSET): Update.
13258 (OPTION_MASK_ISA_AVX2_UNSET): New.
13259 (ix86_handle_option): Handle OPT_mavx2 case.
13260 * config/i386/cpuid.h (bit_AVX2): New.
13261 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13263 * config/i386/i386-c.c (ix86_target_macros_internal):
13264 Conditionally define __AVX2__.
13265 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
13266 Define "core-avx2" processor alias. Handle avx2 option.
13267 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
13268 * config/i386/i386.h (TARGET_AVX2): New.
13269 * config/i386/i386.opt (mavx2): New.
13270 * doc/invoke.texi: Document -mavx2.
13272 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
13274 PR rtl-optimization/49890
13275 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
13276 subclasses of class which is superset of a pressure class.
13278 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
13279 Igor Zamyatin <igor.zamyatin@intel.com>
13281 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
13282 with HOST_WIDE_INT for isa_flag.
13283 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
13286 * config/i386/i386.c (ix86_target_string): Replace int with
13287 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
13288 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
13289 (pta_flags): Removed.
13290 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
13291 (pta): Use HOST_WIDE_INT on flags.
13292 (builtin_isa): Use HOST_WIDE_INT on isa.
13293 (ix86_add_new_builtins): Likewise.
13294 (def_builtin): Use HOST_WIDE_INT on mask.
13295 (def_builtin_const): Likewise.
13296 (builtin_description): Likewise.
13298 * config/i386/i386.opt (ix86_isa_flags): Replace int with
13300 (ix86_isa_flags_explicit): Likewise.
13301 (x_ix86_isa_flags_explicit): Likewise.
13303 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
13305 PR rtl-optimization/50107
13306 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
13307 (ira_hard_reg_in_set_p): New.
13309 * ira-color.c (calculate_saved_nregs): New.
13310 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
13312 (allocno_reload_assign, fast_allocation): Use
13313 ira_hard_reg_set_intersection_p instead of
13314 ira_hard_reg_not_in_set_p.
13316 * ira.c (setup_reg_renumber): Use
13317 ira_hard_reg_set_intersection_p instead of
13318 ira_hard_reg_not_in_set_p.
13319 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
13320 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
13322 * ira-costs.c (ira_tune_allocno_costs): Use
13323 ira_hard_reg_set_intersection_p instead of
13324 ira_hard_reg_not_in_set_p.
13326 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
13327 Igor Zamyatin <igor.zamyatin@intel.com>
13329 * hwint.h (HOST_WIDE_INT_1): New.
13331 * opt-functions.awk (switch_bit_fields): Initialize the
13332 host_wide_int field.
13333 (host_wide_int_var_name): New.
13334 (var_type_struct): Check and return HOST_WIDE_INT.
13336 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
13338 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
13340 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
13341 check masks for HOST_WIDE_INT.
13343 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
13344 (option_enabled): Likewise.
13345 (get_option_state): Likewise.
13347 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
13350 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13351 Marc Glisse <marc.glisse@normalesup.org>
13353 PR libstdc++-v3/1773
13354 * target.def (decl_mangling_context): New C++ hook.
13355 * doc/tm.texi: Regenerate.
13356 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
13357 * config/sol2-protos.h: Group by source file.
13358 (solaris_cxx_decl_mangling_context): Declare.
13359 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
13360 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
13362 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
13363 Add sol2-stubs.o to extra_objs.
13365 2011-08-18 Jakub Jelinek <jakub@redhat.com>
13368 * stor-layout.c (update_alignment_for_field): Don't ICE on
13369 packed flexible array members if ms_bitfield_layout_p.
13372 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
13373 on the result before returning it.
13376 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
13377 is a debug stmt, use location of the first non-debug stmt after it.
13379 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13381 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
13382 (arm_size_rtx_costs): Likewise.
13384 2011-08-18 Richard Guenther <rguenther@suse.de>
13386 * tree.h (tree_int_cst_msb): Remove.
13387 * tree.c (tree_int_cst_msb): Likewise.
13388 (tree_int_cst_sign_bit): Move from ...
13389 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
13391 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13393 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
13394 * doc/tm.texi: Regenerate.
13395 * target.def (rtx_costs): Add an opno parameter.
13396 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
13397 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
13398 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
13399 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
13400 * cse.c (COST_IN): Add an opno parameter.
13401 (notreg_cost): Likewise. Update call to rtx_cost.
13402 (COST, fold_rtx): Update accordingly.
13403 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
13404 * expmed.c (emit_store_flag): Likewise.
13405 * optabs.c (avoid_expensive_constant): Add an opno parameter.
13406 Update call to rtx_cost.
13407 (expand_binop_directly, expand_binop): Likewise.
13408 (expand_twoval_binop, prepare_cmp_insn): Likewise.
13409 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
13410 (set_src_cost, get_full_set_src_cost): Update accordingly.
13411 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
13413 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
13414 (default_adress_cost): Update calls to rtx_cost.
13416 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
13417 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
13418 (arm_rtx_costs): Add an opno parameter.
13419 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
13420 adjust any recursive rtx-cost calls.
13421 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
13422 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13423 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13424 * config/cris/cris.c (cris_rtx_costs): Likewise.
13425 * config/frv/frv.c (frv_rtx_costs): Likewise.
13426 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13427 * config/i386/i386.c (ix86_rtx_costs): Likewise.
13428 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13429 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13430 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13431 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13432 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13433 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13434 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13435 * config/mep/mep.c (mep_rtx_cost): Likewise.
13436 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13437 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
13438 (mips_zero_extend_cost): Add an opno parameter.
13439 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13440 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
13442 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
13444 * config/pa/pa.c (hppa_rtx_costs): Likewise.
13445 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13446 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
13447 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13448 (rs6000_debug_rtx_costs): Likewise.
13449 * config/s390/s390.c (s390_rtx_costs): Likewise.
13450 * config/score/score-protos.h (score_rtx_costs): Likewise.
13451 * config/score/score.c (score_rtx_costs): Likewise.
13452 * config/sh/sh.c (andcosts): Update call to rtx_cost.
13453 (sh_rtx_costs): Add an opno parameter.
13454 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13455 * config/spu/spu.c (spu_rtx_costs): Likewise.
13456 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13457 * config/v850/v850.c (v850_rtx_costs): Likewise.
13458 * config/vax/vax.c (vax_rtx_costs): Likewise.
13459 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13461 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13463 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
13464 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
13466 * calls.c (precompute_register_parameters): Likewise.
13467 * combine.c (expand_compound_operation, make_extraction): Likewise.
13468 (force_to_mode, distribute_and_simplify_rtx): Likewise.
13469 * dse.c (find_shift_sequence): Likewise.
13470 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
13471 * expr.c (compress_float_constant): Likewise.
13472 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13473 * gcse.c (want_to_gcse_p): Likewise.
13474 * ifcvt.c (noce_try_sign_mask): Likewise.
13475 * loop-doloop.c (doloop_optimize): Likewise.
13476 * loop-invariant.c (create_new_invariant): Likewise.
13477 * optabs.c (avoid_expensive_constant): Likewise.
13478 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
13479 (try_replace_in_use, reload_cse_move2add): Likewise.
13480 * reload1.c (calculate_elim_costs_all_insns): Likewise.
13481 (note_reg_elim_costly): Likewise.
13482 * rtlanal.c (insn_rtx_cost): Likewise.
13483 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13484 * stmt.c (lshift_cheap_p): Likewise.
13485 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
13486 * config/avr/avr.c (final_prescan_insn): Likewise.
13487 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13488 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
13490 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13492 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
13493 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
13494 * cfgloopanal.c (seq_cost): Likewise.
13495 * loop-invariant.c (create_new_invariant): Likewise.
13496 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
13497 (reload_cse_move2add): Use get_full_set_rtx_cost.
13499 2011-08-18 Richard Guenther <rguenther@suse.de>
13501 * expr.c (get_inner_reference): Fix typo in last change.
13503 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
13504 Joseph Myers <joseph@codesourcery.com>
13506 PR tree-optimization/49963
13507 * hwint.c (absu_hwi): Define.
13508 * hwint.h (absu_hwi): Declare.
13509 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
13511 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
13512 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
13514 2011-08-18 Richard Guenther <rguenther@suse.de>
13516 * expr.c (get_inner_reference): Sign-extend the constant
13517 twos-complement offset before doing arbitrary precision
13519 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13520 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
13521 to get_constraint_for_ptr_offset.
13523 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
13526 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
13528 2011-08-17 Richard Guenther <rguenther@suse.de>
13530 * tree.h (convert_to_ptrofftype_loc): New function.
13531 (convert_to_ptrofftype): Define.
13532 * builtins.c (expand_builtin_bzero): Use size_type_node.
13533 (fold_builtin_bzero): Likewise.
13534 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
13535 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
13536 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
13537 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
13538 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
13539 * fold-const.c (build_range_check): Negate using the original type.
13540 (fold_unary_loc): Use fold_build_pointer_plus_loc.
13541 * gimple-fold.c (gimple_adjust_this_by_delta): Use
13542 convert_to_ptrofftype.
13543 * gimplify.c (gimplify_self_mod_expr): Likewise.
13544 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
13545 (graphite_create_new_loop_guard): Likewise.
13546 * graphite-sese-to-poly.c (my_long_long): Remove.
13547 (scop_ivs_can_be_represented): Adjust.
13548 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
13549 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
13550 * tree-loop-distribution.c (build_size_arg_loc): Use
13552 (generate_memset_zero): Simplify.
13553 * tree-mudflap.c: Use fold_convert, not convert.
13554 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
13556 (determine_offset): Likewise for DR_STEP.
13557 (valid_initializer_p): Likewise.
13558 * tree-profile.c (prepare_instrumented_value): Convert the pointer
13559 to an integer type of same size.
13560 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
13561 to sizetype without need.
13562 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13563 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
13564 * tree-ssa-loop-manip.c (create_iv): Likewise.
13565 (determine_exit_conditions): Adjust comment.
13566 * tree-ssa-pre.c (create_expression_by_pieces): Use
13567 convert_to_ptrofftype.
13568 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
13569 * varasm.c (array_size_for_constructor): Compute using double_ints.
13571 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13573 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
13574 when generating an integer result where possible. Short-cut
13575 comparison against 0 also for QImode.
13577 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13579 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
13580 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
13582 * config/spu/spu.c (spu_legitimize_reload_address): New function.
13583 (spu_legitimate_address_p): Do not check displacement if the base
13584 is an eliminable stack register.
13586 2011-08-16 Anatoly Sokolov <aesok@post.ru>
13588 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
13589 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13590 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
13591 m32c_preferred_output_reload_class): Remove.
13592 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
13593 Change rclass argument and return types to reg_class_t. Use
13594 reg_class_subset_p instead of class_sizes.
13595 (m32c_preferred_output_reload_class): Make static. Change rclass
13596 argument and return types to reg_class_t.
13597 (TARGET_PREFERRED_RELOAD_CLASS,
13598 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13600 2011-08-16 Kai Tietz <ktietz@redhat.com>
13602 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
13604 2011-08-16 Richard GUenther <rguenther@suse.de>
13606 PR tree-optimization/50082
13607 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
13608 warnings here, instead of ...
13609 (ssa_forward_propagate_and_combine): ... here.
13610 (forward_propagate_into_comparison_1): Adjust.
13611 (forward_propagate_into_comparison): Likewise.
13612 (forward_propagate_into_gimple_cond): Likewise.
13613 (forward_propagate_into_cond): Likewise.
13615 2011-08-16 Andreas Schwab <schwab@redhat.com>
13617 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
13618 instead of ggc_alloc_zone_vec_rtvec_def.
13620 2011-08-16 Richard Guenther <rguenther@suse.de>
13622 * tree.h (ptrofftype_p): New helper function.
13623 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
13624 offset verification.
13625 (verify_gimple_assign_binary): Likewise.
13626 * tree.c (build2_stat): Likewise.
13627 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
13628 (reset_evolution_in_loop): Likewise.
13629 * tree-chrec.h (build_polynomial_chrec): Likewise.
13631 2011-08-16 Liang Wang <lwang1@marvell.com>
13633 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
13634 ggc_alloc_zone_vec_rtvec_def.
13636 2011-08-16 Richard Guenther <rguenther@suse.de>
13638 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
13639 helper factored out from ...
13640 (extract_range_from_binary_expr_1): ... here. Re-structure
13641 to not glob handling too different tree codes.
13643 2011-08-15 Richard Henderson <rth@redhat.com>
13645 PR middle-end/50006
13646 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
13647 setting out to include allocate_stack named pattern as well.
13648 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
13649 * stmt.c (expand_stack_restore): Likewise.
13651 2011-08-15 Richard Guenther <rguenther@suse.de>
13653 PR middle-end/50082
13654 * fold-const.c (maybe_canonicalize_comparison_1): Properly
13655 convert the modified operand to the other operand type.
13656 (fold_comparison): Call maybe_canonicalize_comparison_1 with
13657 useless conversions stripped from comparison operands.
13659 2011-08-15 Richard Guenther <rguenther@suse.de>
13661 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
13662 (extract_range_from_unary_expr_1): Restructure.
13664 2011-08-15 Richard Guenther <rguenther@suse.de>
13666 PR tree-optimization/50058
13667 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
13670 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13673 * config/arm/arm.c (output_move_double): Add 2 parameters
13674 to count the number of insns emitted and whether to emit or not.
13675 Use the flag to decide when to emit and count number of instructions
13676 that will be emitted.
13677 Handle case where output_move_double might be called for calculating
13678 lengths with an invalid constant.
13679 (arm_count_output_move_double_insns): Define.
13680 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
13681 (output_move_double): Adjust prototype.
13682 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
13683 output_move_double.
13684 ("*movdi_vfp_cortexa8"): Likewise and add attribute
13686 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
13687 ("*movdf_soft_insn"): Likewise.
13688 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
13689 ("*cirrus_thumb2_movdi"): Likewise.
13690 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
13691 ("*cirrus_movdf_hard_insn"): Likewise.
13692 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
13693 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
13694 ("mov<mode>_internal VMMX"): Likewise.
13695 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
13697 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
13699 * config/i386/i386.c (ix86_expand_round_sse4): New function.
13700 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
13701 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
13704 (rint<mode>2): Simplify TARGET_ROUND check.
13705 (floor<mode>2): Ditto.
13706 (ceil<mode>2): Ditto.
13707 (btrunc<mode>2): Ditto.
13709 2011-08-14 Anatoly Sokolov <aesok@post.ru>
13711 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
13712 as mmix_preferred_output_reload_class.
13714 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
13717 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
13718 (branch_unspec): New insn.
13719 (branch): Beauty farm.
13720 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
13721 to be IF_THEN_ELSE.
13722 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
13723 New static functions.
13724 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
13725 Use CONST_INT_P. Beauty.
13727 2011-08-12 Richard Henderson <rth@redhat.com>
13730 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
13731 * sched-deps.c (init_deps): Clear it.
13732 (deps_analyze_insn): Consume it.
13733 (sched_analyze_insn): Fill it.
13735 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13738 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
13739 for tbh instructions.
13741 2011-08-12 Diego Novillo <dnovillo@google.com>
13743 * data-streamer.h (streamer_write_zero): Rename from output_zero.
13744 (streamer_write_uhwi): Rename from lto_output_uleb128.
13745 (streamer_write_hwi): Rename from output_sleb128.
13746 (streamer_write_string): Rename from lto_output_string.
13747 (streamer_string_index): Rename from lto_string_index.
13748 (streamer_write_string_with_length): Rename from
13749 lto_output_string_with_length.
13750 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
13751 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
13752 (streamer_read_string): Rename from lto_input_string.
13753 (streamer_read_indexed_string): Rename from input_string_internal.
13754 (streamer_read_uhwi): Rename from lto_input_uleb128.
13755 (streamer_read_hwi): Rename from lto_input_sleb128.
13756 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
13757 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
13758 (streamer_write_enum): Rename from lto_output_enum.
13759 (streamer_read_enum): Rename from lto_input_enum.
13760 (streamer_write_record_start): Rename from output_record_start.
13761 (streamer_read_record_start): Rename from input_record_start.
13762 (streamer_write_bitpack): Rename from lto_output_bitpack.
13763 (streamer_read_bitpack): Rename from lto_input_bitpack.
13764 (streamer_write_char_stream): Rename from lto_output_1_stream.
13765 (streamer_read_uchar): Rename from lto_input_1_unsigned.
13766 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
13767 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
13768 (streamer_read_string_cst): Rename from input_string_cst.
13769 (streamer_read_chain): Rename from lto_input_chain.
13770 (streamer_alloc_tree): Rename from lto_materialize_tree.
13771 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
13772 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
13773 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
13774 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
13775 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
13776 (streamer_write_chain): Rename from lto_output_chain.
13777 (streamer_write_tree_header): Rename from lto_output_tree_header.
13778 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
13779 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
13780 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
13781 (streamer_write_builtin): Rename from lto_output_builtin_tree.
13782 (streamer_check_handled_ts_structures): Rename from
13783 check_handled_ts_structures.
13784 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
13785 (streamer_tree_cache_insert_at): Rename from
13786 lto_streamer_cache_insert_at.
13787 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
13788 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
13789 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
13790 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
13791 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
13792 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
13793 (write_identifier): Rename from output_identifier.
13794 (write_ts_common_tree_pointers): Rename from
13795 lto_output_ts_common_tree_pointers.
13796 (write_ts_vector_tree_pointers): Rename from
13797 lto_output_ts_vector_tree_pointers.
13798 (write_ts_complex_tree_pointers): Rename from
13799 lto_output_ts_complex_tree_pointers.
13800 (write_ts_decl_minimal_tree_pointers): Rename from
13801 lto_output_ts_decl_minimal_tree_pointers.
13802 (write_ts_decl_common_tree_pointers): Rename from
13803 lto_output_ts_decl_common_tree_pointers.
13804 (write_ts_decl_non_common_tree_pointers): Rename from
13805 lto_output_ts_decl_non_common_tree_pointers.
13806 (write_ts_decl_with_vis_tree_pointers): Rename from
13807 lto_output_ts_decl_with_vis_tree_pointers.
13808 (write_ts_field_decl_tree_pointers): Rename from
13809 lto_output_ts_field_decl_tree_pointers.
13810 (write_ts_function_decl_tree_pointers): Rename from
13811 lto_output_ts_function_decl_tree_pointers.
13812 (write_ts_type_common_tree_pointers): Rename from
13813 lto_output_ts_type_common_tree_pointers.
13814 (write_ts_type_non_common_tree_pointers): Rename from
13815 lto_output_ts_type_non_common_tree_pointers.
13816 (write_ts_list_tree_pointers): Rename from
13817 lto_output_ts_list_tree_pointers.
13818 (write_ts_vec_tree_pointers): Rename from
13819 lto_output_ts_vec_tree_pointers.
13820 (write_ts_exp_tree_pointers): Rename from
13821 lto_output_ts_exp_tree_pointers.
13822 (write_ts_block_tree_pointers): Rename from
13823 lto_output_ts_block_tree_pointers.
13824 (write_ts_binfo_tree_pointers): Rename from
13825 lto_output_ts_binfo_tree_pointers.
13826 (write_ts_constructor_tree_pointers): Rename from
13827 lto_output_ts_constructor_tree_pointers.
13828 (write_ts_target_option): Rename from lto_output_ts_target_option.
13829 (write_ts_translation_unit_decl_tree_pointers): Rename from
13830 lto_output_ts_translation_unit_decl_tree_pointers.
13831 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
13832 Rename from lto_streamer_cache_add_to_node_array.
13833 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
13834 (record_common_node): Rename from lto_record_common_node.
13836 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
13838 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
13840 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
13842 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
13843 (ipa-reference.o): Likewise.
13844 * lto-section-out.c: Include data-streamer.h.
13845 * ipa-reference.c: Include data-streamer.h.
13847 2011-08-12 Nick Clifton <nickc@redhat.com>
13849 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
13850 * doc/md.texi (cmpstrn): Note that the comparison stops if both
13851 fetched bytes are zero.
13852 (cmpstr): Likewise.
13853 (cmpmem): Note that the comparison does not stop if both of the
13854 fetched bytes are zero.
13856 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
13858 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
13859 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
13860 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
13861 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
13862 to integer_type_node.
13863 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
13864 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
13865 * builtins.c (expand_builtin_in): Ditto.
13866 (mathfn_built_in_1): Ditto.
13867 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
13869 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
13871 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
13872 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
13873 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
13875 2011-08-12 Richard Guenther <rguenther@suse.de>
13877 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
13879 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
13881 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
13883 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
13885 * config/arm/arm.c (get_label_padding): New function.
13886 (create_fix_barrier, arm_reorg): Use it.
13888 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
13891 * config/i386/i386.md (*lea_5_zext): New.
13892 (*lea_6_zext): Ditto.
13893 * config/i386/predicates.md (const_32bit_mask): New predicate.
13894 (lea_address_operand): Reject AND.
13895 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
13896 const_32bit_mask immediate.
13897 (ix86_print_operand_address): Handle AND.
13898 (memory_address_length): Ditto.
13900 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
13901 Brian Hackett <bhackett1024@gmail.com>
13903 * plugin.def: Add event for finish_decl.
13904 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
13905 * c-decl.c (finish_decl): Invoke callbacks on above event.
13906 * doc/plugins.texi: Document above event.
13908 2011-08-11 Richard Guenther <rguenther@suse.de>
13910 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
13911 lookups, make looking through aggregate copies stronger.
13913 2011-08-11 Richard Henderson <rth@redhat.com>
13916 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
13918 2011-08-11 Richard Guenther <rguenther@suse.de>
13920 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
13921 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
13922 (vrp_visit_stmt): Likewise.
13924 2011-08-11 Richard Guenther <rguenther@suse.de>
13926 PR middle-end/50040
13927 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
13928 load of the other piece with TREE_NO_WARNING.
13929 * tree-flow.h (warn_uninit): Adjust prototype.
13930 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
13931 the base variable and the expression that is used separately.
13932 Properly query all TREE_NO_WARNING flags.
13933 (struct walk_data): Remove.
13934 (warn_uninitialized_var): Likewise.
13935 (warn_uninitialized_vars): Do not walk gimple pieces but simply
13936 look at all SSA uses of the statement. Handle unused memory
13938 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
13940 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
13942 * config/rx/rx.md (movsicc): Allow register to register transfers.
13943 (*movsicc): Likewise.
13944 (*stcc): Restrict this pattern to EQ and NE compares.
13945 (*stcc_reg): New pattern. Works for any comparison but only for
13946 register transfers.
13948 2011-08-11 Diego Novillo <dnovillo@google.com>
13950 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
13951 Call stream_write_tree instead of output_record_start.
13952 (lto_output_ts_binfo_tree_pointers): Likewise.
13954 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
13955 Convert it to a macro.
13956 (stream_read_tree): Likewise.
13958 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
13959 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
13961 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
13962 and tree_read_bitfields.
13963 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
13964 (lto_write_tree): Call it.
13965 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
13966 * streamer-hooks.h (struct streamer_hooks): Remove fields
13967 name, is_streamable and alloc_tree. Update all users.
13968 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
13969 (lto_materialize_tree): ... here.
13970 Handle CALL_EXPR codes.
13971 Remove call to lto_streamer_cache_append.
13972 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
13973 * tree-streamer.h (tree_read_bitfields): Declare.
13975 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
13976 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
13977 * tree-streamer.h (stream_read_tree): New. Replace all calls
13978 to lto_input_tree with it.
13979 (stream_write_tree): New. Replace all calls to lto_output_tree,
13980 lto_output_tree_ref and lto_output_tree_or_ref with it.
13981 * lto-streamer-in.c (lto_read_tree): Inline code from
13982 lto_streamer_read_tree.
13983 (lto_input_tree): Move from tree-streamer-in.c.
13984 * lto-streamer-out.c (lto_output_tree_ref): Make static.
13985 Remove handling of NULL values for EXPR.
13986 Do not handle EXPRs that are not indexable.
13987 (lto_write_tree): Move from tree-streamer-out.c.
13988 Inline lto_streamer_write_tree.
13989 (lto_output_tree): Move from tree-streamer-out.c.
13990 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
13991 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
13992 (lto_preload_common_nodes): Likewise.
13993 Remove assertions and adjustments for nodes
13994 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
13995 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
13996 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
13997 * lto-streamer.h (lto_input_tree): Declare.
13998 (lto_output_tree_ref): Remove.
13999 * streamer-hooks.h (struct streamer_hooks): Remove fields
14000 preload_common_nodes, indexable_with_decls_p,
14001 pack_value_fields, unpack_value_fields and output_tree_header.
14003 * tree-streamer-in.c (lto_materialize_tree): Make extern.
14004 (lto_input_tree_pointers): Likewise.
14005 (lto_read_tree): Move to lto-streamer-in.c.
14006 (lto_input_integer_cst): Make extern.
14007 (lto_get_pickled_tree): Likewise.
14008 (lto_get_builtin_tree): Likewise.
14009 (lto_input_tree): Move to lto-streamer-in.c.
14010 * tree-streamer-out.c (pack_value_fields): Make extern.
14011 (lto_output_tree_or_ref): Remove. Replace all callers with
14012 calls to stream_write_tree.
14013 (lto_output_builtin_tree): Make extern.
14014 (lto_streamer_write_tree): Inline into lto_write_tree.
14015 (lto_output_tree_pointers): Make extern.
14016 (lto_output_tree_header): Likewise.
14017 (lto_output_integer_cst): Likewise.
14018 (lto_write_tree): Move to lto-streamer-out.c.
14019 (lto_output_tree): Likewise.
14020 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
14021 (preload_common_nodes): Likewise.
14022 (lto_streamer_cache_create): Call it.
14023 * tree-streamer.h: Include streamer-hooks.h.
14024 (stream_write_tree): New.
14025 (stream_read_tree): New.
14026 (lto_input_tree): Remove.
14027 (lto_materialize_tree): Declare.
14028 (lto_input_tree_pointers): Declare.
14029 (lto_get_pickled_tree): Declare.
14030 (lto_get_builtin_tree): Declare.
14031 (lto_input_integer_cst): Declare.
14032 (lto_output_tree_header): Declare.
14033 (pack_value_fields): Declare.
14034 (lto_output_tree_pointers): Declare.
14035 (lto_output_integer_cst): Declare.
14036 (lto_output_builtin_tree): Declare.
14038 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14040 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
14041 only if producer writes to the register given by regno.
14043 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14044 Alexander Monakov <amonakov@ispras.ru>
14046 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
14047 (sched_get_condition_with_rev_uncached): ... this. Factor out
14048 condition caching logic into ...
14049 (sched_get_condition_with_rev): ... this. Reimplement. Do not
14050 attempt to use cache for instructions with zero luid.
14051 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
14052 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
14054 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14056 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
14057 get_seqno_for_a_jump. Update the caller.
14058 (get_seqno_by_succs): New. Use it ...
14059 (get_seqno_for_a_jump): ... here to find a seqno if looking at
14060 predecessors was not sufficient.
14061 (get_seqno_by_preds): Include head in iteration range, exclude insn.
14063 2011-08-11 Dmitry Melnik <dm@ispras.ru>
14065 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
14067 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14069 * sel-sched-ir.h (register_unavailable_p): Declare.
14070 * sel-sched-ir.c (register_unavailable_p): New. Use it...
14071 (set_unavailable_target_for_expr): ... here to properly test
14072 availability of a register.
14073 (speculate_expr): Ditto.
14074 * sel-sched.c (substitute_reg_in_expr): Ditto.
14075 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
14077 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14079 * sel-sched.c (verify_target_availability): Fix usage of
14082 2011-08-11 Dmitry Melnik <dm@ispras.ru>
14084 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
14085 recognized by cannot_copy_insn_p hook and volatile instructions.
14087 2011-08-11 Dmitry Melnik <dm@ispras.ru>
14089 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
14091 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
14093 * doc/md.texi (define_bypass): Say that the instruction names can
14094 be filename-style globs.
14095 * Makefile.in (FNMATCH_H): Define.
14096 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
14097 * genattrtab.c: Include fnmatch.h.
14098 (bypass_list): Change field name from "insn" to "pattern".
14099 (gen_bypass_1): Update accordingly.
14100 (process_bypasses): Use fnmatch to check for matches between
14101 insn reservations and define_bypasses.
14102 * genautomata.c: Include fnmatch.h.
14103 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
14104 and out_pattern respectively.
14105 (gen_bypass, insert_bypass): Update accordingly.
14106 (for_each_matching_insn, process_bypass_2, process_bypass_1)
14107 (process_bypass): New functions.
14108 (process_decls): Use process_bypass. Update after field name changes.
14110 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
14113 * config/avr/avr.md (smulqi3_highpart): New insn.
14114 (umulqi3_highpart): New insn.
14115 (*subqi3.ashiftrt7): New insn.
14116 (smulhi3_highpart): New expander.
14117 (umulhi3_highpart): Nex expander.
14118 (*smulhi3_highpart_call): New insn.
14119 (*umulhi3_highpart_call): New insn.
14120 (extend_u): New code attribute.
14121 (extend_prefix): Rename code attribute to extend_su.
14122 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
14123 widening QI/HI multiply.
14125 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
14127 PR tree-optimization/50039
14128 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
14129 that DEF_STMT has a stmt_vec_info.
14131 2011-08-10 Richard Guenther <rguenther@suse.de>
14133 * tree.h (can_trust_pointer_alignment): Remove.
14134 * builtins.c (can_trust_pointer_alignment): Remove.
14136 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
14138 * c-typeck.c (scalar_to_vector): New function. Try scalar to
14140 (stv_conv): New enum for scalar_to_vector return type.
14141 (build_binary_op): Adjust.
14142 * doc/extend.texi: Description of scalar to vector expansion.
14144 2011-08-10 Richard Guenther <rguenther@suse.de>
14146 * tree.h (get_pointer_alignment): Remove max-align argument.
14147 (get_object_alignment): Likewise.
14148 * builtins.c (get_object_alignment_1): Adjust.
14149 (get_object_alignment): Remove max-align argument.
14150 (get_pointer_alignment): Likewise.
14151 (expand_builtin_strlen): Adjust.
14152 (expand_builtin_memcpy): Likewise.
14153 (expand_builtin_mempcpy_args): Likewise.
14154 (expand_builtin_strncpy): Likewise.
14155 (expand_builtin_memset_args): Likewise.
14156 (expand_builtin_memcmp): Likewise.
14157 (expand_builtin_strcmp): Likewise.
14158 (expand_builtin_strncmp): Likewise.
14159 (get_builtin_sync_mem): Likewise.
14160 (fold_builtin_memset): Likewise.
14161 (fold_builtin_memory_op): Likewise.
14162 (expand_builtin_memory_chk): Likewise.
14163 * emit-rtl.c (get_mem_align_offset): Likewise.
14164 (set_mem_attributes_minus_bitpos): Likewise.
14165 * expr.c (expand_assignment): Likewise.
14166 (expand_expr_real_1): Likewise.
14167 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
14168 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
14169 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
14170 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
14171 * value-prof.c (gimple_stringops_transform): Likewise.
14173 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
14175 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
14176 * doc/tm.texi: Regenerate.
14178 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
14181 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
14182 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
14183 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
14184 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
14185 shift target is unused.
14187 2011-08-10 Richard Guenther <rguenther@suse.de>
14189 PR tree-optimization/49937
14190 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
14191 using get_object_alignment_1.
14193 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
14195 * config/i386/i386.c (ix86_emit_i387_round): New function.
14196 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
14197 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
14198 Use ix86_emit_i387_round to expand round function for i387 math.
14199 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
14200 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
14202 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14204 * config/sync.c: Move to ../libgcc.
14205 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
14206 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
14209 2011-08-09 Anatoly Sokolov <aesok@post.ru>
14211 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
14212 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
14213 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
14214 Change 'from' and 'to' arguments type to reg_class_t.
14215 (TARGET_REGISTER_MOVE_COST): Define.
14217 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
14221 PR rtl-optimization/49990
14222 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
14223 ignore classes which can not change mode.
14224 (find_costs_and_classes): Ditto.
14226 2011-08-09 Richard Guenther <rguenther@suse.de>
14228 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
14229 information for ranges with only negative values.
14230 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
14231 BIT_AND_EXPR handling to handle ranges with negative values.
14233 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
14235 * config/i386/i386.c: Remove traling spaces.
14236 * config/i386/sse.md: Likewise.
14237 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
14238 (*fma_fmsub_<mode>): Likewise.
14239 (*fma_fnmadd_<mode>): Likewise.
14240 (*fma_fnmsub_<mode>): Likewise.
14242 2011-08-09 Nick Clifton <nickc@redhat.com>
14244 * config/rx/rx.md: Disable extender peepholes at -O3.
14246 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
14249 * config/i386/i386.md (reload_noff_load): New.
14250 (reload_noff_store): Ditto.
14251 * config/i386/i386.c (ix86_secondary_reload): Use
14252 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
14253 double-word moves from/to non-offsetable addresses instead of
14254 generating XMM temporary.
14256 2011-08-09 Anatoly Sokolov <aesok@post.ru>
14258 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
14260 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
14262 PR tree-optimization/50014
14263 * tree-vect-loop.c (vectorizable_reduction): Get def type before
14264 calling vect_get_vec_def_for_stmt_copy ().
14266 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
14268 PR rtl-optimization/49990
14269 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
14270 ignore classes which can not change mode.
14271 (find_costs_and_classes): Ditto.
14273 2011-08-08 Richard Henderson <rth@redhat.com>
14275 PR middle-end/49990
14276 * config/i386/i386.c (ix86_expand_prologue): Call
14277 for SEH target gen_prologue_use instead of gen_blockage
14280 2011-08-08 Martin Jambor <mjambor@suse.cz>
14282 PR middle-end/49923
14283 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
14286 2011-08-08 Diego Novillo <dnovillo@google.com>
14288 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
14289 (DATA_STREAMER_H): New.
14290 (GIMPLE_STREAMER_H): New.
14291 (TREE_STREAMER_H): New.
14292 (STREAMER_HOOKS_H): New.
14293 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
14294 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
14295 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
14296 (data-streamer.o): New.
14297 (data-streamer-in.o): New.
14298 (data-streamer-out.o): New.
14299 (gimple-streamer-in.o): New.
14300 (gimple-streamer-out.o): New.
14301 (streamer-hooks.o): New.
14302 (tree-streamer.o): New.
14303 (tree-streamer-in.o): New.
14304 (tree-streamer-out.o): New.
14305 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
14306 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
14307 GIMPLE_STREAMER_H and TREE_STREAMER_H.
14308 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
14309 GIMPLE_STREAMER_H and TREE_STREAMER_H.
14310 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
14311 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
14312 (ipa-inline-analysis.o): Likewise.
14313 (ipa-pure-const.o): Likewise.
14314 * data-streamer-in.c: New.
14315 * data-streamer-out.c: New.
14316 * data-streamer.c: New.
14317 * data-streamer.h: New.
14318 * gimple-streamer-in.c: New.
14319 * gimple-streamer-out.c: New.
14320 * gimple-streamer.h: New.
14321 * ipa-inline-analysis.c: Include data-streamer.h.
14322 * ipa-prop.c: Include data-streamer.h.
14323 * ipa-pure-const.c: Include data-streamer.h.
14324 * lto-cgraph.c: Include data-streamer.h.
14325 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
14326 (lto_input_widest_uint_uleb128): Likewise.
14327 (lto_input_sleb128): Likewise.
14328 (bp_unpack_var_len_unsigned): Likewise.
14329 (bp_unpack_var_len_int): Likewise.
14330 * lto-section-out.c (lto_output_uleb128_stream): Move to
14331 data-streamer-out.c.
14332 (lto_output_widest_uint_uleb128_stream): Likewise.
14333 (lto_output_sleb128_stream): Likewise.
14334 (bp_pack_var_len_unsigned): Likewise.
14335 (bp_pack_var_len_int): Likewise.
14336 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
14337 (struct string_slot): Remove. Update all users.
14338 (lto_tag_check_set): Make extern.
14339 (lto_tag_check_range): Move to lto-streamer.h.
14340 (lto_tag_check): Likewise.
14341 (hash_string_slot_node): Remove. Update all users.
14342 (eq_string_slot_node): Remove. Update all users.
14343 (string_for_index): Move to data-streamer-in.c
14344 (input_string_internal): Likewise.
14345 (input_string_cst): Move to tree-streamer-in.c.
14346 (input_identifier): Likewise.
14347 (lto_input_string): Move to data-streamer-in.c
14348 (input_record_start): Move to data-streamer.h
14349 (canon_file_name): Use new definition of struct string_slot
14350 from data-streamer.h. Set S_SLOT.LEN.
14351 (lto_input_location): Make extern.
14352 (lto_input_chain): Move to tree-streamer-in.c.
14353 (lto_init_eh): Make extern.
14354 (input_phi): Move to gimple-streamer-in.c.
14355 (input_gimple_stmt): Likewise.
14356 (input_bb): Likewise.
14357 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
14358 (unpack_ts_real_cst_value_fields): Likewise.
14359 (unpack_ts_fixed_cst_value_fields): Likewise.
14360 (unpack_ts_decl_common_value_fields): Likewise.
14361 (unpack_ts_decl_wrtl_value_fields): Likewise.
14362 (unpack_ts_decl_with_vis_value_fields): Likewise.
14363 (unpack_ts_function_decl_value_fields): Likewise.
14364 (unpack_ts_type_common_value_fields): Likewise.
14365 (unpack_ts_block_value_fields): Likewise.
14366 (unpack_ts_translation_unit_decl_value_fields): Likewise.
14367 (unpack_value_fields): Likewise.
14368 (lto_materialize_tree): Likewise.
14369 (lto_input_ts_common_tree_pointers): Likewise.
14370 (lto_input_ts_vector_tree_pointers): Likewise.
14371 (lto_input_ts_complex_tree_pointers): Likewise.
14372 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
14373 (lto_input_ts_decl_common_tree_pointers): Likewise.
14374 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
14375 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
14376 (lto_input_ts_field_decl_tree_pointers): Likewise.
14377 (lto_input_ts_function_decl_tree_pointers): Likewise.
14378 (lto_input_ts_type_common_tree_pointers): Likewise.
14379 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14380 (lto_input_ts_list_tree_pointers): Likewise.
14381 (lto_input_ts_vec_tree_pointers): Likewise.
14382 (lto_input_ts_exp_tree_pointers): Likewise.
14383 (lto_input_ts_block_tree_pointers): Likewise.
14384 (lto_input_ts_binfo_tree_pointers): Likewise.
14385 (lto_input_ts_constructor_tree_pointers): Likewise.
14386 (lto_input_ts_target_option): Likewise.
14387 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
14388 (lto_input_tree_pointers): Likewise.
14389 (lto_get_pickled_tree): Likewise.
14390 (lto_get_builtin_tree): Likewise.
14391 (lto_read_tree): Likewise.
14392 (lto_input_integer_cst): Likewise.
14393 (lto_input_tree): Likewise.
14394 * lto-streamer-out.c: Include data-streamer.h,
14395 gimple-streamer.h and streamer-hooks.h.
14396 (struct string_slot): Move to data-streamer.h.
14397 (hash_string_slot_node): Likewise.
14398 (eq_string_slot_node): Likewise.
14399 (lto_string_index): Move to data-streamer-out.c.
14400 (lto_output_string_with_length): Likewise.
14401 (lto_output_string): Likewise.
14402 (output_string_cst): Move to tree-streamer-out.c.
14403 (output_identifier): Likewise.
14404 (output_zero): Move to data-streamer-out.c
14405 (output_uleb128): Likewise.
14406 (output_sleb128): Likewise.
14407 (output_record_start): Move to data-streamer.h
14408 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
14409 (pack_ts_real_cst_value_fields): Likewise.
14410 (pack_ts_fixed_cst_value_fields): Likewise.
14411 (pack_ts_decl_common_value_fields): Likewise.
14412 (pack_ts_decl_wrtl_value_fields): Likewise.
14413 (pack_ts_decl_with_vis_value_fields): Likewise.
14414 (pack_ts_function_decl_value_fields): Likewise.
14415 (pack_ts_type_common_value_fields): Likewise.
14416 (pack_ts_block_value_fields): Likewise.
14417 (pack_ts_translation_unit_decl_value_fields): Likewise.
14418 (pack_value_fields): Likewise.
14419 (lto_output_chain): Likewise.
14420 (lto_output_ts_common_tree_pointers): Likewise.
14421 (lto_output_ts_vector_tree_pointers): Likewise.
14422 (lto_output_ts_complex_tree_pointers): Likewise.
14423 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
14424 (lto_output_ts_decl_common_tree_pointers): Likewise.
14425 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
14426 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
14427 (lto_output_ts_field_decl_tree_pointers): Likewise.
14428 (lto_output_ts_function_decl_tree_pointers): Likewise.
14429 (lto_output_ts_type_common_tree_pointers): Likewise.
14430 (lto_output_ts_type_non_common_tree_pointers): Likewise.
14431 (lto_output_ts_list_tree_pointers): Likewise.
14432 (lto_output_ts_vec_tree_pointers): Likewise.
14433 (lto_output_ts_exp_tree_pointers): Likewise.
14434 (lto_output_ts_block_tree_pointers): Likewise.
14435 (lto_output_ts_binfo_tree_pointers): Likewise.
14436 (lto_output_ts_constructor_tree_pointers): Likewise.
14437 (lto_output_ts_target_option): Likewise.
14438 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
14439 (lto_output_tree_pointers): Likewise.
14440 (lto_output_tree_header): Likewise.
14441 (lto_output_builtin_tree): Likewise.
14442 (lto_write_tree): Likewise.
14443 (lto_output_integer_cst): Likewise.
14444 (lto_output_tree): Likewise.
14445 (output_phi): Move to gimple-streamer-out.c.
14446 (output_gimple_stmt): Likewise.
14447 (output_bb): Likewise.
14448 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
14449 (streamer_hooks): Move to streamer-hooks.c.
14450 (check_handled_ts_structures): Move to tree-streamer.c
14451 (lto_streamer_cache_add_to_node_array): Likewise.
14452 (lto_streamer_cache_insert_1): Likewise.
14453 (lto_streamer_cache_insert): Likewise.
14454 (lto_streamer_cache_insert_at): Likewise.
14455 (lto_streamer_cache_append): Likewise.
14456 (lto_streamer_cache_lookup): Likewise.
14457 (lto_streamer_cache_get): Likewise.
14458 (lto_record_common_node): Likewise.
14459 (lto_preload_common_nodes): Likewise.
14460 (lto_streamer_cache_create): Likewise.
14461 (lto_streamer_cache_delete): Likewise.
14462 (streamer_hooks_init): Move to streamer-hooks.c.
14463 * lto-streamer.h: Include diagnostic.h
14464 (struct output_block, struct lto_input_block,
14465 struct data_in, struct bitpack_d): Remove forward declarations.
14466 (struct bitpack_d): Move to data-streamer.h.
14467 (struct lto_streamer_cache_d): Move to tree-streamer.h.
14468 (struct streamer_hooks): Move to streamer-hooks.h.
14469 (bp_pack_var_len_unsigned): Move to data-streamer.h.
14470 (bp_pack_var_len_int): Likewise.
14471 (bp_unpack_var_len_unsigned): Likewise.
14472 (bp_unpack_var_len_int): Likewise.
14473 (lto_input_location): Declare.
14474 (lto_tag_check_set): Declare.
14475 (lto_init_eh): Declare.
14476 (lto_output_tree_ref): Declare.
14477 (lto_output_location): Declare.
14478 (bitpack_create): Move to data-streamer.h.
14479 (bp_pack_value): Likewise.
14480 (lto_output_bitpack): Likewise.
14481 (lto_input_bitpack): Likewise.
14482 (bp_unpack_value): Likewise.
14483 (lto_output_1_stream): Likewise.
14484 (lto_input_1_unsigned): Likewise.
14485 (lto_output_int_in_range): Likewise.
14486 (lto_input_int_in_range): Likewise.
14487 (bp_pack_int_in_range): Likewise.
14488 (bp_unpack_int_in_range): Likewise.
14489 (lto_output_enum): Likewise.
14490 (lto_input_enum): Likewise.
14491 (bp_pack_enum): Likewise.
14492 (bp_unpack_enum): Likewise.
14493 * streamer-hooks.c: New.
14494 * streamer-hooks.h: New.
14495 * tree-streamer-in.c: New.
14496 * tree-streamer-out.c: New.
14497 * tree-streamer.c: New.
14498 * tree-streamer.h: New.
14500 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14502 * gthr-posix95.h: Remove.
14503 * gthr.h [_PTHREADS95]: Remove.
14504 * configure.ac (enable_threads): Remove posix95.
14505 * configure: Regenerate.
14506 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
14508 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
14511 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
14513 (ix86_print_operand_address): Handle zero-extended addresses.
14514 (memory_address_length): Add length of addr32 prefix for
14515 zero-extended addresses.
14516 (ix86_secondary_reload): Handle moves to/from double-word general
14517 registers from/to zero-extended addresses.
14518 * config/i386/predicates.md (lea_address_operand): Reject
14519 zero-extended operands.
14521 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
14524 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
14526 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
14527 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
14529 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
14530 (_Unwind_Context_Reg_Val): Likewise.
14531 (_Unwind_Get_Unwind_Word): Likewise.
14532 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
14533 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
14534 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
14535 for EXTENDED_CONTEXT_BIT.
14536 (__frame_state_for): Likewise.
14537 (uw_init_context_1): Likewise.
14538 (_Unwind_GetGR): Updated.
14539 (_Unwind_SetGR): Likewise.
14540 (_Unwind_GetGRPtr): Likewise.
14541 (_Unwind_SetGRPtr): Likewise.
14542 (_Unwind_SetGRValue): Likewise.
14543 (_Unwind_GRByValue): Likewise.
14544 (uw_install_context_1): Likewise.
14546 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
14547 ASSUME_EXTENDED_UNWIND_CONTEXT.
14548 * doc/tm.texi: Regenerated.
14550 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14552 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
14554 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14556 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
14557 Linux/GNU-specific.
14558 (DEC Alpha Options, -mtune): Likewise.
14559 (MIPS Options, -march): native is supported on IRIX.
14561 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14563 * config/sparc/driver-sparc.c: New file.
14564 * config/sparc/x-sparc: New file.
14565 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
14566 * config/sparc/sparc.opt (native): New value for enum processor_type.
14567 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
14568 * config/sparc/sparc.c (sparc_option_override): Abort if
14569 PROCESSOR_NATIVE gets here.
14570 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
14571 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
14572 DRIVER_SELF_SPECS): Define.
14573 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
14574 (SPARC Options, -mtune): Likewise.
14575 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
14577 * configure: Regenerate.
14578 * Makefile.in (EXTRA_GCC_LIBS): Set.
14579 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
14580 (cpp$(exeext)): Likewise.
14582 2011-08-08 Richard Guenther <rguenther@suse.de>
14584 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
14586 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
14589 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
14591 PR tree-optimization/50005
14592 * ipa-inline-analysis (remap_predicate): Add cast to
14593 silence signed/unsigned comparison warning.
14595 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
14597 * modulo-sched.c (get_sched_window): Use a table for the debug output.
14598 Print the current ii.
14599 (sms_schedule_by_order): Reduce whitespace in dump line.
14601 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
14603 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
14604 and one loop for successors. Fix upper bound of memory range.
14606 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
14609 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
14610 (TARGET_INSTANTIATE_DECLS): New define.
14612 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
14613 Mikael Morin <mikael.morin@sfr.fr>
14615 * Makefile.in (INCLUDES_FOR_TARGET): New.
14616 (LIBGCC2_CFLAGS): Use it.
14617 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
14619 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
14621 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
14622 frame->save_regs_using_mov calculation.
14624 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
14626 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
14627 * config/i386/sse.md (castmode): New mode attribute.
14628 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
14629 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
14631 2011-08-05 Jan Hubicka <jh@suse.cz>
14633 PR middle-end/49494
14634 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
14636 2011-08-05 Jan Hubicka <jh@suse.cz>
14638 PR middle-end/49500
14639 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
14641 (create_emultls_var):New function.
14642 (ipa_lower_emutls): Handle aliases correctly.
14644 2011-08-05 Jan Hubicka <jh@suse.cz>
14646 PR middle-end/49735
14647 * ipa-inline.c (recursive_inlining): Look through aliases.
14649 2011-08-05 Jason Merrill <jason@redhat.com>
14651 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
14652 declarations to beginning of function.
14654 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
14656 PR rtl-optimization/49900
14657 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
14658 ensure basic blocks stay in the same order.
14660 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
14662 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
14664 (s390_expand_atomic): Same.
14666 2011-08-05 Richard Henderson <rth@redhat.com>
14669 * dwarf2cfi.c (scan_insn_after): Split out of ...
14670 (scan_trace): ... here. Correctly place notes wrt sequences.
14672 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
14673 Richard Henderson <rth@redhat.com>
14676 * expr.c (fixup_args_size_notes): Look through no-op moves.
14678 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
14680 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
14681 of "m" for operand 0. Add type and mode attribute.
14682 (*pushxf_nointeger"): Use "<" constraint for operand 0.
14683 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
14684 constraint instead of "o" for opreand 1.
14685 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
14686 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
14687 operand 0, alternative 4.
14688 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
14690 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
14692 * config/i386/predicates.md (lea_address_operand): Rename from
14693 no_seg_address_operand.
14694 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
14695 (*lea_1_zext): Ditto.
14697 (*lea_2_zext): Ditto.
14699 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
14701 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
14702 parts.base and parts.index.
14703 * config/i386/predicates.md (aligned_operand): Ditto.
14704 (cmpxchg8b_pic_memory_operand): Ditto.
14706 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14708 * config/soft-fp: Move to ../libgcc.
14709 * Makefile.in (SFP_MACHINE): Remove.
14710 (libgcc-support): Remove $(SFP_MACHINE) dependency.
14711 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
14712 * config/arm/t-arm-softfp: Move to
14713 ../libgcc/config/arm/t-softfp.
14714 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
14715 * config/c6x/t-c6x-softfp: Remove.
14716 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
14717 * config/i386/t-fprules-softfp: Move to
14718 ../libgcc/config/t-softfp-tf.
14719 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
14720 * config/ia64/t-fprules-softfp: Remove.
14721 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
14722 * config/lm32/t-fprules-softfp: Remove.
14723 * config/moxie/sfp-machine.h: Remove.
14724 * config/moxie/t-moxie-softfp: Remove.
14725 * config/rs6000/darwin-ldouble-format: Move to
14726 ../libgcc/config/rs6000/ibm-ldouble-format.
14727 * config/rs6000/darwin-ldouble.c: Move to
14728 ../libgcc/config/rs6000/ibm-ldouble.c
14729 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
14730 * config/rs6000/libgcc-ppc64.ver: Likewise.
14731 * config/rs6000/sfp-machine.h: Likewise.
14732 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
14733 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
14734 (LIB2FUNCS_EXTRA): Remove.
14735 (TARGET_LIBGCC2_CFLAGS): Remove.
14736 * config/rs6000/t-aix52: Likewise
14737 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
14738 $(srcdir)/config/rs6000/darwin-ldouble.c.
14739 (SHLIB_MAPFILES): Remove.
14740 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
14741 $(srcdir)/config/rs6000/darwin-ldouble.c.
14742 * config/rs6000/t-fprules-softfp: Move to
14743 ../libgcc/config/t-softfp-sfdf.
14744 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
14745 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
14746 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
14747 $(srcdir)/config/rs6000/darwin-ldouble.c.
14748 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
14749 * config/score/t-score-softfp: Remove.
14750 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
14751 soft-fp/t-softfp from tmake_file.
14752 (arm*-*-uclinux*): Likewise.
14753 (arm*-*-ecos-elf): Likewise.
14754 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
14755 (arm*-*-rtems*): Likewise.
14756 (arm*-*-elf): Likewise.
14757 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
14759 (moxie-*-uclinux*): Likewise.
14760 (moxie-*-rtems*): Likewise.
14761 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
14763 (lm32-*-rtems*): Likewise.
14764 (lm32-*-uclinux*): Likewise.
14765 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
14766 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
14767 (powerpc-*-linux*, powerpc64-*-linux*): Remove
14768 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
14769 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
14771 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
14773 (tic6x-*-uclinux): Likewise.
14774 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
14775 soft-fp/t-softfp from tmake_file.
14776 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
14777 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
14778 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
14779 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
14780 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
14782 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14784 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
14785 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
14786 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
14787 TPBIT, TPBIT_FUNCS.
14788 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
14789 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
14791 * config/arm/t-vxworks: Likewise.
14792 * config/arm/t-wince-pe: Likewise.
14793 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
14794 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14795 * config/bfin/t-bfin-elf: Likewise.
14796 * config/bfin/t-bfin-linux: Likewise.
14797 * config/bfin/t-bfin-uclinux: Likewise.
14798 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
14800 * config/fr30/t-fr30: Likewise.
14801 * config/frv/t-frv: Likewise.
14802 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
14803 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14804 * config/m32c/t-m32c: Likewise.
14805 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
14806 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14807 * config/mcore/t-mcore: Likewise.
14808 * config/mep/t-mep: Likewise.
14809 * config/microblaze/t-microblaze: Likewise.
14810 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
14811 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14812 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
14813 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14814 * config/mn10300/t-linux: Remove.
14815 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14816 * config/pdp11/t-pdp11: Likewise.
14817 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
14818 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
14819 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14820 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
14821 * config/rs6000/t-aix52: Likewise.
14822 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
14823 $(srcdir)/config/rs6000/ppc64-fp.c.
14824 * config/rs6000/t-fprules-fpbit: Remove.
14825 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
14826 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14827 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
14828 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14829 * config/sparc/t-elf: Likewise.
14830 * config/sparc/t-leon: Likewise.
14831 * config/sparc/t-leon3: Likewise.
14832 * config/spu/t-spu-elf: Likewise.
14833 (DPBIT_FUNCS): Remove.
14834 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14835 * config/v850/t-v850: Likewise.
14836 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
14837 (avr-*-*): Likewise.
14838 (h8300-*-rtems*): Set libgcc_tm_file.
14839 (h8300-*-elf*): Likewise.
14840 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
14842 (powerpc-*-eabisim*): Likewise.
14843 (powerpc-*-elf*): Likewise.
14844 (powerpc-*-eabialtivec*): Likewise.
14845 (powerpc-xilinx-eabi*): Likewise.
14846 (powerpc-*-eabi*): Likewise.
14847 (powerpc-*-rtems*): Likewise.
14848 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
14849 (powerpcle-*-elf*): Likewise.
14850 (powerpcle-*-eabisim*): Likewise.
14851 (powerpcle-*-eabi*): Likewise.
14852 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
14853 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
14854 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
14857 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14859 * Makefile.in (UNWIND_H): Remove.
14860 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
14861 ../libgcc/Makefile.in.
14862 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
14863 (LIBUNWINDDEP): Remove.
14864 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
14865 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
14866 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
14867 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
14868 Don't copy $(UNWIND_H).
14869 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
14870 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
14871 * aclocal.m4: Regenerate.
14872 * configure: Regenerate.
14873 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
14874 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
14875 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
14876 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
14877 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
14878 * config/arm/libunwind.S, config/arm/pr-support.c,
14879 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
14880 ../libgcc/config/arm.
14881 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
14882 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
14883 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
14884 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
14885 ($(T)frvend$(objext)): Likewise.
14886 * config/ia64/t-glibc (LIB2ADDEH): Remove.
14887 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
14888 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
14889 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
14890 ../libgcc/config/ia64.
14891 * config/ia64/t-hpux (LIB2ADDEH): Remove.
14892 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
14893 * config/ia64/t-vms (LIB2ADDEH): Remove.
14894 * config/ia64/vms.h (UNW_IVMS_MODE,
14895 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
14896 * config/picochip/t-picochip (LIB2ADDEH): Remove.
14897 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
14898 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
14899 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
14900 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
14901 $(srcdir)/../libgcc to refer to unwinder sources.
14902 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
14903 * config/t-darwin (LIB2ADDEH): Remove.
14904 * config/t-freebsd (LIB2ADDEH): Remove.
14905 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
14906 * config/t-libunwind-elf: Move to ../libgcc/config.
14907 * config/t-linux (LIB2ADDEH): Remove.
14908 * config/t-sol2 (LIB2ADDEH): Remove.
14909 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
14910 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
14912 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
14914 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
14916 * doc/invoke.texi: Document core-avx-i.
14918 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14920 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
14922 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
14924 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
14925 result of multiple results reduction when extracting the final
14926 value using scalar code.
14928 2011-08-05 Richard Guenther <rguenther@suse.de>
14930 PR tree-optimization/49984
14931 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
14933 2011-08-05 Richard Guenther <rguenther@suse.de>
14935 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
14936 return true for constant integer ranges.
14937 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
14938 BIT_IOR_EXPR handling.
14940 2011-08-04 Kai Tietz <ktietz@redhat.com>
14942 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
14943 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
14945 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
14947 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
14948 pattern def statement, and its access macro.
14949 (NUM_PATTERNS): Set to 5.
14950 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
14951 pattern def statement.
14952 (vect_transform_loop): Likewise.
14953 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
14954 function vect_recog_over_widening_pattern ().
14955 (vect_operation_fits_smaller_type): New function.
14956 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
14958 (vect_pattern_recog_1): Move the code that marks pattern
14959 statements to vect_mark_pattern_stmts (), and call it. Update
14961 * tree-vect-stmts.c (vect_supportable_shift): New function.
14962 (vect_analyze_stmt): Handle pattern def statement.
14963 (new_stmt_vec_info): Initialize pattern def statement.
14965 2011-08-04 Richard Henderson <rth@redhat.com>
14968 * config/i386/i386.c (ix86_expand_call): Don't create nested
14969 PARALLELs for TARGET_VZEROUPPER.
14970 (ix86_split_call_vzeroupper): Fix extraction of the original call.
14971 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
14972 recognize nested PARALLELs.
14973 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
14974 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
14975 *sibcall_value_pop_vzeroupper): Likewise.
14977 2011-08-04 Richard Henderson <rth@redhat.com>
14979 PR middle-end/49968
14980 * calls.c (expand_call): Use fixup_args_size_notes for
14981 emit_stack_restore.
14982 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
14983 in non-standard modes.
14985 2011-08-04 Jakub Jelinek <jakub@redhat.com>
14987 * gcc.c (self_spec): New variable.
14988 (static_specs): Add self_spec.
14989 (main): Call do_self_spec on "self_spec" specs after reading
14990 user specs files. Move compare_debug handling right after that.
14992 2011-08-04 Richard Guenther <rguenther@suse.de>
14994 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
14995 (value_range_nonnegative_p): New function.
14996 (ssa_name_nonnegative_p): Use it.
14997 (value_range_constant_singleton): New function.
14998 (op_with_constant_singleton_value_range): Use it.
14999 (extract_range_from_binary_expr_1): New function, split out from ...
15000 (extract_range_from_binary_expr): ... this. Remove fallback
15001 constant folding done here.
15003 2011-08-04 Richard Guenther <rguenther@suse.de>
15005 PR tree-optimization/49806
15006 * tree-vrp.c (op_with_boolean_value_range_p): New function.
15007 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
15008 a new statement for a final conversion to bool.
15010 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
15012 * gengtype-state.c: Include "bconfig.h" if
15013 GENERATOR_FILE is defined, "config.h" otherwise.
15014 * gengtype.c: Likewise.
15015 * gengtype-lex.l: Likewise.
15016 * gengtype-parse.c: Likewise.
15017 * Makefile.in (gengtype-lex.o-warn): New variable.
15018 (plugin_resourcesdir): Likewise.
15019 (plugin_bindir): Likewise.
15020 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
15021 (MOSTLYCLEANFILES): Add gengtype$(exeext).
15022 (native): Depend on gengtype$(exeext) is $enable_plugin
15024 (gtype.state): Depend on s-gtype. Use temporary file.
15025 (gengtype-lex.o): New rule.
15026 (gengtype-parse.o): Likewise.
15027 (gengtype-state.o): Likewise.
15028 (gengtype$(exeext)): Likewise.
15029 (install-gengtype): Likewise.
15030 (gengtype.o): Likewise.
15031 (build/gengtype.o): Depend on version.h.
15032 (build/gengtype-state): Depend on double-int.h, version.h,
15033 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
15034 (install-plugin): Depend on install-gengtype.
15036 2011-08-04 Jakub Jelinek <jakub@redhat.com>
15038 PR middle-end/49905
15039 * tree.h (init_attributes): New prototype.
15040 * attribs.c (init_attributes): No longer static.
15042 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15044 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
15047 2011-08-03 David Li <davidxl@google.com>
15049 * tree-optimize.c (execute_fixup_cfg): Fix up entry
15050 outgoing edge counts after inlining.
15052 2011-08-03 David Li <davidxl@google.com>
15054 * profile.c (compute_branch_probabilities): Compute
15055 function frequency after profile annotation.
15057 2011-08-04 Alan Modra <amodra@gmail.com>
15059 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
15060 use_backchain_to_restore_sp initialisation.
15061 (rs6000_legitimate_offset_address_p): Simplify offset test.
15063 2011-08-03 Richard Henderson <rth@redhat.com>
15065 * config/spu/spu.md: Use define_c_enum instead of define_constants.
15066 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
15067 (UNSPECV_NOP): New.
15069 2011-08-03 Richard Henderson <rth@redhat.com>
15072 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
15074 2011-08-03 Jakub Jelinek <jakub@redhat.com>
15076 PR tree-optimization/49948
15077 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
15079 2011-08-03 Anatoly Sokolov <aesok@post.ru>
15081 * config/m32c/m32c.c (class_sizes): Remove.
15082 (reduce_class): Change arguments and return type to reg_class_t.
15083 Change type cc var to HARD_REG_SET. Change type best var to
15084 reg_class_t. Change type best_size var to unsigned int. Remove
15085 initialization class_sizes var. Use reg_class_size array instead
15086 of class_sizes. Use reg_class_contents array instead
15089 2011-08-03 Richard Guenther <rguenther@suse.de>
15091 PR middle-end/49958
15092 * fold-const.c (fold_binary_loc): Only associate
15093 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
15096 2011-08-03 Alan Modra <amodra@gmail.com>
15098 PR rtl-optimization/49941
15099 * jump.c (mark_jump_label): Comment.
15100 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
15101 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
15102 (mark_used_flags): Don't mark RETURN.
15104 2011-08-03 Richard Guenther <rguenther@suse.de>
15106 PR tree-optimization/49938
15107 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
15108 deal with a POLYNOMIAL_CHREC.
15110 2011-08-03 Revital Eres <revital.eres@linaro.org>
15112 * modulo-sched.c (calculate_stage_count,
15113 calculate_must_precede_follow, get_sched_window,
15114 try_scheduling_node_in_cycle, remove_node_from_ps): Add
15116 (update_node_sched_params, set_must_precede_follow, optimize_sc):
15118 (reset_sched_times): Call update_node_sched_params.
15119 (sms_schedule): Call optimize_sc.
15120 (get_sched_window): Change function arguments.
15121 (sms_schedule_by_order): Update call to get_sched_window.
15122 Call set_must_precede_follow.
15123 (calculate_stage_count): Add function argument.
15125 2011-08-02 Richard Henderson <rth@redhat.com>
15129 * reg-notes.def (REG_ARGS_SIZE): New.
15130 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
15131 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
15132 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
15133 different stack levels.
15134 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
15135 (maybe_move_args_size_note): New.
15136 (combine_stack_adjustments_for_block): Use it.
15137 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
15138 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
15139 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
15140 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
15142 (queued_args_size): Remove.
15143 (add_cfi_args_size): Assert size is non-negative.
15144 (stack_adjust_offset, dwarf2out_args_size): Remove.
15145 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
15146 (notice_args_size, notice_eh_throw): New.
15147 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
15148 (dwarf2out_frame_debug_adjust_cfa): Likewise.
15149 (dwarf2out_frame_debug_cfa_offset): Likewise.
15150 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
15151 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
15152 (change_cfi_row): Don't emit args_size.
15153 (maybe_record_trace_start_abnormal): Split out from ...
15154 (maybe_record_trace_start): Here. Set args_size_undefined.
15155 (create_trace_edges): Update to match.
15156 (scan_trace): Handle REG_ARGS_SIZE.
15157 (connect_traces): Connect args_size between EH insns.
15158 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
15159 * explow.c (suppress_reg_args_size): New.
15160 (adjust_stack_1): Split out from ...
15161 (adjust_stack): ... here.
15162 (anti_adjust_stack): Use it.
15163 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
15164 * expr.c (mem_autoinc_base): New.
15165 (fixup_args_size_notes): New.
15166 (emit_single_push_insn_1): Rename from emit_single_push_insn.
15167 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
15168 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
15169 * reload1.c (reload_as_needed): Likewise.
15170 * rtl.h (fixup_args_size_notes): Declare.
15172 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
15175 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
15177 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
15178 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
15180 2011-08-02 Richard Henderson <rth@redhat.com>
15182 * config/h8300/h8300.c (push, pop): Return the insn.
15183 (h8300_swap_into_er6): Generate correct unwind info.
15184 (h8300_swap_out_of_er6): Likewise.
15185 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
15186 complex cfa expression.
15187 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
15189 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
15191 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15193 2011-08-02 Richard Henderson <rth@redhat.com>
15196 * config/h8300/h8300.c (h8300_move_ok): New.
15197 * config/h8300/h8300-protos.h: Declare it.
15198 * config/h8300/h8300.md (P): New mode iterator.
15199 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
15200 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
15201 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
15202 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
15203 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
15204 and pushqi1_h8300hs_normal; use PRE_MODIFY and
15205 register_no_sp_elim_operand.
15206 (*pushhi1_h8300hs_<P>): Similarly.
15207 (pushqi1, pushhi1, pushhi1_h8300): Remove.
15208 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
15210 2011-08-02 Richard Henderson <rth@redhat.com>
15213 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
15215 2011-08-02 Jakub Jelinek <jakub@redhat.com>
15217 * c-parser.c (enum c_parser_prec): New enum, moved from within
15218 c_parser_binary_expression.
15219 (c_parser_binary_expression): Add PREC argument. Stop parsing
15220 if operator has lower or equal precedence than PREC.
15221 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
15223 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
15224 Adjust c_finish_omp_atomic caller.
15225 (c_parser_omp_taskyield): New function.
15226 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
15227 (c_parser_omp_clause_name): Handle final and mergeable clauses.
15228 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
15230 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
15231 and PRAGMA_OMP_CLAUSE_MERGEABLE.
15232 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
15233 (c_parser_omp_clause_reduction): Handle min and max.
15234 * c-typeck.c (c_finish_omp_clauses): Don't complain about
15235 const qualified predetermined vars in firstprivate clause.
15236 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15237 Handle MIN_EXPR and MAX_EXPR.
15238 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
15239 and OMP_CLAUSE_MERGEABLE.
15240 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
15241 and OMP_ATOMIC_CAPTURE_NEW.
15242 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
15243 OMP_CLAUSE_MERGEABLE.
15244 (omp_clause_code_name): Likewise.
15245 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15246 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
15247 and OMP_CLAUSE_MERGEABLE.
15248 (OMP_CLAUSE_FINAL_EXPR): Define.
15249 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
15250 OMP_CLAUSE_MERGEABLE.
15251 (expand_task_call): Likewise.
15252 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
15253 (expand_omp_atomic_fetch_op): Handle cases where old or new
15254 value is needed afterwards.
15255 (expand_omp_atomic): Call expand_omp_atomic_load resp.
15256 expand_omp_atomic_store.
15257 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
15258 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
15259 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
15260 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15261 * tree-nested.c (convert_nonlocal_omp_clauses,
15262 convert_local_omp_clauses): Likewise.
15263 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
15264 OMP_ATOMIC_CAPTURE_NEW): New.
15265 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
15266 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
15268 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
15269 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
15270 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15272 2011-08-02 Kai Tietz <ktietz@redhat.com>
15274 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
15276 (ssa_forward_propagate_and_combine): Interprete result of
15277 forward_propagate_comparison.
15278 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
15279 boolean-typed operands for comparisons.
15281 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
15283 * config/avr/libgcc.S: Gather related function in the
15284 same input section.
15285 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
15286 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
15288 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
15289 __udivmodsi4, __divmodsi4, __prologue_saves__,
15290 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
15291 __do_copy_data, __do_clear_bss, __do_global_ctors,
15292 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
15294 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
15297 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
15298 (stack_protect_test): The pattern compares ptr_mode value.
15300 2011-08-02 Alan Modra <amodra@gmail.com>
15302 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
15303 note for save_LR_around_toc_setup sequence.
15305 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
15307 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
15309 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
15310 Joseph Myers <joseph@codesourcery.com>
15312 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
15313 * hwint.c: Include diagnostic-core.h.
15315 (gcd): Moved here...
15316 (pos_mul_hwi): New.
15318 (least_common_multiple): Moved here...
15319 * hwint.h (gcd): ... from here.
15320 (least_common_multiple): ... from here.
15321 (HOST_WIDE_INT_MIN): New.
15322 (HOST_WIDE_INT_MAX): New.
15323 (abs_hwi): Declared.
15325 (pos_mul_hwi): Declared.
15326 (mul_hwi): Declared.
15327 (least_common_multiple): Declared.
15328 * omega.c (check_pos_mul): Removed.
15329 (check_mul): Removed.
15330 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
15331 mul_hwi instead of check_mul.
15333 2011-08-01 Richard Henderson <rth@redhat.com>
15336 * config/avr/avr.h (PUSH_ROUNDING): New.
15337 * config/avr/avr.md (pushqi1): Rename from *pushqi.
15338 (*pushhi, *pushsi, *pushsf): Remove.
15339 (MPUSH): New mode iterator.
15340 (push<MPUSH>1): New expander.
15342 2011-08-01 Anatoly Sokolov <aesok@post.ru>
15344 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
15345 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
15346 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
15347 mmix_preferred_output_reload_class): Remove.
15348 * config/mmix/mmix.c (mmix_preferred_reload_class,
15349 mmix_preferred_output_reload_class): Make static. Change rclass
15350 argument and return type to reg_class_t.
15351 (TARGET_PREFERRED_RELOAD_CLASS,
15352 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15354 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
15356 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
15359 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
15362 * config/i386/i386.md (PTR): New.
15363 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
15364 (stack_protect_test): Likewise.
15365 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
15366 (stack_tls_protect_set_<mode>): Likewise.
15367 (stack_tls_protect_test_<mode>): Likewise.
15369 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
15372 * config/i386/i386.c (ix86_address_subreg_operand): New.
15373 (ix86_decompose_address): Use ix86_address_subreg_operand.
15374 (ix86_legitimate_address_p): Do not assert that subregs satisfy
15375 register_no_elim_operand in DImode.
15377 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
15379 PR tree-optimization/49926
15380 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
15381 in a chain doesn't have uses both inside and outside the loop.
15383 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
15385 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
15386 * config/avr/avr-devices.c (avr_mcu_types): Use it.
15387 * config/avr/avr-mcus.def (AVR_MCU): Use it.
15388 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
15389 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
15390 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
15391 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
15392 to detect if XJMP must not be skipped.
15394 2011-08-02 Alan Modra <amodra@gmail.com>
15396 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
15398 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
15399 (rs6000_emit_prologue): Don't prematurely return when
15400 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
15401 save_toc_in_prologue case.
15402 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
15405 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
15407 * config/avr/avr-devices.c: Delete SVN property svn:executable.
15408 * config/avr/predicates.md: Ditto.
15409 * config/avr/driver-avr.c: Ditto.
15410 * config/avr/genopt.sh: Set SVN property svn:executable to *.
15412 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
15414 * calls.c (emit_library_call_value_1): Declare size only if
15415 BLOCK_REG_PADDING is defined.
15417 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
15420 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
15421 (x86_64-*-*): Likewise.
15422 * config/i386/i386.opt (mlzcnt): New.
15423 * config/i386/abmintrin.h: File removed.
15424 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
15425 * config/i386/lzcntintrin.h: ... here. New file.
15426 (__lzcnt): Rename to ...
15427 (__lzcnt32): ... this.
15428 * config/i386/bmiintrin.h (head): Update copyright year.
15429 (__lzcnt_u16): Removed.
15430 (__lzcnt_u32): Likewise.
15431 (__lzcnt_u64): Likewise.
15432 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
15433 is defined, remove abmintrin.h.
15434 * config/i386/cpuid.h (bit_LZCNT): New.
15435 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15437 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15438 __LZCNT__ if needed.
15439 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
15440 (ix86_option_override_internal): Handle LZCNT option.
15441 (ix86_valid_target_attribute_inner_p): Likewise.
15442 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
15443 * config/i386/i386.h (TARGET_LZCNT): New.
15444 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
15445 * config/i386/i386.md (clz<mode>2): Update insn constraint.
15446 (clz<mode>2_lzcnt): Likewise.
15447 * doc/invoke.texi: Mention -mlzcnt option.
15448 * doc/extend.texi: Likewise.
15450 2011-08-01 Julian Brown <julian@codesourcery.com>
15452 * configure.ac (fixed-point): Add ARM support.
15453 * configure: Regenerate.
15454 * config/arm/arm.c (arm_fixed_mode_set): New struct.
15455 (arm_set_fixed_optab_libfunc): New.
15456 (arm_set_fixed_conv_libfunc): New.
15457 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
15458 ARM-specific names.
15459 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
15460 return values in SImode.
15461 (arm_return_in_msb): Return fixed-point types in the msb.
15462 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
15464 (arm_scalar_mode_supported_p): Support fixed-point modes.
15465 (arm_vector_mode_supported_p): Support vector fixed-point modes.
15466 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
15467 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
15468 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
15469 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
15470 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
15471 New mode iterators.
15472 (qaddsub_suf): New mode attribute.
15473 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
15475 * config/arm/predicates.md (sat_shift_operator): New predicate.
15476 * config/arm/arm-fixed.md: New.
15477 * config/arm/arm.md: Include arm-fixed.md.
15478 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
15480 2011-08-01 Julian Brown <julian@codesourcery.com>
15482 * calls.c (emit_library_call_value_1): Support padding for libcall
15483 arguments and return values.
15484 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
15485 downwards in big-endian mode.
15487 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15490 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
15491 * config/sol2-protos.h: Likewise.
15492 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
15494 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
15495 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
15497 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
15499 2011-08-01 Julian Brown <julian@codesourcery.com>
15501 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
15503 2011-08-01 Julian Brown <julian@codesourcery.com>
15505 * final.c (output_addr_const): Print fixed-point constants as
15508 2011-08-01 Richard Guenther <rguenther@suse.de>
15510 * stor-layout.c (initialize_sizetypes): Properly sign-extend
15511 bitsiztype TYPE_MAX_VALUE.
15513 2011-08-01 Julian Brown <julian@codesourcery.com>
15515 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
15516 comparison helpers.
15518 2011-07-31 Richard Henderson <rth@redhat.com>
15520 * config/h8300/crti.asm: Add flags to .section directive.
15521 * config/h8300/crtn.asm: Likewise.
15523 2011-07-31 Richard Henderson <rth@redhat.com>
15525 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
15526 * tree.c (build_common_tree_nodes): Likewise.
15528 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
15531 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
15532 (divsi3_i1): Likewise.
15534 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15536 PR tree-optimization/49749
15537 * tree-ssa-reassoc.c (get_rank): New forward declaration.
15538 (PHI_LOOP_BIAS): New macro.
15539 (phi_rank): New function.
15540 (loop_carried_phi): Likewise.
15541 (propagate_rank): Likewise.
15542 (get_rank): Add calls to phi_rank and propagate_rank.
15544 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
15546 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
15548 (PTRDIFF_TYPE): Likewise.
15550 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
15553 * config/i386/i386.md (strset): Do not expand strset_singleop
15554 when %eax or $edi are fixed.
15555 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
15556 (*strsetsi_1): Ditto.
15557 (*strsethi_1): Ditto.
15558 (*strsetqi_1): Ditto.
15559 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
15560 (*rep_stossi): Ditto.
15561 (*rep_stosqi): Ditto.
15562 (*strlenqi_1): Ditto.
15563 (cmpstrnsi): Also fail when %ecx is fixed.
15564 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
15565 (*cmpstrnqi_1): Ditto.
15566 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
15567 (*strmovsi_1): Ditto.
15568 (*strmovhi_1): Ditto.
15569 (*strmovqi_1): Ditto.
15570 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
15571 (*rep_movsi): Ditto.
15572 (*rep_movqi): Ditto.
15574 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
15577 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
15578 Disable instruction scheduling for non-ColdFire targets.
15579 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
15581 2011-07-31 Revital Eres <revital.eres@linaro.org>
15583 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
15584 of anti-dep edge from a branch.
15585 (add_cross_iteration_register_deps): Create anti-dep edge from
15588 2011-07-31 Revital Eres <revital.eres@linaro.org>
15590 * modulo-sched.c: Change comment.
15591 (reset_sched_times): Fix print message.
15592 (print_partial_schedule): Add print info.
15594 2011-07-31 Tom de Vries <tom@codesourcery.com>
15596 PR middle-end/43513
15597 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
15598 get_object_alignment and TYPE_ALIGN.
15600 2011-07-30 Tom de Vries <tom@codesourcery.com>
15602 PR middle-end/43513
15603 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
15604 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
15606 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15608 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
15610 (cpu_types): New array.
15611 (cputype): New function.
15612 (host_detect_local_cpu): Only define buf, f if !__sgi__.
15613 Use scaninvent instead of /proc/cpuinfo if __sgi__.
15614 * config.host: Also use driver-native.o, mips/x-native on
15616 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
15617 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
15618 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
15620 2011-07-29 Jakub Jelinek <jakub@redhat.com>
15622 PR middle-end/49897
15623 PR middle-end/49898
15624 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
15625 in nested parallel and outer is a gimple_reg, mark it as addressable
15626 and set its bit in task_shared_vars bitmap too.
15628 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
15630 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
15632 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15634 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
15635 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
15636 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
15637 AMASK_LOCKPFTCHOK): Define.
15638 (host_detect_local_cpu): Remove buf, f, cpu_names.
15639 Define cpu_types, implver, amask.
15640 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
15642 * config.host: Also use driver-alpha.o, alpha/x-alpha on
15644 * config/alpha/osf5.h [__alpha__ || __alpha]
15645 (host_detect_local_cpu): Declare.
15646 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
15647 (DRIVER_SELF_SPECS): Define.
15649 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
15652 * config/i386/i386.md (*load_tp_x32): New.
15653 (*load_tp_x32_zext): Ditto.
15654 (*add_tp_x32): Ditto.
15655 (*add_tp_x32_zext): Ditto.
15656 (*load_tp_<mode>): Disable for TARGET_X32 targets.
15657 (*add_tp_<mode>): Ditto.
15658 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
15659 ptr_mode and convert to Pmode if needed.
15661 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
15664 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
15665 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
15666 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
15667 Add X to register footprint: Clobber r26/r27.
15669 2011-07-29 Richard Guenther <rguenther@suse.de>
15671 * builtins.c (fold_builtin_signbit): Build the comparison
15672 with a proper type.
15674 2011-07-29 Richard Guenther <rguenther@suse.de>
15676 PR tree-optimization/49893
15677 * tree-predcom.c (suitable_reference_p): Volatile references
15680 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
15683 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
15684 (__ctzsi2): Result for 0 may be undefined.
15685 (__ctzhi2): Result for 0 may be undefined.
15686 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
15687 (__popcountsi2): Ditto. And don't clobber r26.
15688 (__popcountdi2): Ditto. And don't clobber r27.
15689 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
15690 (parityhi2): New expand.
15691 (paritysi2): New expand.
15692 (popcounthi2): New expand.
15693 (popcountsi2): New expand.
15694 (clzhi2): New expand.
15695 (clzsi2): New expand.
15696 (ctzhi2): New expand.
15697 (ctzsi2): New expand.
15698 (ffshi2): New expand.
15699 (ffssi2): New expand.
15700 (copysignsf3): New insn.
15701 (bswapsi2): New expand.
15702 (*parityhi2.libgcc): New insn.
15703 (*parityqihi2.libgcc): New insn.
15704 (*paritysihi2.libgcc): New insn.
15705 (*popcounthi2.libgcc): New insn.
15706 (*popcountsi2.libgcc): New insn.
15707 (*popcountqi2.libgcc): New insn.
15708 (*popcountqihi2.libgcc): New insn-and-split.
15709 (*clzhi2.libgcc): New insn.
15710 (*clzsihi2.libgcc): New insn.
15711 (*ctzhi2.libgcc): New insn.
15712 (*ctzsihi2.libgcc): New insn.
15713 (*ffshi2.libgcc): New insn.
15714 (*ffssihi2.libgcc): New insn.
15715 (*bswapsi2.libgcc): New insn.
15717 2011-07-29 Richard Guenther <rguenther@suse.de>
15719 * tree-vrp.c (get_value_range): Only set parameter default
15720 definitions to varying, leave others at undefined.
15721 (extract_range_from_binary_expr): Fix undefined handling.
15722 (vrp_visit_phi_node): Handle merged undefined state.
15724 2011-07-29 Wei Guozhi <carrot@google.com>
15726 PR rtl-optimization/49799
15727 * combine.c (make_compound_operation): Check if the bit field is valid
15728 before change it to bit field extraction.
15730 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
15732 PR rtl-optimization/49891
15733 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
15734 newly created returnjumps.
15736 2011-07-28 DJ Delorie <dj@redhat.com>
15738 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
15739 local frame in a naked function, and produce a suitable error for
15740 that specific case.
15742 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
15743 registers to be reloaded in HI classes when the target is HI.
15745 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
15747 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
15748 bound_one, bound_two.
15750 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
15752 PR middle-end/48648
15753 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
15755 (translate_clast): Same.
15756 (translate_clast_assignment): New.
15758 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
15760 PR tree-optimization/49876
15761 * sese.c (rename_uses): Do not return false on gloog_error: set
15762 the new_expr to integer_zero_node and continue code generation.
15763 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
15765 2011-07-28 Jakub Jelinek <jakub@redhat.com>
15768 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
15769 arguments also check if they aren't initialized with a MODE_INT
15770 mode of the same size.
15772 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
15774 * expr.c (get_bit_range): Handle *MEM_REF's.
15776 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
15778 * rtlanal.c (tablejump_p): False for returns.
15779 * reorg.c (first_active_target_insn): New static function.
15780 (find_end_label): Set JUMP_LABEL for a new returnjump.
15781 (optimize_skip, get_jump_flags, rare_destination,
15782 mostly_true_jump, get_branch_condition,
15783 steal_delay_list_from_target, own_thread_p,
15784 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
15785 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
15786 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
15787 * jump.c (delete_related_insns): Likewise.
15788 (jump_to_label_p): New function.
15789 (redirect_target): New static function.
15790 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
15791 (redirect_jump_1): Assert that the new label is nonnull.
15792 (redirect_jump): Likewise.
15793 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
15794 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
15796 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
15797 changed. Ensure that the right label is passed to redirect_jump.
15798 * function.c (emit_return_into_block,
15799 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
15800 ret_rtx in their JUMP_LABEL.
15801 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
15802 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
15803 pass ret_rtx as label.
15804 * cfglayout.c (fixup_reorder_chain): Use
15805 force_nonfallthru_and_redirect rather than force_nonfallthru.
15806 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
15807 * rtl.h (ANY_RETURN_P): New macro.
15808 (jump_to_label_p): Declare.
15809 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
15811 (mark_target_live_regs): Likewise.
15812 * basic-block.h (force_nonfallthru_and_redirect): Declare.
15813 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
15814 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
15815 alpha_tablejump_best_label): Remove functions.
15816 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
15817 alpha_tablejump_best_label): Remove declarations.
15818 * config/sh/sh.c (barrier_align, split_branches): Adjust for
15819 ret_rtx in JUMP_LABELs.
15820 * config/arm/arm.c (is_jump_table): Likewise.
15822 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
15824 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
15825 special predicate. Remove explicit mode checks.
15827 2011-07-28 Jakub Jelinek <jakub@redhat.com>
15829 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
15830 DW_AT_data_member_location containing just DW_OP_plus_uconst.
15833 * dwarf2out.c (size_of_die, value_format, output_die): Use
15834 DW_FORM_udata instead of DW_FORM_data[48] for
15835 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
15837 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15839 * config/i386/i386.md (*tls_global_dynamic_64): Update
15842 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
15845 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
15846 tls_symbolic_operand check. Update code sequence for TARGET_X32.
15847 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
15848 (tls_dynamic_gnu2_64): Ditto.
15849 (*tls_dynamic_gnu2_lea_64): Ditto.
15850 (*tls_dynamic_gnu2_call_64): Ditto.
15851 (*tls_dynamic_gnu2_combine_64): Ditto.
15853 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15855 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
15857 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15860 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
15862 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15864 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
15865 before the core constraints. Adjust attributes.
15866 ("*thumb2_movdf_vfp"): Likewise.
15868 2011-07-28 Kai Tietz <ktietz@redhat.com>
15870 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
15871 (simplify_truth_ops_using_ranges): Likewise.
15872 (build_assert_expr_for): Likewise.
15873 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
15874 and handle BIT_NOT_EXPR for truth-operation.
15876 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
15879 Undo r176835 from trunk
15880 2011-07-27 Georg-Johann Lay
15882 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
15885 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
15886 Add _muluhisi3, _mulshisi3, _usmulhisi3.
15887 * config/avr/libgcc.S (__mulsi3): Rewrite.
15888 (__mulhisi3): Rewrite.
15889 (__umulhisi3): Rewrite.
15890 (__usmulhisi3): New.
15891 (__muluhisi3): New.
15892 (__mulshisi3): New.
15893 (__mulohisi3): New.
15894 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
15896 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
15897 (pseudo_register_or_const_int_operand): New.
15898 (combine_pseudo_register_operand): New.
15899 (u16_operand): New.
15900 (s16_operand): New.
15901 (o16_operand): New.
15902 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
15903 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
15904 (any_extend, any_extend2): New code iterators.
15905 (extend_prefix): New code attribute.
15906 (mulsi3): Rewrite. Turn insn to expander.
15908 (umulhisi3): Ditto.
15909 (usmulhisi3): New expander.
15910 (*mulsi3): New insn-and-split.
15911 (mulu<mode>si3): New insn-and-split.
15912 (muls<mode>si3): New insn-and-split.
15913 (mulohisi3): New insn-and-split.
15914 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
15915 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
15916 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
15917 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
15919 (*mulsi3_call): Rewrite.
15920 (*mulhisi3_call): Rewrite.
15921 (*umulhisi3_call): Rewrite.
15922 (*usmulhisi3_call): New insn.
15923 (*muluhisi3_call): New insn.
15924 (*mulshisi3_call): New insn.
15925 (*mulohisi3_call): New insn.
15926 (extendqihi2): Use combine_pseudo_register_operand as predicate
15928 (extendqisi2): Ditto.
15929 (zero_extendqihi2): Ditto.
15930 (zero_extendqisi2): Ditto.
15931 (zero_extendhisi2): Ditto.
15932 (extendhisi2): Ditto. Don't early-clobber operand 0.
15934 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
15936 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
15938 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
15940 PR tree-optimization/49471
15941 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
15942 iv only when the largest type is unsigned. Do not call
15943 lang_hooks.types.type_for_size.
15945 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
15947 PR middle-end/45450
15948 * graphite-poly.c (apply_poly_transforms): Disable legality check
15949 after an openscop read.
15951 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
15953 PR middle-end/47691
15954 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
15955 copy_bb_and_scalar_dependences.
15956 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
15957 (graphite_copy_stmts_from_block): Update call to rename_uses.
15958 (copy_bb_and_scalar_dependences): Update call to
15959 graphite_copy_stmts_from_block.
15960 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15962 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
15965 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
15966 (__ctzsi2): Result for 0 may be undefined.
15967 (__ctzhi2): Result for 0 may be undefined.
15968 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
15969 (__popcountsi2): Ditto. And don't clobber r26.
15970 (__popcountdi2): Ditto. And don't clobber r27.
15971 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
15972 (parityhi2): New expand.
15973 (paritysi2): New expand.
15974 (popcounthi2): New expand.
15975 (popcountsi2): New expand.
15976 (clzhi2): New expand.
15977 (clzsi2): New expand.
15978 (ctzhi2): New expand.
15979 (ctzsi2): New expand.
15980 (ffshi2): New expand.
15981 (ffssi2): New expand.
15982 (copysignsf3): New insn.
15983 (bswapsi2): New expand.
15984 (*parityhi2.libgcc): New insn.
15985 (*parityqihi2.libgcc): New insn.
15986 (*paritysihi2.libgcc): New insn.
15987 (*popcounthi2.libgcc): New insn.
15988 (*popcountsi2.libgcc): New insn.
15989 (*popcountqi2.libgcc): New insn.
15990 (*popcountqihi2.libgcc): New insn-and-split.
15991 (*clzhi2.libgcc): New insn.
15992 (*clzsihi2.libgcc): New insn.
15993 (*ctzhi2.libgcc): New insn.
15994 (*ctzsihi2.libgcc): New insn.
15995 (*ffshi2.libgcc): New insn.
15996 (*ffssihi2.libgcc): New insn.
15997 (*bswapsi2.libgcc): New insn.
15999 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
16001 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
16002 the mode of symbolic_opreand RTXes.
16004 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
16006 * config/i386/predicates.md (x86_64_movabs_operand): Return false
16007 for pic_32bit_operand RTXes.
16008 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
16011 2011-07-27 Kai Tietz <ktietz@redhat.com>
16013 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
16015 (ix86_handle_abi_attribute): Allow function attributes
16016 ms_abi/sysv_abi in 32-bit mode, too.
16017 * doc/extend.texi: Adjust attribute documentation.
16019 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
16020 expression handling.
16021 (and_var_with_comparison_1): Likewise.
16023 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
16025 * params.h (ALLOW_STORE_DATA_RACES): New.
16026 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
16027 * Makefile.in (expr.o): Depend on PARAMS_H.
16028 * machmode.h (get_best_mode): Add argument.
16029 * fold-const.c (optimize_bit_field_compare): Add argument to
16031 (fold_truthop): Same.
16032 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
16033 * expr.c (emit_group_store): Same.
16034 (copy_blkmode_from_reg): Same.
16035 (write_complex_part): Same.
16036 (optimize_bitfield_assignment_op): Add argument.
16037 Add argument to get_best_mode.
16038 (get_bit_range): New.
16039 (expand_assignment): Calculate maxbits and pass it down accordingly.
16040 (store_field): New argument.
16041 (expand_expr_real_2): New argument to store_field. Include params.h.
16042 * expr.h (store_bit_field): New argument.
16043 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
16044 into account maxbits.
16045 * calls.c (store_unaligned_arguments_into_pseudos): New argument
16046 to store_bit_field.
16047 * expmed.c (store_bit_field_1): New argument. Use it.
16048 (store_bit_field): Same.
16049 (store_fixed_bit_field): Same.
16050 (store_split_bit_field): Same.
16051 (extract_bit_field_1): Pass new argument to get_best_mode.
16052 (extract_bit_field): Same.
16053 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
16054 * doc/invoke.texi: Document parameter allow-store-data-races.
16056 2011-07-27 Jakub Jelinek <jakub@redhat.com>
16058 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
16060 2011-07-27 Kai Tietz <ktietz@redhat.com>
16062 * tree-vrp.c (extract_range_from_binary_expr): Remove
16063 TRUTH-binary cases and add new bitwise-cases.
16064 (extract_range_from_assignment): Likewise.
16065 (register_edge_assert_for_1): Likeiwise.
16066 (register_edge_assert_for): Likewise.
16067 (simplify_truth_ops_using_ranges): Likewise.
16068 (simplify_stmt_using_ranges): Likewise.
16070 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
16073 * config/i386/i386.c (ix86_delegitimize_address): Call
16074 simplify_gen_subreg for PIC with mode of x only if modes of
16075 x and orig_x are different.
16077 2011-07-26 Jakub Jelinek <jakub@redhat.com>
16079 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
16080 to GC allocated copy of the string.
16081 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
16082 before .debug_line, not after it.
16084 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
16086 PR middle-end/47046
16087 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
16088 evolution_function_is_affine_p on CHREC_RIGHT.
16090 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
16092 * tree-data-ref.c (max_stmt_executions_tree): Do not call
16093 lang_hooks.types.type_for_size.
16095 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
16097 PR middle-end/47653
16098 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
16099 loops using wrapping semantics.
16101 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
16103 PR middle-end/48805
16104 * tree-scalar-evolution.c (instantiate_scev_r): Return
16105 chrec_dont_know for ADDR_EXPR.
16107 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
16108 H.J. Lu <hongjiu.lu@intel.com>
16112 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
16113 if legitimize_tls_address returned operand in wrong mode. Allow
16114 SImode and DImode symbolic operand for PIC. Call convert_to_mode
16115 if legitimize_pic_address returned operand in wrong mode.
16117 2011-07-26 Martin Jambor <mjambor@suse.cz>
16119 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
16120 return false for invariants.
16122 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
16124 * config/i386/i386.md (add->lea splitter): Implement using SWI
16125 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
16126 (add->lea zext splitter): Change operand 2 predicate to
16127 x86_64_nonmemory_operand.
16129 2011-07-26 Richard Guenther <rguenther@suse.de>
16131 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
16132 frequency makes everything hot.
16134 2011-07-26 Richard Guenther <rguenther@suse.de>
16136 PR tree-optimization/49840
16137 * tree-vrp.c (range_fits_type_p): Properly handle full
16138 double-int precision.
16140 2011-07-26 Martin Jambor <mjambor@suse.cz>
16143 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
16145 (update_specialized_profile): Likewise.
16147 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
16148 H.J. Lu <hongjiu.lu@intel.com>
16153 * config/i386/i386.md (i): Change SImode attribute to "e".
16154 (g): Change SImode attribute to "rme".
16155 (di): Change SImode attribute to "nF".
16156 (general_operand): Change SImode attribute to x86_64_general_operand.
16157 (general_szext_operand): Change SImode attribute to
16158 x86_64_szext_general_operand.
16159 (immediate_operand): Change SImode attribute to
16160 x86_64_immediate_operand.
16161 (nonmemory_operand): Change SImode attribute to
16162 x86_64_nonmemory_operand.
16163 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
16164 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
16165 (*lea_1): Use SWI48 mode iterator.
16166 (*lea_1_zext): New insn pattern.
16167 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
16168 (*bt<mode>): Ditto.
16169 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
16170 Update operand constraints.
16171 (addsi_1_zext): Ditto.
16172 (*add<mode>2): Ditto.
16173 (*addsi_3_zext): Ditto.
16174 (*subsi_1_zext): Ditto.
16175 (*subsi_2_zext): Ditto.
16176 (*subsi_3_zext): Ditto.
16177 (*addsi3_carry_zext): Ditto.
16178 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
16179 (*mulsi3_1_zext): Ditto.
16181 (*andsi_1_zext): Ditto.
16182 (*andsi_2_zext): Ditto.
16183 (*<any_or:code>si_1_zext): Ditto.
16184 (*<any_or:code>si_2_zext): Ditto.
16185 (*test<mode>_1): Use <general_operand> predicate for operand 1.
16186 (*and<mode>_2): Ditto.
16187 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
16188 (add->lea splitter): Check operand modes in insn constraint. Extend
16189 operands less than SImode wide to SImode.
16190 (add->lea zext splitter): Do not extend input operands to DImode.
16191 (*lea_general_1): Handle only QImode and HImode operands.
16192 (*lea_general_2): Ditto.
16193 (*lea_general_3): Ditto.
16194 (*lea_general_1_zext): Remove.
16195 (*lea_general_2_zext): Ditto.
16196 (*lea_general_3_zext): Ditto.
16197 (*lea_general_4): Check operand modes in insn constraint. Extend
16198 operands less than SImode wide to SImode.
16199 (ashift->lea splitter): Ditto.
16200 * config/i386/i386.c (ix86_print_operand_address): Print address
16201 registers with 'q' modifier on 64bit targets.
16202 * config/i386/predicates.md (pic_32bit_opreand): Define as special
16203 predicate. Reject non-SI and non-DI modes.
16205 2011-07-25 Andrew Pinski <apinski@cavium.com>
16208 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
16209 TREE_THIS_NOTRAP into the inner most MEM_REF.
16210 Always copy TREE_THIS_VOLATILE.
16211 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
16212 arguments are not volatile references.
16214 2011-07-25 Richard Henderson <rth@redhat.com>
16216 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
16217 * final.c (final_scan_insn): Don't test for it.
16218 (rest_of_clean_state): Likewise.
16220 2011-07-25 Richard Henderson <rth@redhat.com>
16223 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
16224 (emit_frame_save): Likewise.
16225 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
16226 insn onto a dummy blockage insn after the join label.
16228 2011-07-25 Richard Henderson <rth@redhat.com>
16230 * dwarf2cfi.c (dw_trace_info): Add ID member.
16231 (get_trace_index): Remove. Change users to use ID member.
16232 (before_next_cfi_note): New.
16233 (connect_traces): Remove unreachable traces before the main loop.
16234 Look across one trace and generate remember/restore_state if needed.
16236 2011-07-25 Richard Henderson <rth@redhat.com>
16238 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
16240 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
16242 * genattr.c (write_upcase, gen_attr <enum definition writing>):
16244 * genattr-common.c ... here.
16245 (main): Call gen_attr.
16246 * optc-gen.awk: Make generated program include insn-attr-common.h .
16247 * Makefile.in (oprions.o): Depend on insn-attr-common.h
16249 2011-07-25 Anatoly Sokolov <aesok@post.ru>
16251 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16252 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
16253 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
16254 m32c_print_operand, m32c_print_operand_address): Remove.
16255 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
16256 Change return type to bool. Change argument type to bool.
16257 (m32c_print_operand, m32c_print_operand_address): Make static.
16258 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
16259 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16261 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16263 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
16264 attributes): Document mmap.
16266 2011-07-25 Anatoly Sokolov <aesok@post.ru>
16268 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16269 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
16270 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
16271 mmix_print_operand, mmix_print_operand_address): Remove.
16272 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
16273 Change return type to bool. Change argument type to bool.
16274 (mmix_print_operand, mmix_print_operand_address): Make static.
16275 (mmix_intval, mmix_output_condition): Change 'x' argument type
16277 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
16278 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16280 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
16283 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
16284 shift counter for x << x and x >> x shifts.
16286 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16289 * config.gcc: Reject *-*-solaris2 configuration.
16291 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
16293 PR tree-optimization/49809
16294 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
16295 gimple_get_lhs instead of gimple_assign_lhs.
16297 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16299 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
16301 2011-07-25 Richard Guenther <rguenther@suse.de>
16303 PR tree-optimization/49822
16304 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
16305 more. Make sure to preserve stmts with side-effects. Properly
16306 handle virtual defs, follow a longer def chain.
16308 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
16313 * Makefile.in: Do not flatten c-family directory when installing
16316 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
16318 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
16319 original nodes if we are dealing with virtual clones.
16321 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
16323 * common/config/c6x/c6x-common.c: New file.
16325 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
16327 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
16329 2011-07-25 Richard Guenther <rguenther@suse.de>
16331 PR tree-optimization/49715
16332 * tree-vrp.c: Include expr.h and optabs.h.
16333 (range_fits_type_): New function.
16334 (simplify_float_conversion_using_ranges): Likewise.
16335 (simplify_stmt_using_ranges): Call it.
16336 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
16337 * optabs.c (can_float_p): Export.
16338 * optabs.h (can_float_p): Declare.
16340 2011-07-25 Richard Guenther <rguenther@suse.de>
16342 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
16343 (get_value_range): For out-of-range SSA names or names created
16344 after propagation return a read-only varying range.
16345 (dump_all_value_ranges): Adjust.
16346 (vrp_initialize): Likewise.
16347 (vrp_finalize): Likewise.
16349 2011-07-24 Richard Henderson <rth@redhat.com>
16352 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
16355 2011-07-24 Richard Henderson <rth@redhat.com>
16358 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
16359 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
16361 2011-07-24 Richard Henderson <rth@redhat.com>
16364 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
16366 2011-07-24 Richard Henderson <rth@redhat.com>
16368 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
16369 Zero args_size for abnormal edges. Adjust all callers.
16371 2011-07-24 Richard Henderson <rth@redhat.com>
16374 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
16376 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
16379 * collect2.c (demangle_flag): Removed.
16381 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
16383 * configure.ac (demangler_in_ld): Default to yes.
16384 * configure: Regenerated.
16385 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
16386 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
16387 --no-demangle options straight through to ld. When
16388 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
16389 way that has the intended effect on Windows.
16391 2011-07-23 Richard Henderson <rth@redhat.com>
16393 * dwarf2cfi.c: Include basic-block.h.
16394 (dw_label_info): Remove.
16395 (trace_work_list, trace_index): New.
16396 (remember_row, emit_cfa_remember): Remove.
16397 (dw_trace_info_hash, dw_trace_info_eq): New.
16398 (get_trace_index, get_trace_info): New.
16399 (save_point_p): New.
16400 (free_cfi_row): Remove.
16401 (add_cfi): Do not emit DW_CFA_remember_state.
16402 (cfa_row_equal_p): New.
16403 (barrier_args_size): Remove.
16404 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
16405 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
16406 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
16407 (dwarf2out_cfi_begin_epilogue): Remove.
16408 (dwarf2out_frame_debug_restore_state): Remove.
16409 (connect_traces, create_pseudo_cfg): New.
16410 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
16411 * Makefile.in (dwarf2cfi.o): Update.
16413 2011-07-23 Richard Henderson <rth@redhat.com>
16415 * dwarf2cfi.c (dw_trace_info): New.
16416 (dw_label_info): New.
16417 (cie_return_save): New.
16419 (queued_args_size): Rename from args_size. Update all users.
16420 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
16421 (def_cfa_1): Use cur_trace instead of cfa_*.
16422 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
16423 (clobbers_queued_reg_save, reg_saved_in): Likewise.
16424 (dwarf2out_frame_debug_expr): Likewise.
16425 (create_cie_data): Split out from ...
16426 (execute_dwarf2_frame): ... here. Initialize cur_trace.
16428 2011-07-23 Richard Henderson <rth@redhat.com>
16430 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
16431 Update all users to match.
16432 (execute_dwarf2_frame): Free reg_saved_in_data.
16434 2011-07-23 Richard Henderson <rth@redhat.com>
16436 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
16437 (queued_reg_saves): Don't GTY. Change to a VEC.
16438 (queue_reg_save): Update to match.
16439 (dwarf2out_flush_queued_reg_saves): Likewise.
16440 (clobbers_queued_reg_save): Likewise.
16441 (reg_saved_in): Likewise.
16442 (execute_dwarf2_frame): Free queued_reg_saves.
16444 2011-07-23 Richard Henderson <rth@redhat.com>
16446 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
16448 2011-07-23 Richard Henderson <rth@redhat.com>
16450 * dwarf2cfi.c (add_cfi_args_size): Split out from...
16451 (dwarf2out_args_size): ... here.
16452 (add_cfi_restore): Split out from ...
16453 (dwarf2out_frame_debug_cfa_restore): ... here.
16454 (def_cfa_0): Split out from ...
16455 (def_cfa_1): ... here.
16456 (cfi_oprnd_equal_p, cfi_equal_p): New.
16457 (change_cfi_row): New.
16458 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
16459 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
16460 (output_cfis): Remove.
16461 * dwarf2out.c (output_fde): Simplify output_cfi loop.
16462 (dwarf2out_switch_text_section): Don't call output_cfis.
16463 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
16464 * dwarf2out.h: Update decls.
16465 (enum dw_val_class): Add dw_val_class_none.
16467 2011-07-23 Richard Henderson <rth@redhat.com>
16469 * dwarf2cfi.c (update_row_reg_save): New.
16470 (dwarf2out_frame_debug_cfa_expression): Use it.
16471 (dwarf2out_frame_debug_cfa_restore): Likewise.
16472 (reg_save): Likewise. Do not emit DW_CFA_same_value.
16474 2011-07-23 Richard Henderson <rth@redhat.com>
16476 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
16478 2011-07-23 Richard Henderson <rth@redhat.com>
16480 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
16481 (cie_cfi_row): New.
16482 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
16483 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
16484 (cur_row, remember_row): New.
16485 (def_cfa_1): Use cur_row instead of the old_* variables.
16486 (dwarf2out_frame_debug_restore_state): Similarly.
16487 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
16488 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
16489 (dwarf2out_frame_debug_adjust_cfa): Likewise.
16490 (dwarf2out_frame_debug_cfa_offset): Likewise.
16491 (dwarf2out_frame_debug_expr): Likewise.
16492 (execute_dwarf2_frame): Set up cur_row.
16493 * dwarf2out.h (struct cfa_loc): Mark for GTY.
16495 2011-07-23 Richard Henderson <rth@redhat.com>
16497 * basic-block.h (EDGE_PRESERVE): New.
16498 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
16499 * bb-reorder.c: Include except.h.
16500 (fix_up_crossing_landing_pad): New.
16501 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
16502 landing pads in the right partition. Duplicate as necessary.
16503 (partition_hot_cold_basic_blocks): Fix up DF info after
16504 duplicating landing pads.
16505 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
16506 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
16507 is set properly. Validate that EH edges are not CROSSING.
16508 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
16509 (dw2_build_landing_pads): ... here.
16510 (convert_to_eh_region_ranges): Remove code to fixup crossing
16512 * except.h (expand_dw2_landing_pad_for_region): Declare.
16513 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
16515 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
16518 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
16520 2011-07-22 Jason Merrill <jason@redhat.com>
16522 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
16524 2011-07-22 Richard Henderson <rth@redhat.com>
16526 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
16528 2011-07-22 Richard Henderson <rth@redhat.com>
16530 * jump.c (maybe_propagate_label_ref): Split out of...
16531 (mark_all_labels): ... here. Do not attempt label_ref
16532 propagation while in cfglayout mode.
16534 2011-07-22 Jakub Jelinek <jakub@redhat.com>
16536 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
16537 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
16538 (dwarf_attr_name): Handle DW_AT_GNU_macros.
16539 (dwarf2out_define): If the vector is empty and
16540 lineno is 0, emit a dummy entry first.
16541 (dwarf2out_undef): Likewise. Remove redundant semicolon.
16542 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
16543 optimize_macinfo_range): New functions.
16544 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
16545 mergeable, optimize longer strings using
16546 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
16547 optimize longer sequences of define/undef ops from headers
16548 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
16549 emit a section headers.
16550 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
16551 and macinfo_section_label to DEBUG_MACRO_SECTION
16552 resp. DEBUG_MACRO_SECTION_LABEL.
16553 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
16554 instead of DW_AT_macro_info.
16557 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
16559 * dwarf2out.c: Include opts.h.
16560 (dchar_p): New typedef. Define heap VEC for it.
16561 (producer_string): New variable.
16562 (gen_producer_string): New function.
16563 (gen_compile_unit_die): Use it.
16564 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
16565 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
16566 * doc/invoke.texi: Document -grecord-gcc-switches and
16567 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
16568 to -frecord-gcc-switches description.
16570 2011-07-22 Jason Merrill <jason@redhat.com>
16573 * c-decl.c (c_linkage_bindings): Define.
16575 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
16578 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
16580 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
16582 * config/i386/i386.c (ix86_option_override_internal): Disallow
16583 MS ABI in x32 mode.
16584 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
16585 only for TARGET_LP64.
16586 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
16588 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16590 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
16591 avoid warnings when GCC is built with a C++ compiler.
16593 2011-07-22 Martin Jambor <mjambor@suse.cz>
16596 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
16597 if decl node is in another partition, call cgraph_get_node only once.
16599 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
16601 * config.gcc (x86_64-*-linux*): Set
16602 default_gnu_indirect_function to yes.
16604 2011-07-22 Richard Guenther <rguenther@suse.de>
16606 PR tree-optimization/45819
16607 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16608 preserve volatile and notrap flags.
16610 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16611 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16614 * configure.ac: Test AM_ICONV with CXX.
16615 * configure: Regenerate.
16616 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
16618 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16621 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
16622 (set_cloog_options): Use it.
16624 2011-07-22 Jakub Jelinek <jakub@redhat.com>
16627 * gcc.c (main): Call stack_limit_increase (64MB).
16628 * toplev.c (toplev_main): Likewise.
16630 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16632 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
16633 instead of force_reg.
16635 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16637 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
16638 needed and use force_reg after convert.
16639 (ix86_expand_call): Likewise.
16640 (ix86_expand_special_args_builtin): Likewise.
16641 (ix86_expand_builtin): Likewise.
16643 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16645 PR middle-end/47654
16646 PR middle-end/49649
16647 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
16648 in parameter. Initialize v1 and v2 based on the values returned
16649 by clast_name_to_lb_ub.
16650 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
16652 (type_for_clast_bin): Same.
16653 (type_for_clast_expr): Same.
16654 (type_for_clast_eq): Update calls to type_for_clast_expr.
16655 (type_for_clast_for): Same.
16656 (build_iv_mapping): Same.
16657 * graphite-ppl.h (value_min): New.
16659 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16661 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
16662 types whenever possible.
16664 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16666 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
16668 (new_clast_name_index): Add lb and ub parameters.
16669 (free_clast_name_index): New.
16670 (clast_name_to_lb_ub): New.
16671 (save_clast_name_index): Add lb and ub parameters.
16672 (compute_bounds_for_param): New.
16673 (type_for_level): Removed.
16674 (type_for_clast_for): Removed level parameter. Do not call
16676 (graphite_create_new_loop): Store the lb and ub for the clast_name
16677 of the iterator of the loop that has been generated.
16678 (graphite_create_new_loop_guard): Remove parameter level.
16679 (create_params_index): Store the lb and ub of each parameter.
16680 (gloog): Use free_clast_name_index. Pass to create_params_index
16683 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16685 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
16686 (max_precision_type): Inline max_signed_precision_type.
16687 (type_for_clast_red): Use max_precision_type.
16688 (type_for_clast_bin): Same.
16689 (type_for_clast_for): Same.
16691 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16693 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
16695 (gcc_type_for_value): Renamed type_for_value.
16696 (gcc_type_for_clast_term): Renamed type_for_clast_term.
16697 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
16698 (gcc_type_for_clast_red): Renamed type_for_clast_red.
16699 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
16700 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
16701 (graphite_translate_clast_equation): Update calls.
16702 (compute_type_for_level): Renamed type_for_level.
16703 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
16704 (build_iv_mapping): Update calls.
16705 (graphite_create_new_loop_guard): Same.
16707 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16709 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
16712 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16714 * graphite-clast-to-gimple.c (struct ivs_params): New.
16715 (clast_name_to_gcc): Use ivs_params to pass around parameters.
16716 (clast_to_gcc_expression): Same.
16717 (clast_to_gcc_expression_red): Same.
16718 (gcc_type_for_clast_term): Same.
16719 (gcc_type_for_clast_expr): Same.
16720 (gcc_type_for_clast_red): Same.
16721 (gcc_type_for_clast_bin): Same.
16722 (gcc_type_for_clast_eq): Same.
16723 (graphite_translate_clast_equation): Same.
16724 (graphite_create_guard_cond_expr): Same.
16725 (graphite_create_new_guard): Same.
16726 (graphite_create_new_loop): Same.
16727 (build_iv_mapping): Same.
16728 (translate_clast_user): Same.
16729 (graphite_create_new_loop_guard): Same.
16730 (translate_clast): Same.
16731 (translate_clast_for_loop): Same.
16732 (translate_clast_for): Same.
16733 (translate_clast_guard): Same.
16734 (initialize_cloog_names): Fix typo.
16735 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
16737 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16739 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
16740 (new_clast_name_index): Add level parameter.
16741 (clast_name_to_level): New.
16742 (save_clast_name_index): Add level parameter.
16743 (newivs_to_depth_to_newiv): Removed.
16744 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
16745 (graphite_create_new_loop): Add level parameter. Pass level to
16746 save_clast_name_index.
16747 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
16748 (create_params_index): Pass level to save_clast_name_index.
16750 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16752 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
16753 recompute type, lb, and ub. Get them from...
16754 (graphite_create_new_loop_guard): ...here. Pass in parameter
16755 pointers to type, lb, and ub.
16756 (translate_clast_for_loop): Update function calls.
16757 (translate_clast_for): Same.
16759 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16761 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
16763 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
16764 (gcc_type_for_iv_of_clast_loop): Update use of level.
16765 (gloog): Start counting nesting level from 0.
16766 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
16767 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
16768 psct_dynamic_dim on level.
16770 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16772 * config/i386/i386.c (ix86_legitimize_address): Convert to
16775 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16777 * config/i386/i386.c (function_value_64): Always return pointers
16779 (ix86_promote_function_mode): New.
16780 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
16782 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16784 PR tree-optimization/49749
16785 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
16786 remove no-longer-used maxrank variable.
16788 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
16790 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
16792 2011-07-21 Jason Merrill <jason@redhat.com>
16794 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
16795 * recog.h (struct insn_data_d): Check it instead of
16796 HAVE_DESIGNATED_INITIALIZERS.
16797 * genoutput.c (output_insn_data): Likewise.
16799 2011-07-21 Richard Guenther <rguenther@suse.de>
16801 PR tree-optimization/49770
16802 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
16803 valueized any operand. Renamed from ...
16804 (valueize_refs): ... this. New wrapper around valueize_refs_1.
16805 (valueize_shared_reference_ops_from_ref): Return whether we
16806 valueized any operand.
16807 (vn_reference_lookup): Only when we valueized any operand
16808 use the valueized reference for alias analysis. Do not preserve
16809 the original reference tree in this case.
16811 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
16813 * config/i386/i386.c (ix86_decompose_address): Reject all but
16814 register operands and subregs of DImode hard registers in index.
16816 2011-07-21 Kai Tietz <ktietz@redhat.com>
16818 * fold-const.c (fold_unary_loc): Preserve indirect
16819 comparison cast to none-boolean type.
16820 * tree-ssa.c (useless_type_conversion_p): Preserve cast
16821 from/to boolean-type.
16822 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
16823 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
16824 * tree-cfg.c (verify_gimple_comparison): Check result
16825 type of comparison expression.
16826 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
16827 of condition result and disallow type-cast sinking into comparison.
16829 2011-07-21 Richard Guenther <rguenther@suse.de>
16831 * tree-ssa-forwprop.c (combine_conversions): Return whether
16832 we have to run cfg-cleanup. Properly remove dead stmts.
16833 (ssa_forward_propagate_and_combine): Adjust.
16835 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
16837 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
16839 2011-07-21 Kai Tietz <ktietz@redhat.com>
16841 * tree-ssa-propagate.c (substitute_and_fold): Use
16842 do_dce flag to deside, if BB's statements are scanned
16843 in last to first, or first to last order.
16845 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
16847 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
16849 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
16850 Uros Bizjak <ubizjak@gmail.com>
16851 Richard Henderson <rth@redhat.com>
16853 * config/i386/constraints.md (w): New.
16855 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
16856 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
16858 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
16859 instead of TARGET_64BIT.
16861 * config/i386/i386.md (indirect_jump): Replace
16862 nonimmediate_operand with indirect_branch_operand.
16863 (*indirect_jump): Likewise. Replace constraint "m" with "w".
16864 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
16865 Convert operand 0 to Pmode for x32 if not PIC.
16866 (*tablejump_1): Replace nonimmediate_operand with
16867 indirect_branch_operand. Replace constraint "m" with "w".
16868 (*call_vzeroupper): Replace constraint "m" with "w".
16870 (*call_rex64_ms_sysv_vzeroupper): Likewise.
16871 (*call_rex64_ms_sysv): Likewise.
16872 (*call_value_vzeroupper): Likewise.
16873 (*call_value): Likewise.
16874 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
16875 (*call_value_rex64_ms_sysv): Likewise.
16876 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
16878 * config/i386/predicates.md (indirect_branch_operand): New.
16879 (call_insn_operand): Support x32.
16881 2011-07-20 Michael Eager <eager@eagercon.com>
16883 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
16885 2011-07-20 Richard Henderson <rth@redhat.com>
16887 * cfg.c (dump_bb_info): Dump basic_block->flags.
16888 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
16890 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
16892 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
16893 of DImode hard registers in index.
16894 (ix86_legitimate_address_p): Allow subregs of base and index to span
16895 more than a word. Assert that subregs of base and index satisfy
16896 register_no_elim_operand predicates. Reject addresses where
16897 base and index have different modes.
16899 2011-07-20 Robert Millan <rmh@gnu.org>
16901 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
16903 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16905 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
16906 removing now-unnecessary assignment.
16908 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16910 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
16911 memory address space to the type's address space.
16913 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
16917 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
16918 and expand appropriately if there is a CONST_INT in operand2.
16919 (usmulqihi3): New insn.
16920 (*sumulqihi3): New insn.
16921 (*osmulqihi3): New insn.
16922 (*oumulqihi3): New insn.
16923 (*muluqihi3.uconst): New insn_and_split.
16924 (*muluqihi3.sconst): New insn_and_split.
16925 (*mulsqihi3.sconst): New insn_and_split.
16926 (*mulsqihi3.uconst): New insn_and_split.
16927 (*mulsqihi3.oconst): New insn_and_split.
16928 (*ashifthi3.signx.const): New insn_and_split.
16929 (*ashifthi3.signx.const7): New insn_and_split.
16930 (*ashifthi3.zerox.const): New insn_and_split.
16931 (mulsqihi3): New insn.
16932 (muluqihi3): New insn.
16933 (muloqihi3): New insn.
16934 * config/avr/predicates.md (const_2_to_7_operand): New.
16935 (const_2_to_6_operand): New.
16940 (register_or_s9_operand): New.
16942 2011-07-20 Kai Tietz <ktietz@redhat.com>
16944 * builtins.c (fold_builtin_expect): See through the cast
16945 from truthvalue_type_node to long.
16947 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
16949 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
16950 where we can use them from the standard and altivec instruction
16951 sets, instead of always using the 3 operand VSX forms that require
16952 the destination to overlap one of the inputs.
16954 (vsx_fnma*): Ditto.
16955 (vsx_fnms*): Ditto.
16957 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
16959 (fmsdf4_fpr): Ditto.
16960 (nfmadf4_fpr): Ditto.
16961 (nfmsdf4_fpr): Ditto.
16963 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
16965 * genrecog.c (make_insn_sequence): Correct position numbering
16966 when filtering out match_scratch and match_dup.
16968 2011-07-20 Richard Guenther <rguenther@suse.de>
16970 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
16971 against already removed statements.
16972 (forward_propagate_into_comparison): Remove dead defining stmts.
16973 (forward_propagate_into_gimple_cond): Likewise.
16974 (forward_propagate_into_cond): Simplify.
16975 (ssa_forward_propagate_and_combine): Handle changed cfg from
16976 forward_propagate_into_comparison.
16977 * tree-ssa-phiopt.c (conditional_replacement): Use proper
16978 locations for newly built statements.
16980 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
16982 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
16984 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16986 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
16987 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
16989 2011-07-20 Richard Guenther <rguenther@suse.de>
16991 PR middle-end/18908
16992 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
16993 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
16994 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
16996 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
16998 * config/frv/frv.c (frv_register_move_cost): Define explicitly
16999 costs for subclasses of GR_REGS.
17001 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
17004 * config/i386/predicates.md (no_seg_addres_operand): No more special.
17005 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17006 of DImode hard registers in base.
17007 (ix86_legitimate_address_p): Allow SImode and DImode base and index
17010 2011-07-20 Richard Guenther <rguenther@suse.de>
17012 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
17013 (unify_nodes): Deal with that.
17014 (solve_graph): Likewise.
17016 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
17018 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
17019 canonicalize left operand from ZERO_EXTEND to AND.
17021 2011-07-20 Anatoly Sokolov <aesok@post.ru>
17023 * target.def (class_max_nregs): New hook.
17024 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
17025 * doc/tm.texi: Regenerate.
17026 * targhooks.c (default_class_max_nregs): New function.
17027 * targhooks.h (default_class_max_nregs): Declare.
17028 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
17029 x_ira_reg_class_min_nregs arrays to unsigned char.
17030 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
17031 hook instead of CLASS_MAX_NREGS macro.
17032 * reginfo.c (restore_register_info): Ditto.
17033 * ira-conflicts.c (process_regs_for_copy): Use
17034 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
17035 Change type rclass and aclass vars to reg_class_t.
17036 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
17037 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
17039 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
17040 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
17042 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
17043 * config/i386/i386.c (ix86_class_max_nregs): New function.
17044 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
17045 instead of CLASS_MAX_NREGS macro.
17046 (TARGET_CLASS_MAX_NREGS): Define.
17047 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
17048 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
17049 * config/avr/avr.c (class_max_nregs): Remove function.
17050 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
17051 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
17052 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
17053 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
17054 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
17055 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
17056 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
17057 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
17058 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
17059 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
17060 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
17061 * config/score/score.h (CLASS_MAX_NREGS): Remove.
17062 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
17063 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
17064 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
17066 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
17068 * cif-code.def (OVERWRITABLE): Fix typo and move around.
17069 (TARGET_OPTIMIZATION_MISMATCH): Delete.
17070 (EH_PERSONALITY): Fix typo.
17071 (NON_CALL_EXCEPTIONS): Fix message.
17072 (OPTIMIZATION_MISMATCH): Adjust message.
17073 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
17075 2011-07-19 Ian Lance Taylor <iant@google.com>
17077 * doc/install.texi (Configuration): Document
17078 --enable-build-poststage1-with-cxx.
17080 2011-07-19 Robert Millan <rmh@gnu.org>
17082 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
17083 (GLIBC_DYNAMIC_LINKER): Remove.
17085 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
17086 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
17087 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
17088 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
17089 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
17090 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
17092 * config/mips/linux.h: Remove everything except for ...
17093 (GLIBC_DYNAMIC_LINKER): ... this macro.
17095 * config/mips/linux64.h: Remove everything except for ...
17096 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
17097 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
17098 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
17099 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
17100 (GNU_USER_LINK_EMULATIONN32): New macros.
17102 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
17103 Use the new headers.
17105 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17107 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
17108 Add offset_known_p and size_known_p fields.
17109 (MEM_OFFSET_KNOWN_P): Update accordingly.
17110 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
17111 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
17112 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
17113 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
17114 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
17115 (init_emit_regs): Likewise.
17117 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17119 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
17120 (MEM_OFFSET): Change from returning an rtx to returning a
17122 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
17123 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
17124 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
17125 (clear_mem_offset): Declare.
17126 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
17127 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
17128 MEM_OFFSET to get a HOST_WIDE_INT offset.
17129 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
17130 (adjust_offset_for_component_ref): Take a bool "known_p"
17131 parameter and a HOST_WIDE_INT "offset" parameter.
17132 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
17133 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
17134 than an rtx. Use clear_mem_offset to clear the offset.
17135 * cfgcleanup.c (merge_memattrs): Likewise.
17136 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
17137 * function.c (assign_parm_find_stack_rtl): Likewise.
17138 (assign_parm_setup_stack): Likewise.
17139 * print-rtl.c (print_rtx): Likewise.
17140 * reload.c (find_reloads_subreg_address): Likewise.
17141 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
17142 * var-tracking.c (INT_MEM_OFFSET): Likewise.
17143 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17144 (get_mem_align_offset): Likewise.
17145 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
17146 (clear_mem_offset): New function.
17147 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
17148 offset rather than an rtx. Assume both the expressio and offset
17150 (r10k_needs_protection_p_1): Update accordingly, checking the
17151 expression and offset availability here instead.
17153 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17155 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
17156 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
17157 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
17158 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
17159 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
17160 (clear_mem_size): Declare.
17161 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
17162 (clear_mem_size): New function.
17163 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
17164 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
17165 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
17166 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
17168 (nonoverlapping_memrefs_p): Likewise.
17169 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
17170 (expand_builtin_init_trampoline): Likewise.
17171 * calls.c (compute_argument_addresses): Likewise.
17172 * cfgcleanup.c (merge_memattrs): Likewise.
17173 * dce.c (find_call_stack_args): Likewise.
17174 * dse.c (record_store, scan_insn): Likewise.
17175 * dwarf2out.c (dw_sra_loc_expr): Likewise.
17176 * expr.c (emit_block_move_hints): Likewise.
17177 * function.c (assign_parm_find_stack_rtl): Likewise.
17178 * print-rtl.c (print_rtx): Likewise.
17179 * reload.c (find_reloads_subreg_address): Likewise.
17180 * rtlanal.c (may_trap_p_1): Likewise.
17181 * var-tracking.c (track_expr_p): Likewise.
17182 * varasm.c (assemble_trampoline_template): Likewise.
17183 * config/arm/arm.c (arm_print_operand): Likewise.
17184 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
17185 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
17186 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
17187 (expand_constant_setmem_prologue): Likewise.
17188 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
17189 * config/rs6000/rs6000.c (expand_block_move): Likewise.
17190 (adjacent_mem_locations): Likewise.
17191 * config/s390/s390.c (s390_expand_setmem): Likewise.
17192 (s390_expand_insv): Likewise.
17193 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
17194 (*extendqi<mode>2_short_displ): Likewise.
17195 * config/sh/sh.c (expand_block_move): Likewise.
17196 * config/sh/sh.md (extv, extzv): Likewise.
17198 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17200 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
17201 (mem_attrs_htab_eq): ...here.
17202 (find_mem_attrs): Replace with...
17203 (set_mem_attrs): ...this function. Take a mem_attrs structure
17204 rather than individual fields.
17205 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
17206 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
17207 (set_mem_size, change_address, adjust_address_1, offset_address)
17208 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
17209 Update accordingly.
17211 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17213 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
17214 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
17215 Provide a dummy definition of MEM_ADDR_SPACE for generators.
17216 (target_rtl): Add x_mode_mem_attrs.
17217 (mode_mem_attrs): New macro.
17218 (get_mem_attrs): New function.
17219 * emit-rtl.c (get_mem_attrs): Rename to...
17220 (find_mem_attrs): ...this.
17221 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
17222 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
17223 (set_mem_size, change_address, adjust_address_1, offset_address)
17224 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
17225 Update accordingly.
17226 (init_emit_regs): Initialize mode_mem_attrs.
17228 2011-07-19 Richard Guenther <rguenther@suse.de>
17230 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
17231 TRUTH_*_EXPR handling.
17232 * tree-ssa-operands.c (get_expr_operands): Likewise.
17233 * tree-ssa-pre.c (fully_constant_expression): Likewise.
17234 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
17236 (is_and_or_or): Likewise.
17237 (is_norm_cond_subset_of): Likewise.
17239 2011-07-19 Richard Guenther <rguenther@suse.de>
17241 * tree.h (fold_build_pointer_plus_loc): New helper function.
17242 (fold_build_pointer_plus_hwi_loc): Likewise.
17243 (fold_build_pointer_plus): Define.
17244 (fold_build_pointer_plus_hwi): Likewise.
17245 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
17246 (fold_builtin_memory_op): Likewise.
17247 (fold_builtin_stpcpy): Likewise.
17248 (fold_builtin_memchr): Likewise.
17249 (fold_builtin_strstr): Likewise.
17250 (fold_builtin_strchr): Likewise.
17251 (fold_builtin_strrchr): Likewise.
17252 (fold_builtin_strpbrk): Likewise.
17253 (fold_builtin_strcat): Likewise.
17254 (expand_builtin_memory_chk): Likewise.
17255 (fold_builtin_memory_chk): Likewise.
17256 * c-typeck.c (build_unary_op): Likewise.
17257 * cgraphunit.c (thunk_adjust): Likewise.
17258 * fold-const.c (build_range_check): Likewise.
17259 (fold_binary_loc): Likewise.
17260 * omp-low.c (extract_omp_for_data): Likewise.
17261 (expand_omp_for_generic): Likewise.
17262 (expand_omp_for_static_nochunk): Likewise.
17263 (expand_omp_for_static_chunk): Likewise.
17264 * tree-affine.c (add_elt_to_tree): Likewise.
17265 * tree-data-ref.c (split_constant_offset_1): Likewise.
17266 * tree-loop-distribution.c (generate_memset_zero): Likewise.
17267 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
17268 * tree-predcom.c (ref_at_iteration): Likewise.
17269 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
17270 (add_to_parts): Likewise.
17271 (create_mem_ref): Likewise.
17272 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17273 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
17274 (number_of_iterations_le): Likewise.
17275 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
17276 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
17277 (vect_create_addr_base_for_vector_ref): Likewise.
17278 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
17279 (vect_create_cond_for_alias_checks): Likewise.
17280 * tree-vrp.c (extract_range_from_assert): Likewise.
17281 * config/alpha/alpha.c (alpha_va_start): Likewise.
17282 (alpha_gimplify_va_arg_1): Likewise.
17283 * config/i386/i386.c (ix86_va_start): Likewise.
17284 (ix86_gimplify_va_arg): Likewise.
17285 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17286 * config/mep/mep.c (mep_expand_va_start): Likewise.
17287 (mep_gimplify_va_arg_expr): Likewise.
17288 * config/mips/mips.c (mips_va_start): Likewise.
17289 (mips_gimplify_va_arg_expr): Likewise.
17290 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17291 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
17292 (rs6000_gimplify_va_arg): Likewise.
17293 * config/s390/s390.c (s390_va_start): Likewise.
17294 (s390_gimplify_va_arg): Likewise.
17295 * config/sh/sh.c (sh_va_start): Likewise.
17296 (sh_gimplify_va_arg_expr): Likewise.
17297 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
17298 * config/spu/spu.c (spu_va_start): Likewise.
17299 (spu_gimplify_va_arg_expr): Likewise.
17300 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17302 (xstormy16_gimplify_va_arg_expr): Likewise.
17303 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
17304 (xtensa_gimplify_va_arg_expr): Likewise.
17306 2011-07-19 Richard Guenther <rguenther@suse.de>
17308 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
17309 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
17312 PR middle-end/18908
17313 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
17314 result of BIT_*_EXPR to bitfield precision.
17316 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
17318 PR tree-optimization/49742
17319 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
17320 as a potential write.
17322 2011-07-19 Richard Guenther <rguenther@suse.de>
17324 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
17325 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
17326 (forward_propagate_comparison): Simplify, remove obsolete code.
17328 2011-07-19 Richard Guenther <rguenther@suse.de>
17330 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
17331 BIT_XOR_EXPR, same as the RTL expander does.
17332 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
17333 (verify_gimple_assign_unary): Likewise.
17334 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
17335 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
17336 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
17338 2011-07-19 Jakub Jelinek <jakub@redhat.com>
17340 PR tree-optimization/49768
17341 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
17342 if offset is smaller than bitoffset, but offset+size is bigger
17345 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
17347 PR tree-optimization/49771
17348 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
17349 zero step, set segment length to the size of the data-ref's type.
17351 2011-07-18 Martin Jambor <mjambor@suse.cz>
17353 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
17355 (ipcp_values_pool): Declare.
17356 (ipcp_sources_pool): Likewise.
17357 (ipcp_lattice): Changed to forward declaration.
17358 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
17359 cannot_devirtualize.
17360 (ipa_node_params): New fields descriptors, lattices, known_vals,
17361 clone_for_all_contexts and node dead, removed fields params and
17363 (ipa_set_param_count): Removed.
17364 (ipa_get_param_count): Made to work with descriptors vector.
17365 (ipa_get_param): Updated.
17366 (ipa_param_cannot_devirtualize_p): Removed.
17367 (ipa_param_types_vec_empty): Likewise.
17368 (ipa_set_param_used): New function.
17369 (ipa_get_param_used): Updated to use descriptors vector.
17370 (ipa_func_list): Removed.
17371 (ipa_init_func_list): Removed declaration.
17372 (ipa_push_func_to_list_1): Likewise.
17373 (ipa_pop_func_from_list): Likewise.
17374 (ipa_push_func_to_list): Removed.
17375 (ipa_lattice_from_jfunc): Remove declaration.
17376 (ipa_get_jf_pass_through_result): Declare.
17377 (ipa_get_jf_ancestor_result): Likewise.
17378 (ipa_value_from_jfunc): Likewise.
17379 (ipa_get_lattice): Update.
17380 (ipa_lat_is_single_const): New function.
17381 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
17382 (ipa_init_func_list): Likewise.
17383 (ipa_pop_func_from_list): Likewise.
17384 (ipa_get_param_decl_index): Fix coding style.
17385 (count_formal_params): Removed.
17386 (count_formal_params_1): Renamed to count_formal_params.
17387 (ipa_populate_param_decls): Update to use descriptors vector.
17388 (ipa_initialize_node_params): Likewise.
17389 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
17390 (ipa_analyze_params_uses): Likewise.
17391 (ipa_free_node_params_substructures): Likewise and free also lattices
17393 (duplicate_array): Removed.
17394 (ipa_edge_duplication_hook): Add the new edge to the list of edge
17396 (ipa_node_duplication_hook): Update to use new lattices.
17397 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
17398 (ipa_free_all_structures_after_iinln): Likewise.
17399 (ipa_write_node_info): Update to use new lattices.
17400 (ipa_read_node_info): Likewise.
17401 (ipa_get_jf_pass_through_result): New function.
17402 (ipa_get_jf_ancestor_result): Likewise.
17403 (ipa_value_from_jfunc): Likewise.
17404 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
17405 * ipa-cp.c: Reimplemented.
17406 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
17407 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
17408 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
17409 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
17410 * doc/invoke.texi (devirt-type-list-size): Removed description.
17411 (ipa-cp-value-list-size): Added description.
17413 2011-07-18 Richard Henderson <rth@redhat.com>
17415 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
17416 before calling create_basic_block.
17418 2011-07-18 Jakub Jelinek <jakub@redhat.com>
17420 PR middle-end/49675
17421 * tree.c (build_common_builtin_nodes): Register
17422 __builtin_return_address, __cyg_profile_func_enter
17423 and __cyg_profile_func_exit.
17425 2011-07-18 Richard Henderson <rth@redhat.com>
17427 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
17428 (add_labels_and_missing_jumps): ... here.
17429 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
17431 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
17434 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17435 of DImode hard registers in PLUS address chains.
17437 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17440 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
17441 (alpha*-*-freebsd*): Likewise.
17442 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
17443 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
17444 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
17445 crtprec80.o, crtfastmath.o to extra_parts for all targets.
17446 (ia64*-*-elf*): Remove extra_parts.
17447 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
17448 (sparc64-*-linux*): Likewise.
17449 (sparc64-*-freebsd*): Likewise.
17452 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
17453 (ia64*-*-linux*): Likewise.
17454 (mips64*-*-linux*): Likewise.
17455 (mips*-*-linux*): Likewise.
17457 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
17459 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
17461 2011-07-18 Richard Guenther <rguenther@suse.de>
17463 * gimplify.c (gimplify_expr): Use input_location, not saved_location
17464 when building new trees.
17466 2011-07-18 Richard Guenther <rguenther@suse.de>
17468 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
17469 expansion result to bitfield precision if required.
17471 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17473 * config.gcc (i[3456x]86-*-netware*): Remove.
17475 * gthr-nks.h: Remove.
17476 * configure.ac (enable_threads): Remove nks.
17477 * configure: Regenerate.
17479 * config/i386/i386.c (ix86_encode_section_info): Remove netware
17481 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
17482 <netware.h> reference.
17484 * config/i386/netware-libgcc.c,
17485 gcc/config/i386/netware-libgcc.def,
17486 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
17487 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
17488 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
17489 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
17491 * doc/extend.texi (Function Attributes,
17492 callee_pop_aggregate_return): Remove i?86-netware reference.
17493 * doc/install.texi (Configuration, --enable-threads): Remove nks.
17495 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17499 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17501 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
17504 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
17506 PR middle-end/49732
17507 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
17509 2011-07-16 Matthias Klose <doko@ubuntu.com>
17511 * doc/install.texi: Document --enable-static-libjava.
17513 2011-07-15 Richard Henderson <rth@redhat.com>
17515 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
17516 Replace all three arguments by returning a VEC of edges.
17517 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
17518 pointers and counts.
17519 (fix_edges_for_rarely_executed_code): Merge ...
17520 (rest_of_handle_partition_blocks): ... into...
17521 (partition_hot_cold_basic_blocks): ... here. Return todo items if
17522 any work was performed.
17523 (pass_partition_blocks): Clear todo_flags_finish.
17525 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
17526 Jakub Jelinek <jakub@redhat.com>
17527 Jonathan Wakely <jwakely.gcc@gmail.com>
17530 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
17531 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
17533 2011-07-15 Jason Merrill <jason@redhat.com>
17536 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
17537 rather than --tool_opts.
17539 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
17541 * doc/plugins.texi (Building GCC plugins): gengtype needs its
17542 corresponding gtype.state.
17544 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17547 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
17549 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
17552 * doc/md.texi (Standard Names): Document window_save.
17553 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
17554 expand_debug_expr and expand_debug_source_expr. If the target has
17555 a window_save instruction, adjust the ENTRY_VALUE_EXP.
17556 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
17557 SSA_NAME_VAR is a parameter.
17558 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
17559 * var-tracking.c (parm_reg_t): New type and associated vector type.
17560 (windowed_parm_regs): New variable.
17561 (adjust_insn): If the target has a window_save instruction and this
17562 is the instruction, make its effect on parameter registers explicit.
17563 (next_non_note_insn_var_location): New function.
17564 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
17565 (vt_add_function_parameter): If the target has a window_save insn,
17566 adjust the incoming RTL and record that in windowed_parm_regs.
17567 (vt_finalize): Free windowed_parm_regs.
17569 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
17571 * doc/invoke.texi (C6X Options): New section.
17572 * doc/md.texi (TI C6X family): New section.
17573 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
17575 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
17576 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
17577 Provide C6X definitions.
17578 * config/c6x/c6x.md: New file.
17579 * config/c6x/constraints.md: New file.
17580 * config/c6x/predicates.md: New file.
17581 * config/c6x/c6x-sched.md.in: New file.
17582 * config/c6x/c6x-sched.md: New file.
17583 * config/c6x/gensched.sh: New file.
17584 * config/c6x/c6x-mult.md.in: New file.
17585 * config/c6x/genmult.sh: New file.
17586 * config/c6x/c6x-mult.md: New file.
17587 * config/c6x/sync.md: New file.
17588 * config/c6x/c6x-protos.h: New file.
17589 * config/c6x/sfp-machine.h: New file.
17590 * config/c6x/c6x.c: New file.
17591 * config/c6x/c6x.h: New file.
17592 * config/c6x/crti.s: New file.
17593 * config/c6x/crtn.s: New file.
17594 * config/c6x/lib1funcs.asm: New file.
17595 * config/c6x/c6x-modes.def: New file.
17596 * config/c6x/genopt.sh: New file.
17597 * config/c6x/c6x.opt: New file.
17598 * config/c6x/c6x-tables.opt: New file.
17599 * config/c6x/c6x-opts.h: New file.
17600 * config/c6x/c6x-isas.def: New file.
17601 * config/c6x/elf.h: New file.
17602 * config/c6x/elf-common.h: New file.
17603 * config/c6x/uclinux-elf.h: New file.
17604 * config/c6x/t-c6x: New file.
17605 * config/c6x/t-c6x-elf: New file.
17606 * config/c6x/t-c6x-uclinux: New file.
17607 * config/c6x/t-c6x-softfp: New file.
17608 * config/c6x/gtd.c: New file.
17609 * config/c6x/gtf.c: New file.
17610 * config/c6x/ltd.c: New file.
17611 * config/c6x/ltf.c: New file.
17612 * config/c6x/ged.c: New file.
17613 * config/c6x/gef.c: New file.
17614 * config/c6x/led.c: New file.
17615 * config/c6x/lef.c: New file.
17616 * config/c6x/eqd.c: New file.
17617 * config/c6x/eqf.c: New file.
17618 * config/c6x/libgcc-c6xeabi.ver: New file.
17621 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
17622 PR rtl-optimization/11320
17623 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
17624 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
17625 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
17626 current_sched_info->compute_jump_reg_dependencies. Record which
17627 registers are used and which registers are set by the jump.
17628 Clear deps->reg_conditional_sets after a barrier.
17629 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
17630 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
17631 (init_deps): Initialize reg_conditional_sets.
17632 (free_deps): Clear reg_conditional_sets.
17633 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
17634 Mark registers live on entry of the fallthrough block and conditionally
17635 set as set by the jump. Mark registers live on entry of non-fallthrough
17636 blocks as used by the jump.
17637 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
17638 Mark new parameters as unused.
17640 2011-07-14 Andrew Pinski <pinskia@gmail.com>
17643 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
17644 Use fold_build2_loc instead of build2.
17645 Use the correct type for the new tree.
17647 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
17649 PR rtl-optimization/11320
17650 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
17651 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
17653 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
17656 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
17658 (*rotw<mode>): Use const_int_operand for operand2.
17659 Use match_scatch for operand3.
17660 (*rotb<mode>): Ditto
17661 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
17663 2011-07-14 Richard Guenther <rguenther@suse.de>
17665 PR tree-optimization/49651
17666 * tree-ssa-structalias.c (get_constraint_for_1): Properly
17667 handle dereferences with subvariables.
17669 2011-07-14 Richard Guenther <rguenther@suse.de>
17671 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
17672 (fold_stmt_1): Do it here directly on gimple and as a first thing.
17674 2011-07-14 Richard Guenther <rguenther@suse.de>
17676 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
17677 not bool_var when folding bool_var != 1 or bool_var == 0.
17679 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
17681 * haifa-sched.c (schedule_insns): Remove outdated comment.
17682 (schedule_block): When computing a known value for TODO_SPEC,
17683 just set it rather than using logical operations.
17684 (try_ready): Likewise. Use a local variable rather than a
17685 pointer to TODO_SPEC. Reorder an if statement to move the
17686 easy case to the then block.
17687 * sched-deps.c (dep_spec_p): New static function.
17688 (update_dep): Use it to decide whether to call
17689 change_spec_dep_to_hard.
17690 (get_back_and_forw_lists): Use it.
17691 (sd_resolve_dep): Likewise.
17692 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
17693 (haifa_note_mem_dep): Likewise.
17694 (check_dep): Likewise.
17695 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
17696 (sched_free_deps): Free in two passes.
17698 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
17700 PR middle-end/49736
17701 * expr.c (all_zeros_p): Undo bogus part of last change.
17703 2011-07-14 Matthias Klose <doko@ubuntu.com>
17705 * doc/extend.texi (optimize attribute): Fix typo.
17707 2011-07-14 Richard Guenther <rguenther@suse.de>
17709 * gimplify.c (gimplify_expr): Only do required conversions.
17711 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
17714 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
17715 i.e. use default_elf_select_section.
17716 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
17717 (READONLY_DATA_SECTION_ASM_OP): Remove.
17718 (TARGET_ASM_NAMED_SECTION): Move from here...
17719 * config/avr/avr.c: ...to here.
17720 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
17721 (avr_asm_named_section): Make static.
17723 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17726 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
17727 and crtfastmath.o for Linux/x86.
17729 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
17731 * haifa-sched.c: Include "hashtab.h"
17732 (sched_no_dce): New global variable.
17733 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
17734 SHADOW_P): New macros.
17735 (last_clock_var, cycle_issued_insns): Move declarations.
17736 (must_backtrack): New static variable.
17737 (struct delay_pair): New structure.
17738 (delay_htab, delay_htab_i2): New static variables.
17739 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
17740 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
17742 (dep_cost_1): If delay pairs exist, try to look up the insns and
17743 use the correct pair delay if we find them.
17744 (rank-for_schedule): Tweak priority for insns that must be scheduled
17745 soon to avoid backtracking.
17746 (queue_insn): Detect conditions which force backtracking.
17747 (ready_add): Likewise.
17748 (struct sched_block_state): Add member shadows_only_p.
17749 (struct haifa_save_data): New structure.
17750 (backtrack_queue): New static variable.
17751 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
17752 unschedule_insns_until, restore_last_backtrack_point,
17753 free_topmost_backtrack_point, free_backtrack_queue,
17754 estimate_insn_tick, estimate_shadow_tick): New functions.
17755 (prune_ready_list): New arg shadows_only_p. All callers changed.
17756 If true, remove everything that isn't SHADOW_P. Look up delay
17757 pairs and estimate ticks to avoid scheduling the first insn too early.
17758 (verify_shadows): New function.
17759 (schedule_block): Add machinery to enable backtracking.
17760 (sched_init): Take sched_no_dce into account when setting
17762 (free_delay_pairs): New function.
17763 (init_h_i_d): Initialize INSN_EXACT_TICK.
17764 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
17765 * sched-deps.c (sd_unresolve_dep): New function.
17766 * sched-int. (struct haifa_sched_info): New fields save_state
17768 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
17769 feeds_backtrack_insn and shadow_p.
17770 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
17771 (sched_no_dce): Declare variable.
17772 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
17773 sd_unresolve_dep): Declare functions.
17774 * modulo-sched.c (sms_sched_info): Clear the two new fields.
17775 * sched-rgn.c (rgn_const_sched_info): Likewise.
17776 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17777 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
17778 (ebb_sched_info): Add them for the two new fields.
17779 (add_deps_for_risky_insns): Call add_delay_dependencies.
17781 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17783 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
17785 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
17786 (rs6000_call_indirect_aix): Ditto.
17787 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
17788 (call_indirect_aix<ptrsize>_internal): Ditto.
17789 (call_indirect_aix<ptrsize>_nor11): Ditto.
17790 (call_indirect_aix<ptrsize>_internal2): Ditto.
17791 (call_value_indirect_aix<ptrsize>): Ditto.
17792 (call_value_indirect_aix<ptrsize>_internal): Ditto.
17793 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
17794 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
17795 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
17797 2011-07-13 Jason Merrill <jason@redhat.com>
17799 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
17801 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17803 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
17804 * config/spu/spu.md ("clrsb<mode>2"): New expander.
17806 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
17808 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
17809 * configure: Regenerate.
17811 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17813 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
17814 (asm_file_start): Remove.
17815 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
17816 free_bb_for_insn around code that modifies insns before
17817 restarting df analysis.
17819 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17822 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
17823 (LINK_SPEC): ... here.
17825 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
17827 * haifa-sched.c (struct sched_block_state): New.
17828 (schedule_block): Move some local variables into such a structure.
17830 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17832 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
17833 * config/i386/t-crtpc: Remove.
17834 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
17835 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
17837 (x86_64-*-darwin*): Likewise.
17838 (i[34567]86-*-linux*): Likewise.
17839 (x86_64-*-linux*): Likewise.
17841 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
17842 Handle -mpc32, -mpc64, -mpc80.
17844 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17846 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
17847 * config/alpha/t-crtfm: Remove.
17848 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
17849 * config/i386/t-crtfm: Remove.
17850 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
17851 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
17852 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
17853 * config/sparc/t-crtfm: Remove.
17855 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
17856 (alpha*-*-freebsd*): Likewise.
17857 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
17858 (x86_64-*-darwin*): Likewise.
17859 (i[34567]86-*-linux*): Likewise.
17860 (x86_64-*-linux*): Likewise.
17861 (x86_64-*-mingw*): Likewise.
17862 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
17863 (ia64*-*-freebsd*): Likewise.
17864 (ia64*-*-linux*): Likewise.
17865 (mips64*-*-linux*): Likewise.
17866 (mips*-*-linux*): Likewise.
17867 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
17868 (sparc64-*-linux*): Likewise.
17869 (sparc64-*-freebsd*): Likewise.
17871 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17873 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
17874 * config/darwin-crt3.c: Move to ../libgcc/config.
17875 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
17876 ($(T)crt3$(objext)): Remove.
17877 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
17878 ($(T)crt2$(objext)): Remove.
17879 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
17880 (powerpc64-*-darwin*): Likewise.
17882 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
17884 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
17886 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
17887 (addsi_1_zext): This.
17889 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
17891 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
17892 * doc/tm.texi: Regenerate.
17893 * target.def (mergeable_rodata_prefix): New defhookpod.
17894 * varasm.c (mergeable_string_section, mergeable_constant_section):
17895 Use it. Allocate name with alloca.
17897 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
17899 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
17901 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
17903 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
17906 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
17908 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
17909 (count_type_elements): Delete.
17910 (complete_ctor_at_level_p): Declare.
17911 * expr.c (flexible_array_member_p): New function, split out from...
17912 (count_type_elements): ...here. Make static. Replace allow_flexarr
17913 parameter with for_ctor_p. When for_ctor_p is true, return the
17914 number of elements that should appear in the top-level constructor,
17915 otherwise return an estimate of the number of scalars.
17916 (categorize_ctor_elements): Replace p_must_clear with p_complete.
17917 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
17918 (complete_ctor_at_level_p): New function, borrowing union logic
17919 from old categorize_ctor_elements_1.
17920 (mostly_zeros_p): Return true if the constructor is not complete.
17921 (all_zeros_p): Update call to categorize_ctor_elements.
17922 * gimplify.c (gimplify_init_constructor): Update call to
17923 categorize_ctor_elements. Don't call count_type_elements.
17924 Unconditionally prevent clearing for variable-sized types,
17925 otherwise rely on categorize_ctor_elements to detect
17926 incomplete initializers.
17928 2011-07-13 Richard Guenther <rguenther@suse.de>
17930 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
17931 the final type is integral.
17933 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
17935 * sched-int.h (struct _dep): Add member cost.
17936 (DEP_COST, UNKNOWN_DEP_COST): New macros.
17937 * sched-deps.c (init_dep_1): Initialize DEP_COST.
17938 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
17939 (sched_change_pattern): Reset it for dependent insns.
17941 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17943 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
17944 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
17945 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
17946 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
17947 (CRT0_S, MCRT0_S): Remove.
17948 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
17951 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
17953 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
17955 * cse.c (insert_with_costs): Put semi-colon after empty loop body
17957 * emit-rtl.c (push_to_sequence): Likewise.
17958 * haifa-sched.c (max_issue): Likewise.
17959 * matrix-reorg.c (add_allocation_site): Likewise.
17960 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
17961 * reload.c (alternative_allows_const_pool_ref): Likewise.
17962 * sched-rgn.c (rgn_add_block): Likewise.
17963 (rgn_fix_recovery_cfg): Likewise.
17964 * tree.c (attribute_list_contained): Likewise.
17966 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
17968 * config/i386/i386.c: Tidy processor feature bitmasks.
17969 (m_P4_NOCONA): New.
17971 2011-07-12 Andrew Pinski <pinskia@gmail.com>
17974 * cprop.c (find_implicit_sets): Correct the condition.
17976 2011-07-12 Richard Henderson <rth@redhat.com>
17979 * dwarf2out.h (dwarf_frame_regnum): Remove.
17980 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
17981 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
17982 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
17983 (execute_dwarf2_frame): Initialize them.
17984 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
17985 users of the macros with the variables.
17986 (expand_builtin_dwarf_sp_column): Revert last change.
17987 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
17988 result of DWARF_FRAME_REGNUM into a local variable.
17990 2011-07-12 Richard Henderson <rth@redhat.com>
17993 * config/i386/i386.c (x86_output_mi_thunk): Use
17994 machopic_indirect_call_target instead of machopic_indirection_name
17997 2011-07-12 Laurent GUERBY <laurent@guerby.net>
17998 Eric Botcazou <ebotcazou@adacore.com>
18000 * prefix.h: Wrap up in extern "C" block.
18002 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
18004 AMD bdver2 Enablement
18005 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
18006 (case ${target}): Add bdver2.
18007 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18008 -march=native recognize bdver2 processors.
18009 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18010 bdver2 def_and_undef
18011 * config/i386/i386.c (struct processor_costs bdver2_cost): New
18013 (m_BDVER2): New definition.
18014 (m_AMD_MULTIPLE): Includes m_BDVER2.
18015 (initial_ix86_tune_features): Add bdver2 tuning.
18016 (processor_target_table): Add bdver2 entry.
18017 (static const char *const cpu_names): Add bdver2 entry.
18018 (ix86_option_override_internal): Add bdver2 instruction sets.
18019 (ix86_issue_rate): Add bdver2.
18020 (ix86_adjust_cost): Add bdver2.
18021 (has_dispatch): Add bdver2.
18022 * config/i386/i386.h (TARGET_BDVER2): New definition.
18023 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
18024 (enum processor_type): Add PROCESSOR_BDVER2.
18025 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
18026 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
18029 2011-07-12 Richard Henderson <rth@redhat.com>
18032 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
18033 destination address in memory on some paths.
18035 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
18037 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
18038 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
18039 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
18040 * function.c (locate_and_pad_parm): Take it into account.
18041 * target.def (function_arg_round_boundary): New hook.
18042 * targhooks.c (default_function_arg_round_boundary): New function.
18043 * targhooks.h (default_function_arg_round_boundary): Declare.
18044 * doc/tm.texi: Regenerate.
18046 2011-07-12 Richard Guenther <rguenther@suse.de>
18048 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
18049 Do not perform no-op changes.
18051 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
18053 * config/arm/predicates.md (neon_struct_operand): Make a normal
18055 (neon_struct_or_register_operand): New predicate.
18056 * config/arm/neon.md (movmisalign<mode>): Replace predicates
18057 with neon_struct_or_register_operand.
18058 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
18059 neon_struct_operand instead of memory_operand.
18061 2011-07-12 Martin Jambor <mjambor@suse.cz>
18063 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
18064 * cgraph.c (cgraph_get_node_or_alias): Removed.
18065 (change_decl_assembler_name): Changed all calls to
18066 cgraph_get_node_or_alias to a call to cgraph_get_node.
18067 (cgraph_make_decl_local): Likewise.
18068 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
18069 * varasm.c (default_binds_local_p_1): Likewise.
18070 (decl_binds_to_current_def_p): Likewise.
18072 2011-07-12 Jakub Jelinek <jakub@redhat.com>
18074 PR tree-optimization/49712
18075 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
18077 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
18079 * genautomata.c (add_arc): Return void. All callers changed.
18080 (make_automaton): Remove dead code.
18082 2011-07-11 Richard Henderson <rth@redhat.com>
18084 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
18085 (DW_FRAME_POINTER_REGNUM): New.
18086 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
18087 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
18089 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
18090 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
18091 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
18093 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
18094 * dwarf2out.h (dwarf_frame_regnum): New.
18095 (struct cfa_loc): Document the domain of the reg member.
18097 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
18099 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
18100 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
18102 2011-07-11 Jakub Jelinek <jakub@redhat.com>
18105 * dwarf2out.c (int_shift_loc_descriptor): New function.
18106 (int_loc_descriptor): If shorter, emit i as
18107 (i >> shift), shift, DW_OP_shl for suitable shift value.
18108 Similarly, try to optimize large negative values using
18109 DW_OP_neg of a positive value if shorter.
18110 (size_of_int_shift_loc_descriptor): New function.
18111 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
18113 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
18114 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
18115 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
18117 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
18118 addend as added DW_OP_plus if it is shorter.
18120 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18122 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
18123 (DTORS_SECTION_ASM_OP): Define.
18125 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18127 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
18128 * config/t-dfprules: Move to ../libgcc/config.
18129 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
18130 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
18131 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
18132 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
18134 (i[34567]86-*-cygwin*): Likewise.
18135 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
18136 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
18137 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
18138 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
18139 D64PBIT_FUNCS, D128PBIT_FUNCS.
18141 2011-07-11 Richard Guenther <rguenther@suse.de>
18143 * tree-vrp.c (simplify_conversion_using_ranges): Manually
18144 translate the source value-range through the conversion chain.
18146 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
18148 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
18150 2011-07-11 Arthur Loiret <aloiret@debian.org>
18152 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
18153 a bi-arch compiler defaulting to 31-bit. In this case:
18154 (tmake_file): Add s390/t-linux64.
18155 * doc/install.texi: Add s390-linux to the list of targets supporting
18156 --enable-targets=all.
18158 2011-07-11 Arthur Loiret <aloiret@debian.org>
18159 Matthias Klose <doko@debian.org>
18161 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
18162 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
18163 (tm_file): Add mips/linux64.h.
18164 (tmake_file): Add mips/t-linux64.
18165 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
18166 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
18167 instead of hardcoded mabi=n32.
18168 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
18169 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
18172 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18174 * passes.c (init_optimization_passes): Add invariant motion pass
18175 after induction variable optimization.
18177 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
18180 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
18181 offsets 1..5 set cc0 in a usable way.
18183 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
18185 * tree.h (call_expr_arg): Remove.
18186 (call_expr_argp): Likewise.
18188 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
18190 * config/sparc/sparc.md (save_register_window_1): Rename to...
18191 (window_save): ...this.
18192 * config/sparc/sparc.c (emit_save_register_window): Rename to...
18193 (emit_window_save): ...this.
18194 (sparc_expand_prologue): Adjust to above renaming.
18196 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
18198 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
18201 2011-07-10 Richard Henderson <rth@redhat.com>
18203 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
18204 run final, instead of emitting text directly.
18206 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
18208 * config/i386/i386.c (ix86_option_override_internal): Turn on
18209 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
18210 small PIC models for TARGET_X32.
18212 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
18215 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
18219 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
18220 stray notes and debug insns by using prev_nonnote_nondebug_insn
18221 instead of PREV_INSN.
18223 2011-07-09 Richard Henderson <rth@redhat.com>
18225 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
18226 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
18227 * dwarf2out.c: ... here.
18228 (output_all_cfis): Remove.
18229 (dwarf2out_switch_text_section): Use output_cfis directly.
18230 (size_of_locs): Export.
18231 (output_loc_sequence, output_loc_sequence_raw): Export.
18232 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
18233 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
18234 output_cfa_loc_raw): Move to ...
18235 * dwarfcfi.c: ... here.
18236 * dwarf2out.h: Update decls.
18238 2011-07-09 Richard Henderson <rth@redhat.com>
18240 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
18241 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
18242 * dwarf2cfi.c: ... here.
18243 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
18244 (DWARF_ROUND, DWARF_CIE_ID): Remove.
18245 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
18246 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
18247 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
18249 2011-07-09 Richard Henderson <rth@redhat.com>
18251 * dwarf2cfi.c (cie_return_save): New.
18252 (queue_reg_save): Use compare_reg_or_pc.
18253 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
18254 (dwarf2out_frame_debug_expr): Likewise.
18255 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
18256 (initial_return_save): Likewise.
18257 (execute_dwarf2_frame): Save and restore initial return save from
18258 the cie to the fde.
18259 * config/mips/mips.c (mips_frame_set): Remove special case for
18260 DWARF_FRAME_RETURN_COLUMN.
18262 2011-07-09 Richard Henderson <rth@redhat.com>
18264 * dwarf2cfi.c (lookup_cfa): Remove.
18265 (execute_dwarf2_frame): Assert queues are empty on entry.
18266 Setup initial cfa directly, not via lookup_cfa.
18267 Don't clear args_size state here.
18269 2011-07-09 Richard Henderson <rth@redhat.com>
18271 * dwarf2cfi.c (add_cfi_vec): New.
18272 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
18273 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
18274 (execute_dwarf2_frame): Set add_cfi_vec.
18276 2011-07-09 Richard Henderson <rth@redhat.com>
18278 * defaults.h (ASM_COMMENT_START): Move here...
18279 * dwarf2asm.c: ... from here.
18280 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
18281 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
18282 * varasm.c: Likewise.
18284 2011-07-09 Richard Henderson <rth@redhat.com>
18287 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
18288 (create_cfi_notes): ... do it here instead.
18290 2011-07-09 Jakub Jelinek <jakub@redhat.com>
18293 * dwarf2out.c (size_of_int_loc_descriptor): New function.
18294 (address_of_int_loc_descriptor): Use it.
18295 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
18297 2011-07-09 Richard Henderson <rth@redhat.com>
18299 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
18300 (prologue, epilogue): New.
18301 (return, *rts): New.
18302 (blockage, setd, seti): New.
18303 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
18304 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
18305 (pdp11_saved_regno): New.
18306 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
18307 generate rtl instead of text.
18308 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
18309 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
18310 * config/pdp11/pdp11-protos.h: Update.
18312 2011-07-09 Richard Henderson <rth@redhat.com>
18314 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
18315 try to insert an rtl prologue here.
18316 (rs6000_output_function_epilogue): Similarly.
18317 * config/rs6000/rs6000.md (prologue): Emit a barrier to
18318 satisfy !TARGET_SCHED_PROLOG.
18319 (epilogue, sibcall_epilogue): Likewise.
18321 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
18323 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
18324 (FP_REG_P): Delete.
18325 (IN_OR_GLOBAL_P): Likewise.
18327 2011-07-08 Jason Merrill <jason@redhat.com>
18330 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
18331 compound assignment.
18333 * cgraph.c (cgraph_add_to_same_comdat_group): New.
18334 * cgraph.h: Declare it.
18335 * ipa.c (function_and_variable_visibility): Make sure thunks
18336 have the right visibility.
18338 2011-07-08 Richard Henderson <rth@redhat.com>
18341 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
18342 any tablejump vector.
18345 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
18346 end of the prologue.
18348 2011-07-08 Jakub Jelinek <jakub@redhat.com>
18351 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
18352 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
18353 * config/rs6000/vector.md (vector_select_<mode>,
18354 vector_select_<mode>_uns): Change second operand of NE to
18355 CONST0_RTX (<MODE>mode) instead of const0_rtx.
18356 * config/rs6000/altivec.md (*altivec_vsel<mode>,
18357 *altivec_vsel<mode>_uns): Expect second operand of NE to be
18358 zero_constant of the corresponding vector mode.
18359 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
18362 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
18364 * graphite-dependences.c (build_alias_set_powerset): Remove
18365 continue from loop, add one more assert.
18367 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
18370 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
18371 In particular, allow 8-bit values in r28 and r29.
18372 (avr_hard_regno_scratch_ok): Disallow any register that might be
18373 part of the frame pointer.
18374 (avr_hard_regno_rename_ok): Same.
18375 (avr_legitimate_address_p): Don't allow SUBREGs.
18377 2011-07-08 Julian Brown <julian@codesourcery.com>
18379 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
18381 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
18382 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
18383 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
18384 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
18385 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
18386 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
18387 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
18388 registers in big-endian mode.
18390 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
18392 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
18393 in terms of another.
18394 (write_attr_value): Write a cast if necessary.
18396 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
18397 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
18398 (REG_WORDS_BIG_ENDIAN): Document.
18399 * doc/tm.texi: Regenerate.
18400 * reload.c (operands_match_p): Take it into account.
18401 (reload_adjust_reg_for_mode): Likewise.
18402 * rtlanal.c (subreg_get_info): Likewise.
18404 2011-07-08 Richard Guenther <rguenther@suse.de>
18406 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
18409 2011-07-08 Kai Tietz <ktietz@redhat.com>
18411 * fold-const.c (fold_truth_andor): Factored out truth_andor
18412 label from fold_binary as function.
18413 (fold_binary_loc): Replace truth_andor lable
18414 by function fold_truth_andor.
18416 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
18418 PR middle-end/49519
18419 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
18420 check if address is stored in register. If so - give up.
18421 (check_sibcall_argument_overlap_1): Do not perform check of
18422 overlapping when it is call to address.
18424 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
18426 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
18429 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
18431 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
18432 GET_MODE_BITSIZE where appropriate.
18433 (widen_leading, expand_parity, expand_ctz, expand_ffs,
18434 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
18435 expand_float, expand_fix): Likewise.
18436 * expr.c (convert_move, convert_modes, expand_expr_real_2,
18437 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
18438 * stor-layout.c (get_mode_bounds): Likewise.
18439 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
18441 * convert.c (convert_to_integer): Likewise.
18442 * expmed.c (expand_shift_1): Likewise.
18444 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
18447 * optabs.c (expand_binop): Tighten conditions for doubleword
18449 (widen_bswap): Assert that mode bitsize and precision are the same.
18450 * stor-layout.c (get_best_mode): Skip modes that have lower
18451 precision than bitsize.
18452 * recog.c (simplify_while_replacing): Assert that bitsize and
18453 precision are the same.
18455 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18457 * Makefile.in (LIBGCOV): Remove.
18458 (libgcc.mvars): Remove LIBGCOV.
18459 * libgov.c: Move to ../libgcc.
18461 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18463 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
18465 2011-07-08 Martin Jambor <mjambor@suse.cz>
18467 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
18468 is too big for total scalarization.
18470 2011-07-07 Richard Henderson <rth@redhat.com>
18472 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
18473 (DBX_DEBUGGING_INFO): Undef.
18475 2011-07-07 Richard Henderson <rth@redhat.com>
18477 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
18478 Handle some opcodes specially for debugging.
18479 * print-rtl.c: Include dwarf2out.h
18480 (print_rtx): Handle NOTE_INSN_CFI.
18481 * Makefile.in (print-rtl.o): Update.
18483 2011-07-07 Richard Henderson <rth@redhat.com>
18485 * tree-pass.h (pass_dwarf2_frame): Declare.
18486 * passes.c (init_optimization_passes): Add it.
18487 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
18488 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
18489 make static, do not call add_cfis_to_fde.
18490 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
18491 dwarf2out_frame_init): Merge into...
18492 (execute_dwarf2_frame): ... here. New function.
18493 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
18494 saved_do_cfi_asm to a tri-state variable.
18495 (gate_dwarf2_frame, pass_dwarf2_frame): New.
18496 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
18497 if it has yet to be done. Don't call dwarf2cfi_function_init.
18498 * dwarf2out.h, debug.h: Update decls.
18499 * final.c (final_start_function): Don't call
18500 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
18501 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
18502 * toplev.c (lang_dependent_init): Likewise.
18504 2011-07-07 Richard Henderson <rth@redhat.com>
18506 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
18507 FDE_TABLE_INCREMENT): Replace with...
18508 (fde_vec): ... this, a new vector.
18509 (current_fde): Remove. Replace all users with cfun->fde.
18510 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
18511 (size_of_aranges, dwarf2out_finish): Likewise.
18512 (dwarf2out_alloc_current_fde): Break out from ...
18513 (dwarf2out_begin_prologue): ... here.
18514 (dwarf2out_frame_init): Remove.
18515 * dwarf2cfi.c: Update all users of current_fde.
18516 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
18517 * dwarf2out.h: Update decls.
18518 (dw_fde_node): Add fde_index member.
18519 * function.h (struct function): Add fde member.
18521 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18522 Richard Henderson <rth@redhat.com>
18524 * dwarf2cfi.c (add_cfi): Remove.
18525 (dwarf2out_cfi_label): Remove force argument. Only generate the
18527 (add_fde_cfi): Simplify the different code paths.
18528 (add_cie_cfi): New.
18529 (old_cfa, old_cfa_remember): New.
18530 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
18531 (last_reg_save_label): Remove.
18532 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
18533 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
18534 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
18535 dwarf2out_frame_debug_cfa_expression,
18536 dwarf2out_frame_debug_cfa_restore,
18537 dwarf2out_frame_debug_cfa_window_save,
18538 dwarf2out_frame_debug_expr): Remove label parameter.
18539 (cfi_label_required_p, add_cfis_to_fde): New.
18540 (dwarf2out_frame_debug_after_prologue): New.
18541 (dwarf2cfi_frame_init): Initialize old_cfa.
18542 (dwarf2out_frame_debug_restore_state): Likewise.
18543 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
18544 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
18545 * final.c (final_start_function): Call
18546 dwarf2out_frame_debug_after_prologue.
18548 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18549 Richard Henderson <rth@redhat.com>
18551 * dwarf2cfi.c (cfi_insn): New.
18552 (dwarf2out_cfi_label): Don't emit cfi label here.
18553 (add_fde_cfi): Create a NOTE_INSN_CFI.
18554 (dwarf2out_frame_debug): Setup cfi_insn.
18555 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
18556 (dwarf2out_cfi_begin_epilogue): Make static.
18557 (dwarf2out_frame_debug_restore_state): Make static.
18558 * dwarf2out.c (output_cfi_directive): Make static.
18559 (dwarf2out_emit_cfi): New.
18560 * dwarf2out.h: Update.
18561 * final.c (final): Remove CFI notes.
18562 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
18563 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
18564 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
18565 * insn-notes.def (NOTE_INSN_CFI): New.
18566 (NOTE_INSN_CFI_LABEL): New.
18567 * rtl.h (union rtunion_def): Add rt_cfi member.
18568 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
18570 2011-07-07 Richard Henderson <rth@redhat.com>
18572 * dwarf2cfi.c: New file.
18573 * Makefile.in (OBJS): Add it.
18574 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
18575 * gengtype.c (open_base_files): Include dwarf2out.h.
18576 * coretypes.h (enum var_init_status): Move from ...
18578 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
18579 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
18580 expand_builtin_dwarf_sp_column, init_return_column_size,
18581 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
18582 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
18583 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
18584 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
18585 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
18586 compute_barrier_args_size, dwarf2out_args_size,
18587 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
18588 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
18589 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
18590 queue_reg_save, dwarf2out_flush_queued_reg_saves,
18591 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
18592 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
18593 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
18594 dwarf2out_frame_debug_cfa_expression,
18595 dwarf2out_frame_debug_cfa_restore,
18596 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
18597 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
18598 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
18599 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
18600 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
18601 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
18602 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
18603 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
18604 dw_loc_descr_node): Move to dwarf2out.h.
18605 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
18606 mem_loc_descriptor): Export.
18607 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
18608 (dwarf2out_frame_init): Extract CIE generation code to
18609 dwarf2cfi_frame_init.
18611 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
18614 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
18615 MASK_V8PLUS, remove commented out flag and reorder.
18617 2011-07-07 Jakub Jelinek <jakub@redhat.com>
18620 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
18621 one non-complex and one complex argument, call c_save_expr on both
18624 2011-07-07 Martin Jambor <mjambor@suse.cz>
18626 PR middle-end/49495
18627 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
18628 (verify_cgraph_node): Some functinality moved to
18629 verify_edge_corresponds_to_fndecl, call it.
18631 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18633 * config.gcc (*local*): Remove.
18634 * doc/install-old.texi: Don't mention local configurations.
18636 2011-07-07 Jakub Jelinek <jakub@redhat.com>
18639 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
18640 referencing debug insns that have been reset.
18641 (dead_debug_insert_before): Don't assert reg is non-NULL,
18642 instead return immediately if it is NULL.
18644 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18646 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
18648 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18650 * hw-doloop.c: New file.
18651 * hw-doloop.h: New file.
18652 * Makefile.in (OBJS): Add hw-doloop.o.
18653 (hw-doloop.o): New rule.
18654 ($(obj_out_file)): Add hw-doloop.h dependency.
18655 * config/bfin/bfin.c: Include "hw-doloop.h".
18656 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
18657 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
18658 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
18659 type changed to hwloop_info. Return bool, true if the loop was
18660 successfully optimized. Remove code that was moved to
18661 hw-doloop.c, and adjust other parts.
18662 (hwloop_fail): New static function, containing parts that used
18663 to be in bfin_optimize_loop.
18664 (bfin_discover_loop, bfin_discover_loops, free_loops,
18665 bfin_reorder_loops): Remove.
18666 (hwloop_pattern_reg): New static function.
18667 (bfin_doloop_hooks): New variable.
18668 (bfin_reorg_loops): Remove most code, call reorg_loops.
18669 * config/bfin/bfin.md (doloop_end splitter): Also enable if
18670 loop counter is a memory_operand.
18672 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
18674 * config.gcc: Support --with-multilib-list for x86 Linux targets.
18676 * configure.ac: Mention x86-64 for --with-multilib-list.
18677 * configure: Regenerated.
18679 * config/i386/gnu-user64.h (SPEC_64): Support x32.
18680 (SPEC_32): Likewise.
18681 (ASM_SPEC): Likewise.
18682 (LINK_SPEC): Likewise.
18683 (TARGET_THREAD_SSP_OFFSET): Likewise.
18684 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
18687 * config/i386/i386.h (TARGET_X32): New.
18688 (TARGET_LP64): New.
18689 (LONG_TYPE_SIZE): Likewise.
18690 (POINTER_SIZE): Likewise.
18691 (POINTERS_EXTEND_UNSIGNED): Likewise.
18692 (OPT_ARCH64): Support x32.
18693 (OPT_ARCH32): Likewise.
18695 * config/i386/i386.opt (mx32): New.
18697 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
18698 (GLIBC_DYNAMIC_LINKERX32): Likewise.
18699 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
18700 (GLIBC_DYNAMIC_LINKERX32): Likewise.
18702 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
18703 (BIONIC_DYNAMIC_LINKERX32): Likewise.
18704 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
18706 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
18708 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
18710 * doc/invoke.texi: Document -mx32.
18712 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
18714 * doc/invoke.texi (mwords-little-endian): Deprecate.
18715 * config/arm/arm.opt (mwords-little-endian): Likewise.
18716 * config/arm/arm.c (arm_option_override): Warn about the deprecation
18717 of -mwords-little-endian.
18719 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
18721 * reload1.c (choose_reload_regs): Use mode sizes to check whether
18722 an old reload register completely defines the required value.
18724 2011-07-07 Richard Guenther <rguenther@suse.de>
18726 * fold-const.c (fold_unary_loc): Do not strip sign-changes
18729 2011-07-07 Richard Guenther <rguenther@suse.de>
18731 * tree-vrp.c (simplify_conversion_using_ranges): New function.
18732 (simplify_stmt_using_ranges): Call it.
18734 2011-07-07 Kai Tietz <ktietz@redhat.com>
18736 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
18737 (lookup_logical_inverted_value): Likewise.
18738 (simplify_bitwise_binary_1): Likewise.
18739 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
18741 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18743 * gcc.c (%[Spec]): Don't document.
18744 (struct spec_list): Update comment.
18745 (do_spec_1): Don't handle %[Spec].
18746 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
18748 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18750 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
18751 default based on TARGET_ASM_NAMED_SECTION.
18752 * common/common-target.def (have_named_sections): Default to true.
18753 * common/config/default-common.c: Don't include tm.h.
18754 * common/config/picochip/picochip-common.c
18755 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
18756 * common/config/m32c/m32c-common.c: Remove.
18757 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
18758 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18759 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18760 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18761 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18762 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18763 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18765 2011-07-07 Jakub Jelinek <jakub@redhat.com>
18767 PR middle-end/49640
18768 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
18769 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
18771 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18773 PR libmudflap/49550
18774 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
18776 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18779 * configure.ac (gcc_cv_as_hidden): Also accept
18780 x86_64-*-solaris2.1[0-9]*.
18781 (gcc_cv_as_cfi_directive): Likewise.
18782 (gcc_cv_as_comdat_group_group): Likewise.
18783 (set_have_as_tls): Likewise.
18784 * configure: Regenerate.
18785 * config.gcc (i[34567]86-*-solaris2*): Also handle
18786 x86_64-*-solaris2.1[0-9]*.
18787 * config.host (i[34567]86-*-solaris2*): Likewise.
18788 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18789 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
18790 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
18791 (TARGET_LD_EMULATION): Use it.
18792 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
18793 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
18794 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
18795 (ASM_CPU64_DEFAULT_SPEC): Define.
18796 (ASM_CPU_SPEC): Use %(asm_cpu_default).
18797 (ASM_SPEC): Redefine.
18798 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
18799 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
18800 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
18801 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
18803 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
18805 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18807 * config/sol2.h (ASM_SPEC): Split into ...
18808 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
18809 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
18810 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
18811 (ASM_SPEC): Use ASM_SPEC_BASE.
18812 * config/sparc/sol2.h (ASM_SPEC): Redefine.
18814 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
18816 * config/avr/avr.md (*reload_insi): Change predicate #1 to
18817 const_int_operand. Ditto for peep2 producing this insn.
18818 Add argument to output_reload_insisf call.
18819 (*movsi,*movsf): Add argument to output_movsisf call.
18820 (*reload_insf): New insn and new peep2 to produce it.
18821 * config/avr/avr-protos.h (output_movsisf): Change prototype.
18822 (output_reload_insisf): Change prototype.
18823 * config/avr/avr.c (avr_asm_len): New function.
18824 (output_reload_insisf): Rewrite.
18825 (output_movsisf): Change prototype. output_reload_insisf for
18826 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
18827 (adjust_insn_length): Add argument to output_movsisf and
18828 output_reload_insisf call.
18830 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18832 * emit-rtl.c (paradoxical_subreg_p): New function.
18833 * rtl.h (paradoxical_subreg_p): Declare.
18834 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
18835 apply_distributive_law, simplify_comparison, simplify_set): Use it.
18836 * cse.c (record_jump_cond, cse_insn): Likewise.
18837 * expr.c (force_operand): Likewise.
18838 * rtlanal.c (num_sign_bit_copies1): Likewise.
18839 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
18840 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
18841 (push_reload): Use precision to check for paradoxical subregs.
18842 * expmed.c (extract_bit_field_1): Likewise.
18844 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
18845 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
18846 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
18847 simplify_set, simplify_logical, expand_compound_operation,
18848 make_extraction, force_to_mode, if_then_else_cond, extended_count,
18849 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
18850 record_value_for_reg): Likewise.
18851 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
18852 * simplify-rtx. c (simplify_unary_operation_1,
18853 simplify_binary_operation_1, simplify_const_relational_operation):
18856 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
18857 instead of GET_MODE_BITSIZE where appropriate.
18858 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
18859 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
18860 init_num_sign_bit_copies_in_rep): Likewise.
18861 * cse.c (fold_rtx, cse_insn): Likewise.
18862 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
18863 * simplify-rtx.c (simplify_unary_operation_1,
18864 simplify_const_unary_operation, simplify_binary_operation_1,
18865 simplify_const_binary_operation, simplify_ternary_operation,
18866 simplify_const_relational_operation, simplify_subreg): Likewise.
18867 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
18868 simplify_if_then_else, simplify_set, expand_compound_operation,
18869 expand_field_assignment, make_extraction, if_then_else_cond,
18870 make_compound_operation, force_to_mode, make_field_assignment,
18871 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
18872 extended_count, try_widen_shift_mode, simplify_shift_const_1,
18873 simplify_comparison, record_promoted_value, simplify_compare_const,
18874 record_dead_and_set_regs_1): Likewise.
18877 * simplify-rtx.c (simplify_const_binary_operation): Use the
18878 shift_truncation_mask hook instead of performing modulo by width.
18879 Compare against mode precision, not bitsize.
18880 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
18881 Use shift_truncation_mask instead of constructing the value manually.
18883 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18885 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
18887 (rs6000_save_toc_in_prologue_p): Ditto.
18889 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
18890 up the static chain (r11) during indirect function calls.
18891 (-msave-toc-indirect): New undocumented debug switch.
18893 * config/rs6000/rs6000.c (struct machine_function): Add
18894 save_toc_in_prologue field to note whether the prologue needs to
18895 save the TOC value in the reserved stack location.
18896 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
18897 to save the TOC in the prologue, do so.
18898 (rs6000_trampoline_init): Don't allow creating AIX style
18899 trampolines if -mno-r11 is in effect.
18900 (rs6000_call_indirect_aix): New function to create AIX style
18901 indirect calls, adding support for -mno-r11 to suppress loading
18902 the static chain, and saving the TOC in the prologue instead of
18904 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
18905 TOC in the prologue.
18907 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
18909 (TOC_REGNUM): Ditto.
18910 (STATIC_CHAIN_REGNUM): Ditto.
18911 (ARG_POINTER_REGNUM): Ditto.
18912 (SFP_REGNO): Delete, unused.
18913 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
18914 function descriptor offsets.
18915 (TOC_SAVE_OFFSET_64BIT): Ditto.
18916 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
18917 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
18918 (AIX_FUNC_DESC_SC_32BIT): Ditto.
18919 (AIX_FUNC_DESC_SC_64BIT): Ditto.
18920 (ptrload): New mode attribute for the appropriate load of a pointer.
18921 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
18922 (call_indirect_aix64): Ditto.
18923 (call_value_indirect_aix32): Ditto.
18924 (call_value_indirect_aix64): Ditto.
18925 (call_indirect_nonlocal_aix32_internal): Ditto.
18926 (call_indirect_nonlocal_aix32): Ditto.
18927 (call_indirect_nonlocal_aix64_internal): Ditto.
18928 (call_indirect_nonlocal_aix64): Ditto.
18929 (call): Rewrite AIX indirect function calls. Add support for
18930 eliminating the static chain, and for moving the save of the TOC
18931 to the function prologue.
18932 (call_value): Ditto.
18933 (call_indirect_aix<ptrsize>): Ditto.
18934 (call_indirect_aix<ptrsize>_internal): Ditto.
18935 (call_indirect_aix<ptrsize>_internal2): Ditto.
18936 (call_indirect_aix<ptrsize>_nor11): Ditto.
18937 (call_value_indirect_aix<ptrsize>): Ditto.
18938 (call_value_indirect_aix<ptrsize>_internal): Ditto.
18939 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
18940 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
18941 (call_nonlocal_aix32): Relocate in the rs6000.md file.
18942 (call_nonlocal_aix64): Ditto.
18944 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
18945 -mno-r11 documentation.
18947 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
18950 * doc/extend.texi (Compound Literals): Fix typo.
18952 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
18954 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
18956 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
18958 * configure.ac (plugin-version.h): Generate
18959 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
18960 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
18963 * configure: Regenerate.
18965 * doc/plugins.texi (Building GCC plugins): Mention
18966 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
18968 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
18970 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
18971 * combine.c (make_extraction, gen_lowpart_or_truncate,
18972 apply_distributive_law, simplify_comparison,
18973 reg_truncated_to_mode, record_truncated_value): Use it.
18974 * cse.c (notreg_cost): Likewise.
18975 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18976 * expr.c (convert_move, convert_modes): Likewise.
18977 * optabs.c (expand_binop, expand_unop): Likewise.
18978 * postreload.c (move2add_last_label): Likewise.
18979 * regmove.c (optimize_reg_copy_3): Likewise.
18980 * rtlhooks.c (gen_lowpart_general): Likewise.
18981 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18983 2011-07-06 Joseph Myers <joseph@codesourcery.com>
18985 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
18987 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
18989 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
18990 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
18991 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
18992 (simplify_const_unary_operation, simplify_binary_operation_1,
18993 simplify_const_binary_operation, simplify_const_relational_operation):
18994 Use them. Use GET_MODE_MASK for masking and sign-extensions.
18995 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
18996 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
18997 simplify_shift_const_1, simplify_comparison): Likewise.
18998 * expr.c (convert_modes): Likewise.
18999 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
19000 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
19001 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
19003 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
19005 2011-07-06 Richard Guenther <rguenther@suse.de>
19007 PR tree-optimization/49645
19008 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
19009 register variables.
19010 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
19011 in type qualification here ...
19012 (copy_reference_ops_from_ref): ... not here.
19013 (vn_reference_lookup_3): ... or here.
19014 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
19015 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
19017 2011-07-06 Ian Lance Taylor <iant@google.com>
19019 * doc/install.texi (Configuration): It's
19020 --enable-gnu-indirect-function, not --enable-indirect-function.
19022 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
19024 * simplify-rtx.c (simplify_const_binary_operation): Use the
19025 shift_truncation_mask hook instead of performing modulo by width.
19026 Compare against mode precision, not bitsize.
19027 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
19028 Use shift_truncation_mask instead of constructing the value manually.
19030 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
19032 PR middle-end/47383
19033 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
19034 address computation and convert to address_mode if needed.
19036 2011-07-06 Richard Guenther <rguenther@suse.de>
19038 * tree.c (build_common_tree_nodes_2): Merge with
19039 build_common_tree_nodes.
19040 * tree.h (build_common_tree_nodes): Adjust prototype.
19041 (build_common_tree_nodes_2): Remove.
19042 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
19043 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
19045 2011-07-05 Jakub Jelinek <jakub@redhat.com>
19047 PR tree-optimization/49618
19048 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
19049 t recurse on the decl.
19050 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
19051 return true if expr isn't known to be defined in current
19052 TU or some other LTO partition.
19054 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
19056 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
19057 override CASE_VALUES_THRESHOLD.
19059 * stmt.c (toplevel): Include params.h.
19060 (case_values_threshold): Use the --param case-values-threshold
19061 value if non-zero, otherwise use machine dependent value.
19062 (expand_case): Use case_values_threshold.
19064 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
19066 * doc/invoke.texi (--param case-values-threshold): Document.
19068 2011-07-05 Richard Henderson <rth@redhat.com>
19070 * dwarf2out.c (dwarf2out_cfi_label): Make static.
19071 (dwarf2out_flush_queued_reg_saves): Make static.
19072 (dwarf2out_reg_save): Remove.
19073 (dwarf2out_return_save): Remove.
19074 (dwarf2out_return_reg): Remove.
19075 (dwarf2out_reg_save_reg): Remove.
19076 (dwarf2out_def_cfa): Merge into ...
19077 (dwarf2out_frame_init): ... here.
19078 * dwarf2out.h, tree.h: Remove declarations as necessary.
19080 2011-07-05 Richard Henderson <rth@redhat.com>
19082 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
19083 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
19084 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
19087 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
19088 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
19089 (process_epilogue): Don't call dwarf2out_def_cfa.
19091 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
19092 indicate the return address save.
19093 (process_cfa_register): Likewise.
19095 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
19096 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
19098 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
19099 for ar.pfs save at alloc insn.
19101 2011-07-05 Richard Henderson <rth@redhat.com>
19103 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
19104 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
19105 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
19106 stack pointer save.
19107 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
19108 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
19109 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
19110 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
19112 2011-07-05 Richard Henderson <rth@redhat.com>
19114 * config/vax/vax.md (define_c_enum unspecv): New. Define the
19115 VUNSPEC_* constants here instead of via define_constants.
19116 (VUNSPEC_PEM): New constant.
19117 (procedure_entry_mask): New insn.
19118 (prologue): New expander.
19119 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
19120 (vax_expand_prologue): Rename from vax_output_function_prologue;
19121 emit rtl instead of text.
19122 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
19123 (print_operand): Add 'x' prefix.
19125 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
19127 PR middle-end/47715
19128 * calls.c (precompute_register_parameters): Promote the function
19129 argument before checking non-legitimate constant.
19131 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19133 PR tree-optimization/47654
19134 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
19135 (lst_do_strip_mine_loop): Return an int.
19136 (lst_do_strip_mine): Same.
19137 (scop_do_strip_mine): Same.
19138 (scop_do_block): Loop blocking should strip-mine at least two loops.
19139 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
19140 (scop_do_interchange): Same.
19141 * graphite-poly.h (scop_do_interchange): Update declaration.
19142 (scop_do_strip_mine): Same.
19144 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19146 * graphite-clast-to-gimple.c (precision_for_value): Removed.
19147 (precision_for_interval): Removed.
19148 (gcc_type_for_interval): Use mpz_sizeinbase.
19150 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19152 * graphite-ppl.h (value_max): Correct computation of max.
19154 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19156 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
19158 2011-07-05 Richard Guenther <rguenther@suse.de>
19160 * c-decl.c (c_init_decl_processing): Defer building common
19161 tree nodes to c_common_nodes_and_builtins.
19163 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
19165 PR tree-optimization/49580
19166 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
19167 the loop's number of iterations.
19168 * tree-parloops.c (transform_to_exit_first_loop): Add the
19169 handling of the loop's number of iterations before the call
19170 to gimple_duplicate_sese_tail.
19171 Insert the stmt caclculating the new rhs of the loop's
19172 condition stmt to the preheader instead of iters_bb.
19174 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
19176 PR rtl-optimization/47449
19177 * fwprop.c (forward_propagate_subreg): Don't propagate hard
19178 register nor zero/sign extended hard register.
19180 2011-07-05 Richard Guenther <rguenther@suse.de>
19182 PR tree-optimization/49518
19183 PR tree-optimization/49628
19184 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
19185 irrelevant and invariant data-references.
19186 (vect_analyze_data_ref_access): For invariant loads clear the
19189 2011-07-04 Jakub Jelinek <jakub@redhat.com>
19191 PR rtl-optimization/49619
19192 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
19193 pass VOIDmode as op0_mode to recursive call, and return temp even
19194 when different from tor, just if it is not IOR of the original
19197 PR rtl-optimization/49472
19198 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
19199 negating MULT, negate the second operand instead of first.
19200 (simplify_binary_operation_1) <case MULT>: If one operand is
19201 a NEG and the other is MULT, don't attempt to optimize by negation
19202 of the MULT operand if it only moves the NEG operation around.
19205 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
19206 get_current_def return value if it can't be trusted to be
19207 the current value of the variable in the current bb.
19209 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
19212 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
19213 general register to memory for !TARGET_INTER_UNIT_MOVES.
19215 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
19218 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
19219 instead of TREE_READONLY.
19221 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
19223 * doc/extend.texi (AVR Built-in Functions): Update documentation
19224 of __builtin_avr_fmul*.
19225 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
19226 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
19227 * config/avr/avr.md (fmul): Rename to fmul_insn.
19228 (fmuls): Rename to fmuls_insn.
19229 (fmulsu): Rename to fmulsu_insn.
19230 (fmul,fmuls,fmulsu): New expander.
19231 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
19232 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
19233 * config/avr/libgcc.S (__fmul): New function.
19234 (__fmuls): New function.
19235 (__fmulsu,__fmulsu_exit): New function.
19237 2011-07-04 Richard Guenther <rguenther@suse.de>
19239 PR tree-optimization/49615
19240 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
19241 basic-block index check.
19243 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
19245 * longlong.h (count_leading_zeros, count_trailing_zeros,
19246 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
19249 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
19251 PR tree-optimization/49610
19252 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
19255 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
19256 Olivier Hainque <hainque@adacore.com>
19257 Nicolas Setton <setton@adacore.com>
19259 * tree.h (TYPE_ARTIFICIAL): New flag.
19260 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
19261 the DIE of the type if it is artificial.
19262 (gen_array_type_die): Likewise.
19263 (gen_enumeration_type_die): Likewise.
19264 (gen_struct_or_union_type_die): Likewise.
19265 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
19266 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
19268 2011-07-01 Jakub Jelinek <jakub@redhat.com>
19270 * tree-object-size.c (pass_through_call): Handle
19271 BUILT_IN_ASSUME_ALIGNED.
19273 2011-07-01 Martin Jambor <mjambor@suse.cz>
19275 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
19277 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
19279 PR middle-end/48016
19280 * explow.c (update_nonlocal_goto_save_area): Use proper mode
19281 for stack save area.
19282 * function.c (expand_function_start): Likewise.
19284 2011-07-01 Richard Guenther <rguenther@suse.de>
19286 PR middle-end/49596
19287 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
19288 may have unknown refs.
19290 2011-07-01 Kai Tietz <ktietz@redhat.com>
19292 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
19294 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19296 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
19297 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
19298 (Specific, mips-sgi-irix6): Likewise.
19300 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19302 PR libmudflap/49549
19303 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
19305 2011-07-01 Jakub Jelinek <jakub@redhat.com>
19307 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
19308 [idx]= and [idx1 ... idx2]= before initializers if needed for
19309 array initializers.
19311 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
19313 * config.gcc (score-*-elf): Remove score7.o.
19314 * config/score/t-score-elf: Likewise.
19315 * config/score/score.c: Merge score7 to score.c and
19316 remove forwarding functions.
19317 * config/score/score7.c: Deleted.
19318 * config/score/score7.h: Deleted.
19320 2011-07-01 Richard Guenther <rguenther@suse.de>
19322 PR tree-optimization/49603
19323 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
19325 2011-06-30 Martin Jambor <mjambor@suse.cz>
19327 * tree-sra.c (struct access): Rename total_scalarization to
19328 grp_total_scalarization
19329 (completely_scalarize_var): New function.
19330 (sort_and_splice_var_accesses): Set total_scalarization in the
19331 representative access.
19332 (analyze_access_subtree): Propagate total scalarization accross the
19333 tree, no holes in totally scalarized trees, simplify coverage
19335 (analyze_all_variable_accesses): Call completely_scalarize_var instead
19336 of completely_scalarize_record.
19338 2011-06-30 Richard Henderson <rth@redhat.com>
19340 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
19341 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
19342 * config/i386/i386.c: Don't include dwarf2out.h.
19343 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
19344 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
19345 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
19346 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
19347 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
19349 2011-06-30 Richard Henderson <rth@redhat.com>
19351 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
19352 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
19353 * final.c (final_scan_insn): Look for it, and invoke
19354 dwarf2out_frame_debug before the insn if found.
19356 2011-06-30 Richard Henderson <rth@redhat.com>
19358 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
19359 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
19361 2011-06-30 Richard Henderson <rth@redhat.com>
19363 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
19364 Define a vector of this type.
19365 (regs_saved_in_regs): Use a VEC.
19366 (num_regs_saved_in_regs): Remove.
19367 (compare_reg_or_pc): New.
19368 (record_reg_saved_in_reg): Split out from...
19369 (dwarf2out_flush_queued_reg_saves): ... here.
19370 (clobbers_queued_reg_save): Update for VEC.
19371 (reg_saved_in): Likewise.
19372 (dwarf2out_frame_debug_init): Likewise.
19373 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
19374 (dwarf2out_frame_debug_cfa_register): Likewise.
19376 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
19378 PR tree-optimization/49572
19379 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
19380 type of the RHS instead of that of the LHS for the expression type.
19382 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
19384 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
19387 2011-06-30 Richard Guenther <rguenther@suse.de>
19389 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
19390 * tree-ssa-structalias.c (create_variable_info_for): Do not
19391 add initial constraints for non-var-decls. Properly handle
19392 globals in other ltrans partitions.
19393 (intra_create_variable_infos): Manually create constraints for
19394 the fake no-alias parameter.
19395 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
19396 and assert there are no clones.
19398 2011-06-30 Richard Guenther <rguenther@suse.de>
19400 PR tree-optimization/46787
19401 * tree-data-ref.c (dr_address_invariant_p): Remove.
19402 (find_data_references_in_stmt): Invariant accesses are ok now.
19403 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
19404 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19407 2011-06-30 Martin Jambor <mjambor@suse.cz>
19409 PR tree-optimization/49094
19410 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
19411 (build_accesses_from_assign): Use it.
19413 2011-06-30 Jakub Jelinek <jakub@redhat.com>
19415 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
19416 handling of BUILT_IN_ASSUME_ALIGNED.
19419 * dwarf2out.c (output_abbrev_section): Don't return early
19420 if abbrev_die_table_in_use is 1.
19421 (dwarf2out_finish): Instead don't call output_abbrev_section
19422 nor emit abbrev_section_label in that case.
19424 2011-06-30 Nick Clifton <nickc@redhat.com>
19426 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
19429 2011-06-30 Jakub Jelinek <jakub@redhat.com>
19431 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
19432 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
19434 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
19436 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
19437 both pattern and original statements if necessary.
19438 (vect_transform_loop): Likewise.
19439 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
19440 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
19441 Mark the pattern statement only if the original statement doesn't
19443 (process_use): Call vect_mark_relevant with additional parameter.
19444 (vect_mark_stmts_to_be_vectorized): Likewise.
19445 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
19446 (vect_analyze_stmt): Handle both pattern and original statements
19448 (vect_transform_stmt): Don't store vectorized pattern statement
19449 in the original statement.
19450 (vect_is_simple_use_1): Use related pattern statement only if the
19451 original statement is irrelevant.
19452 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
19454 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
19456 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
19458 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
19460 (TARGET_AVX128_OPTIMAL): New definition.
19461 * config/i386/i386.c (initial_ix86_tune_features): Initialize
19462 X86_TUNE_AVX128_OPTIMAL entry.
19463 (ix86_option_override_internal): Enable the generation
19464 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
19465 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
19466 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
19468 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
19470 PR tree-optimization/49539
19471 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
19472 names by means of stmt_references_abnormal_ssa_name.
19473 (associate_plusminus): Call can_propagate_from before propagating
19474 from definition statements.
19475 (ssa_forward_propagate_and_combine): Remove superfluous newline.
19477 2011-06-29 Richard Guenther <rguenther@suse.de>
19479 * doc/invoke.texi: Document -scev dump modifier.
19480 * tree-pass.h (TDF_SCEV): New dump flag.
19481 * tree-dump.c (dump_option_value_in): Add scev.
19482 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
19483 * tree-scalar-evolution.c: Likewise.
19485 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
19487 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
19488 (cxa_type_match): Correct declaration.
19489 (__gnu_unwind_pr_common): Reconstruct additional indirection
19490 when __cxa_type_match returns succeeded_with_ptr_to_base.
19492 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19494 PR rtl-optimization/49114
19495 * reload.c (struct replacement): Remove SUBREG_LOC member.
19496 (push_reload): Do not set it.
19497 (push_replacement): Likewise.
19498 (subst_reload): Remove dead code.
19499 (copy_replacements): Remove assertion.
19500 (copy_replacements_1): Do not handle SUBREG_LOC.
19501 (move_replacements): Likewise.
19502 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
19503 Detect subregs via recursive descent instead of via SUBREG_LOC.
19505 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
19507 * config/avr/avr.c (avr_encode_section_info): Dispatch to
19508 default_encode_section_info.
19510 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
19512 PR tree-optimization/49545
19513 * builtins.c (get_object_alignment_1): Update function comment.
19514 Do not use DECL_ALIGN for functions, but test
19515 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
19516 * fold-const.c (get_pointer_modulus_and_residue): Don't check
19517 for functions here.
19518 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
19520 2011-06-29 Jakub Jelinek <jakub@redhat.com>
19523 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
19524 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
19526 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
19529 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
19530 about uninitialized data attributed 'progmem' from here...
19531 (avr_encode_section_info): ...to this new function.
19532 (TARGET_ENCODE_SECTION_INFO): New define.
19533 (avr_section_type_flags): For data in ".progmem.data", remove
19534 section flag SECTION_WRITE.
19536 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
19538 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
19540 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
19541 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
19542 (__umulhisi3): Ditto.
19543 * config/avr/avr.md (mulhisi3): New insn expender.
19544 (umulhisi3): New insn expender.
19545 (*mulhisi3_call): New insn.
19546 (*umulhisi3_call): New insn.
19548 2011-06-28 Joseph Myers <joseph@codesourcery.com>
19550 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
19552 2011-06-28 Richard Henderson <rth@redhat.com>
19554 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
19555 all code and arguments that handled pushes. Update all callers.
19557 2011-06-28 Richard Henderson <rth@redhat.com>
19559 * config/arm/arm.c (arm_output_function_prologue): Don't call
19560 thumb1_output_function_prologue.
19561 (arm_expand_prologue): Avoid dead store.
19562 (number_of_first_bit_set): Use ctz_hwi.
19563 (thumb1_emit_multi_reg_push): New.
19564 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
19565 to emit the entire prologue as rtl.
19566 (thumb1_output_interwork): Split out from
19567 thumb1_output_function_prologue.
19568 (thumb1_output_function_prologue): Remove.
19569 (arm_attr_length_push_multi): Handle thumb1.
19570 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
19571 (prologue_thumb1_interwork): New.
19572 (*push_multi): Allow thumb1; use push_mult_memory_operand.
19573 * config/arm/predicates.md (push_mult_memory_operand): New.
19575 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
19577 * config/sparc/sync.md (*stbar): Delete.
19578 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
19580 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
19582 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
19584 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19586 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
19587 (TARGET_64BIT_DEFAULT): Define.
19588 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
19590 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
19592 2011-06-28 Joseph Myers <joseph@codesourcery.com>
19594 * common.opt (in_lto_p): New Variable entry.
19595 * flags.h (in_lto_p): Move to common.opt.
19596 * gcc.c: Include params.h.
19597 (set_option_handlers): Also use common_handle_option and
19598 target_handle_option.
19599 (main): Call global_init_params, finish_params and init_options_struct.
19600 * opts.c (debug_type_names): Move from toplev.c.
19601 (print_filtered_help): Access quiet_flag through opts pointer.
19602 (common_handle_option): Return early in the driver for some options.
19603 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
19605 * toplev.c (in_lto_p): Move to common.opt.
19606 (debug_type_names): Move to opts.c.
19607 * Makefile.in (OBJS): Remove opts.o.
19608 (OBJS-libcommon-target): Add opts.o.
19609 (gcc.o): Update dependencies.
19611 2011-06-28 Kai Tietz <ktietz@redhat.com>
19613 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
19615 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19617 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
19618 with '=' constraint modifier.
19619 (*divdf3_vfp): Likewise.
19620 ("*mulsf3_vfp"): Likewise.
19621 ("*muldf3_vfp"): Likewise.
19622 ("*mulsf3negsf_vfp"): Likewise.
19623 ("*muldf3negdf_vfp"): Likewise.
19625 2011-06-28 Nick Clifton <nickc@redhat.com>
19627 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
19628 relaxation when performing an incremental link.
19630 2011-06-28 Kai Tietz <ktietz@redhat.com>
19632 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
19633 within BB from last to first.
19635 2011-06-28 Joseph Myers <joseph@codesourcery.com>
19637 * genattr-common.c: New. Based on genattr.c.
19638 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
19639 (MOSTLYCLEANFILES): Add insn-attr-common.h.
19640 (opts.o): Update dependencies.
19641 (.PRECIOUS): Add insn-attr-common.h.
19642 (simple_rtl_generated_h): Add insn-attr-common.h.
19643 (build/genattr-common.o): New.
19644 (genprogrtl): Add attr-common.
19645 * genattr.c (main): Include insn-attr-common.h. Don't generate
19646 definitions of DELAY_SLOTS or INSN_SCHEDULING.
19647 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
19649 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
19651 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
19652 avr-*-* and avr-*-rtems* targets.
19654 * config/avr/elf.h: New file.
19655 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
19656 (TARGET_ASM_SELECT_SECTION): Define.
19657 (INIT_SECTION_ASM_OP): Undefine.
19658 (FINI_SECTION_ASM_OP): Undefine.
19659 (READONLY_DATA_SECTION_ASM_OP): Undefine.
19660 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
19661 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
19662 * config/avr/avr.h:
19663 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
19664 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
19665 (MAX_OFILE_ALIGNMENT): Move to elf.h.
19666 (STRING_LIMIT): Move to elf.h.
19667 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
19668 (ASM_DECLARE_OBJECT_NAME): Remove.
19670 (ASM_OUTPUT_SKIP): Remove.
19671 (DWARF2_DEBUGGING_INFO): Remove.
19672 (OBJECT_FORMAT_ELF): Remove.
19673 (USER_LABEL_PREFIX): Remove.
19674 (ASM_OUTPUT_EXTERNAL): Remove.
19675 (ASM_OUTPUT_ASCII): Remove.
19676 (TYPE_ASM_OP): Remove.
19677 (SIZE_ASM_OP): Remove.
19678 (WEAK_ASM_OP): Remove.
19679 (STRING_ASM_OP): Remove.
19680 (SET_ASM_OP): Remove.
19681 (ASM_WEAKEN_LABEL): Remove.
19682 (TYPE_OPERAND_FMT): Remove.
19683 (ASM_DECLARE_FUNCTION_SIZE): Remove.
19684 (ASM_FINISH_DECLARE_OBJECT): Remove.
19685 (NO_DOLLAR_IN_LABEL): Remove.
19686 (ASM_GENERATE_INTERNAL_LABEL): Remove.
19687 (ASM_OUTPUT_CASE_LABEL): Remove.
19688 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
19689 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
19690 (gas_output_ascii): Remove.
19691 (gas_output_limited_string): Remove.
19692 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
19693 * config/avr/avr-protos.h
19694 (gas_output_ascii): Remove prototye.
19695 (gas_output_limited_string): Remove prototype.
19697 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
19700 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
19703 2011-06-27 Jan Hubicka <jh@suse.cz>
19705 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
19706 node instead of references in node.
19708 2011-06-27 Richard Henderson <rth@redhat.com>
19710 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
19711 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
19714 2011-06-27 Jakub Jelinek <jakub@redhat.com>
19716 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
19718 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
19719 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
19720 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
19721 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
19722 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
19723 (evaluate_stmt, execute_fold_all_builtins): Handle
19724 BUILT_IN_ASSUME_ALIGNED.
19725 * tree-ssa-dce.c (propagate_necessity): Likewise.
19726 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19727 call_may_clobber_ref_p_1): Likewise.
19728 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
19729 (expand_builtin_assume_aligned): New function.
19730 * doc/extend.texi (__builtin_assume_aligned): Document.
19733 * cselib.c (promote_debug_loc): If cselib_preserve_constants
19734 and l has two DEBUG_INSN owned locs instead of just one, adjust
19735 the second location's setting_insn too.
19737 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19739 PR libmudflap/38738
19740 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
19742 2011-06-27 Nick Clifton <nickc@redhat.com>
19744 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
19745 bit position of highest bit set into a count of the high zero bits.
19747 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19749 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
19751 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19754 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
19757 2011-06-27 Richard Guenther <rguenther@suse.de>
19759 PR tree-optimization/49394
19760 * passes.c (execute_one_pass): Restore current_pass after
19761 applying IPA transforms.
19763 2011-06-27 Kai Tietz <ktietz@redhat.com>
19765 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
19766 out of type precision after operation.
19767 (find_bswap): Take for limit value the integer auto-promotion
19770 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19772 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
19773 forward scan as well.
19775 2011-06-27 Tristan Gingold <gingold@adacore.com>
19778 * config/vms/vms-protos.h: New file.
19779 * config/vms/vms-crtlmap.map: New file.
19780 * config/vms/vms.c: New file.
19781 * config/vms/make-crtlmap.awk: New file.
19782 * config/vms/vms-crtl.h: File removed.
19783 * config/vms/vms-crtl-64.h: File removed.
19784 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
19785 * config/alpha/vms64.h: Do not include vms-crtl-64.h
19786 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
19787 clear some builtins on VMS. Calls vms_patch_builtins.
19788 (avms_asm_output_external): Remove.
19789 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
19790 (struct crtl_name_spec): Remove
19791 (DO_CTRL_NAMES): Remove.
19792 * config/ia64/vms.h (struct crtl_name_spec): Remove
19793 (DO_CTRL_NAMES): Remove.
19794 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
19795 clear some builtins on VMS. Calls vms_patch_builtins.
19796 (ia64_asm_output_external): Remove DO_CRTL_NAME.
19797 * config/ia64/vms64.h: Do not include vms-crtl-64.h
19798 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
19800 2011-06-27 Tristan Gingold <gingold@adacore.com>
19802 * config/alpha/alpha.c (alpha_end_function): Always generate .end
19805 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19807 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
19808 the function receives nonlocal gotos.
19810 2011-06-27 Richard Guenther <rguenther@suse.de>
19812 PR tree-optimization/49536
19813 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19814 For non-scalar inner types use a scalar type according to
19815 the scalar inner mode.
19817 2011-06-27 Richard Guenther <rguenther@suse.de>
19819 PR tree-optimization/49365
19820 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
19822 2011-06-27 Richard Guenther <rguenther@suse.de>
19824 PR tree-optimization/49169
19825 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
19826 the alignment of function decls.
19828 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
19831 * config/darwin.c (darwin_mergeable_string_section): Place string
19832 constants in '.cstring' rather than '.const' when CF/NSStrings are
19835 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
19837 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
19838 (emit_save_register_window): Likewise.
19839 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
19840 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
19841 Swap back %o7/%i7 in register naming.
19843 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
19846 * config/darwin.c (darwin_override_options): Improve warning when
19847 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
19848 is given with fpie/fPIE.
19849 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
19850 * config/darwin9.h (PIE_SPEC): New.
19852 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
19854 * timevar.c (timevar_print): Increase width for display of timevar
19857 2011-06-24 Jakub Jelinek <jakub@redhat.com>
19860 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
19861 instead of TYPE_CHAIN for chain_next for types.
19863 2011-06-24 Richard Henderson <rth@redhat.com>
19865 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
19866 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
19867 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
19868 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
19869 (sparc_flat_expand_prologue): Emit individual instructions
19870 instead of one of the above.
19872 2011-06-24 Easwaran Raman <eraman@google.com>
19874 PR rtl-optimization/49429
19876 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
19877 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
19878 used to copy y into x.
19879 * calls.c (initialize_argument_information): Mark
19880 an argument addressable if it is passed by invisible reference.
19881 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
19882 if it is passed by reference.
19884 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
19886 PR rtl-optimization/49504
19887 * rtlanal.c (nonzero_bits1): Properly handle addition or
19888 subtraction of a pointer in Pmode if pointers extend unsigned.
19889 (num_sign_bit_copies1): Likewise.
19891 2011-06-24 Martin Jambor <mjambor@suse.cz>
19893 PR tree-optimizations/49516
19894 * tree-sra.c (sra_modify_assign): Choose the safe path for
19895 aggregate copies if we also did scalar replacements.
19897 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19900 * config/arm/predicates.md (add_operator): New.
19901 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
19903 2011-06-24 Andi Kleen <ak@linux.intel.com>
19905 * tree-sra.c (type_internals_preclude_sra_p): Add msg
19906 parameter. Split up ifs and report reason in *msg.
19908 (find_var_candiate): Add msg variable.
19909 Split up ifs and report reason to reject.
19910 (find_param_candidates): Add msg variable.
19911 Pass msg to type_internals_preclude_sra_p.
19913 2011-06-23 Jeff Law <law@redhat.com>
19915 PR middle-end/48770
19916 * reload.h (reload): Change to return a bool.
19917 * ira.c (ira): If requested by reload, run a fast DCE pass after
19918 reload has completed. Fix comment typo.
19919 * reload1.c (need_dce): New file scoped static.
19920 (reload): Set reload_completed here. Return whether or not a DCE
19921 pass after reload is needed.
19922 (delete_dead_insn): Set need_dce as needed.
19924 PR middle-end/49465
19925 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
19926 to detect threading through joiner block. If there was already
19927 an edge to the new target, then do not change the PHI nodes.
19929 2011-06-23 Jakub Jelinek <jakub@redhat.com>
19931 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
19932 get_pointer_alignment to see if base isn't sufficiently aligned.
19934 2011-06-23 Jan Hubicka <jh@suse.cz>
19936 PR tree-optimize/49373
19937 * tree-pass.h (all_late_ipa_passes): Declare.
19938 * cgraphunit.c (init_lowered_empty_function): Fix properties.
19939 (cgraph_optimize): Execute late passes; remove unreachable funcions
19940 after materialization.
19941 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
19943 * passes.c (all_late_ipa_passes): Declare.
19944 (dump_passes, register_pass): Handle late ipa passes.
19945 (init_optimization_passes): Move ipa_pta to late passes; schedule
19946 fixup_cfg at beggining of all_passes.
19947 (apply_ipa_transforms): New function.
19948 (execute_one_pass): When doing simple ipa pass, apply all transforms.
19950 2011-06-23 Joseph Myers <joseph@codesourcery.com>
19952 * params.c: Include common/common-target.h. Don't include tm.h.
19953 (lang_independent_params): Move from toplev.c.
19954 (global_init_params): New.
19955 * params.h (global_init_params): Declare.
19956 * target.def (default_params): Move to common-target.def.
19957 * toplev.c (lang_independent_options): Remove.
19958 (lang_independent_params): Move to params.c.
19959 (general_init): Use global_init_params.
19960 * common/common-target.def (option_default_params): Move from
19962 * common/config/ia64/ia64-common.c: Include params.h.
19963 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19965 * common/config/rs6000/rs6000-common.c: Include params.h.
19966 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19968 * common/config/sh/sh-common.c: Include params.h.
19969 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19971 * common/config/spu/spu-common.c: Include params.h.
19972 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19974 * config/ia64/ia64.c (ia64_option_default_params,
19975 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
19976 * config/rs6000/rs6000.c (rs6000_option_default_params,
19977 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
19978 * config/sh/sh.c (sh_option_default_params,
19979 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
19980 * config/spu/spu.c (spu_option_default_params,
19981 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
19982 * Makefile.in (OBJS): Remove params.o.
19983 (OBJS-libcommon-target): Add params.o.
19984 (params.o, $(common_out_object_file)): Update dependencies.
19985 * doc/tm.texi: Regenerate.
19987 2011-06-23 Alan Modra <amodra@gmail.com>
19990 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
19991 invocation for 2011-06-09 changes.
19993 2011-06-22 Jakub Jelinek <jakub@redhat.com>
19996 * omp-low.c (expand_omp_for_static_nochunk): Only
19997 use n ceil/ nthreads size for the first n % nthreads threads in the
19998 team instead of all threads except for the last few ones which
19999 get less work or none at all.
20002 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
20005 2011-06-22 Richard Guenther <rguenther@suse.de>
20007 PR tree-optimization/49493
20008 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
20009 Refer to the alias target of variables.
20010 (associate_varinfo_to_alias_1): Remove.
20011 (ipa_pta_execute): Do not associate aliases with anything.
20012 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
20013 (cgraph_function_node): Likewise.
20014 (cgraph_function_or_thunk_node): Likewise.
20015 (varpool_variable_node): Likewise.
20017 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
20019 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
20020 * config.gcc (arm*-*-linux*): Default to gnu tls.
20021 (arm*-*-*): Add --with-tls option.
20022 (all_defaults): Add 'tls'.
20024 2011-06-22 Richard Henderson <rth@redhat.com>
20026 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
20027 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
20028 (dwarf2out_frame_debug_cfa_window_save): Rename from
20029 dwarf2out_window_save; make static.
20030 * tree.h (dwarf2out_window_save): Don't declare.
20032 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
20033 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20034 (emit_save_register_window): Rename from gen_save_register_window;
20035 emit the insn and add REG_CFA_* notes.
20036 (sparc_expand_prologue): Update to match.
20037 * config/sparc/sparc.md (save_register_window_1): Simplify from
20038 save_register_window<P:mode>.
20040 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
20043 * config/i386/i386.md (*lea_general_2): Always allow SImode.
20044 (*lea_general_2_zext): Likewise.
20045 (imul to lea peepholes): Use const359_operand and check
20046 TARGET_PARTIAL_REG_STALL.
20048 * config/i386/predicates.md (const359_operand): New.
20050 2011-06-22 Michael Matz <matz@suse.de>
20052 * cgraphunit.c (assemble_thunk): Use correct return type.
20054 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
20055 Dmitry Melnik <dm@ispras.ru>
20057 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
20058 (neon_output_shift_immediate): Ditto.
20059 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
20061 (neon_output_shift_immediate): Ditto.
20062 * config/arm/neon.md (vashl<mode>3): Modified constraint.
20063 (vashr<mode>3_imm): New insn pattern.
20064 (vlshr<mode>3_imm): Ditto.
20065 (vashr<mode>3): Modified constraint.
20066 (vlshr<mode>3): Ditto.
20067 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
20069 (imm_for_neon_rshift_operand): Ditto.
20070 (imm_lshift_or_reg_neon): Ditto.
20071 (imm_rshift_or_reg_neon): Ditto.
20073 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
20075 2011-06-22 Jakub Jelinek <jakub@redhat.com>
20077 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
20078 builtin calls even if likelyvalue is not CONSTANT.
20079 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
20080 Return get_value_for_expr of first operand
20081 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
20082 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20083 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
20084 their non-checking counterparts.
20085 (call_may_clobber_ref_p_1): Likewise.
20086 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
20087 like their non-checking counterparts.
20088 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20089 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
20090 like their non-checking counterparts.
20091 (find_func_clobbers): Likewise.
20092 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
20093 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
20095 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
20096 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
20097 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
20098 of base type reference as argument.
20099 (resolve_addr_in_expr): Likewise. Fix keep computation.
20100 (convert_descriptor_to_signed): Renamed to...
20101 (convert_descriptor_to_mode): ... this. For wider types convert to
20102 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
20103 (typed_binop): New function.
20104 (scompare_loc_descriptor, ucompare_loc_descriptor,
20105 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
20106 default to unsigned type instead of signed.
20109 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
20110 (gimple_build_debug_source_bind_stat): New prototype.
20111 (gimple_build_debug_source_bind): Define.
20112 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
20113 gimple_debug_source_bind_get_value,
20114 gimple_debug_source_bind_get_value_ptr,
20115 gimple_debug_source_bind_set_var,
20116 gimple_debug_source_bind_set_value): New inlines.
20117 * gimple.c (gimple_build_debug_source_bind_stat): New function.
20118 * gimple-pretty-print.c (dump_gimple_debug): Handle
20119 GIMPLE_DEBUG_SOURCE_BIND.
20120 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
20121 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20122 * tree-parloops.c (eliminate_local_variables,
20123 separate_decls_in_region): Likewise.
20124 (separate_decls_in_region_debug): Renamed from
20125 separate_decls_in_region_debug_bind. Handle
20126 gimple_debug_source_bind_p.
20127 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
20129 (DECL_HAS_DEBUG_ARGS_P): Define.
20130 (struct tree_function_decl): Add has_debug_args_flag field.
20131 * tree.c (debug_args_for_decl): New variable.
20132 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
20133 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
20134 (rewrite_debug_stmt_uses): New function.
20135 (rewrite_stmt): Use it to rewrite debug stmt uses.
20136 * rtl.def (DEBUG_PARAMETER_REF): New.
20137 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
20138 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
20139 DEBUG_PARAMETER_REF.
20140 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
20141 * print-rtl.c (print_rtx): Likewise.
20142 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
20143 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
20144 debug stmts in the first bb.
20145 * tree-inline.c (remap_ssa_name): If remapping default def
20146 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
20147 a source bind debug stmt.
20148 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
20149 (maybe_move_debug_stmts_to_successors): Likewise.
20150 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
20151 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
20152 debug args vector from old_decl to new_decl.
20153 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
20154 or modified parameters, add debug bind stmts before call
20155 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
20156 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
20157 on DECL_DEBUG_EXPRs from debug args vector.
20158 (expand_debug_source_expr): New function.
20159 (expand_debug_locations): Use it for source bind insns.
20160 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
20161 * var-tracking.c (prepare_call_arguments): Add debug args
20162 to call_arguments if any.
20163 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
20164 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
20165 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
20166 (get_ref_die_offset, parameter_ref_descriptor): New functions.
20167 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
20168 (gen_subprogram_die): Handle parameters identified by
20169 DEBUG_PARAMETER_REF.
20171 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
20173 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
20174 * doc/install.texi (Configuration): Document --with-tls.
20175 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
20176 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
20177 (arm_tls_descseq_addr): New.
20178 (legitimize_tls_address): Add tlsdesc support.
20179 (arm_cannot_copy_insn_p): Check for tlscall.
20180 (arm_emit_tls_decoration): Likewise.
20181 * config/arm/arm.h (TARGET_GNU2_TLS): New.
20182 (OPTION_DEFAULT_SPECS): Add with-tls support.
20183 * config/arm/arm.md (R1_REGNUM): Define.
20185 * config/arm/arm.opt (tls_type): New enumeration type and values.
20186 (mtls-dialect): New switch.
20187 * config/arm/arm-opts.h (enum tls_type): New.
20189 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
20191 * attribs.c (register_attribute): Added assert to check that all
20192 attribute specs are registered with a name that is not empty and
20193 does not start with '_'.
20194 (decl_attributes): Avoid the lookup of the "naked" attribute spec
20195 if the function has no attributes.
20196 * tree.c (is_attribute_with_length_p): Removed.
20197 (is_attribute_p): Removed.
20198 (private_is_attribute_p): New.
20199 (private_lookup_attribute): New.
20200 (lookup_attribute): Removed.
20201 (lookup_ident_attribute): New.
20202 (remove_attribute): Require the first argument to be in the form
20203 'text', not '__text__'. Updated asserts.
20204 (merge_attributes): Use lookup_ident_attributes instead of
20206 (merge_dllimport_decl_attributes): Use remove_attribute.
20207 (attribute_list_contained): Likewise.
20208 (attribute_list_equal): Immediately return 1 if the arguments are
20209 identical pointers.
20210 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
20211 'int'. Require the first argument to be in the form 'text', not
20212 '__text__'. Require the second argument to be an identifier.
20213 (lookup_attribute): Made inline. Require the first argument to be
20214 in the form 'text', not '__text__'.
20215 (private_is_attribute_p, private_lookup_attribute): New.
20218 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
20220 * builtins.c: Add sync_ or SYNC__ to builtin names.
20221 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
20222 * omp-low.c: Add sync_ or SYNC__ to builtin names.
20224 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
20227 * config/avr/avr.md (extzv): New expander.
20228 (*extzv): New insn.
20229 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
20230 * config/avr/constraints.md (C04): New constraint.
20231 * doc/md.texi (Machine Constraints): Document it.
20233 2011-06-21 Jakub Jelinek <jakub@redhat.com>
20235 PR middle-end/49489
20236 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
20237 unsignedp argument instead of 1 for clrsb_optab.
20238 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
20239 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
20240 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
20241 * optabs.c (widen_leading): Call widen_operand and expand_unop
20242 with 0 as unsignedp argument instead of 1 for clrsb_optab.
20243 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
20245 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
20247 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
20249 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
20251 * gensupport.c (add_define_attr): New static function.
20252 (is_predicable): Allow multi-alternative lists for the "predicable"
20254 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
20255 (process_one_cond_exec): Call alter_attrs_for_insn.
20256 * doc/md.texi (Defining Attributes): Mention some standard names.
20257 (Conditional Execution): Update documentation for "predicable".
20259 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
20260 __builtin_clrsbll): Document.
20261 * doc/rtl.texi (clrsb): New entry.
20262 * optabs.c (widen_leading): Renamed from widen_clz. New argument
20263 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
20264 (expand_unop): Handle clrsb_optab.
20265 (init_optabs): Initialize it.
20266 * optabs.h (enum optab_index): New entry OTI_clrsb.
20267 (clrsb_optab): Define.
20268 * genopinit.c (optabs): Add an entry for it.
20269 * builtins.c (expand_builtin): Handle clrsb builtin functions.
20270 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
20271 BUILT_IN_CLRSBLL): New.
20272 * rtl.def (CLRSB): New code.
20273 * dwarf2out.c (mem_loc_descriptor): Handle it.
20274 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20275 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
20277 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
20278 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
20279 (__ctzDI2): Move declaration.
20280 * config/bfin/bfin.md (clrsbsi2): New expander.
20281 (signbitssi2): Use the CLRSB rtx.
20282 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
20283 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
20285 2011-06-21 Richard Guenther <rguenther@suse.de>
20287 * ipa-inline-transform.c (inline_transform): Fix previous change.
20289 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
20291 PR tree-optimization/49478
20292 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
20293 with constant operand.
20295 2011-06-21 Richard Guenther <rguenther@suse.de>
20297 * ipa-inline-transform.c (inline_transform): Fix typo.
20299 2011-06-21 Richard Guenther <rguenther@suse.de>
20301 PR tree-optimization/49483
20302 * tree-vect-stmts.c (vectorizable_assignment): Also handle
20303 VIEW_CONVERT_EXPR conversions.
20305 2011-06-21 Joseph Myers <joseph@codesourcery.com>
20307 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
20308 * config/avr/avr-tables.opt: New file (generated).
20309 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
20310 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
20312 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
20313 (avr_option_override): Don't process -mmcu= argument here. Set
20314 avr_current_device using avr_mcu_index.
20315 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
20316 * config/avr/avr.opt (mmcu=): Use Enum.
20317 * config/avr/t-avr (avr-devices.o): Update dependencies.
20318 ($(srcdir)/config/avr/avr-tables.opt): New.
20319 * target.def (help): Remove.
20320 * doc/tm.texi.in (TARGET_HELP): Remove.
20321 * doc/tm.texi: Regenerate.
20322 * opts.c: Don't include target.h.
20323 (common_handle_option): Don't call targetm.help.
20324 * system.h (TARGET_HELP): Poison.
20325 * Makefile.in (opts.o): Update dependencies.
20327 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20329 * config/usegld.h: New file.
20330 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
20331 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
20332 (LIB_SPEC): Likewise. Search /lib.
20333 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
20334 (RDYNAMIC_SPEC): Handle GNU ld.
20335 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
20337 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
20338 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
20339 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
20340 (STACK_CHECK_STATIC_BUILTIN): Define.
20341 * config/sol2.opt (compat-bsd): Remove.
20342 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
20343 * config/sol2-bi.h: New file.
20344 * config/sol2-gld.h: Remove.
20345 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
20346 (NO_DBX_BNSYM_ENSYM): Remove.
20347 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
20348 (STACK_CHECK_STATIC_BUILTIN): Remove.
20349 Test USE_GLD instead of TARGET_GNU_LD.
20350 * config/i386/sol2-10.h: Rename to ...
20351 * config/i386/sol2-bi.h .. this.
20352 (SUBTARGET_EXTRA_SPECS): Redefine.
20353 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
20354 (MULTILIB_DEFAULTS): Remove.
20355 (DEFAULT_ARCH32_P): Define.
20356 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
20357 (ARCH64_SUBDIR): Define.
20358 Test USE_GLD instead of TARGET_GNU_LD.
20359 (I386_EMULATION): Rename to ...
20360 (ARCH32_EMULATION): ... this.
20361 (X86_64_EMULATION): Rename to ...
20362 (ARCH64_EMULATION): ... this.
20363 (TARGET_LD_EMULATION): Remove.
20364 (LINK_ARCH_SPEC): Remove.
20365 * config/i386/sol2-gas.h: Remove.
20366 * config/i386/t-sol2-10: Rename to ...
20367 * config/i386/t-sol2-64: ... this.
20368 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
20369 (AS_SPARC64_FLAG): Define.
20370 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
20371 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
20372 depending on TARGET_CPU_DEFAULT.
20373 (CPP_CPU_SPEC): Redefine.
20374 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
20375 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
20376 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
20377 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
20378 ASM_ARCH_DEFAULT_SPEC): Redefine.
20379 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20380 LINK_ARCH_DEFAULT_SPEC.
20381 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
20382 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
20383 (ARCH64_SUBDIR): Define.
20384 (LINK_ARCH64_SPEC): Redefine.
20385 (CC1_SPEC): Redefine.
20386 (OPTION_DEFAULT_SPECS): Redefine.
20387 (MULTILIB_DEFAULTS): Define.
20388 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
20389 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
20390 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
20391 (NO_DBX_BNSYM_ENSYM): Remove.
20392 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
20393 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
20394 (TARGET_ASM_NAMED_SECTION): Likewise.
20395 (STACK_CHECK_STATIC_BUILTIN): Remove.
20396 * config/sparc/sol2-bi.h: Remove.
20397 * config/sparc/sol2-gas-bi.h: Remove.
20398 * config/sparc/sol2-gas.h: Remove.
20399 * config/sparc/sol2-gld-bi.h: Remove.
20400 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
20402 (*-*-solaris2*): ... here.
20404 2011-06-21 Christian Bruel <christian.bruel@st.com>
20407 * ipa-inline.c (can_inline_edge_p): Check
20408 !DECL_DISREGARD_INLINE_LIMITS.
20410 2011-06-21 Christian Bruel <christian.bruel@st.com>
20412 PR middle-end/49139
20413 * cgraphunit.c (process_function_and_variable_attributes): warn when
20414 always_inline functions that are not inline.
20415 * ipa-inline-transform.c (inline_transform): Always call
20417 * tree-inline.c (tree_inlinable_function_p): Use error instead
20419 (expand_call_inline): Likewise.
20421 2011-06-21 Jakub Jelinek <jakub@redhat.com>
20423 * Makefile.in (dg_target_exps): Set.
20424 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
20425 instead of 7, try to divide it more evenly.
20427 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
20430 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
20431 (avx256_split_unaligned_store): New definition.
20432 (ix86_option_override_internal): Enable avx256 unaligned load/store
20433 splitting only when avx256_split_unaligned_load/store is set.
20435 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
20437 * regrename.c (scan_rtx_reg): Handle the case where we write to an
20438 open chain in a smaller mode without failing the entire block.
20440 2011-06-21 Alan Modra <amodra@gmail.com>
20442 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
20443 CONST high part large-toc address.
20444 (rs6000_tls_referenced_p): Make static.
20445 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
20447 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20450 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
20451 one of the operands is a register.
20453 2011-06-20 Kai Tietz <ktietz@redhat.com>
20455 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
20456 operations in combination with binary and.
20458 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
20460 * regrename.c (do_replace): Don't update notes.
20462 2011-06-20 Alan Modra <amodra@gmail.com>
20464 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
20465 of toc-relative address in CONST.
20466 (rs6000_delegitimize_address): Recognize changed address.
20467 (rs6000_legitimize_reload_address): Likewise.
20468 (rs6000_emit_move): Don't force these constants to memory.
20469 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
20470 toc-relative address in CONST.
20471 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
20472 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
20474 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
20476 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
20477 (count_trailing_zeros): Likewise.
20479 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
20482 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
20483 .init_array can be used with .ctors on targets.
20484 * configure: Regenerated.
20486 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
20488 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
20489 if the element type is volatile.
20491 2011-06-18 Jan Hubicka <jh@suse.cz>
20493 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
20494 extra name aliases.
20495 (lto_symtab_resolve_can_prevail_p): Likewise.
20496 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
20497 * cgraphbuild.c (record_reference): Remove extra body alias code.
20498 (mark_load): Likewise.
20499 (mark_store): Likewise.
20500 * cgraph.h (varpool_node): Remove extra_name filed;
20501 add alias_of and extraname_alias.
20502 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
20503 (varpool_alias_aliased_node): New inline function.
20504 (varpool_variable_node): New function.
20505 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
20506 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
20507 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
20508 (input_varpool_node): Likewise.
20509 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
20510 (varpool_externally_visible_p): Remove extra body alias code.
20511 (function_and_variable_visibility): Likewise.
20512 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
20513 (ipa_pta_execute): Use it.
20514 * varpool.c (varpool_remove_node): Remove extra name alias code.
20515 (varpool_mark_needed_node): Likewise.
20516 (varpool_analyze_pending_decls): Analyze aliases.
20517 (assemble_aliases): New functoin.
20518 (varpool_assemble_decl): Use it.
20519 (varpool_create_variable_alias): New function.
20520 (varpool_extra_name_alias): Rewrite.
20521 (varpool_for_node_and_aliases): New function.
20523 2011-06-18 Jakub Jelinek <jakub@redhat.com>
20526 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
20527 last_arg_constant and last argument doesn't match its predicate,
20528 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
20529 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
20530 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
20531 spelling of error message.
20532 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
20533 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
20534 const_0_to_255_operand instead of const_int_operand.
20537 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20539 * config/i386/sse.md (blendbits): Remove mode attribute.
20540 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
20541 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
20542 Check integer value of operand 3 in insn constraint.
20544 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
20546 PR rtl-optimization/48542
20547 * reload.c (find_equiv_reg): Stop looking when finding a
20549 * reload1.c (reload_as_needed): Invalidate all reload
20550 registers when crossing a setjmp-type call.
20552 2011-06-16 Jeff Law <law@redhat.com>
20554 * tree-ssa-threadupdate.c (struct redirection_data): New field
20556 (THREAD_TARGET2): Define.
20557 (redirection_data_eq): Also check that the intermediate edge is equal.
20558 (lookup_redirection_data): Drop useless argument. Extract the
20559 outgoing_edge and intermediate edge from E. Callers updated.
20560 (copy_phi_args, update_destination_phis): New functions.
20561 (fix_duplicate_block_edges): Likewise.
20562 (create_edge_and_update_destination_phis): Duplicate all the edges
20563 hung off e->aux. Use copy_phi_args.
20564 (create_duplicates): Use fix_duplicate_block_edges.
20565 (fixup_template_block): Likewise.
20566 (redirect_edges): If necessary, redirect the joiner block's incoming
20567 edge to the duplicate of the joiner block.
20568 (thread_block): Don't muck up loops when threading through a joiner
20570 (thread_through_loop_header): Handle threading through a joiner block.
20571 (mark_threaded_blocks, register_jump_thread): Likewise.
20572 * tree-flow.h (register_jump_thread): Add new argument. Callers
20574 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
20575 (thread_across_edge): Handle threading through a joiner block.
20577 2011-06-16 Martin Jambor <mjambor@suse.cz>
20579 PR tree-optimization/49343
20580 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
20581 calculate offset, provide 2nd operand for the new COMPONENT_REF.
20583 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
20585 * config/darwin-protos.h (machopic_select_rtx_section): Move to
20586 inside RTX_CODE ifdef.
20588 2011-06-16 Tom de Vries <tom@codesourcery.com>
20591 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
20592 Disallow NULL pointer for pointer arithmetic.
20594 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20598 2011-06-10 Wei Guozhi <carrot@google.com>
20601 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
20602 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
20603 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
20605 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
20607 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
20608 (arm_legitimate_ldrd_p): New prototype.
20609 (arm_output_ldrd): New prototype.
20610 * config/arm/arm.c (arm_check_ldrd_operands): New function.
20611 (arm_legitimate_ldrd_p): New function.
20612 (arm_output_ldrd): New function.
20614 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
20616 PR middle-end/46500
20617 * doc/tm.texi.in: Update Copyright date.
20618 * doc/tm.texi: Regenerate.
20619 * targhooks.c (default_setup_incoming_varargs): Replace
20620 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20621 (default_pretend_outgoing_varargs_named): Likewise.
20622 (hook_pass_by_reference_must_pass_in_stack): Likewise.
20623 (hook_callee_copies_named): Likewise.
20624 (default_function_arg_advance): Likewise.
20625 (default_function_arg): Likewise.
20626 (default_function_incoming_arg): Likewise.
20627 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
20628 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
20629 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
20630 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
20631 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
20632 * targhooks.h (default_setup_incoming_varargs): Likewise.
20633 (default_pretend_outgoing_varargs_named): Likewise.
20634 (hook_pass_by_reference_must_pass_in_stack): Likewise.
20635 (hook_callee_copies_named): Likewise.
20636 (default_function_arg_advance): Likewise.
20637 (default_function_arg): Likewise.
20638 (default_function_incoming_arg): Likewise.
20639 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
20640 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
20641 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
20642 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
20643 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
20644 * target.def (pass_by_reference): Likewise.
20645 (setup_incoming_varargs, strict_argument_naming): Likewise.
20646 (pretend_outgoing_varargs_named, callee_copies): Likewise.
20647 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
20648 (function_incoming_arg): Likewise.
20649 * target.h: Don't include "tm.h" .
20650 (cumulative_args_t): New typedef.
20651 [GCC_TM_H] (get_cumulative_args): New static inline function.
20652 [GCC_TM_H] (pack_cumulative_args): Likewise.
20653 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
20654 argument type with cumulative_args_t.
20655 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
20656 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
20657 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
20658 (frv_arg_partial_bytes, frv_function_arg): Likewise.
20659 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
20660 (frv_function_arg_1): Likewise.
20661 * config/s390/s390.c (s390_pass_by_reference): Likewise.
20662 (s390_function_arg_advance, s390_function_arg): Likewise.
20663 * config/m32c/m32c.c (m32c_function_arg): Likewise.
20664 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
20665 (m32c_strict_argument_naming): Likewise.
20666 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
20667 (spu_function_arg_advance): Likewise.
20668 (spu_setup_incoming_varargs): Likewise. Make static.
20669 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
20671 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
20672 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20673 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
20674 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
20675 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
20676 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
20677 (mep_pass_by_reference, mep_function_arg): Likewise.
20678 (mep_function_arg_advance): Likewise.
20679 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
20680 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
20681 (m32r_function_arg, m32r_function_arg_advance): Likewise.
20682 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
20683 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
20684 (ix86_function_arg, ix86_pass_by_reference): Likewise.
20685 (ix86_setup_incoming_varargs): Likewise.
20686 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
20687 (sh_strict_argument_naming): Likewise.
20688 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
20689 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
20690 (sh_function_arg_advance, sh_function_arg): Likewise.
20691 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
20692 (pdp11_function_arg_advance): Likewise.
20693 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
20695 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
20696 * config/avr/avr.c (avr_function_arg): Likewise.
20697 (avr_function_arg_advance): Likewise.
20698 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
20699 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
20700 (xtensa_function_arg_1): Likewise.
20701 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
20703 (xstormy16_function_arg): Likewise.
20704 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
20705 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
20706 (fr30_function_arg_advance): Likewise.
20707 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
20708 (lm32_function_arg, lm32_function_arg_advance): Likewise.
20709 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
20710 (moxie_function_arg, moxie_function_arg_advance): Likewise.
20711 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
20712 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
20713 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
20714 (cris_function_arg, cris_function_incoming_arg): Likewise.
20715 (cris_function_arg_advance, cris_function_arg_1): Likewise.
20716 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
20717 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
20718 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
20719 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
20720 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
20721 (mn10300_arg_partial_bytes): Likewise.
20722 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
20723 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
20724 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
20725 (ia64_function_arg_1): Likewise.
20726 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
20727 (m68k_function_arg): Likewise.
20728 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
20729 (rs6000_function_arg, setup_incoming_varargs): Likewise.
20730 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
20731 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
20732 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
20733 (picochip_arg_advance): Likewise.
20734 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
20735 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
20736 (mcore_function_arg_advance): Likewise.
20737 * config/score/score.c (score_pass_by_reference): Likewise.
20738 (score_function_arg_advance): Likewise.
20739 (score_arg_partial_bytes): Likewise. Make static.
20740 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
20741 * config/arm/arm.c (arm_arg_partial_bytes): Replace
20742 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20743 (arm_function_arg, arm_function_arg_advance): Likewise.
20744 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
20745 * config/pa/pa.c (pa_pass_by_reference): Likewise.
20746 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
20747 (pa_function_arg): Likewise.
20748 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
20749 (mips_function_arg, mips_function_arg_advance): Likewise.
20750 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
20751 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
20752 * config/vax/vax.c (vax_function_arg): Likewise.
20753 (vax_function_arg_advance): Likewise.
20754 * config/h8300/h8300.c (h8300_function_arg): Likewise.
20755 (h8300_function_arg_advance): Likewise.
20756 * config/v850/v850.c (v850_pass_by_reference): Likewise.
20757 (v850_strict_argument_naming, v850_function_arg): Likewise.
20758 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
20759 (v850_setup_incoming_varargs): Likewise.
20760 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
20761 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
20762 (mmix_function_arg, mmix_pass_by_reference): Likewise.
20763 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
20765 * config/bfin/bfin.c (setup_incoming_varargs): Replace
20766 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20767 (bfin_function_arg_advance, bfin_function_arg): Likewise.
20768 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
20769 * calls.c (emit_call_1): Change type of args_so_far to
20770 cumulative_args_t. Changed all callers.
20771 (initialize_argument_information): Likewise.
20772 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
20773 * dse.c (get_call_args): Likewise.
20774 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
20775 * function.c (pass_by_reference, reference_callee_copied): Likewise.
20776 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
20777 New member args_so_far_v. Changed all users.
20778 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
20779 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20780 * config/mips/mips.c (mips_output_args_xfer): Likewise.
20781 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
20782 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
20783 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20785 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
20786 m32r_pass_by_reference.
20788 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
20790 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
20791 argument to be a VEC of statements.
20792 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
20793 assert that pattern statements have to have their vector type set.
20794 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
20795 Change the first argument to be a VEC of statements. Update
20797 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
20798 (vect_handle_widen_mult_by_const): New function.
20799 (vect_recog_widen_mult_pattern): Change the first argument to be a
20800 VEC of statements. Update documentation. Check that the constant is
20801 INTEGER_CST. Support multiplication by a constant that fits an
20802 intermediate type - call vect_handle_widen_mult_by_const.
20803 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
20804 call. Handle additional pattern statements if necessary.
20806 2011-06-16 Nick Clifton <nickc@redhat.com>
20809 * config.gcc: Set cpu_type to v850 for any V850 architecture.
20810 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
20811 md_file, extra_modes, out_file and extra_options are these are all
20812 deduced from cpu_type.
20814 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
20816 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
20817 truncation mask to 63.
20819 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
20823 * longlong.h: Add AVR support:
20824 (count_leading_zeros): New macro.
20825 (count_trailing_zeros): New macro.
20826 (COUNT_LEADING_ZEROS_0): New macro.
20827 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
20828 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
20829 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
20830 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
20831 (LIB2FUNCS_EXCLUDE): Add _clz.
20832 * config/avr/libgcc.S (XCALL): Move up in file.
20833 (XJMP): New C Macro.
20834 (DEFUN): New asm macro.
20835 (ENDF): New asm macro.
20836 (__ffssi2): New function.
20837 (__ffshi2): New function.
20838 (__loop_ffsqi2): New function.
20839 (__ctzsi2): New function.
20840 (__ctzhi2): New function.
20841 (__clzdi2): New function.
20842 (__clzsi2): New function.
20843 (__clzhi2): New function.
20844 (__paritydi2): New function.
20845 (__paritysi2): New function.
20846 (__parityhi2): New function.
20847 (__parityqi2): New function.
20848 (__popcounthi2): New function.
20849 (__popcountsi2): New function.
20850 (__popcountdi2): New function.
20851 (__popcountqi2): New function.
20852 (__bswapsi2): New function.
20853 (__bswapdi2): New function.
20854 (__ashldi3): New function.
20855 (__ashrdi3): New function.
20856 (__lshrdi3): New function.
20857 Fix suspicous lines.
20859 2011-06-16 Richard Guenther <rguenther@suse.de>
20861 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
20862 the same as x != 0.
20863 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
20865 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
20866 equality compares against zero for the lower bit.
20868 2011-06-16 Jakub Jelinek <jakub@redhat.com>
20870 PR tree-optimization/49419
20871 * tree-vrp.c (execute_vrp): Call init_range_assertions
20872 before estimate_numbers_of_iterations, call
20873 free_number_of_iterations_estimates before calling
20874 remove_range_assertions.
20876 2011-06-16 Revital Eres <revital.eres@linaro.org>
20878 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
20879 (struct partial_schedule): Add rows_length field.
20880 (verify_partial_schedule): Check rows_length.
20881 (ps_insert_empty_row): Handle rows_length.
20882 (create_partial_schedule): Likewise.
20883 (free_partial_schedule): Likewise.
20884 (reset_partial_schedule): Likewise.
20885 (create_ps_insn): Remove rest_count argument.
20886 (remove_node_from_ps): Update rows_length.
20887 (add_node_to_ps): Update rows_length and call create_ps_insn
20888 without passing row_rest_count.
20889 (rotate_partial_schedule): Update rows_length.
20891 2011-06-16 Revital Eres <revital.eres@linaro.org>
20893 * ddg.c (add_intra_loop_mem_dep): New function.
20894 (build_intra_loop_deps): Call it.
20896 2011-06-13 Jeff Law <law@redhat.com>
20898 * df-problems.c (df_lr_local_compute): Manually CSE
20899 PIC_OFFSET_TABLE_REGNUM.
20900 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
20901 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
20903 2011-06-13 Jan Hubicka <jh@suse.cz>
20905 * cgraphunit.c (handle_alias_pairs): New function.
20906 (cgraph_finalize_compilation_unit): Use it.
20907 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
20908 as externally visible.
20910 2011-06-15 Richard Guenther <rguenther@suse.de>
20912 * expr.c (expand_expr_real_2): Reduce all integral types to
20913 bitfield precision.
20914 (expand_expr_real_1): Likewise.
20916 2011-06-15 Martin Jambor <mjambor@suse.cz>
20918 PR tree-optimization/48613
20919 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
20920 ipa_node_params_vector is NULL.
20922 2011-06-15 Jakub Jelinek <jakub@redhat.com>
20925 * dwarf2out.c (dw_loc_list_node): Add force field.
20926 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
20927 location in the list, even if it is modified before first real insn.
20928 (output_loc_list): Emit empty ranges with force flag set.
20929 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
20931 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
20934 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
20935 (fence_to_rewind). Use it to notice when bookkeeping will be placed
20936 above a fence. Update comments.
20937 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
20938 placed just above it. Do not allow NULL place_to_insert.
20940 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
20942 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
20943 (slpeel_tree_peel_loop_to_edge): Don't call
20944 remove_dead_stmts_from_loop.
20945 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20946 remove irrelevant pattern statements. For irrelevant statements
20947 check if it is the last statement of a detected pattern, use
20948 corresponding pattern statement instead.
20949 (destroy_loop_vec_info): No need to remove pattern statements,
20950 only free stmt_vec_info.
20951 (vect_transform_loop): For irrelevant statements check if it is
20952 the last statement of a detected pattern, use corresponding
20953 pattern statement instead.
20954 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
20955 pattern statements. Set basic block for the new statement.
20956 (vect_pattern_recog): Update documentation.
20957 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
20958 operands of pattern statements.
20959 (vectorizable_call): Fix printing. In case of a pattern statement
20960 use the lhs of the original statement when creating a dummy
20961 statement to replace the original call.
20962 (vect_analyze_stmt): For irrelevant statements check if it is
20963 the last statement of a detected pattern, use corresponding
20964 pattern statement instead.
20965 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
20966 statements use gsi of the original statement.
20968 2011-06-14 Joseph Myers <joseph@codesourcery.com>
20970 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
20971 common/common-target-def.h.
20972 * target.def (default_target_flags, handle_option,
20973 supports_split_stack, optimization_table, init_struct,
20974 except_unwind_info, unwind_tables_default, have_named_sections):
20975 Move to common/common-target.def.
20976 * target.h (enum opt_levels, struct default_options): Move to
20977 common/common-target.h.
20978 * targhooks.c (default_except_unwind_info,
20979 dwarf2_except_unwind_info, sjlj_except_unwind_info,
20980 default_target_handle_option, empty_optimization_table): Move to
20981 common/common-targhooks.c.
20982 * targhooks.h (default_except_unwind_info,
20983 dwarf2_except_unwind_info, sjlj_except_unwind_info,
20984 default_target_handle_option, empty_optimization_table): Move to
20985 common/common-targhooks.h.
20986 * common/common-target-def.h: Include common/common-targhooks.h.
20987 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
20989 * common/common-target.def (handle_option, option_init_struct,
20990 option_optimization_table, default_target_flags,
20991 except_unwind_info, supports_split_stack, unwind_tables_default,
20992 have_named_sections): Move from target.def.
20993 (HOOK_PREFIX): Undefine at end of file.
20994 * common/common-target.h: Include input.h.
20995 (enum opt_levels, struct default_options): Move from target.h.
20996 * common/common-targhooks.c, common/common-targhooks.h: New.
20997 * config.gcc (target_has_targetm_common): Default to yes.
20998 (moxie*): Set target_has_targetm_common=no.
20999 (hppa*-*-*): Don't set target_has_targetm_common=yes.
21000 * doc/tm.texi: Regenerate.
21001 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
21002 (C_TARGET_DEF_H): Add common/common-targhooks.h.
21003 (GCC_OBJS): Remove vec.o.
21004 (OBJS): Remove hooks.o and vec.o.
21005 (OBJS-libcommon-target): Add vec.o, hooks.o and
21006 common/common-targhooks.o.
21007 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
21008 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
21009 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
21010 cfglayout.o, $(out_object_file), $(common_out_object_file)):
21011 Update dependencies.
21012 (common/common-targhooks.o): New.
21013 * common/config/default-common.c: Include tm.h. Add FIXME comment.
21014 * common/config/pa/pa-common.c: Include more headers. Take
21015 copyright dates from pa.c.
21016 (pa_option_optimization_table, pa_handle_option,
21017 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
21018 TARGET_HANDLE_OPTION): Move from pa.c.
21019 * common/config/alpha/alpha-common.c,
21020 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
21021 common/config/bfin/bfin-common.c,
21022 common/config/cris/cris-common.c,
21023 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
21024 common/config/h8300/h8300-common.c,
21025 common/config/i386/i386-common.c,
21026 common/config/ia64/ia64-common.c,
21027 common/config/iq2000/iq2000-common.c,
21028 common/config/lm32/lm32-common.c,
21029 common/config/m32c/m32c-common.c,
21030 common/config/m32r/m32r-common.c,
21031 common/config/m68k/m68k-common.c,
21032 common/config/mcore/mcore-common.c,
21033 common/config/mep/mep-common.c,
21034 common/config/microblaze/microblaze-common.c,
21035 common/config/mips/mips-common.c,
21036 common/config/mmix/mmix-common.c,
21037 common/config/mn10300/mn10300-common.c,
21038 common/config/pdp11/pdp11-common.c,
21039 common/config/picochip/picochip-common.c,
21040 common/config/rs6000/rs6000-common.c,
21041 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
21042 common/config/score/score-common.c, common/config/sh/sh-common.c,
21043 common/config/sparc/sparc-common.c,
21044 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
21045 common/config/vax/vax-common.c,
21046 common/config/xstormy16/xstormy16-common.c,
21047 common/config/xtensa/xtensa-common.c: New.
21048 * config/alpha/alpha.c: Include common/common-target.h.
21049 (alpha_option_optimization_table, alpha_handle_option,
21050 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21051 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
21052 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
21053 * config/arm/arm.c (arm_option_optimization_table,
21054 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21055 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
21057 * config/avr/avr.c (avr_option_optimization_table,
21058 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
21060 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
21061 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
21062 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
21063 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
21064 * config/cris/cris.c (cris_option_optimization_table,
21065 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21066 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
21068 * config/fr30/fr30.c (fr30_option_optimization_table,
21069 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
21071 * config/frv/frv.c (frv_option_optimization_table,
21072 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
21073 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
21074 * config/h8300/h8300.c (h8300_option_optimization_table,
21075 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21076 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
21077 * config/i386/i386-protos.h (ix86_handle_option): Declare.
21078 * config/i386/i386.c: Include common/common-target.h.
21079 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
21080 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
21081 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
21082 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
21083 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
21084 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
21085 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
21086 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
21087 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
21088 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
21089 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
21090 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
21091 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
21092 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
21093 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
21094 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
21095 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
21096 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
21097 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
21098 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
21099 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
21100 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
21101 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
21102 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
21103 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
21104 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
21105 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
21106 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
21107 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
21108 ix86_option_optimization_table, ix86_option_init_struct,
21109 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
21110 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21111 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
21113 * config/i386/t-i386 (i386.o): Update dependencies.
21114 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
21115 * config/ia64/ia64.c (ia64_option_optimization_table,
21116 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
21117 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21118 ia64_handle_option): Move to ia64-common.c.
21119 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
21120 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
21121 * config/lm32/lm32.c (lm32_option_optimization_table,
21122 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
21124 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
21126 * config/m32r/m32r.c (m32r_option_optimization_table,
21127 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21128 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
21129 m32r_handle_option): Move to m32r-common.c.
21130 (m32r_memory_move_cost): Remove comment referring to
21131 TARGET_HANDLE_OPTION.
21132 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
21133 Move to m68k-common.c.
21134 * config/mcore/mcore.c (mcore_option_optimization_table,
21135 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21136 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
21137 * config/mep/mep.c (mep_option_optimization_table,
21138 mep_handle_option, TARGET_HANDLE_OPTION,
21139 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
21140 Move to mep-common.c.
21141 * config/microblaze/microblaze.c
21142 (microblaze_option_optimization_table,
21143 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21144 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
21145 * config/mips/mips.c (mips_handle_option,
21146 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
21147 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
21149 * config/mmix/mmix.c (mmix_option_optimization_table,
21150 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
21151 Move to mmix-common.c.
21152 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
21153 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
21154 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21155 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
21156 * config/pa/pa.c: Include common/common-target.h.
21157 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
21158 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21159 pa_handle_option): Move to pa-common.c.
21160 (pa_option_override): Use targetm_common.except_unwind_info.
21161 (pa_asm_output_mi_thunk, pa_function_section): Use
21162 targetm_common.have_named_sections.
21163 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
21164 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21165 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
21166 pdp11_handle_option, pdp11_option_init_struct): Move to
21168 * config/picochip/picochip.c (picochip_option_optimization_table,
21169 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
21170 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
21171 * config/rs6000/rs6000.c: Include common/common-target.h.
21172 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
21173 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
21174 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
21175 rs6000_handle_option): Move to rs6000-common.c.
21176 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21177 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
21178 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21179 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
21180 * config/s390/s390.c (processor_flags_table,
21181 s390_option_optimization_table, s390_option_init_struct,
21182 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
21183 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21184 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
21185 * config/s390/s390.h (processor_flags_table): Declare.
21186 * config/score/score.c (score_option_optimization_table,
21187 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21188 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
21189 score_handle_option): Move to score-common.c.
21190 * config/sh/sh.c (sh_option_optimization_table,
21191 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
21192 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21193 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
21194 * config/sparc/sparc.c: Include common/common-target.h.
21195 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
21196 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
21197 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
21198 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
21199 spu_option_init_struct): Move to spu-common.c.
21200 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
21201 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
21202 * config/v850/v850.c (small_memory_physical_max,
21203 v850_handle_memory_optionn v850_handle_option,
21204 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
21205 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
21207 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
21208 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
21209 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
21210 Move to xtensa-common.c.
21211 * cfglayout.c: Include common/common-target.h.
21212 (fixup_reorder_chain): Use targetm_common.have_named_sections.
21213 * cfgrtl.c: Include common/common-target.h.
21214 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
21215 targetm_common.have_named_sections.
21216 * dbxout.c: Include common/common-target.h.
21217 (dbxout_function_end): Use targetm_common.have_named_sections.
21218 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
21219 targetm_common.except_unwind_info.
21220 * dwarf2out.c: Include common/common-target.h.
21221 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
21222 dwarf2out_begin_prologue, dwarf2out_frame_init,
21223 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
21224 targetm_common.except_unwind_info.
21225 * except.c: Include common/common-target.h.
21226 (init_eh, finish_eh_generation,
21227 output_one_function_exception_table): Use
21228 targetm_common.except_unwind_info.
21229 (switch_to_exception_section): Use targetm_common.have_named_sections.
21230 * explow.c: Include common/common-target.h.
21231 * expr.c: Include common/common-target.h.
21232 (build_personality_function): Use targetm_common.except_unwind_info.
21233 * function.c: Include common/common-target.h.
21234 (expand_function_end): Use targetm_common.except_unwind_info.
21235 * haifa-sched.c: Include common/common-target.h.
21236 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
21237 * lto-opts.c: Include common/common-target.h instead of target.h.
21238 (lto_reissue_options): Use targetm_common.handle_option.
21239 * opts.c: Include common/common-target.h.
21240 (target_handle_option): Use targetm_common.handle_option.
21241 (init_options_struct): Update comment referring to
21242 targetm.target_option.optimization. Use
21243 targetm_common.default_target_flags,
21244 targetm_common.unwind_tables_default and
21245 targetm_common.option_init_struct.
21246 (default_options_optimization): Use
21247 targetm_common.option_optimization_table.
21248 (finish_options): Use targetm_common.except_unwind_info,
21249 targetm_common.unwind_tables_default,
21250 targetm_common.have_named_sections and
21251 targetm_common.supports_split_stack.
21252 * toplev.c: Include common/common-target.h.
21253 (process_options): Use targetm_common.have_named_sections.
21254 * tree-tailcall.c: Include common/common-target.h.
21255 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
21256 * tree.c: Include common/common-target.h.
21257 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
21258 * varasm.c: Include common/common-target.h.
21259 (resolve_unique_section, hot_function_section,
21260 default_function_section): Use targetm_common.have_named_sections.
21262 2011-06-14 Easwaran Raman <eraman@google.com>
21264 PR rtl-optimization/44194
21265 * dse.c: Include tree-flow.h
21266 (insn_info): Add new field non_frame_wild_read.
21267 (group_info): Add new fields escaped_n and escaped_p.
21268 (kill_on_calls): New variable.
21269 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
21270 (dse_step0): Initialize kill_on_calls.
21271 (can_escape): New function.
21272 (set_usage_bits): Add additional parameter; record information
21273 about escaped locations.
21274 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
21275 (dse_step2_nospill): Set kill_on_calls based on
21276 group->escaped_n and group->escaped_n.
21277 (add_wild_read): Refactor into...
21278 (reset_active_stores): ... New function, and
21279 (free_read_records): ... New function.
21280 (add_non_frame_wild_read): New function.
21281 (scan_insn): Call add_non_frame_wild_read on non-const calls.
21282 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
21283 (dse_step5_nospill): Call scan_reads_nospill for instructions
21284 marked as non_frame_wild_read.
21285 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
21287 2011-06-14 Joseph Myers <joseph@codesourcery.com>
21289 * common/common-target-def.h, common/common-target.def,
21290 common/common-target.h, common/config/default-common.c,
21291 common/config/pa/pa-common.c: New files.
21292 * Makefile.in (common_out_file, common_out_object_file,
21293 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
21294 (OBJS-libcommon-target): Include $(common_out_object_file).
21295 (prefix.o): Update dependencies.
21296 ($(common_out_object_file), common/common-target-hooks-def.h,
21297 s-common-target-hooks-def-h): New.
21298 (s-tm-texi): Also check timestamp on common-target.def.
21299 (build/genhooks.o): Update dependencies.
21300 * config.gcc (common_out_file, target_has_targetm_common): Define.
21301 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
21302 TARGET_ALWAYS_STRIP_DOTDOT.
21303 * configure.ac (common_out_object_file): Define.
21304 (common_out_file, common_out_object_file): Substitute.
21305 (common): Create directory.
21306 * configure: Regenerate.
21307 * doc/tm.texi.in (targetm_common): Document.
21308 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
21309 * doc/tm.texi: Regenerate.
21310 * genhooks.c (hook_array): Also include common/common-target.def.
21311 * prefix.c (tm.h): Don't include.
21312 (common/common-target.h): Include.
21313 (ALWAYS_STRIP_DOTDOT): Don't define.
21314 (update_path): Use targetm_common.always_strip_dotdot instead of
21315 ALWAYS_STRIP_DOTDOT.
21316 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
21318 2011-06-14 David Li <davidxl@google.com>
21320 * passes.c (execute_function_todo): Remove TODO_dump_func.
21321 (execute_one_pass): Remove TODO_dump_func.
21322 (execute_function_dump): New function.
21323 * tree-vrp.c: Remove TODO_dump_func.
21324 * regrename.c: Remove TODO_dump_func.
21325 * fwprop.c: Remove TODO_dump_func.
21326 * tree-into-ssa.c: Remove TODO_dump_func.
21327 * tree-complex.c: Remove TODO_dump_func.
21328 * tracer.c: Remove TODO_dump_func.
21329 * tree-loop-distribution.c: Remove TODO_dump_func.
21330 * postreload-gcse.c: Remove TODO_dump_func.
21331 * postreload.c: Remove TODO_dump_func.
21332 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
21333 * tree-tailcall.c: Remove TODO_dump_func.
21334 * ipa-cp.c: Remove TODO_dump_func.
21335 * final.c: Remove TODO_dump_func.
21336 * tree-emutls.c: Remove TODO_dump_func.
21337 * omp-low.c: Remove TODO_dump_func.
21338 * tree-ssa-dse.c: Remove TODO_dump_func.
21339 * tree-ssa-uncprop.c: Remove TODO_dump_func.
21340 * auto-inc-dec.c: Remove TODO_dump_func.
21341 * reorg.c: Remove TODO_dump_func.
21342 * tree-ssa-copyrename.c: Remove TODO_dump_func.
21343 * tree-ssa-ccp.c: Remove TODO_dump_func.
21344 * compare-elim.c: Remove TODO_dump_func.
21345 * mode-switching.c: Remove TODO_dump_func.
21346 * modulo-sched.c: Remove TODO_dump_func.
21347 * tree-call-cdce.c: Remove TODO_dump_func.
21348 * cse.c: Remove TODO_dump_func.
21349 * web.c: Remove TODO_dump_func.
21350 * tree-stdarg.c: Remove TODO_dump_func.
21351 * lto-streamer-out.c: Remove TODO_dump_func.
21352 * tree-ssa-math-opts.c: Remove TODO_dump_func.
21353 * tree-ssa-dom.c: Remove TODO_dump_func.
21354 * tree-nrv.c: Remove TODO_dump_func.
21355 * loop-init.c: Remove TODO_dump_func.
21356 * gimple-low.c: Remove TODO_dump_func.
21357 * ipa-inline.c: Remove TODO_dump_func.
21358 * tree-ssa-sink.c: Remove TODO_dump_func.
21359 * jump.c: Remove TODO_dump_func.
21360 * ifcvt.c: Remove TODO_dump_func.
21361 * tree-ssa-loop.c: Remove TODO_dump_func.
21362 * recog.c: Remove TODO_dump_func.
21363 * dse.c: Remove TODO_dump_func.
21364 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
21365 * matrix-reorg.c: Remove TODO_dump_func.
21366 * tree-eh.c: Remove TODO_dump_func.
21367 * regmove.c: Remove TODO_dump_func.
21368 * function.c: Remove TODO_dump_func.
21369 * tree-vectorizer.c: Remove TODO_dump_func.
21370 * ipa-split.c: Remove TODO_dump_func.
21371 * gcse.c: Remove TODO_dump_func.
21372 * tree-if-conv.c: Remove TODO_dump_func.
21373 * init-regs.c: Remove TODO_dump_func.
21374 * tree-ssa-phiopt.c: Remove TODO_dump_func.
21375 * implicit-zee.c: Remove TODO_dump_func.
21376 * lower-subreg.c: Remove TODO_dump_func.
21377 * bt-load.c: Remove TODO_dump_func.
21378 * tree-dfa.c: Remove TODO_dump_func.
21379 * except.c: Remove TODO_dump_func.
21380 * emit-rtl.c: Remove TODO_dump_func.
21381 * store-motion.c: Remove TODO_dump_func.
21382 * cfgexpand.c: Remove TODO_dump_func.
21383 * tree-cfgcleanup.c: Remove TODO_dump_func.
21384 * cfgcleanup.c: Remove TODO_dump_func.
21385 * tree-ssa-pre.c: Remove TODO_dump_func.
21386 * tree-sra.c: Remove TODO_dump_func.
21387 * tree-mudflap.c: Remove TODO_dump_func.
21388 * tree-ssa-copy.c: Remove TODO_dump_func.
21389 * cfglayout.c: Remove TODO_dump_func.
21390 * tree-ssa-forwprop.c: Remove TODO_dump_func.
21391 * tree-ssa-dce.c: Remove TODO_dump_func.
21392 * ira.c: Remove TODO_dump_func.
21393 * tree-ssa.c: Remove TODO_dump_func.
21394 * integrate.c: Remove TODO_dump_func.
21395 * tree-optimize.c: Remove TODO_dump_func.
21396 * tree-ssa-phiprop.c: Remove TODO_dump_func.
21397 * tree-object-size.c: Remove TODO_dump_func.
21398 * combine.c: Remove TODO_dump_func.
21399 * bb-reorder.c: Remove TODO_dump_func.
21400 * cprop.c: Remove TODO_dump_func.
21401 * var-tracking.c: Remove TODO_dump_func.
21402 * tree-profile.c: Remove TODO_dump_func.
21403 * tree-vect-generic.c: Remove TODO_dump_func.
21404 * reg-stack.c: Remove TODO_dump_func.
21405 * sched-rgn.c: Remove TODO_dump_func.
21406 * tree-ssa-structalias.c: Remove TODO_dump_func.
21407 * tree-switch-conversion.c: Remove TODO_dump_func.
21408 * tree-cfg.c: Remove TODO_dump_func.
21409 * tree-ssa-reassoc.c: Remove TODO_dump_func.
21410 * combine-stack-adj.c: Remove TODO_dump_func.
21411 * dce.c: Remove TODO_dump_func.
21412 * tree-ssanames.c: Remove TODO_dump_func.
21413 * regcprop.c: Remove TODO_dump_func.
21415 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
21417 PR middle-end/47364
21418 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
21419 and properly handle result not in Pmode.
21421 2011-06-14 Robert Millan <rmh@gnu.org>
21423 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
21424 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
21427 * config/i386/kfreebsd-gnu64.h: New file.
21428 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
21429 with `i386/kfreebsd-gnu64.h'.
21431 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
21432 (GNU_USER_LINK_EMULATION64): New macros.
21433 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
21434 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
21435 of hardcoding `elf_i386' and `elf_x86_64'.
21437 2011-06-14 Nick Clifton <nickc@redhat.com>
21440 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
21443 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
21445 2011-06-14 Jakub Jelinek <jakub@redhat.com>
21448 * tree.h (DECL_NONSHAREABLE): Define.
21449 (struct tree_decl_common): Change decl_common_unused to
21450 decl_nonshareable_flag.
21451 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
21452 Ignore vars with DECL_NONSHAREABLE bit set.
21453 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
21454 on stores to automatic aggregate vars.
21456 PR rtl-optimization/49390
21458 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
21460 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
21463 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
21464 Tom de Vries <tom@codesourcery.com>
21467 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
21468 Document changed semantics.
21469 (max_stmt_executions, max_stmt_executions_int): Declare.
21470 * tree-data-ref.c (estimated_loop_iterations)
21471 (estimated_loop_iterations_int): Move functions...
21472 * tree-ssa-loop-niter.c (estimated_loop_iterations)
21473 (estimated_loop_iterations_int): here.
21474 (record_estimate): Change nb_iterations_upper_bound and
21475 nb_iterations_estimate semantics.
21476 (max_stmt_executions, max_stmt_executions_int): New function.
21477 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
21478 (max_stmt_executions_tree): this.
21479 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
21480 estimated_loop_iterations_tree.
21481 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
21482 max_stmt_executions_int instead of estimated_loop_iterations_int.
21483 * predict.c (predict_loops): Idem.
21484 * tree-parloops.c (parallelize_loops): Idem.
21485 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
21486 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
21487 (init_omega_for_ddr_1): Idem.
21488 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
21489 (loop_prefetch_arrays): Idem
21490 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
21491 max_stmt_executions instead of estimated_loop_iterations.
21492 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
21493 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
21494 instead of nb_iterations_upper_bound.
21496 2011-06-13 Jan Hubicka <jh@suse.cz>
21498 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
21500 2011-06-14 Richard Henderson <rth@redhat.com>
21503 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
21504 (based_loc_descr): Assert it's true.
21505 (compute_frame_pointer_to_fb_displacement): Set it, rather than
21506 aborting immediately.
21508 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
21509 Mingfeng Wu <mingfeng@faraday-tech.com>
21511 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
21513 2011-06-13 Jan Hubicka <jh@suse.cz>
21515 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
21517 2011-06-13 Jan Hubicka <jh@suse.cz>
21519 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
21520 similarly to DECL_COMDAT.
21521 * cgraphunit.c (cgraph_analyze_function): Likewise.
21522 * ipa.c (function_and_variable_visibility): Likewise.
21524 2011-06-13 Jan Hubicka <jh@suse.cz>
21526 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
21527 BINFO_VIRTUALS when streaming for ltrans unit.
21529 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
21531 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
21532 (movdi_internal64): Same.
21534 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
21537 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
21538 a set of similar patterns, where the MATCH_OPERAND for the function
21539 argument is replaced with individual references to hardware registers.
21540 (save_fpregs_<mode>): Ditto
21541 (restore_gpregs_<mode>): Ditto
21542 (return_and_restore_gpregs_<mode>): Ditto
21543 (return_and_restore_fpregs_<mode>): Ditto
21544 (return_and_restore_fpregs_aix_<mode>): Ditto
21546 2011-06-13 Jan Hubicka <jh@suse.cz>
21548 * ipa-utils.c (postorder_stack): New structure.
21549 (ipa_reverse_postorder): Handle aliases.
21551 2011-06-13 Jan Hubicka <jh@suse.cz>
21553 * ipa-inline.c (reset_edge_caches): Walk aliases.
21554 (update_caller_keys): Do not test inlinability of aliases.
21555 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
21556 (do_estimate_growth): Fix typo.
21558 2011-06-13 Jan Hubicka <jh@suse.cz>
21560 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
21561 (can_remove_node_now_p): ... here; handle same comdat groups.
21562 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
21563 (inline_call): Update use of can_remove_node_now_p.
21565 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21567 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
21568 condition to disallow non-identical memory locations.
21569 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
21570 preference to bit manipulation instructions.
21572 2011-06-13 Jan Hubicka <jh@suse.cz>
21574 * cgraph.c (cgraph_for_node_thunks_and_aliases,
21575 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
21576 (nonremovable_p): New function.
21577 (cgraph_can_remove_if_no_direct_calls_p): New function.
21578 (used_from_object_file_p): New functoin.
21579 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
21580 references from aliases.
21581 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
21582 * ipa-inline.c (check_caller_edge): New function.
21583 (want_inline_function_called_once_p): Use it; accept aliases called
21585 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
21587 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21590 * config/arm/neon.md (vec_pack_trunc): Set the lengths
21591 correctly for the case with Quad vectors.
21593 2011-06-13 Jakub Jelinek <jakub@redhat.com>
21594 Ira Rosen <ira.rosen@linaro.org>
21596 PR tree-optimization/49352
21597 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
21598 all, make sure loop_use_stmt after the loop is a def stmt of a used
21599 SSA_NAME that is the only one defined inside of the loop. Don't
21600 check for COND_EXPR and GIMPLE_BINARY_RHS.
21601 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
21602 check_reduction is true.
21604 2011-06-11 Jan Hubicka <jh@suse.cz>
21606 PR middle-end/49373
21607 * ipa.c (cgraph_externally_visible_p): Check resolution info.
21609 2011-06-11 Jan Hubicka <jh@suse.cz>
21611 PR middle-end/48836
21612 * ipa-inline-transform.c: Include tree-pass.h
21613 (inline_transform): Set TODO_update_ssa_only_virtuals.
21614 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
21616 2011-06-11 Jan Hubicka <jh@suse.cz>
21618 PR middle-end/49378
21619 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
21620 aliases and thunks.
21622 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
21624 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
21625 Take number of iterations to peel into account for equally frequent
21626 misalignment values.
21628 2011-06-11 Jan Hubicka <jh@suse.cz>
21630 * lto-streamer-out.c (produce_symtab): Stream out the newly
21631 represented aliases.
21633 2011-06-11 Jan Hubicka <jh@suse.cz>
21635 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
21637 (ipa_update_after_lto_read): Likewise.
21638 (ipa_write_node_info): Do not sream call_with_var_arguments.
21639 (ipa_read_node_info): Likewise.
21641 2011-06-11 Jan Hubicka <jh@suse.cz>
21643 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
21645 2011-06-11 Jan Hubicka <jh@suse.cz>
21647 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
21648 (lto_symtab_resolve_can_prevail_p): Likewise.
21649 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
21650 * cgraph.c (same_body_aliases_done): New global var.
21651 (cgraph_same_body_alias_1): Rename to ...
21652 (cgraph_create_function_alias): ... this one; reorg to new
21654 (cgraph_same_body_alias): Use cgraph_create_function_alias;
21655 record references when asked to.
21656 (cgraph_add_thunk): Fix formating.
21657 (cgraph_get_node): Kill same body alias code.
21658 (cgraph_node_for_asm): Likewise.
21659 (cgraph_remove_same_body_alias): Remove.
21660 (cgraph_remove_node): Kill same body alias code.
21661 (cgraph_mark_address_taken_node): Mark also the aliased function
21662 as having address taken.
21663 (dump_cgraph_node): Dump same body aliases.
21664 (cgraph_for_node_thunks_and_aliases): Update for new alias
21666 (cgraph_for_node_and_aliases): Likewise.
21667 * cgraph.h (same_body): Kll pointer.
21668 (same_body_alias): Update comment.
21669 (same_body_aliases_done): Declare.
21670 (cgraph_remove_same_body_alias): Remove declaration.
21671 (cgraph_create_function_alias): Declare.
21672 (cgraph_process_same_body_aliases): Declare.
21673 (cgraph_function_with_gimple_body_p): Check for alias.
21674 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
21675 (cgraph_alias_aliased_node): New function.
21676 (cgraph_function_node): Update for new aliases.
21677 (cgraph_function_or_thunk_node): Likewise.
21678 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
21679 (inline_call): Remove dead aliases.
21680 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
21681 name hack for same body aliases.
21682 (clone_of_p): Look through aliases.
21683 (verify_cgraph_node): Verify aliases.
21684 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
21685 (cgraph_process_same_body_aliases): New function.
21686 (process_function_and_variable_attributes): Disable weakref warning on
21688 (cgraph_analyze_functions): Handle aliases.
21689 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
21690 (assemble_thunks): Rename to ...
21691 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
21692 (cgraph_expand_function): Remove alias output code.
21693 (cgraph_output_in_order): Skip aliases.
21694 (cgraph_preserve_function_body_p): Aliases don't need preserving.
21695 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
21696 (ipa_record_reference): Do not assert on alias references.
21697 (ipa_ref_has_aliases_p): New function.
21698 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
21699 (ipa_ref_has_aliases_p): Declare.
21700 * lto-cgraph.c (lto_output_node): Handle aliases.
21701 (input_node): Likewise.
21702 * lto-streamer-out.c (lto_output): Skip aliases.
21703 (produce_symtab): Kill same_body_alias code.
21704 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
21705 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
21706 * ipa-inline.c (update_caller_keys): Walk aliases.
21707 (inline_small_functions): Fix thinko in previous patch.
21708 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
21709 (function_and_variable_visibility): Do not walk same body aliases.
21710 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
21711 (ipa_pta_execute): Use it.
21713 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
21715 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
21716 (*vec_dupv2df): Rename from vec_dupv2df.
21717 (vec_dupv2df): New expander.
21719 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
21721 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
21723 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
21725 * config/i386/i386.md: Use default value in "isa" attribute.
21726 * config/i386/sse.md: Ditto.
21727 * config/i386/mmx.md: Ditto.
21729 2011-06-10 Wei Guozhi <carrot@google.com>
21732 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
21733 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21734 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
21736 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
21738 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
21739 (arm_legitimate_ldrd_p): New prototype.
21740 (arm_output_ldrd): New prototype.
21741 * config/arm/arm.c (arm_check_ldrd_operands): New function.
21742 (arm_legitimate_ldrd_p): New function.
21743 (arm_output_ldrd): New function.
21745 2011-06-10 David Li <davidxl@google.com>
21747 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
21748 * passes.c (passr_eq): New function.
21749 (create_pass_tab): New function.
21750 (pass_traverse): New function.
21751 (dump_one_pass): New function.
21752 (dump_pass_list): New function.
21753 (dump_passes): New function.
21755 2011-06-10 Jan Hubicka <jh@suse.cz>
21757 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
21758 setting the nothrow flag.
21759 * ipa-reference.c (propagate): Skip aliases.
21760 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
21761 (propagate_nothrow): Skip aliases; do not update cgraph.
21762 (local_pure_const): Do not update cgraph.
21763 * tree-profile.c (tree_profiling): Do fixup_cfg.
21765 2011-06-10 Jan Hubicka <jh@suse.cz>
21767 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
21768 (cgraph_local_node_p): ... here; handle aliases.
21769 (has_addr_references_p): Break out from ...;
21770 (cgraph_remove_unreachable_nodes) ... here.
21772 2011-06-10 Jan Hubicka <jh@suse.cz>
21774 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
21775 * common.opt (flag_inline_functions_called_once): Do not
21778 2011-06-10 Jan Hubicka <jh@suse.cz>
21780 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
21781 (ipcp_initialize_node_lattices): Do not deal with aliases;
21782 Do not try to propagate through thunks.
21783 (ipcp_change_tops_to_bottom): Do not deal with aliases.
21785 2011-06-10 Jan Hubicka <jh@suse.cz>
21787 * ipa-prop.c (ipa_write_node_info): Stream jump functions
21788 for indirect calls.
21789 (ipa_read_node_info): Likewise.
21791 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21794 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
21795 (build_and_insert_call): Likewise.
21796 (build_and_insert_ref): New.
21797 (gimple_expand_builtin_pow): Minor cleanup.
21798 (gimple_expand_builtin_cabs): New.
21799 (execute_cse_sincos): Add case for BUILT_IN_CABS.
21801 2011-06-10 Jan Hubicka <jh@suse.cz>
21803 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
21804 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
21805 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
21806 (ipcp_propagate_stage): Skip aliases when propagating.
21807 (ipcp_need_redirect_p): Skip aliases.
21808 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
21809 collect_callers_of_node.
21810 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
21812 (ipa_compute_jump_functions): Look through aliases.
21814 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21816 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
21818 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
21820 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
21822 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
21824 2011-06-10 Jan Hubicka <jh@suse.cz>
21826 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
21827 Update call of gimple_get_virt_method_for_binfo.
21828 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
21829 refuse_thunks parameter.
21830 (gimple_fold_call): Update.
21831 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
21833 2011-06-10 Jan Hubicka <jh@suse.cz>
21835 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
21836 (not_all_callers_have_enough_arguments_p): ... this one; turn into
21837 worker for cgraph_for_node_and_aliases.
21838 (convert_callers_for_node): Break out from ...
21839 (convert_callers): ... here.
21840 (modify_function): Use collect_callers_of_node.
21841 (ipa_early_sra): Use cgraph_for_node_and_aliases.
21843 2011-06-10 Richard Guenther <rguenther@suse.de>
21845 PR tree-optimization/49361
21846 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
21847 when not already in gimple form.
21849 2011-06-10 Richard Guenther <rguenther@suse.de>
21852 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
21853 FOR_EACH_PHI_OR_STMT_USE.
21855 2011-06-10 Jan Hubicka <jh@suse.cz>
21857 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
21858 (clone_inlined_nodes): ... here.
21859 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
21860 to real destination prior inlining.
21861 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
21862 can_early_inline_edge_p, want_early_inline_function_p,
21863 want_early_inline_function_p, want_inline_small_function_p,
21864 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
21865 edge_badness, update_all_callee_keys, lookup_recursive_calls,
21866 add_new_edges_to_heap, inline_small_functions, flatten_function,
21867 inline_always_inline_functions, early_inline_small_functions): Use
21868 cgraph_function_or_thunk_node.
21869 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
21870 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
21871 (do_estimate_edge_growth_1): Break out from ...
21872 (do_estimate_growth) ... here; walk aliases.
21873 (inline_generate_summary): Skip aliases.
21875 2011-06-10 Richard Guenther <rguenther@suse.de>
21877 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
21878 forward when combining, visit inserted stmts when a stmt was changed.
21880 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
21882 * tree.h (error_operand_p): Add.
21883 * dbxout.c (dbxout_type_fields): Use the latter.
21884 * c-decl.c (add_stmt): Likewise.
21885 * gimplify.c (omp_add_variable, omp_notice_variable,
21886 gimplify_scan_omp_clauses): Likewise.
21888 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
21890 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
21891 when a value is actually passed in regs.
21893 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
21894 Laurent Rougé <laurent.rouge@menta.fr>
21896 * doc/invoke.texi (SPARC options): Add -mflat.
21897 * config/sparc/sparc.opt: Likewise.
21898 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
21899 (sparc_flat_expand_prologue): Declare.
21900 (sparc_flat_expand_epilogue): Likewise.
21901 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
21902 (CPP_ENDIAN_SPEC): Replace with...
21903 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
21904 (CPP_SPEC): Adjust to above change.
21905 (EXTRA_SPECS): Likewise.
21906 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
21907 (INCOMING_REGNO): Likewise.
21908 (OUTGOING_REGNO): Likewise.
21909 (LOCAL_REGNO): Likewise.
21910 (SETUP_FRAME_ADDRESSES): Likewise.
21911 (FIXED_REGISTERS): Set 0 for %fp.
21912 (CALL_USED_REGISTERS): Likewise.
21913 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
21914 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
21915 (RETURN_ADDR_REGNUM): Define.
21916 (RETURN_ADDR_RTX): Use it.
21917 (INCOMING_RETURN_ADDR_REGNUM): Define.
21918 (INCOMING_RETURN_ADDR_RTX): Use it.
21919 (DWARF_FRAME_RETURN_COLUMN): Likewise.
21920 (EH_RETURN_REGNUM): Define.
21921 (EH_RETURN_STACKADJ_RTX): Use it.
21922 (EH_RETURN_HANDLER_RTX): Delete.
21923 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
21924 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
21926 (struct machine_function): Add frame_size, apparent_frame_size,
21927 frame_base_reg, frame_base_offset, n_global_fp_regs and
21928 save_local_in_regs_p fields.
21929 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
21930 sparc_frame_base_offset, sparc_n_global_fp_regs,
21931 sparc_save_local_in_regs_p): New macros.
21932 (sparc_option_override): Error out if -fcall-saved-REG is specified
21934 (eligible_for_restore_insn): Fix formatting.
21935 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
21936 (eligible_for_sibcall_delay): Likewise.
21937 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
21938 (sparc_legitimate_address_p): Adjust to above change.
21939 (save_global_or_fp_reg_p): New predicate.
21940 (return_addr_reg_needed_p): Likewise.
21941 (save_local_or_in_reg_p): Likewise.
21942 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
21943 (SORR_SAVE, SORR_RESTORE): Delete.
21944 (sorr_pred_t): New typedef.
21945 (sorr_act_t): New enum.
21946 (save_or_restore_regs): Rename to...
21947 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
21948 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
21949 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
21950 mechanism. Add CFI information for double-word saves in 32-bit mode.
21951 (emit_adjust_base_to_offset): New function extracted from...
21952 (emit_save_or_restore_regs): ...this. Rename the rest to...
21953 (emit_save_or_restore_regs_global_fp_regs): ...this.
21954 (emit_save_or_restore_regs_local_in_regs): New function.
21955 (gen_create_flat_frame_[123]): New functions.
21956 (sparc_expand_prologue): Use SIZE local variable. Adjust.
21957 (sparc_flat_expand_prologue): New function.
21958 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
21959 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
21960 (sparc_flat_expand_epilogue): New function.
21961 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
21962 (output_return): Likewise.
21963 (output_sibcall): Likewise.
21964 (sparc_output_mi_thunk): Likewise.
21965 (sparc_frame_pointer_required): Likewise.
21966 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
21967 function optimization.
21968 * config/sparc/sparc.md (flat): New attribute.
21969 (prologue): Add TARGET_FLAT handling.
21970 (save_register_window): Disable if TARGET_FLAT.
21971 (create_flat_frame_[123]): New patterns.
21972 (epilogue): Add TARGET_FLAT handling.
21973 (sibcall_epilogue): Likewise.
21974 (eh_return): New expander.
21975 (eh_return_internal): New insn and splitter.
21976 (return_internal): Add TARGET_FLAT handling.
21977 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
21978 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
21979 (nonlocal_goto): Add TARGET_FLAT handling.
21980 * config/sparc/t-elf: Add -mflat multilib.
21981 * config/sparc/t-leon: Likewise.
21983 2011-06-10 Jan Hubicka <jh@suse.cz>
21985 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
21986 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
21987 (self_recursive_p): Use cgraph_function_node.
21988 (propagate_pure_const): Likewise.
21989 (propagate_nothrow): Likewise.
21990 * ipa-reference.c (ipa_reference_get_not_read_global): Use
21991 cgraph_function_node.
21992 (propagate_bits): Likewise.
21993 (propagate): Likewise.
21995 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21996 Richard Earnshaw <rearnsha@arm.com>
21998 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
21999 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
22000 (*thumb2_movdi_vfp): Delete.
22001 (*arm_movdi_vfp_cortexa8): Delete.
22002 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
22003 (*movdi_vfp_cortexa8): Likewise.
22005 2011-06-10 Richard Guenther <rguenther@suse.de>
22007 * stor-layout.c (initialize_sizetypes): Give names to all
22010 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
22012 PR tree-optimization/49318
22013 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
22014 irrelevant pattern statements.
22016 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22018 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
22021 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
22022 to last assignment.
22024 2011-06-09 Jan Hubicka <jh@suse.cz>
22026 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
22027 do not recompute reachable flag.
22028 (cgraph_finalize_function, cgraph_analyze_functions): Set
22029 redefined_extern_inline here.
22031 2011-06-09 Jan Hubicka <jh@suse.cz>
22033 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
22034 (cgraph_only_called_directly_p): ... this one; bring offline.
22035 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
22036 varpool_used_from_object_file_p): Drop names from the declaratoin.
22037 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
22038 collect_callers_of_node): New.
22039 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
22040 (cgraph_edge_recursive_p): Use cgraph_function_node.
22041 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
22042 (cgraph_node_cannot_be_local_p_1): Break out from ...
22043 (cgraph_node_can_be_local_p): ... here; walk aliases.
22044 (cgraph_for_node_thunks_and_aliases): New function.
22045 (cgraph_for_node_and_aliases): New function.
22046 (cgraph_make_node_local_1): Break out from ...
22047 (cgraph_make_node_local) ... here; use
22048 cgraph_for_node_thunks_and_aliases.
22049 (cgraph_set_nothrow_flag_1): Break out from ...
22050 (cgraph_set_nothrow_flag) ... here;
22051 use cgraph_for_node_thunks_and_aliases.
22052 (cgraph_set_const_flag_1): Break out from ...
22053 (cgraph_set_const_flag) ... here;
22054 use cgraph_for_node_thunks_and_aliases.
22055 (cgraph_set_pure_flag_1): Break out from ...
22056 (cgraph_set_pure_flag) ... here;
22057 use cgraph_for_node_thunks_and_aliases.
22058 (cgraph_propagate_frequency_1): Break out from ...
22059 (cgraph_propagate_frequency) ... here; use
22060 cgraph_for_node_thunks_and_aliases.
22061 (cgraph_used_from_object_file_p): Do not care about aliases.
22062 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
22064 (collect_callers_of_node_1, collect_callers_of_node): New functions.
22066 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22068 PR rtl-optimization/49154
22069 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
22070 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
22071 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
22072 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
22073 * config/cris/cris.h (cris_register_move_cost): Remove
22074 !TARGET_V32 code. Tweak comments.
22076 2011-06-09 Jan Hubicka <jh@suse.cz>
22078 * cgraphbuild.c (record_eh_tables): Mark personality function as having
22081 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22083 PR rtl-optimization/49154
22084 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
22085 is a matching slot in the hashtable, assign it to classes_ptr.
22087 PR rtl-optimization/49154
22088 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
22090 * doc/tm.texi: Regenerate.
22092 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
22095 * config/sh/sh.md (UNSPEC_CHKADD): New.
22096 (chk_guard_add): New define_insn_and_split.
22097 (symGOT_load): Use chk_guard_add instead of blockage.
22099 2011-06-09 Kai Tietz <ktietz@redhat.com>
22101 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
22103 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
22105 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
22107 2011-06-09 Wei Guozhi <carrot@google.com>
22110 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
22111 (peephole2 for conditional move): Generate 16 bit instructions.
22113 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
22115 * config/i386/i386.md (*movdi_internal_rex64): Merge
22116 alternatives 6 and 8.
22118 2011-06-09 David Li <davidxl@google.com>
22120 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
22121 * passes.c (passr_eq): New function.
22122 (create_pass_tab): New function.
22123 (pass_traverse): New function.
22124 (dump_one_pass): New function.
22125 (dump_pass_list): New function.
22126 (dump_passes): New function.
22128 2011-06-09 David Li <davidxl@google.com>
22130 * tree-complex.c (tree_lower_complex): Gate cleanup.
22131 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
22132 (execute_optimize_stdarg): Ditto.
22133 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
22134 (execute_cleanup_eh_1): Ditto.
22135 (execute_cleanup_eh): Ditto.
22136 * gcse.c (gate_rtl_pre): Ditto.
22137 (execute_rtl_pre): Ditto.
22138 * except.c (finish_eh_generation): Ditto.
22139 (convert_to_eh_region_ranges): Ditto.
22140 * cprop.c (one_cprop_pass): Ditto.
22142 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
22145 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
22146 in all basic blocks.
22148 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22150 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
22151 (HAVE_ENABLE_EXECUTE_STACK): Define.
22152 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
22153 (HAVE_ENABLE_EXECUTE_STACK): Define.
22154 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
22155 (HAVE_ENABLE_EXECUTE_STACK): Define.
22156 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
22157 (ENABLE_EXECUTE_STACK): Remove.
22158 (HAVE_ENABLE_EXECUTE_STACK): Define.
22159 [IN_LIBGCC2]: Don't include <windows.h>.
22160 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
22161 (HAVE_ENABLE_EXECUTE_STACK): Define.
22162 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
22163 (HAVE_ENABLE_EXECUTE_STACK): Define.
22164 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
22165 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
22166 (HAVE_ENABLE_EXECUTE_STACK): Define.
22167 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
22168 (HAVE_ENABLE_EXECUTE_STACK): Define.
22169 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
22170 (HAVE_ENABLE_EXECUTE_STACK): Define.
22171 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
22172 (HAVE_ENABLE_EXECUTE_STACK): Define.
22173 * config/alpha/alpha.c (alpha_trampoline_init): Test
22174 HAVE_ENABLE_EXECUTE_STACK.
22175 * config/i386/i386.c (ix86_trampoline_init): Likewise.
22176 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
22177 (sparc64_initialize_trampoline): Likewise.
22178 * libgcc2.c [L_enable_execute_stack]: Remove.
22179 * system.h (ENABLE_EXECUTE_STACK): Poison.
22180 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
22181 * doc/tm.texi: Regenerate.
22182 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
22184 2011-06-09 Jakub Jelinek <jakub@redhat.com>
22186 PR middle-end/49308
22187 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
22188 variable. After resetting and rescanning insn continue with previous
22191 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22193 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
22194 (gcc_cv_ld_hidden): Likewise.
22195 * configure: Regenerate.
22196 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
22197 (ix86_stack_protect_fail): Mark unused.
22198 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
22199 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
22200 [TARGET_MACHO]: Don't define.
22201 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
22202 (TARGET_STACK_PROTECT_FAIL): Likewise.
22203 (rs6000_stack_protect_fail): Mark unused.
22204 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
22205 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
22207 2011-06-08 Andi Kleen <ak@linux.intel.com>
22209 * varasm.c (get_section): Print location of other conflict
22210 for section conflicts.
22212 2011-06-08 Andi Kleen <ak@linux.intel.com>
22214 * config/i386/driver-i386.c (host_detect_local_cpu):
22215 Add model 0x2d Intel CPU.
22217 2011-06-08 Andi Kleen <ak@linux.intel.com>
22219 * reginfo.c (global_regs_decl): Add.
22220 (globalize_reg): Add decl parameter. Compute location. Pass location
22221 to warnings and add inform. Store decl in global_regs_decl.
22222 * rtl.h (globalize_reg): Update prototype.
22223 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
22225 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
22227 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
22229 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
22232 * config/sh/predicates.md (general_movsrc_operand): Check
22233 mode for memory with indexed address for QI and HImode.
22234 (general_movdst_operand): Likewise.
22236 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
22238 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
22240 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
22242 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
22243 (num_ssa_operands): Likewise.
22244 (op_iter_init_phiuse): Forward-declare.
22245 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
22247 2011-06-08 Nick Clifton <nickc@redhat.com>
22249 * doc/invoke.texi (ARM Options): Update description of
22252 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
22254 * config/i386/driver-i386.c (host_detect_local_cpu): Support
22255 unknown Intel family 0x6 CPUs.
22257 2011-06-08 Martin Jambor <mjambor@suse.cz>
22259 * tree-sra.c (mark_rw_status): Removed.
22260 (analyze_access_subtree): New parameter parent instead of
22261 mark_read and mark_write, propagate from that.
22263 2011-06-08 Julian Brown <julian@codesourcery.com>
22265 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
22266 for double-precision helper functions in hard-float mode if only
22267 single-precision arithmetic is supported in hardware.
22269 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
22271 PR rtl-optimization/49303
22272 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
22273 code_motion_path_driver returned 0 or 1.
22274 (sel_region_finish): Clear h_d_i_d.
22276 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
22278 * config/sh/sh.c (prepare_move_operands): Set pic register
22279 appropriately for global and local dynamic tls models even
22280 if flag_pic is unset.
22282 2011-06-07 Jason Merrill <jason@redhat.com>
22284 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
22286 2011-06-07 Xinliang David Li <davidxl@google.com>
22287 * passes.c (enable_disable_pass): Handle assembler name.
22288 (is_pass_explicitly_enabled_or_disabled): Ditto.
22290 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22292 PR tree-optimization/48497
22293 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
22295 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22297 PR tree-optimization/46728
22298 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
22299 to use gimple_val_nonnegative_real_p.
22300 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
22301 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
22303 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
22305 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
22307 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
22309 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
22312 2011-06-07 Richard Guenther <rguenther@suse.de>
22314 * stor-layout.c (initialize_sizetypes): Initialize all
22315 sizetypes based on target definitions.
22316 (set_sizetype): Remove.
22317 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
22318 * tree.h (set_sizetype): Remove.
22320 2011-06-07 Nick Clifton <nickc@redhat.com>
22322 * config.gcc: Unify V850 architecture options and add support for
22323 newer V850 architectures.
22324 * config/v850/t-v850e: Delete.
22326 2011-06-07 Richard Guenther <rguenther@suse.de>
22328 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
22329 Call set_sizetype from here.
22331 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
22333 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
22334 (*maddhisi4tb, *maddhisi4tt): New define_insns.
22336 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
22337 Andrew Stubbs <ams@codesourcery.com>
22339 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
22341 * doc/md.texi (Canonicalization of Instructions): Document widening
22342 multiply canonicalization.
22344 2011-06-07 Jakub Jelinek <jakub@redhat.com>
22346 PR gcov-profile/49299
22347 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
22349 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
22351 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
22353 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
22354 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
22355 vect_recog_pow_pattern): Likewise.
22356 (vect_pattern_recog_1): Remove declaration.
22357 (widened_name_p): Remove declaration. Add new argument to specify
22358 whether to check that both types are either signed or unsigned.
22359 (vect_recog_widen_mult_pattern): Update documentation. Handle
22360 unsigned patterns and multiplication by constants.
22361 (vect_pattern_recog_1): Update vect_recog_func references. Use
22362 statement information from the statement returned from pattern
22363 detection functions.
22364 (vect_pattern_recog): Update vect_recog_func reference.
22365 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
22366 multiplication by a constant use the type of the other operand.
22368 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22370 PR rtl-optimization/49145
22371 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
22373 2011-06-06 Jakub Jelinek <jakub@redhat.com>
22376 * dwarf2out.c (native_encode_initializer): Decrement count in each
22380 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
22381 non-MODE_INT modes.
22384 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
22385 if stmt folded into nothing.
22386 * tree-inline.c (fold_marked_statements): If a builtin at the end of
22387 a bb folded into nothing, just update cgraph edges and move to next bb.
22388 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
22389 to be NULL. Don't compute count and frequency if new_call is NULL.
22391 2011-06-04 Diego Novillo <dnovillo@google.com>
22393 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
22394 (cgraph.o): Likewise.
22395 (cgraphunit.o): Likewise.
22396 * cgraphunit.c: Include lto-streamer.h
22397 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
22399 * lto-streamer-in.c (unpack_value_fields): Call
22400 streamer_hooks.unpack_value_fields if set.
22401 (lto_materialize_tree): For unhandled nodes, first try to
22402 call lto_streamer_hooks.alloc_tree, if it exists.
22403 (lto_input_ts_decl_common_tree_pointers): Move reading of
22404 DECL_INITIAL to lto_streamer_read_tree.
22405 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
22406 (lto_streamer_read_tree): New.
22407 (lto_reader_init): Rename from lto_init_reader.
22408 Move initialization code to lto/lto.c.
22409 * lto-streamer-out.c (pack_value_fields): Call
22410 streamer_hooks.pack_value_fields if set.
22411 (lto_output_tree_ref): For tree nodes that are not normally indexable,
22412 call streamer_hooks.indexable_with_decls_p before giving up.
22413 (lto_output_ts_decl_common_tree_pointers): Move handling
22414 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
22415 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
22416 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
22417 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
22418 (lto_streamer_write_tree): New.
22419 (lto_output): Call lto_streamer_init directly.
22420 (lto_writer_init): Remove.
22421 * lto-streamer.c (streamer_hooks): New.
22422 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
22423 instead of lto_preload_common_nodes.
22424 (lto_is_streamable): Move from lto-streamer.h
22425 (lto_streamer_hooks_init): New.
22426 (streamer_hooks): New.
22427 (streamer_hooks_init): New.
22428 * lto-streamer.h (struct output_block): Forward declare.
22429 (struct lto_input_block): Likewise.
22430 (struct data_in): Likewise.
22431 (struct bitpack_d): Likewise.
22432 (struct streamer_hooks): Declare.
22433 (streamer_hooks): Declare.
22434 (lto_streamer_hooks_init): Declare.
22435 (lto_streamer_write_tree): Declare.
22436 (lto_streamer_read_tree): Declare.
22437 (streamer_hooks_init): Declare.
22438 (lto_is_streamable): Move to lto-streamer.c
22440 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22442 * longlong.h (smul_ppmm): The resulting register pair contains the
22443 higher order word first.
22445 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22447 PR tree-optimization/46728
22448 * builtins.c (powi_table): Remove.
22449 (powi_lookup_cost): Remove.
22450 (powi_cost): Remove.
22451 (expand_powi_1): Remove.
22452 (expand_powi): Remove.
22453 (expand_builtin_pow_root): Remove.
22454 (expand_builtin_pow): Remove.
22455 (expand_builtin_powi): Eliminate handling of constant exponent.
22456 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
22458 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22460 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
22462 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22464 * dce.c (reset_unmarked_insns_debug_uses): New.
22465 (delete_unmarked_insns): Skip debug insns.
22466 (prescan_insns_for_dce): Likewise.
22467 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
22468 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
22469 active reg can be found.
22470 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
22471 (convert_regs_1): Use it.
22473 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22475 * tree-pretty-print.c (dump_function_header): Add flags.
22476 Don't dump decl_uid with nouid.
22477 * tree-pretty-print.h (dump_function_header): Adjust.
22478 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
22479 * passes.c (pass_init_dump_file): Pass dump_flags on.
22480 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
22482 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22485 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
22487 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
22489 PR tree-optimization/49243
22490 * calls.c (setjmp_call_p): Also check if fndecl has the
22491 returns_twice attribute.
22493 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22495 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
22498 2011-06-06 Richard Henderson <rth@redhat.com>
22499 Georg-Johann Lay <avr@gjlay.de>
22502 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
22504 * config/avr/avr.md ("insv"): New insn expander.
22505 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
22506 "*insv.not.io", "*insv.reg"): New insns.
22508 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
22511 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
22512 to nonimmediate_operand from memory_operand for the operand that is to
22513 be forced to memory by the expander. Lose the constraints.
22515 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
22517 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
22518 EH return when delayed branches are disabled.
22520 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
22522 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
22523 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
22525 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
22526 Simplify MODE_V1DF and MODE_V2SF handling.
22527 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
22528 Simplify MODE_SF handling.
22530 2011-06-04 Jan Hubicka <jh@suse.cz>
22532 PR tree-optimization/48893
22533 PR tree-optimization/49091
22534 PR tree-optimization/49179
22535 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
22538 2011-06-04 Jan Hubicka <jh@suse.cz>
22541 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
22544 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
22546 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
22548 2011-06-04 Jakub Jelinek <jakub@redhat.com>
22551 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
22552 to be strictly smaller than 1 << shiftcount.
22554 2011-06-04 Jan Hubicka <jh@suse.cz>
22556 PR tree-optimize/48929
22557 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
22558 of empty predicate.
22560 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
22563 * calls.c (emit_call_1): Prefer the __builtin declaration of
22566 2011-06-03 Diego Novillo <dnovillo@google.com>
22568 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
22569 (lto_input_tree_pointers): Likewise.
22570 * lto-streamer-out.c (pack_value_fields): Likewise.
22571 (lto_output_tree_pointers): Likewise.
22572 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
22573 and OPTIMIZATION_NODE.
22575 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22577 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
22578 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
22579 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
22580 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
22581 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
22582 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
22583 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
22584 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
22585 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
22586 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
22587 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
22588 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
22589 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
22590 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
22591 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
22592 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
22593 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
22594 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
22595 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
22596 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
22597 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
22598 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
22599 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
22600 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
22601 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
22602 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
22603 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
22604 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
22605 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
22606 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
22607 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
22608 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
22609 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
22610 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
22611 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
22612 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
22613 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
22614 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
22615 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
22616 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
22617 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
22618 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
22619 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
22620 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
22621 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
22622 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
22623 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
22624 * system.h (MD_UNWIND_SUPPORT): Poison.
22625 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
22626 * doc/tm.texi: Regenerate.
22627 * unwind-dw2.c: Include md-unwind-support.h instead of
22629 * config/ia64/unwind-ia64.c: Likewise.
22630 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22632 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
22634 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
22636 2011-06-03 Richard Henderson <rth@redhat.com>
22637 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22639 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
22640 (sigill_hdlr): Correct insn, insn size.
22641 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
22643 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22645 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
22647 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
22648 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
22649 * config/mips/t-iris: Remove.
22650 * config/mips/t-irix6: New file.
22651 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
22653 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22655 * Makefile.in (LIB2ADDEHDEP): Remove.
22656 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
22657 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
22658 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
22659 * config/t-darwin (LIB2ADDEHDEP): Remove.
22660 * config/t-freebsd (LIB2ADDEHDEP): Remove.
22661 * config/t-linux (LIB2ADDEHDEP): Remove.
22663 2011-06-03 Diego Novillo <dnovillo@google.com>
22665 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
22666 (lto_register_var_decl_in_symtab): Likewise.
22667 (lto_register_function_decl_in_symtab): Likewise.
22668 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
22669 logic to uniquify_nodes.
22671 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22673 * config/alpha/t-osf5: Remove.
22674 * config/alpha/t-osf-pthread: Remove.
22675 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
22676 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
22678 2011-06-03 Julian Brown <julian@codesourcery.com>
22680 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
22681 (strongarm1110): Use strongarm tuning.
22682 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
22683 * config/arm/arm.c (arm_strongarm_tune): New.
22684 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
22685 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
22686 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
22687 setting, using previous defaults or 1 for Cortex-A5.
22688 (arm_option_override): Set max_insns_skipped from current tuning.
22690 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
22692 * doc/install.texi (Options specification): Document --with-specs.
22694 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22696 * config/arm/neon.md (orndi3_neon): Actually split it.
22698 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
22700 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
22701 * var-tracking.c (reverse_op): Limite recurse depth to 5.
22703 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
22706 * target.def (delay_sched2, delay_vartrack): New.
22707 * doc/tm.texi.in: Update.
22708 * doc/tm.texi: Rebuild.
22709 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
22710 * var-tracking.c (gate_handle_var_tracking): Likewise.
22711 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
22712 (bfin_flag_var_tracking): Drop.
22713 (output_file_start): Don't save and override flag_var_tracking.
22714 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
22715 (bfin_reorg): Test original variables.
22716 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22717 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
22718 (ia64_flag_var_tracking): Drop.
22719 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22720 (ia64_file_start): Don't save and override flag_var_tracking.
22721 (ia64_override_options_after_change): Ditto
22722 flag_schedule_insns_after_reload.
22723 (ia64_reorg): Test original variables.
22724 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
22725 (picochip_flag_var_tracking): Drop.
22726 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22727 (picochip_option_override): Don't save and override
22728 flag_schedule_insns_after_reload.
22729 (picochip_asm_file_start): Ditto flag_var_tracking.
22730 (picochip_reorg): Test original variables.
22731 * config/spu/spu.c (spu_flag_var_tracking): Drop.
22732 (TARGET_DELAY_VARTRACK): Define.
22733 (spu_var_tracking): New.
22734 (spu_machine_dependent_reorg): Call it.
22735 (asm_file_start): Don't save and override flag_var_tracking.
22737 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
22740 * config/sh/predicates.md (general_movsrc_operand): Return 0
22741 for memory and memory subreg of which address is an invalid
22742 indexed address for QI and HImode.
22743 (general_movdst_operand): Likewise.
22745 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
22747 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
22748 edges only, when there is a non-local label in the function.
22749 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
22751 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
22753 * config/i386/constraints.md (Y3): New register constraint.
22754 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
22755 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
22756 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
22757 *sse2_interleave_lowv2df.
22759 2011-06-02 Julian Brown <julian@codesourcery.com>
22761 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
22762 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
22763 (arm_cortex_a5_tune): New.
22765 2011-06-02 Julian Brown <julian@codesourcery.com>
22767 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
22768 * config/arm/arm.c (arm_default_branch_cost): New.
22769 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
22770 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
22771 (arm_fa726_tune): Set branch_cost field using
22772 arm_default_branch_cost.
22773 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
22774 current_tune structure.
22775 * dojump.c (tm_p.h): Include file.
22777 2011-06-02 Julian Brown <julian@codesourcery.com>
22779 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
22781 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
22782 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
22783 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
22785 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
22786 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
22787 (arm_fa726te_tune): Add prefer_constant_pool setting.
22788 (arm_v6t2_tune, arm_cortex_tune): New.
22789 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
22790 prefer_constant_pool setting.
22792 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
22794 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
22796 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
22797 (*movdf_internal) <case 6,7,8>: Ditto.
22799 * config/i386/constraints.md (Y4): New register constraint.
22800 * config/i386/sse.md (vec_set<mode>_0): Merge with
22801 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
22802 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
22803 *vec_extractv2di_1_sse.
22804 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
22805 and *vec_concatv2di_rex64_sse.
22807 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
22810 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
22811 of cgraph_local_info for null before attempting to use it.
22813 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
22815 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
22816 (current_function_dynamic_alloc_count): Delete.
22817 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
22818 (expand_builtin_nonlocal_goto): Remove obsolete comment.
22819 (expand_builtin_update_setjmp_buf): Remove dead code.
22820 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
22821 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
22823 * function.c (instantiate_virtual_regs): Likewise.
22824 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
22825 for a block with a single abnormal incoming edge.
22826 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
22827 (SETJMP_VIA_SAVE_AREA): Delete.
22828 * config/sparc/sparc-protos.h (load_got_register): Declare.
22829 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
22830 (load_got_register): Make global.
22831 (sparc_frame_pointer_required): Add 'static'.
22832 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
22833 (sparc_builtin_setjmp_frame_value): New function.
22834 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
22835 (save_stack_nonlocal): New expander.
22836 (restore_stack_nonlocal): Likewise.
22837 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
22838 (nonlocal_goto_internal): New insn.
22839 (goto_handler_and_restore): Delete.
22840 (builtin_setjmp_setup): Likewise.
22841 (do_builtin_setjmp_setup): Likewise.
22842 (setjmp): Likewise.
22843 (builtin_setjmp_receiver): New expander.
22845 2011-06-01 David Li <davidxl@google.com>
22847 PR middle-end/49261
22848 * tree-pretty-print.c (dump_function_header): Format cleanup.
22850 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
22853 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
22854 needed when original operands are used for msw_skip comparison.
22856 2011-06-01 Jakub Jelinek <jakub@redhat.com>
22859 * var-tracking.c (add_uses, add_stores): Don't call
22860 cselib_subst_to_values on ENTRY_VALUE.
22862 2011-06-01 Diego Novillo <dnovillo@google.com>
22864 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
22865 output_record_start with LTO_null instead of output_zero.
22866 (lto_output_ts_binfo_tree_pointers): Likewise.
22867 (lto_output_tree): Likewise.
22868 (output_eh_try_list): Likewise.
22869 (output_eh_region): Likewise.
22870 (output_eh_lp): Likewise.
22871 (output_eh_regions): Likewise.
22872 (output_bb): Likewise.
22873 (output_function): Likewise.
22874 (output_unreferenced_globals): Likewise.
22875 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
22876 instead of NUM_TREE_CODES.
22877 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
22878 (lto_output_int_in_range): Change << to >> when shifting VAL.
22880 2011-06-01 Diego Novillo <dnovillo@google.com>
22882 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
22883 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
22885 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
22888 * optabs.h (valid_multiword_target_p): Declare.
22889 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
22890 doing multi-word operations.
22891 * optabs.c (expand_binop): Likewise.
22892 (expand_doubleword_bswap): Likewise.
22893 (expand_absneg_bit): Likewise.
22894 (expand_unop): Likewise.
22895 (expand_copysign_bit): Likewise.
22896 (multiword_target_p): New function.
22898 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
22900 PR rtl-optimization/48830
22901 PR rtl-optimization/48808
22902 PR rtl-optimization/48792
22903 * reload.c (push_reload): Check contains_reg_of_mode.
22904 * reload1.c (strip_paradoxical_subreg): New function.
22905 (gen_reload_chain_without_interm_reg_p): Use it to handle
22906 paradoxical subregs.
22907 (emit_output_reload_insns, gen_reload): Likewise.
22909 2011-06-01 David Li <davidxl@google.com>
22911 * predict.c : Change pass name
22914 * tree-profile.c: Ditto.
22917 2011-06-01 David Li <davidxl@google.com>
22919 * tree-pretty-print.c (dump_function_header): New function.
22920 * final.c (rest_of_clean_state): Use header dumper.
22921 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
22922 * passes.c (pass_init_dump_file): Use header dumper.
22924 2011-06-01 Jakub Jelinek <jakub@redhat.com>
22926 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
22927 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
22928 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
22930 (mem_loc_descriptor): Use them.
22932 * var-tracking.c (create_entry_value): New function.
22933 (vt_add_function_parameter): Use it.
22935 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22937 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
22938 Include <signal.h>, <ucontext.h>.
22939 (sigill_caught): Define.
22940 (sigill_hdlr): New function.
22941 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
22942 insns can be executed.
22943 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
22944 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
22946 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22948 * config/t-slibgcc-darwin: Move to ...
22949 * config/t-slibgcc-dummy: ... this. Clarify comments.
22950 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
22951 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
22952 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
22953 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
22954 Remove i386/t-crtstuff from tmake_file.
22955 (i[34567]86-*-solaris2*): Remove t-svr4,
22956 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
22958 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
22959 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
22960 sparc/t-crtfm from tmake_file.
22961 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
22962 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
22963 Remove extra_parts.
22964 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
22965 * config/i386/t-nwld (SHLIB_LINK): Remove.
22966 * config/i386/t-rtems-i386: Rename to ...
22967 * config/i386/t-rtems: ... this.
22968 ($(T)crti.o, $(T)crtn.o): Remove.
22969 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
22970 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
22971 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
22972 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
22973 EXTRA_MULTILIB_PARTS): Remove.
22974 * config/sparc/t-sol2-64: Likewise.
22975 * config/sparc/t-sol2: Remove.
22976 * config/sparc/t-crtin: Remove.
22977 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
22978 * config/i386/gmon-sol2.c: Remove.
22979 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
22980 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
22981 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
22982 * config/i386/sol2-gc1.asm: Remove.
22983 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
22984 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
22985 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
22986 * config/t-slibgcc-sld: Remove.
22988 2011-06-01 Jakub Jelinek <jakub@redhat.com>
22990 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
22991 base_type_for_mode with op_mode instead of mode.
22993 2011-06-01 Paul Brook <paul@cpodesourcery.com>
22995 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
22997 * config/arm/arm-tune.md: Regenerate.
22998 * config/arm/arm-tables.opt: Regenerate.
22999 * config/arm/arm.c (FL_DIV): Rename...
23000 (FL_THUMB_DIV): ... to this.
23001 (FL_ARM_DIV): Define.
23002 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
23003 (arm_arch_hwdiv): Remove.
23004 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
23005 (arm_issue_rate): Add cortexr5.
23006 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
23007 __ARM_ARCH_EXT_IDIV__.
23008 (TARGET_IDIV): Define.
23009 (arm_arch_hwdiv): Remove.
23010 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
23011 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
23012 (divsi3, udivsi3): New patterns.
23013 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
23014 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
23016 2011-06-01 Martin Jambor <mjambor@suse.cz>
23018 * ipa-utils.c (ipa_dfs_info): New field scc_no.
23019 * ipa-utils.c (searchc): Set scc_no.
23021 2011-06-01 Martin Jambor <mjambor@suse.cz>
23023 * ipa-utils.c (searchc_env): New field allow_overwritable.
23024 (searchc): do not ignore edges to overwritable nodes if indicated
23025 by env->allow_overwritable.
23026 (ipa_reduced_postorder): Set env.allow_overwritable.
23028 2011-06-01 Richard Guenther <rguenther@suse.de>
23030 * tree.c (free_lang_data): Do not reset boolean_type_node nor
23032 * lto-streamer.c (lto_record_common_node): Take node pointer,
23033 do not register types.
23034 (lto_preload_common_nodes): Explicitly skip preloading nodes
23035 that differ between frontends.
23037 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
23039 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
23042 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
23044 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
23045 parameter value for dump. Dump cost on outermost call only.
23046 (rs6000_memory_move_cost): Dump cost on outermost call only.
23048 2011-05-31 Jakub Jelinek <jakub@redhat.com>
23050 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
23051 DW_OP_GNU_convert ops.
23053 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
23054 cselib_preserve_constants.
23055 (cselib_lookup_1): If cselib_preserve_constants,
23056 a new VALUE is being created for REG and there is a VALUE for the
23057 same register in wider mode, add another loc with lowpart SUBREG of
23059 (cselib_subst_to_values): Handle ENTRY_VALUE.
23060 * var-tracking.c (replace_expr_with_values): Return NULL for
23062 * dwarf2out.c (convert_descriptor_to_signed): New function.
23063 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
23064 instead of two shifts.
23065 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
23066 the right mode if needed.
23067 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
23068 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
23069 convert_descriptor_to_signed.
23070 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
23071 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
23074 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
23076 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
23078 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
23079 of X87MODEI12 and SWI48x instead of SSEMODEI24.
23080 (SWI248x): New mode iterator, rename from X87MODEI.
23081 (X87MODEI): Remove mode iterator.
23082 (X87MODEI12): Ditto.
23083 (SSEMODEI24): Ditto.
23085 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
23087 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
23088 * doc/invoke.texi: Document max-vartrack-expr-depth.
23089 * var-tracking.c (EXPR_DEPTH): New.
23090 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
23092 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
23094 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
23095 * config/i386/sse.md: Add n to negated FMA pattern names.
23097 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
23099 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
23101 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
23103 * gengtype-state.c (read_state_params_structs): Initialize previous.
23105 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
23107 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
23108 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
23110 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
23112 * config/i386/i386.md (*movtf_internal): Avoid allocating general
23113 registers. Penalize F*r->o alternative to prevent partial memory
23114 stalls. Slightly penalize *roF->*r alternative. Generate SSE
23115 CONST_DOUBLE immediates when optimizing function for size. Do not move
23116 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
23117 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
23118 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
23119 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
23121 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
23123 (fp_register_operand splitters): Use fp_register_operand
23124 constraint. Do not use FP_REG_P in insn condition.
23125 (any_fp_register_operand splitters): Use any_fp_register_operand
23126 constraint. Do not use ANY_FP_REG_P in insn condition.
23128 2011-05-31 Jan Hubicka <jh@suse.cz>
23130 * cgraph.h (cgraph_inline_failed_t): Give enum a name
23131 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
23132 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
23133 (lto_output_edge): Use output_enum and var_len_unsigned.
23134 (lto_output_varpool_node): Likewise.
23135 (input_overwrite_node): Do not take resolution parameter;
23136 extract it from a bitpack.
23137 (input_node): Do not read resolution; use input_enum and
23139 (input_varpool_node): Likewise.
23140 (input_edge): Likewise.
23141 (input_cgraph_1): Likewise.
23143 2011-05-31 Richard Guenther <rguenther@suse.de>
23145 * gimple.c (gimple_register_canonical_type): Do not register
23146 any types via gimple_register_type.
23148 2011-05-31 Jan Hubicka <jh@suse.cz>
23150 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
23153 2011-05-31 Jakub Jelinek <jakub@redhat.com>
23155 PR rtl-optimization/49235
23156 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
23157 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
23159 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
23161 PR tree-optimization/49093
23162 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
23165 2011-05-31 Dodji Seketeli <dodji@redhat.com>
23168 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
23169 for concrete functions containing the code of cloned functions.
23171 2011-05-31 Richard Guenther <rguenther@suse.de>
23173 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
23175 (forward_propagate_into_comparison_1): ... this.
23176 (forward_propagate_comparison): Rename to ...
23177 (forward_propagate_into_comparison): ... this. Split out
23178 real forward propagation code to ...
23179 (forward_propagate_comparison): ... this.
23180 (forward_propagate_into_gimple_cond): Remove looping.
23181 (forward_propagate_into_cond): Likewise.
23182 (simplify_not_neg_expr): Return whether we have done something.
23183 (simplify_gimple_switch): Likewise.
23184 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
23185 (ssa_forward_propagate_and_combine): ... this. Re-structure
23186 to do a forward forward-propagation walk on BBs and a backward
23187 stmt combining walk on BBs. Consistently re-scan changed statements.
23188 (pass_forwprop): Adjust.
23190 2011-05-30 Ian Lance Taylor <iant@google.com>
23192 * godump.c (go_format_type): Correct length of name added to
23193 obstack for anonymous field.
23195 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
23198 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
23199 part of the second operand is 0.
23201 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
23203 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
23204 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
23205 to memory for !TARGET_MEMORY_MISMATCH_STALL.
23206 (*movdf_internal_rex64): Do not penalize F->r alternative.
23207 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
23208 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
23209 when optimizing function for size. Do not move CONST_DOUBLEs
23210 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
23211 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
23212 SUBREGs. Do not check for MEM_P operands in the insn condition,
23213 check for ANY_FP_REGNO_P instead.
23214 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
23215 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
23216 function for speed.
23217 * config/i386/i386.c (ix86_option_override_internal): Do not
23218 set TARGET_INTEGER_DFMODE_MOVES here.
23220 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
23223 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
23225 2011-05-30 Jakub Jelinek <jakub@redhat.com>
23227 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
23228 DW_TAG_rvalue_reference_type even for
23229 -gdwarf-4 -fno-debug-types-section.
23231 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23233 PR tree-optimization/46728
23234 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
23235 (build_and_insert_binop): New.
23236 (gimple_expand_builtin_pow): Reorder args for
23237 build_and_insert_call; use build_and_insert_binop; add more
23238 optimizations for fractional exponents.
23240 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
23245 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
23247 * tree.h (struct tree_identifier): Inherit from tree_typed, not
23249 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
23250 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
23251 TS_BASE instead of TS_COMMON.
23252 * varasm.c (assemble_name): Remove assert.
23254 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
23256 * config.gcc: Keep obselete list sorted.
23258 2011-05-30 Jakub Jelinek <jakub@redhat.com>
23259 Eric Botcazou <ebotcazou@adacore.com>
23261 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
23262 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
23263 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
23264 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
23265 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
23267 2011-05-30 Richard Guenther <rguenther@suse.de>
23269 * gimple.c (gimple_types_compatible_p_1): Compare record
23270 and union type members properly.
23272 2011-05-30 Richard Guenther <rguenther@suse.de>
23274 PR tree-optimization/49210
23275 * ipa-split.c (split_function): Care for the case where the call
23276 result is not trivially convertible to the result holding variable.
23278 2011-05-30 Richard Guenther <rguenther@suse.de>
23280 PR tree-optimization/49218
23281 * tree-vrp.c (adjust_range_with_scev): Properly check whether
23284 2011-05-30 Richard Guenther <rguenther@suse.de>
23286 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
23287 New function split out from ...
23288 (forward_propagate_into_gimple_cond): ... here. Adjust.
23289 (forward_propagate_into_cond): Likewise.
23290 (forward_propagate_comparison): Also propagate into
23291 comparisons on assignment RHS. Change return value to
23292 behave similar to forward_propagate_into_cond.
23293 (tree_ssa_forward_propagate_single_use_vars): Handle
23294 strict-overflow warnings properly for forward_propagate_comparison.
23296 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23298 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
23299 from plugin linker.
23300 * configure: Regenerate.
23302 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
23304 PR tree-optimization/49199
23305 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
23306 non-reduction operands are either defined in the loop or by induction.
23308 2011-05-29 Xinliang David Li <davidxl@google.com>
23310 * opts-global.c (handle_common_deferred_options): Handle new options.
23311 * passes.c (register_one_dump_file): Call register_pass_name.
23312 (execute_one_pass): Check explicit enable/disable flag.
23313 (passr_hash): New function.
23315 (register_pass_name): Ditto.
23316 (get_pass_by_name): Ditto.
23317 (pass_hash): Ditto.
23319 (enable_pass): Ditto.
23320 (disable_pass): Ditto.
23321 (is_pass_explicitly_enabled_or_disabled): Ditto.
23323 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
23325 * config/i386/i386.md (*movoi_internal_avx): Use
23326 standard_sse_constant_opcode for alternative 0.
23327 (*movti_internal_sse): Ditto.
23328 (*movti_internal_rex64): Use standard_sse_constant_opcode for
23330 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
23331 sselog1 type moves.
23332 (*movsi_internal): Ditto.
23333 (*movdi_internal): Ditto. Add ssecvt type moves.
23335 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
23338 * rtlanal.c (simplify_subreg_regno): Adjust comment.
23340 2011-05-29 Jakub Jelinek <jakub@redhat.com>
23342 PR rtl-optimization/49095
23343 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
23344 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
23346 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
23349 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
23350 recurse_p argument. Only follow register copies if it is set,
23351 and prevent mips_find_pic_call_symbol from recursing.
23352 (mips_find_pic_call_symbol): Add a recurse_p argument.
23353 Pass it to mips_pic_call_symbol_from_set.
23354 (mips_annotate_pic_calls): Update accordingly.
23356 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
23358 * emit-rtl.c (try_split): Use a loop to search for
23359 NOTE_INSN_CALL_ARG_LOCATIONs.
23361 2011-05-29 Richard Guenther <rguenther@suse.de>
23363 PR tree-optimization/49217
23364 * ipa-pure-const.c (propagate_pure_const): Fix typos.
23366 2011-05-28 Jan Hubicka <jh@suse.cz>
23368 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
23370 (string_slot_free): Remove
23371 (create_output_block): Initialize obstack.
23372 (destroy_output_block): Free obstack.
23373 (lto_string_index): Add PERSISTENT parameter; do not duplicate
23374 the string unless it needs to be added into the hash.
23375 (lto_output_string_with_length): Add persistent attribute;
23376 handle NULL strings.
23377 (lto_output_string): Add PERSISTENT parameter.
23378 (output_string_cst, output_identifier): Simplify.
23379 (lto_output_location_bitpack): Update.
23380 (lto_output_builtin_tree): Update.
23381 * lto-streamer.h (struct output_block): Add obstack.
23382 (lto_output_string, lto_output_string_with_length): Remove
23383 declarations; functions are static now.
23385 2011-05-28 Jan Hubicka <jh@suse.cz>
23387 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
23388 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
23389 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
23390 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
23391 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
23392 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
23393 unpack_ts_decl_with_vis_value_fields,
23394 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
23395 lto_get_builtin_tree): Use enum and variable length i/o.
23396 * basic-block.h (profile_status_d): Add PROFILE_LAST.
23397 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
23399 (bp_pack_enum, bp_unpack_enum): New macros.
23401 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23403 * genrecog.c: Remove redundant forward declarations.
23405 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23407 * config.gcc: Deprecate mips*-*-openbsd*.
23409 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23412 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
23415 2011-05-27 Andrew Pinski <pinskia@gmail.com>
23417 PR middle-end/48981
23418 * gengtype.c (vec_prefix_type): New function.
23419 (note_def_vec): Use vec_prefix_type and change the length
23420 attribute to be based on the prefix.
23421 * vec.c: Include coretypes.h before vec.h.
23422 (struct vec_prefix): Remove.
23423 (vec_gc_p_reserve): Change the offsetof to sizeof.
23424 (vec_gc_p_reserve_exact): Likewise.
23425 (vec_heap_p_reserve): Likewise.
23426 (vec_heap_p_reserve_exact): Likewise.
23427 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
23428 (vec_stack_p_reserve): Change the offsetof to sizeof.
23429 (vec_stack_p_reserve_exact): Likewise.
23430 * vec.h (struct vec_prefix): New struct definition.
23431 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
23432 (VEC_T_GTY(T,B)): Likewise.
23433 (DEF_VEC_FUNC_P(T)): Use prefix field.
23434 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
23435 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
23437 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23439 PR tree-optimization/46728
23440 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
23441 (powi_as_mults): Add gimple_set_location.
23442 (build_and_insert_call): New.
23443 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
23444 0.5, 0.25, 0.75, 1./3., or 1./6.
23446 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
23448 * doc/contrib.texi: Update copyright years.
23449 (Contributors): Add Zdenek Sojka.
23451 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
23453 * c-decl.c (c_push_function_context): Copy the current statement
23455 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
23456 (finish_struct): Call building_stmt_list_p instead of checking
23458 * c-parser.c (c_parser_postfix_expression): Likewise.
23459 * c-typeck.c (c_end_compound_stmt): Likewise.
23460 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
23461 * tree-iterator.c (stmt_list_cache): Change to a VEC.
23462 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
23463 (free_stmt_list): Likewise.
23464 * tree.h (struct tree_statement_list): Include typed_tree instead
23466 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
23467 as TS_TYPED instead of TS_COMMON.
23469 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23470 Uros Bizjak <ubizjak@gmail.com>
23472 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
23473 (HAVE_AS_IX86_TLSGDPTL): Define.
23474 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
23475 (HAVE_AS_IX86_TLSLDMPLT): Define.
23476 * configure: Regenerate.
23477 * config.in: Regenerate.
23478 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
23479 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
23480 TARGET_SUN_TLS, use @tlsgdplt or @plt.
23481 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
23482 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
23483 @tlsldmplt or @plt.
23484 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
23486 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
23488 * sched-int.h (struct _haifa_deps_insn_data): New members cond
23490 (INSN_COND, INSN_REVERSE_COND): New macros.
23491 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
23493 (sched_get_condition_with_rev): Cache the results, and look them up
23495 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
23496 are clobbered by the current insn.
23497 * target.def (exposed_pipline): New sched data hook.
23498 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
23499 * doc/tm.texi: Regenerate.
23501 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23503 PR tree-optimization/49170
23504 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
23507 2011-05-27 Richard Guenther <rguenther@suse.de>
23509 PR middle-end/49189
23510 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
23513 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
23515 * haifa-sched.c (sched_scan_info): Remove.
23516 (schedule_block): Call sched_extend_luids rather than sched_init_luids
23518 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
23520 (sched_scan): Remove.
23521 (sched_extend_luids): Renamed from luids_extend_insn and no longer
23522 static. All callers changed.
23523 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
23524 static. All callers changed.
23525 (sched_init_luids): Remove all arguments except the first. All
23526 callers changed. Don't use sched_scan.
23527 (haifa_init_h_i_d): Likewise.
23528 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
23529 manually rather than using sched_init_luids. Likewise with
23530 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
23531 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
23532 rather than sched_init_luids with NULL args.
23533 * sel-sched-ir.c (new_insns): Remove variable.
23534 (sched_scan): New static function, previously in haifa-sched.c. Remove
23535 all arguments but the first two; all callers changed.
23536 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
23537 rather than sched_init_luids.
23538 (sel_init_bbs): Remove second argument. All callers changed.
23539 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
23540 with NULL arguments.
23541 (create_insn_rtx_from_pattern): Likewise.
23542 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
23543 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
23544 (sched_init_insn_luid, sched_extend_luids): Declare.
23545 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
23548 2011-05-27 Richard Guenther <rguenther@suse.de>
23550 PR middle-end/49177
23551 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
23552 A CMP B ? (T) true : (T) false for non-integral types T again.
23554 2011-05-27 Jan Hubicka <jh@suse.cz>
23556 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
23557 so 0 means NULL string.
23558 (lto_output_string_with_length): ... here.
23559 (lto_output_string, output_string_cst, output_identifier): Update
23560 handling of NULL strings.
23561 (lto_output_location_bitpack): New function.
23562 (lto_output_location): Use it.
23563 (lto_output_tree_ref): Use output_record_start.
23564 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
23566 * lto-streamer-in.c (string_for_index): Break out from ...; offset
23568 (input_string_internal): ... here;
23569 (input_string_cst, input_identifier, lto_input_string): Update handling
23571 (lto_input_location_bitpack): New function
23572 (lto_input_location): Use it.
23573 (unpack_ts_type_common_value_fields): Pack align & alias in var len
23575 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
23576 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
23577 (bp_pack_value): Sanity check the value range.
23578 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
23580 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
23583 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
23585 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
23586 call_arg_location instructions down the floor.
23588 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
23590 PR rtl-optimization/49154
23591 * ira.c (setup_pressure_classes): Process class without sublcasses
23592 as a candidate for pressure classes.
23594 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
23596 PR rtl-optimization/48575
23597 * genrecog.c (position_type): New enum.
23598 (position): New structure.
23599 (decision): Use position structure instead of a string.
23600 (root_pos, peep2_insn_pos_list): New variables.
23601 (next_position, compare_positions): New functions.
23602 (new_decision): Use position structures instead of strings.
23603 (maybe_both_true): Likewise.
23604 (change_state): Likewise.
23605 (write_tree): Likewise.
23606 (make_insn_sequence): Likewise.
23608 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
23610 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
23611 TS_BASE instead of TS_COMMON.
23612 (find_decls_types_r): Check for TS_TYPED structure before looking at
23614 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
23616 (BLOCK_CHAIN): Use new chain field.
23618 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
23620 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
23621 moves expensive on Power7 also.
23623 2011-05-26 Richard Guenther <rguenther@suse.de>
23625 * fold-const.c (fold_unary_loc): Remove bogus code.
23627 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
23629 * tree.h (struct tree_identifier): Inherit from tree_typed, not
23631 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
23632 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
23633 TS_BASE instead of TS_COMMON.
23634 * varasm.c (assemble_name): Remove assert.
23636 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
23638 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
23640 * libgcc-std.ver: Delete file.
23642 2011-05-26 Richard Guenther <rguenther@suse.de>
23644 PR tree-optimization/48702
23645 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
23646 only when we know the base address is within bounds.
23647 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
23648 assume the base address of TARGET_MEM_REFs is in bounds.
23650 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23653 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
23654 declaration in TARGET_SOLARIS.
23656 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
23658 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
23659 The instruction is then expanded explicitly.
23660 (supported_compare): Callable instruction.
23661 (compare): Likewise.
23663 2011-05-26 Jakub Jelinek <jakub@redhat.com>
23666 * gimplify.c (shortcut_cond_r): Don't special case
23667 COND_EXPRs if they have void type on one of their arms.
23669 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
23671 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
23672 to reduce duplication, and to achieve a slightly more logical order
23675 2011-05-26 Jakub Jelinek <jakub@redhat.com>
23677 PR tree-optimization/49161
23678 * tree-vrp.c (struct case_info): New type.
23679 (compare_case_labels): Sort case_info structs instead of
23680 trees, and not primarily by CASE_LABEL uids but by
23681 label_for_block indexes.
23682 (find_switch_asserts): Put case labels into struct case_info
23683 array instead of TREE_VEC, adjust sorting, compare label_for_block
23684 values instead of CASE_LABELs.
23686 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23688 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
23689 ("orndi3_neon"): Likewise.
23690 ("bic<mode>3_neon"): Likewise.
23692 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
23694 PR tree-optimization/49038
23695 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
23696 Ensure at least one epilogue iteration if required by data
23697 accesses with gaps.
23698 * tree-vectorizer.h (struct _loop_vec_info): Add new field
23699 to mark loops that require peeling for gaps.
23700 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
23701 (vect_get_known_peeling_cost): Take peeling for gaps into
23703 (vect_transform_loop): Generate epilogue if required by data
23705 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
23706 loop as requiring an epilogue if there are gaps in the end of
23709 2011-05-25 Ian Lance Taylor <iant@google.com>
23711 * godump.c (go_format_type): Output the first field with a usable
23714 2011-05-25 Ian Lance Taylor <iant@google.com>
23716 * godump.c (go_format_type): Check for invalid type names, pointer
23717 target types, and struct field types.
23719 2011-05-25 Jason Merrill <jason@redhat.com>
23721 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
23723 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
23725 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
23727 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23729 * config/i386/i386.md (*movqi_extv_1)): Put back
23730 "register_operand" check in "type" calculation.
23731 (*movqi_extzv_2): Likewise.
23733 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23735 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
23737 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
23740 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
23741 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
23742 __divxc3, __divtc3): Wrap definitions in #ifndef.
23744 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23747 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
23748 "register_operand" check and replace q_regs_operand with
23749 QIreg_operand in "type" calculation.
23750 (*movqi_extv_1): Likewise.
23751 (*movqi_extzv_2_rex64): Likewise.
23752 (*movqi_extzv_2): Likewise.
23754 * config/i386/predicates.md (QIreg_operand): New.
23756 2011-05-25 Richard Guenther <rguenther@suse.de>
23758 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23759 type-based offset disambiguation, streamline MEM_REF and
23760 TARGET_MEM_REF handling.
23762 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23764 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
23765 (bdesc_special_args): Add pause intrinsic.
23767 * config/i386/i386.md (UNSPEC_PAUSE): New.
23769 (*pause): Likewise.
23770 * config/i386/ia32intrin.h (__pause): Likewise.
23772 * doc/extend.texi (X86 Built-in Functions): Add documentation for
23775 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23777 PR tree-optimization/46728
23778 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
23779 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
23781 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
23783 * tree.h (struct tree_exp): Inherit from struct tree_typed.
23784 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
23785 instead of TS_COMMON.
23787 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
23789 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
23790 LIBGCC2_GNU_PREFIX is defined.
23792 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
23793 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
23794 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
23795 __clz_tab): Define using __N.
23796 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
23797 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
23798 * target.def (libfunc_gnu_prefix): New hook.
23799 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
23800 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
23801 * doc/tm.texi: Regenerate.
23802 * system.h (LIBGCC2_GNU_PREFIX): Poison.
23803 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
23805 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
23806 (init_optabs): Likewise for the bswap libfuncs.
23807 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
23809 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
23810 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
23811 * libgcc-std.ver: Remove.
23812 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
23813 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
23815 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23816 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
23817 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
23818 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
23819 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
23820 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23821 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23822 * config/fixed-bit.h (FIXED_OP): Define differently depending on
23823 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
23824 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
23826 2011-05-25 Jan Hubicka <jh@suse.cz>
23828 * lto-streamer-out.c (output_record_start): Use lto_output_enum
23829 (lto_output_tree): Use output_record_start.
23830 * lto-streamer-in.c (input_record_start): Use lto_input_enum
23831 (lto_get_pickled_tree): Use input_record_start.
23832 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
23833 (lto_value_range_error): New function.
23834 * lto-streamer.h (lto_value_range_error): Declare.
23835 (lto_output_int_in_range, lto_input_int_in_range): New functions.
23836 (lto_output_enum, lto_input_enum): New macros.
23838 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
23840 * common.opt (flag_stack_usage_info): New variable.
23841 (-Wstack-usage): New option.
23842 * doc/invoke.texi (Warning options): Document -Wstack-usage.
23843 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
23844 <OPT_fstack_usage>: Likewise.
23845 * toplev.c (output_stack_usage): Handle -Wstack-usage.
23846 * calls.c (expand_call): Test flag_stack_usage_info variable instead
23847 of flag_stack_usage.
23848 (emit_library_call_value_1): Likewise.
23849 * explow.c (allocate_dynamic_stack_space): Likewise.
23850 * function.c (instantiate_virtual_regs ): Likewise.
23851 (prepare_function_start): Likewise.
23852 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
23853 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
23854 * config/arm/arm.c (arm_expand_prologue): Likewise.
23855 (thumb1_expand_prologue): Likewise.
23856 * config/avr/avr.c (expand_prologue): Likewise.
23857 * config/i386/i386.c (ix86_expand_prologue): Likewise.
23858 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
23859 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
23860 * config/mips/mips.c (mips_expand_prologue): Likewise.
23861 * config/pa/pa.c (hppa_expand_prologue): Likewise.
23862 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
23863 * config/s390/s390.c (s390_emit_prologue): Likewise.
23864 * config/sh/sh.c (sh_expand_prologue): Likewise.
23865 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
23866 * config/spu/spu.c (spu_expand_prologue): Likewise.
23868 2011-05-25 Richard Guenther <rguenther@suse.de>
23870 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
23871 (gimple_canonical_types_compatible_p): Likewise.
23873 2011-05-25 Jan Hubicka <jh@suse.cz>
23875 PR middle-end/49062
23876 * ipa.c (function_and_variable_visibility): Only add to same
23877 comdat group list if DECL_ONE_ONLY.
23879 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
23881 PR rtl-optimization/49014
23882 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
23884 2011-05-25 Jakub Jelinek <jakub@redhat.com>
23887 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
23889 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
23891 PR rtl-optimization/48757
23892 * ira-build.c (loop_with_eh_edge_p): Rename to
23893 loop_with_complex_edge_p, check edges on complexity, make function
23895 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
23898 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
23900 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
23901 force flag_ira_share_save_slots to 0.
23903 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
23905 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
23906 (vt_initialize): Set PROLOGUE_BB unconditionally.
23907 Add block comment about CFA_BASE_RTX machinery.
23908 Reset FP_CFA_OFFSET to -1 on all invalid paths.
23909 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
23911 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
23914 * c-parser.c (c_parser_objc_class_instance_variables): More robust
23915 parsing of syntax error in ObjC instance variable lists. In
23916 particular, avoid an infinite loop if there is a stray ']'.
23917 Updated error message.
23919 2011-05-24 Ian Lance Taylor <iant@google.com>
23921 * godump.c (go_define): Don't accept a string immediately after
23924 2011-05-24 Ian Lance Taylor <iant@google.com>
23926 * godump.c (struct godump_container): Add invalid_hash field.
23927 (go_format_type): Return false if type is found in invalid_hash.
23928 (go_output_typedef): Add invalid type to invalid_hash.
23929 (go_finish): Create and delete invalid_hash.
23931 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23933 PR tree-optimization/46728
23934 * tree-ssa-math-opts.c (powi_table): New.
23935 (powi_lookup_cost): New.
23937 (powi_as_mults_1): New.
23938 (powi_as_mults): New.
23939 (gimple_expand_builtin_powi): New.
23940 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
23941 (gate_cse_sincos): Remove sincos/cexp restriction.
23943 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23946 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
23948 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
23949 * mips-tdump.c: Likewise.
23951 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
23954 * config/i386/driver-i386.c (host_detect_local_cpu): Always
23955 add -mno-XXX. Handle FMA.
23957 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
23959 PR rtl-optimization/48633
23960 * ira-build.c (loop_with_eh_edge_p): New function.
23961 (mark_loops_for_removal): Use it.
23963 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
23965 PR rtl-optimization/48971
23966 * ira.c (setup_pressure_classes): Don't check register move cost
23967 for classes with one registers. Don't add pressure class if there
23968 is a pressure class with the same available hard registers.
23969 Check contains_reg_of_mode. Fix a typo in collecting
23970 temp_hard_regset. Ignore hard registers not belonging to a class.
23972 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
23975 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
23977 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
23978 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23980 PR gcov-profile/48845
23981 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
23983 2011-05-24 Richard Guenther <rguenther@suse.de>
23985 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
23986 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
23987 (gimple_types_compatible_p_1): Adjust.
23988 (iterative_hash_canonical_type): Do not bother about complete vs.
23990 (gimple_canonical_types_compatible_p): Likewise.
23992 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23994 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
23996 2011-05-24 Richard Guenther <rguenther@suse.de>
23999 * gimple.c (gimple_register_canonical_type): Revert
24001 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
24002 does not for a tree for the case where it matters. Cache
24003 pointer-type alias-sets.
24005 2011-05-24 Joseph Myers <joseph@codesourcery.com>
24007 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
24008 (OBJS): Remove options.o, opts-common.o and prefix.o.
24009 (OBJS-libcommon-target): New.
24010 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
24011 (BACKEND): Include libcommon-target.a.
24012 (MOSTLYCLEANFILES): Include libcommon-target.a.
24013 (libcommon-target.a): New.
24014 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
24017 2011-05-23 Joseph Myers <joseph@codesourcery.com>
24019 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
24020 parts of output shared with the driver.
24021 * optc-gen.awk: Don't generate parts of output not shared with the
24023 * opth-gen.awk: Remove GCC_DRIVER conditionals.
24024 * doc/options.texi (SourcerInclude): Mention options-save.c.
24025 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
24026 (OBJS): Add options-save.o.
24027 (options-save.c, options-save.o): New.
24028 (options.o): Update dependencies.
24029 (gcc-options.o): Remove.
24030 (mostlyclean): Remove options-save.c.
24032 2011-05-23 Jakub Jelinek <jakub@redhat.com>
24035 * dbxout.c: Include cgraph.h.
24036 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
24037 and without value expr, return NULL if no varpool node exists for
24038 it or if it is not needed.
24039 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
24042 * c-decl.c (start_decl): Convert expr to void_type_node.
24044 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
24046 PR rtl-optimization/48826
24047 * emit-rtl.c (try_split): When splitting a call that is followed
24048 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
24050 2011-05-23 Jakub Jelinek <jakub@redhat.com>
24052 * cfgexpand.c (expand_debug_expr): For unused non-addressable
24053 parameters passed in memory prefer using DECL_INCOMING_RTL over
24054 the pseudos it will be copied into.
24056 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
24059 * config/i386/i386.c (ix86_option_override_internal): Save the
24060 initial options after checking vzeroupper.
24062 2011-05-23 David Li <davidxl@google.com>
24064 PR tree-optimization/48988
24065 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
24066 Initialize has_valid_pred for each pred chain.
24068 2011-05-23 Richard Guenther <rguenther@suse.de>
24070 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
24071 (iterative_hash_gimple_type): Always hash type names.
24073 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
24075 * c-typeck.c (build_function_call_vec): Tweak call to
24076 check_function_arguments.
24078 2011-05-23 Richard Guenther <rguenther@suse.de>
24080 PR tree-optimization/49115
24081 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
24082 is not necessarily carried out, do not claim it kills the ref.
24083 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
24085 2011-05-23 Richard Guenther <rguenther@suse.de>
24087 PR middle-end/15419
24088 * builtins.c (fold_builtin_memory_op): Be less restrictive about
24089 what pointer types we accept for folding.
24091 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24093 * gthr-gnat.c: Remove.
24094 * gthr-gnat.h: Remove.
24095 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
24096 * config/t-freebsd (LIB2ADDEH): Likewise.
24097 * config/t-linux (LIB2ADDEH): Likewise.
24098 * config/t-sol2 (LIB2ADDEH): Likewise.
24099 * config/ia64/t-vms (LIB2ADDEH): Likewise.
24100 * configure.ac (target_thread_file): Remove gnat handling.
24101 * configure: Regenerate.
24102 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
24104 2011-05-23 Tristan Gingold <gingold@adacore.com>
24105 Eric Botcazou <ebotcazou@adacore.com>
24107 * gcov.c (create_file_names): If no object directory is specified,
24108 keep the directory of the file.
24110 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24112 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
24113 * configure: Regenerate.
24115 2011-05-23 Jakub Jelinek <jakub@redhat.com>
24117 PR middle-end/48973
24118 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
24119 failed and the comparison has a single bit signed type, use
24120 constm1_rtx instead of const1_rtx for true value.
24121 (do_store_flag): If ops->type is single bit signed type, disable
24122 signel bit test optimization and pass -1 instead of 1 as last
24123 parameter to emit_store_flag_force.
24125 2011-05-23 Tom de Vries <tom@codesourcery.com>
24128 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
24130 (infer_loop_bounds_from_undefined): Use new function.
24132 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
24134 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
24135 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
24136 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
24138 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
24140 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
24142 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
24143 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
24146 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
24148 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
24150 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
24152 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
24153 UNSPEC_MOVE_PIC pattern.
24155 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
24157 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
24158 (sparc-*-rtems*): Likewise.
24159 (sparc64-*-elf*): Likewise.
24160 (sparc64-*-rtems*): Likewise.
24161 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
24162 * config/sparc/t-crtin: New file.
24163 * config/sparc/t-sol2 (crti.o): Delete rule.
24164 (crtn.o): Likewise.
24165 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
24166 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
24167 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
24168 (ENDFILE_SPEC): Add crtn.o.
24170 2011-05-22 Tom de Vries <tom@codesourcery.com>
24172 PR middle-end/48689
24173 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
24174 CODE_CONTAINS_STRUCT (TS_COMMON).
24176 2011-05-22 Jakub Jelinek <jakub@redhat.com>
24178 PR middle-end/49029
24179 * expmed.c (extract_fixed_bit_field): Test whether target can be used
24180 only after deciding which mode to use.
24182 2011-05-22 Tom de Vries <tom@codesourcery.com>
24185 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
24186 for call to get_shiftadd_cost.
24188 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
24191 * config/i386/cpuid.h (bit_MMXEXT): New define.
24193 2011-05-22 Nick Clifton <nickc@redhat.com>
24195 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
24196 initialisation of non-existant args[2] element. Use args[] array
24197 not arg[] array to pass arguments to build_function_type_list.
24199 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
24201 PR tree-optimization/49087
24202 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
24204 2011-05-21 Jason Merrill <jason@redhat.com>
24207 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
24208 static storage duration.
24210 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
24212 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
24215 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
24217 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
24218 false if there are call-saved registers here...
24219 (sparc_can_use_return_insn_p): ...but here instead.
24220 (save_or_restore_regs): Fix thinko.
24221 (sparc_expand_prologue): Use current_function_is_leaf.
24222 (sparc_frame_pointer_required): Likewise.
24224 2011-05-21 Nick Clifton <nickc@redhat.com>
24227 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
24229 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
24231 * gengtype.c (walk_type): Implemented "atomic" GTY option.
24232 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
24234 2011-05-21 Joseph Myers <joseph@codesourcery.com>
24236 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
24237 * optc-gen.awk: Move common code to opt-read.awk.
24238 * opth-gen.awk: Likewise.
24239 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
24241 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
24243 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
24245 2011-05-20 Tom de Vries <tom@codesourcery.com>
24248 * tree-ssa-loop-ivopts.c: Include expmed.h.
24249 (get_shiftadd_cost): New function.
24250 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
24252 2011-05-20 Jakub Jelinek <jakub@redhat.com>
24255 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
24256 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
24258 2011-05-20 Joseph Myers <joseph@codesourcery.com>
24260 * Makefile.in: Update comment referring to $(OBJS-common).
24262 2011-05-20 Ian Lance Taylor <iant@google.com>
24264 * godump.c (go_output_typedef): Put enum constants in the macro
24265 hash table to avoid duplicate Go const definitions.
24267 2011-05-20 Joseph Myers <joseph@codesourcery.com>
24269 * Makefile.in (LIBDEPS): Add libcommon.a.
24271 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
24272 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
24273 pretty-print.o and version.o.
24274 (OBJS-libcommon): New.
24275 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
24276 (BACKEND): Add libcommon.a.
24277 (MOSTLYCLEANFILES): Likewise.
24278 (libcommon.a): New.
24279 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
24280 (cpp$(exeext)): Likewise.
24281 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
24282 pretty-print.o and input.o.
24283 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
24284 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
24285 (errors.o): Remove.
24286 (mips-tfile): Don't explicitly use version.o.
24287 (mips-tdump): Likewise.
24288 (gcov.o): Depend on $(DIAGNOSTIC_H).
24289 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
24290 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
24291 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
24292 * gcov-dump.c: Include intl.h and diagnostic.h.
24293 (main): Initialize diagnostics.
24294 * gcov.c: Include diagnostic.h.
24296 (main): Initialize diagnostics.
24297 * lto-wrapper.c: Include diagnostic.h.
24298 (main): Initialize diagnostics.
24300 2011-05-20 Michael Matz <matz@suse.de>
24302 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
24304 2011-05-20 Michael Matz <matz@suse.de>
24305 Richard Guenther <rguenther@suse.de>
24307 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
24308 use lto_streamer_cache_append directly instead of returning a VEC.
24309 (preload_common_node): Remove.
24310 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
24312 (lto_streamer_cache_create): Call lto_preload_common_nodes.
24314 2011-05-20 Richard Guenther <rguenther@suse.de>
24316 PR tree-optimization/49079
24317 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
24318 MEM_REFs correctly for the trailing array access detection.
24319 Special case constants the same way as decls for overall size
24322 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
24324 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
24325 argument expansion.
24327 2011-05-20 Jakub Jelinek <jakub@redhat.com>
24329 PR tree-optimization/49073
24330 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
24331 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
24332 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
24334 2011-05-20 Richard Guenther <rguenther@suse.de>
24336 PR middle-end/48849
24337 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
24338 of pointer types the same way the middle-end does.
24340 2011-05-20 Richard Guenther <rguenther@suse.de>
24342 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
24343 or pointer-to chains. Delay all fixup to uniquify_nodes.
24345 2011-05-19 Quentin Neill <quentin.neill@amd.com>
24347 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
24348 (fma4_fmaddsub): Likewise
24350 2011-05-19 Jan Hubicka <jh@suse.cz>
24352 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
24353 (GIMPLE_TYPE_PAIR_SIZE): New macro.
24354 (type_pair_cache): New static var.
24355 (lookup_type_pair): Use fixed sized custom hash; make inline.
24356 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
24357 calls of lookup_type_pair.
24358 (print_gimple_types_stats): Remove cache stats.
24359 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
24362 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
24364 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
24365 when TARGET_RDRND is active.
24366 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
24367 Generate dummy SImode target register when target is NULL.
24369 2011-05-19 Joseph Myers <joseph@codesourcery.com>
24371 * config/arm/arm-fpus.def: New.
24372 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
24374 * config/arm/arm-tables.opt: Regenerate.
24375 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
24376 (arm_option_override): Don't decode FPU name to string here.
24377 * config/arm/arm.opt (mfpu=): Use Enum.
24378 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
24379 Update dependencies.
24381 2011-05-19 Joseph Myers <joseph@codesourcery.com>
24383 * collect2.c: Include diagnostic.h.
24384 (fatal_perror, fatal, error, fancy_abort): Remove.
24385 (main): Set progname. Call xmalloc_set_program_name and
24386 diagnostic_initialize.
24387 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
24388 scan_libraries, resolve_lib_name): Call fatal_error instead of
24389 fatal and fatal_perror.
24390 * collect2.h (error, fatal, fatal_perror): Don't declare.
24391 * tlink.c: Include diagnostic-core.h.
24392 (recompile_files): Call fatal_error instead of fatal_perror.
24393 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
24394 pretty-print.o and input.o.
24395 (collect2.o, tlink.o): Update dependencies.
24397 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24399 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
24401 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24404 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
24405 COMDAT group syntax, both SPARC and x86 variants.
24406 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
24407 * configure: Regenerate.
24408 * config/sol2.h (TARGET_SOLARIS): Define.
24409 (PUSHSECTION_FORMAT): Remove.
24410 (SECTION_NAME_FORMAT): Define.
24411 * config/sol2.c: Include hashtab.h.
24412 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
24413 expansion, using SECTION_NAME_FORMAT.
24414 (solaris_comdat_htab): New variable.
24415 (struct comdat_entry): Define.
24416 (comdat_hash): New function.
24417 (comdat_eq): New function.
24418 (solaris_elf_asm_comdat_section): New function.
24419 (solaris_define_comdat_signature): New function.
24420 (solaris_code_end): New function.
24421 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
24422 (solaris_code_end): Declare.
24423 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
24424 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
24426 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
24427 Remove ATTRIBUTE_UNUSED.
24428 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
24429 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
24430 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
24431 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
24432 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
24433 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
24434 (PUSHSECTION_FORMAT): Remove.
24435 (SECTION_NAME_FORMAT): Redefine.
24437 2011-05-19 Kai Tietz <ktietz@redhat.com>
24439 * tree-cfg.c (verify_gimple_assign_binary): Barf on
24440 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
24441 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
24443 2011-05-19 Anatoly Sokolov <aesok@post.ru>
24444 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24446 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
24448 2011-05-19 Richard Guenther <rguenther@suse.de>
24450 PR middle-end/48985
24451 * tree-object-size.c (addr_object_size): If the pointed-to
24452 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
24454 2011-05-19 Richard Guenther <rguenther@suse.de>
24456 * gimple.c (gimple_types_compatible_p_1): Compare names of
24457 the types themselves.
24458 (iterative_hash_gimple_type): And hash them that way.
24459 (gimple_register_type_1): If we register a main variant properly
24460 initialize the leader to ourselves.
24462 2011-05-19 Tom de Vries <tom@codesourcery.com>
24465 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
24466 get_loop_invariant_expr_id.
24467 (get_loop_invariant_expr_id): Use get_expr_id.
24468 (parm_decl_cost): New function.
24469 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
24470 Improve bound cost estimation. Use different inv_expr_id for elim and
24473 2011-05-19 Tom de Vries <tom@codesourcery.com>
24476 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
24477 cost_base.cost == 0.
24479 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
24482 * config/i386/sse.md
24483 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
24486 2011-05-18 Jakub Jelinek <jakub@redhat.com>
24488 PR tree-optimization/49039
24489 * tree-vrp.c (extract_range_from_binary_expr): For
24490 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
24491 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
24493 2011-05-18 Tom de Vries <tom@codesourcery.com>
24496 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
24498 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
24500 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
24501 (*tls_global_dynamic_64): Ditto.
24502 (*tls_local_dynamic_base_32_gnu): Ditto.
24503 (*tls_local_dynamic_base_64): Ditto.
24504 (tls_initial_exec_64_sun): Ditto.
24506 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
24508 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
24509 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
24511 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
24512 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
24513 * config/bfin/bfin.c (bfin_cpus): Add bf592.
24514 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
24515 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
24516 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
24517 * config/bfin/elf.h (LIB_SPEC): Add bf592.
24519 2011-05-18 Joseph Myers <joseph@codesourcery.com>
24521 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
24522 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
24523 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
24524 target_thread_pointer, arm_structure_size_boundary, struct
24525 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
24526 struct abi_name, arm_all_abis): Remove.
24527 (arm_option_override) Don't process most enumerated option values here.
24528 Don't process target_fpe_name here. Work with integer not string for
24529 structure size boundary; use separate diagnostics for each case.
24530 * config/arm/arm.h (enum float_abi_type, enum
24531 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
24533 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
24534 arm_structure_size_boundary): Remove.
24535 * config/arm/arm.opt (mabi=): Use Enum and Init.
24536 (arm_abi_type): New Enum and EnumValue entries.
24537 (mfloat-abi=): Use Enum and Init.
24538 (float_abi_type): New Enum and EnumValue entries.
24539 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
24540 (mfp16-format=): Use Enum and Init.
24541 (arm_fp16_format_type): New Enum and EnumValue entries.
24542 (mstructure-size-boundary=): Use UInteger and Init.
24543 (mtp=): Use Enum and Init.
24544 (arm_tp_type): New Enum and EnumValue entries.
24546 2011-05-18 Richard Guenther <rguenther@suse.de>
24548 PR tree-optimization/49018
24549 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
24550 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
24551 gimple_has_side_effects.
24553 2011-05-18 Richard Guenther <rguenther@suse.de>
24555 * gimple.c (gimple_register_type_1): New function, split out from ...
24556 (gimple_register_type): ... here. Avoid infinite recursion.
24558 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
24560 PR tree-optimization/41881
24561 * tree-vectorizer.h (struct _loop_vec_info): Add new field
24562 reduction_chains along with a macro for its access.
24563 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
24564 (destroy_loop_vec_info): Free reduction chains.
24565 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
24566 (vect_is_slp_reduction): New function.
24567 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
24568 (vect_create_epilog_for_reduction): Support SLP reduction chains.
24569 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
24570 definition types for reduction chains.
24571 (vect_supported_load_permutation_p): Don't allow permutations for
24573 (vect_analyze_slp_instance): Support reduction chains.
24574 (vect_analyze_slp): Try to build SLP instance from reduction chains.
24575 (vect_get_constant_vectors): Handle reduction chains.
24576 (vect_schedule_slp_instance): Mark the first statement of the
24577 reduction chain as reduction.
24579 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
24581 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
24582 names for group elements access.
24583 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
24584 reduction chains as well. Remove data reference and interleaving
24585 related words from the fields names.
24586 * tree-vect-loop.c (vect_transform_loop): Use new names for group
24588 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
24589 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
24590 vect_update_interleaving_chain, vect_same_range_drs,
24591 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
24592 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
24593 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
24594 vect_analyze_group_access, vect_analyze_data_ref_access,
24595 vect_create_data_ref_ptr, vect_transform_strided_load,
24596 vect_record_strided_load_vectors): Likewise.
24597 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
24598 vect_model_load_cost, vectorizable_store, vectorizable_load,
24599 vect_remove_stores, new_stmt_vec_info): Likewise.
24600 * tree-vect-slp.c (vect_build_slp_tree,
24601 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
24603 2011-05-18 Richard Guenther <rguenther@suse.de>
24605 PR middle-end/48989
24606 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
24607 operand verification.
24608 (verify_gimple_assign_binary): Likewise.
24609 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
24610 to non-1-precision BOOLEAN_TYPEs.
24612 2011-05-18 Tom de Vries <tom@codesourcery.com>
24615 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
24617 2011-05-18 Jakub Jelinek <jakub@redhat.com>
24619 PR tree-optimization/49000
24620 * tree-ssa.c (execute_update_addresses_taken): Call
24621 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
24622 be rewritten and decl has been marked for renaming, reset
24625 2011-05-17 Joseph Myers <joseph@codesourcery.com>
24627 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
24628 enum_opts_set when testing if attributes have set -mfpmath=.
24630 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24632 * config/mips/mips.c (mips_handle_option): Remove unused variable.
24634 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
24636 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
24638 * tree-inline.c (maybe_inline_call_in_expr): Initialize
24639 id.transform_lang_insert_block with NULL.
24641 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
24643 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
24644 (output_fp_compare): Change args 3 and 4 to bool.
24645 (ix86_expand_call): Change arg 6 to bool.
24646 (ix86_attr_length_immediate_default): Change arg 2 to bool.
24647 (ix86_attr_length_vex_default): Change arg 3 to bool.
24648 * config/i386/i386.md: Update all uses.
24649 * config/i386/i386.c: Ditto.
24650 (ix86_flags_dependent): Change return type to bool.
24652 2011-05-17 Richard Guenther <rguenther@suse.de>
24654 * gimple.c (type_hash_pair_compare): Fix comparison.
24656 2011-05-17 Richard Guenther <rguenther@suse.de>
24658 * gimple.c (iterative_hash_gimple_type): Simplify singleton
24659 case some more, fix final hash value of the non-singleton case.
24661 2011-05-17 Richard Guenther <rguenther@suse.de>
24665 2011-05-16 Richard Guenther <rguenther@suse.de>
24667 * gimple.c (gimple_types_compatible_p_1): Use names of the
24668 type itself, not its main variant.
24669 (iterative_hash_gimple_type): Likewise.
24671 2011-05-17 Richard Guenther <rguenther@suse.de>
24673 * gimple.c (gimple_register_canonical_type): Use the main-variant
24674 leader for computing the canonical type.
24676 2011-05-17 Nick Clifton <nickc@redhat.com>
24678 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
24681 * config/rx/rx.md: Add peephole to remove redundant extensions
24683 (bitset_in_memory): Use rx_restricted_mem_operand.
24684 (bitinvert_in_memory): Likewise.
24685 (bitclr_in_memory): Likewise.
24687 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
24688 Nick Clifton <nickc@redhat.com>
24690 * config/rx/rx.md: Add peepholes to match a register move followed
24691 by a comparison of the moved register. Replace these with an
24692 addition of zero that does both actions in one instruction.
24694 2011-05-17 Jakub Jelinek <jakub@redhat.com>
24697 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
24698 predicate to allow CONST_INT.
24699 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
24701 2011-05-16 Joseph Myers <joseph@codesourcery.com>
24703 * opts-common.c (opt_enum_arg_to_value): New.
24704 * opts.h (opt_enum_arg_to_value): Declare.
24705 * config/i386/i386.opt (fpmath): Remove.
24706 (mfpmath=): Use Enum, Init and Save.
24707 (fpmath_unit): New Enum and EnumValue entries.
24708 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
24709 name for function fpmath state.
24710 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
24711 * config/i386/i386.c: Include diagnostic.h.
24712 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
24713 (ix86_target_string): Take enum fpmath_unit value instead of string.
24714 (ix86_debug_options): Update call to ix86_target_string.
24715 (ix86_option_override_internal): Don't process fpmath strings here.
24716 (x86_function_specific_save, ix86_function_specific_restore):
24717 Don't handle fpmath state specially.
24718 (ix86_function_specific_print): Pass fpmath state to
24719 ix86_target_string instead of printing in this function.
24720 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
24721 Handle enum attributes.
24722 (IX86_ATTR_ENUM, ix86_opt_enum): New.
24723 (ix86_valid_target_attribute_tree): Update option_strings
24724 handling. Handle fpmath as enum option.
24725 (ix86_can_inline_p): Update field names for function fpmath state.
24726 (ix86_expand_builtin): Update call to ix86_target_string.
24727 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
24728 (ix86_fpmath): Remove.
24729 * config/i386/t-i386 (i386.o): Update dependencies.
24731 2011-05-16 Joseph Myers <joseph@codesourcery.com>
24733 PR preprocessor/48677
24734 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
24735 from decoded_options[0], not from itself.
24737 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
24739 * config/i386/constraints.md (z): New constraint.
24740 * config/i386/i386.c (c): New mode attribute.
24741 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
24742 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
24743 constraint for operand 0.
24744 (*call_vzeroupper): Ditto.
24745 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
24746 (*call_rex64_ms_sysv_vzeroupper): Ditto.
24747 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
24748 Use "lzm" constraint for operand 0.
24749 (*call_pop_vzeroupper): Ditto.
24750 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
24751 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
24752 constraint for operand 0.
24753 (*sibcall_vzeroupper): Ditto.
24754 (*sibcall_rex64_ms_sysv): Ditto.
24755 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
24756 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
24757 *sibcall_pop_1. Use "Uz" constraint for operand 0.
24758 (*sibcall_pop_vzeroupper): Ditto.
24759 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
24760 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
24761 mode iterator. Use "<c>zm" constraint for operand 1.
24762 (*call_value_vzeroupper): Ditto.
24763 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
24765 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
24766 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
24767 *call_value_pop_1. Use "lzm" constraint for operand 1.
24768 (*call_value_pop_vzeroupper): Ditto.
24769 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
24770 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
24771 mode iterator. Use "Uz" constraint for operand 1.
24772 (*sibcall_value_vzeroupper): Ditto.
24773 (*sibcall_value_rex64_ms_sysv): Ditto.
24774 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
24775 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
24776 constraint for operand 1.
24777 (*sibcall_value_pop_vzeroupper): Ditto.
24778 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
24779 and "z" constraint for operand 2.
24780 (*tls_global_dynamic_32_gnu): Ditto.
24781 (*tls_local_dynamic_base_32_gnu): Ditto.
24782 (*tls_local_dynamic_base_64): Ditto.
24783 (*tls_local_dynamic_32_once): Ditto.
24784 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
24785 Update all callers.
24786 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
24788 2011-05-16 Richard Guenther <rguenther@suse.de>
24790 * gimple.c (gimple_types_compatible_p_1): Use names of the
24791 type itself, not its main variant.
24792 (iterative_hash_gimple_type): Likewise.
24794 2011-05-16 Richard Guenther <rguenther@suse.de>
24796 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
24797 always visit pointer target and function result and argument types.
24799 2011-05-16 Jason Merrill <jason@redhat.com>
24802 * tree-inline.c (copy_statement_list): Put back recursion.
24804 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
24808 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
24809 * config/avr/avr.md ("*ior<mode>qi.byte0",
24810 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
24812 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
24815 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
24816 register is needed for a function argument.
24818 2011-05-16 Richard Guenther <rguenther@suse.de>
24820 * gimple.c (struct type_hash_pair): New type.
24821 (type_hash_pair_compare): New function.
24822 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
24824 2011-05-16 Revital Eres <revital.eres@linaro.org>
24826 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
24828 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
24830 * config/i386/i386.md (floating point move splitters): Fix
24831 usage of standard_80387_constant_p.
24832 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
24834 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
24836 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
24838 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
24840 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
24841 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
24842 (tree_ssa_lim_finalize): Likewise.
24844 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
24846 * config/i386/constraint.md (Yd, Yx): New register constraints.
24847 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
24848 Yd conditional register constraint.
24849 (*movtf_internal): Use standard_sse_constant_opcode.
24850 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
24851 Yx conditional register constraint.
24852 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
24853 Yd conditional register constraint. Use standard_sse_constant_p to
24854 check for valid SSE constants and call standard_sse_constant_opcode to
24856 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
24857 constants and call standard_sse_constant_opcode to output SSE insn.
24858 * config/i386/i386.c (ix86_option_ovverride_internal): Set
24859 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
24860 optimize_size is set.
24861 (standard_sse_constant_opcode): Output conditional AVX insn templates.
24863 2011-05-14 Tobias Burnus <burnus@net-b.de>
24865 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
24867 2011-05-13 Martin Jambor <mjambor@suse.cz>
24869 * ipa-prop.c (ipa_cst_from_jfunc): New function.
24870 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
24871 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
24872 (evaluate_conditions_for_ipcp_clone): Removed.
24873 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
24874 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
24875 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
24877 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
24879 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
24880 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
24881 lieu of MAY_HAVE_DEBUG_STMTS.
24882 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
24883 debug statements if !MAY_HAVE_DEBUG_STMTS.
24885 2011-05-13 Martin Thuresson <martint@google.com>
24887 PR gcov-profile/47793
24888 * libgcov.c (gcov_exit): Support relative profile paths.
24889 * doc/invoke.texi (-fprofile-dir): Update for above change.
24891 2011-05-13 Richard Guenther <rguenther@suse.de>
24893 * gimple.c (gimple_canonical_types_compatible_p): Do not use
24894 type-pair caching, do not compare hashes.
24896 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
24898 PR middle-end/48965
24899 * tree-cfg.c (edge_to_cases_cleanup): Return true.
24900 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
24902 2011-05-13 Kai Tietz <ktietz@redhat.com>
24904 * gimplify.c (gimplify_expr): Make sure operand is boolified.
24905 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
24906 compatible type for TRUTH_NOT_EXPR.
24908 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
24910 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
24911 (ix86_hard_regno_mode_ok): Change return value to bool. Use
24912 can_create_pseudo_p ().
24914 2011-05-13 Richard Guenther <rguenther@suse.de>
24917 * gimple.c (iterative_hash_gimple_type): Revert change in
24918 pointer target and function result and argument hashing.
24920 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
24922 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
24923 (*movxf_internal_nointeger): Ditto.
24924 (*movdf_internal_rex64): Ditto.
24925 (*movdf_internal): Ditto.
24926 (*movdf_internal_nointeger): Ditto.
24927 (*movsf_internal): Ditto.
24928 (sincos splitters): Use can_create_pseudo ().
24930 2011-05-13 Joseph Myers <joseph@codesourcery.com>
24932 * config/i386/i386-opts.h: New.
24933 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
24934 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
24935 ix86_section_threshold): Remove.
24936 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
24937 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
24939 (ix86_option_override_internal): Don't decode strings for options
24940 other than -march=, -mtune= and -mfpmath=. Don't allow for
24941 __attribute__ uses in remaining diagnostics for options with
24942 string arguments. Don't check for integer arguments being negative.
24943 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
24944 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
24945 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
24946 ix86_branch_cost, ix86_section_threshold): Remove.
24947 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
24949 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
24951 (masm=): Use Enum and Init.
24952 (asm_dialect): New Enum and EnumValue entries.
24953 (mbranch-cost=): Use UInteger.
24954 (mlarge-data-threshold=): Use UInteger and Init.
24955 (mcmodel=): Use Enum and Init.
24956 (cmodel): New Enum and EnumValue entries.
24957 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
24958 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
24959 mregparm=): Use UInteger.
24960 (mstringop-strategy=): Use Enum and Init.
24961 (stringop_alg): New Enum and EnumValue entries.
24962 (mtls-dialect=): Use Enum and Init.
24963 (tls_dialect): New Enum and EnumValue entries.
24964 (mabi=): Use Enum and Init.
24965 (calling_abi): New Enum and EnumValue entries.
24966 (mveclibabi=): Use Enum and Init.
24967 (ix86_veclibabi): New Enum and EnumValue entries.
24969 2011-05-13 Nick Clifton <nickc@redhat.com>
24971 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
24972 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
24974 2011-05-13 Kai Tietz <ktietz@redhat.com>
24976 PR middle-end/48984
24977 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
24978 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
24979 (gimple_boolify): Check for cast for boolean_type_node instead for
24982 2011-05-13 Richard Guenther <rguenther@suse.de>
24984 PR tree-optimization/48172
24985 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
24986 multiplying by number of iterations for equal step.
24987 (vect_create_cond_for_alias_checks): Likewise.
24989 2011-05-13 Andreas Schwab <schwab@redhat.com>
24991 * configure.ac: Use AS_HELP_STRING throughout.
24992 * configure: Regenerate.
24994 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
24996 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
24997 (ix86_emit_restore_regs_using_mov): Likewise.
24998 (ix86_emit_restore_sse_regs_using_mov): Likewise.
25000 2011-05-12 Anatoly Sokolov <aesok@post.ru>
25002 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
25003 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
25004 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
25005 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
25006 RTX_OK_FOR_OLO10_P): ...here.
25007 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
25010 2011-05-12 Kai Tietz <ktietz@redhat.com>
25012 * gimplify.c (gimple_boolify): Re-boolify expression
25013 arguments even if expression type is of kind BOOLEAN_TYPE.
25014 (gimplify_boolean_expr): Removed.
25015 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
25016 and XOR. Additional take care that we keep expression's type.
25017 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
25018 of TRUTH_AND|OR|XOR_EXPR.
25020 2011-05-12 Jakub Jelinek <jakub@redhat.com>
25022 PR tree-optimization/48975
25023 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
25024 on all bbs here and free and clear ifc_bbs at the end.
25026 2011-05-12 Richard Guenther <rguenther@suse.de>
25028 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
25029 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
25030 until after simple checks.
25031 (gimple_types_compatible_p): Likewise.
25032 (iterative_hash_gimple_type): Always hash pointer targets
25033 and function return and argument types.
25034 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
25035 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
25036 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
25037 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
25038 completely in the simple compare section.
25039 (gimple_register_canonical_type): Query the cache again after
25042 2011-05-12 Richard Guenther <rguenther@suse.de>
25044 PR tree-optimization/48172
25045 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
25046 the number of iterations from the segment size calculation.
25047 (vect_create_cond_for_alias_checks): Adjust.
25049 2011-05-12 Jakub Jelinek <jakub@redhat.com>
25052 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
25053 if validate_subreg fails.
25055 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
25057 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
25058 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
25061 2011-05-12 DJ Delorie <dj@redhat.com>
25063 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
25064 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
25065 created builtin into rx_builtins array.
25066 (rx_builtin_decl): New function.
25067 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
25069 2011-05-12 DJ Delorie <dj@redhat.com>
25070 Nick Clifton <nickc@redhat.com>
25072 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
25073 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
25074 (rx_is_legitimate_address): Add pre-decrement and post-increment
25075 addressing in HImode and QImode. Fix test for out of range
25076 REG+INT addressing.
25077 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
25078 (rx_align_for_label): Test label before extracting its usage count.
25079 (rx_adjust_insn_lengths): Fix selection of insn codes.
25080 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
25082 2011-05-11 Jason Merrill <jason@redhat.com>
25084 * tree.c (type_hash_canon): Use struct tree_type_non_common.
25086 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
25088 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
25089 reindent the subsequent block.
25091 2011-05-11 Satoru Takabayashi <satorux@google.com>
25092 Paul Pluzhnikov <ppluzhnikov@google.com>
25094 * doc/install.texi (Configuration): Document --with-linker-hash-style.
25095 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
25096 * config.in: Add LINKER_HASH_STYLE.
25097 * configure.ac: Add --with-linker-hash-style.
25098 * configure: Regenerate.
25100 2011-05-11 Richard Guenther <rguenther@suse.de>
25102 PR middle-end/48964
25103 * gimple.c (iterative_hash_canonical_type): Fix typo.
25105 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
25107 * config/i386/i386.c (legitimize_tls_address)
25108 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
25109 expanders directly for TARGET_GNU2_TLS. Determine pic and
25110 __tls_get_addr symbol reference here. Update call to
25111 gen_tls_global_dynamic_{32,64} for added arguments.
25112 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
25113 expanders directly for TARGET_GNU2_TLS. Determine
25114 __tls_get_addr symbol reference here. Update call to
25115 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
25116 unique UNSPEC REG_EQUIV to libcall block.
25117 (ix86_tls_get_addr): Declare static.
25118 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
25119 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
25120 Do not determine pic and __tls_get_addr symbol reference here. Do not
25121 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
25122 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
25123 (tls_global_dynamic_64): Add operand 2. Do not determine
25124 __tls_get_addr symbol reference here. Do not call
25125 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
25126 (tls_local_dynamic_base64): Ditto for operand 1.
25128 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
25130 * function.c (expand_function_start): Initialize stack_check_probe_note
25131 only if the generic stack checking mechanism is used.
25133 2011-05-11 Richard Guenther <rguenther@suse.de>
25135 PR tree-optimization/15256
25136 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
25137 (A & B) | C, combine (A op CST1) op CST2.
25138 (tree_ssa_forward_propagate_single_use_vars): Only bother to
25139 visit assigns that have uses.
25141 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
25143 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
25144 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
25145 (unpack_ts_type_common_value_fields): ...this. Update comment.
25146 (unpack_value_fields): Adjust for renaming.
25147 (lto_input_ts_type_tree_pointers): Split into...
25148 (lto_input_ts_type_common_tree_pointer): ...this and...
25149 (lto_input_ts_type_non_common_tree_pointers): ...this.
25150 (lto_input_tree_pointers): Adjust for above split.
25151 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
25152 (pack_ts_type_common_value_fields): ...this. Update comment.
25153 (lto_output_ts_type_tree_pointers): Split into...
25154 (lto_output_ts_type_common_tree_pointers): ...this and...
25155 (lto_output_ts_type_non_common_tree_pointers): ...this.
25156 (lto_output_tree_pointers): Adjust for above split.
25157 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
25158 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
25159 * stor-layout.c (vector_type_mode): Adjust location of mode field.
25160 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
25162 (struct tree_type): Split into...
25163 (struct tree_type_common: ...this and...
25164 (struct tree_type_with_lang_specific): ...this and...
25165 (struct tree_type_non_common): ...this. Adjust accessor macros
25167 (TYPE_VALUES_RAW): Define.
25168 (union tree_node): Update for above changes.
25169 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
25170 TS_TYPE_NON_COMMON.
25171 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
25172 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
25173 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
25174 * treestructu.def (TS_TYPE): Remove.
25175 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
25178 2011-05-11 Jakub Jelinek <jakub@redhat.com>
25181 * tree-ssa.c (reset_debug_uses): New function.
25182 * tree-flow.h (reset_debug_uses): New prototype.
25183 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
25184 * tree-loop-distribution.c (generate_loops_for_partition): Call
25185 reset_debug_uses on the stmts that will be removed. Keep around
25186 all debug stmts, don't count them as bits in partition bitmap.
25187 (generate_builtin): Don't count debug stmts or labels as bits in
25190 2011-05-11 Richard Guenther <rguenther@suse.de>
25192 * gimple.c (gimple_type_hash_1): Merge with ...
25193 (gimple_type_hash): ... this.
25194 (gtc_visit): Remove mode parameter and simplify accordingly.
25195 (gimple_types_compatible_p_1): Likewise.
25196 (gimple_types_compatible_p): Likewise.
25197 (iterative_hash_gimple_type): Likewise.
25199 (gimple_type_eq): Adjust.
25201 2011-05-11 Revital Eres <revital.eres@linaro.org>
25203 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
25204 enters the branch create an anti edge in the opposite direction
25205 to prevent the creation of reg-moves.
25206 * modulo-sched.c: Adjust comment to reflect the fact we are
25207 scheduling closing branch.
25208 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
25209 (stage_count): New field in struct partial_schedule.
25210 (calculate_stage_count): New function.
25211 (normalize_sched_times): Rename to reset_sched_times and handle
25212 incrementing the sched time of the nodes by a constant value
25213 passed as parameter.
25214 (duplicate_insns_of_cycles): Skip closing branch.
25215 (sms_schedule_by_order): Schedule closing branch.
25216 (ps_insn_find_column): Handle closing branch.
25217 (sms_schedule): Call reset_sched_times and adjust the code to
25218 support scheduling of the closing branch.
25219 (ps_insert_empty_row): Update calls to normalize_sched_times
25220 and rotate_partial_schedule functions.
25222 2011-05-11 Richard Guenther <rguenther@suse.de>
25224 PR middle-end/48953
25225 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
25227 2011-05-11 Joseph Myers <joseph@codesourcery.com>
25229 * opts.c (finish_options): Move warning settings from process_options.
25230 * toplev.c (process_options): Move warning settings to finish_options.
25232 2011-05-11 Richard Guenther <rguenther@suse.de>
25234 PR tree-optimization/18041
25235 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
25236 (simplify_bitwise_binary): ... this. Handle operand conversions
25237 by applying them to the result instead.
25238 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
25240 2011-05-11 Richard Guenther <rguenther@suse.de>
25242 * gimple.c (gimple_canonical_types_compatible_p): Split out
25243 from gimple_types_compatible_p and friends. Do not recurse
25244 to pointed-to types.
25245 (gimple_canonical_type_eq): Use it.
25246 (iterative_hash_canonical_type): Split out from
25247 iterative_hash_gimple_type and friends. Do not recurse
25248 to pointed-to types.
25249 (gimple_canonical_type_hash): Use it, allocate the hash here.
25251 2011-05-11 Revital Eres <revital.eres@linaro.org>
25253 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
25254 recognizing doloop.
25256 2011-05-11 Revital Eres <revital.eres@linaro.org>
25258 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
25259 instead of PREV_INSN.
25261 2011-05-11 Revital Eres <revital.eres@linaro.org>
25263 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
25264 * loop-doloop.c (doloop_condition_get): Likewise.
25265 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
25267 * config/arm/arm.md (*addsi3_compare0): Remove "*".
25269 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
25271 * tree.def (CASE_LABEL_EXPR): Add an operand.
25272 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
25274 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25276 * c-decl.c (c_override_global_bindings_to_false): Remove.
25277 (global_bindings_p): Don't check
25278 c_override_global_bindings_to_false.
25279 * c-tree.h (c_override_global_bindings_to_false): Remove.
25280 * c-typeck.c (composite_type): Don't set
25281 c_override_global_bindings_to_false.
25283 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25285 PR target/48857, 48495
25286 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
25288 (VSX_MOVE_MODE): Ditto.
25289 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
25290 VSX vector types. Add V2DImode.
25291 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
25292 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
25293 (MODES_TIEABLE_P): Ditto.
25295 * config/rs6000/rs6000.c (rs6000_emit_move): Use
25296 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
25298 (init_cumulative_args): Ditto.
25299 (rs6000_function_arg_boundary): Ditto.
25300 (rs6000_function_arg_advance_1): Ditto.
25301 (rs6000_function_arg): Ditto.
25302 (rs6000_function_ok_for_sibcall): Ditto.
25303 (emit_frame_save): Ditto.
25304 (rs6000_function_value): Ditto.
25305 (rs6000_libcall_value): Ditto.
25307 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25309 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25310 i386/darwin-lib.h to $libgcc_tm_file.
25311 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
25313 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25315 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
25317 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25319 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
25320 * config/rs6000/rs6000-tables.opt: New file (generated).
25321 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
25322 rs6000/rs6000-tables.opt to extra_options.
25323 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
25324 * config/rs6000/rs6000.c (rs6000_select): Remove.
25325 (processor_target_table): Move contents to rs6000-cpus.def.
25326 (darwin_rs6000_override_options): Check
25327 global_options_set.x_rs6000_cpu_index instead of
25328 rs6000_select[1].string.
25329 (rs6000_option_override_internal): Likewise.
25330 (rs6000_handle_option): Don't assert that global structures are in
25331 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
25332 (rs6000_default_cpu): New variable.
25333 (rs6000_file_start): Set it instead of local default_cpu. Check
25334 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
25335 global_options_set.x_rs6000_tune_index instead of rs6000_select.
25336 (rs6000_darwin_file_start): Check rs6000_default_cpu and
25337 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
25338 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
25339 rs6000_select): Remove.
25340 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
25342 (mcpu=, mtune=): Use Var, Init, Enum and Save.
25343 * config/rs6000/t-rs6000
25344 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
25345 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
25346 global_options_set.x_rs6000_cpu_index instead of
25347 rs6000_select[1].string.
25348 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
25349 global_options_set.x_rs6000_cpu_index instead of
25350 rs6000_select[1].string.
25352 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25354 * config.gcc (libgcc_tm_file): Define instead of including files
25355 from ../../libgcc/config/ in tm_file.
25356 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
25357 * configure: Regenerate.
25358 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
25359 libgcc_tm.h, cs-libgcc_tm.h): New.
25360 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
25361 (clean): Remove libgcc_tm.h.
25362 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
25363 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
25364 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
25366 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
25369 * config/avr/avr.c (avr_ret_register): Return unsigned int
25371 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
25372 it to avr_libcall_value.
25373 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
25375 (avr_expand_binop_builtin): Ditto.
25376 (avr_expand_unop_builtin): Ditto.
25378 2011-05-10 DJ Delorie <dj@redhat.com>
25380 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
25381 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
25382 * config/rx/rx.c (rx_align_for_label): Add label and
25383 uses_threshold parameters. Do not align when the label is not
25385 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
25387 2011-05-10 Richard Guenther <rguenther@suse.de>
25389 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
25390 a series of conversions and apply foldings similar to what
25392 (tree_ssa_forward_propagate_single_use_vars): Call it.
25394 2011-05-10 Jakub Jelinek <jakub@redhat.com>
25396 PR tree-optimization/48611
25397 PR tree-optimization/48794
25398 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
25399 referenced from RESX or EH_DISPATCH arguments.
25402 * dfp.c (decimal_to_decnumber): Handle conversion from
25403 dconst{1,2,m1,half}.
25405 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25407 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
25408 for !flag_prefer_avx128.
25409 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
25411 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
25413 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
25414 (fold_ternary_loc): Use expr_location_or.
25416 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
25419 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
25420 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
25421 Pmode and mem_mode is not VOIDmode.
25423 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
25425 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
25426 TYPE_QUAL_RESTRICT): Convert to enum.
25428 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25430 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
25431 (const_pow2_1_to_8_operand): Ditto.
25432 (const_pow2_1_to_128_operand): Ditto.
25433 (const_pow2_1_to_32768_operand): Ditto.
25434 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
25435 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
25436 in insn constraint to check integer value of operand 3.
25437 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
25439 (PINSR_MODE): New mode iterator.
25440 (sse2p4_1): New mode attribute.
25441 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
25442 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
25443 iterator. Use const_int_operand instead of
25444 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
25445 exact_log2 in insn constraint to check integer value of operand 3.
25447 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25449 * config/i386/sse.md (blendbits): Remove mode attribute.
25450 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
25451 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
25452 Check integer value of operand 3 in insn constraint.
25454 2011-05-09 Richard Guenther <rguenther@suse.de>
25456 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
25458 (lto_symtab_merge): Likewise. Do not register types here.
25459 (lto_symtab_merge_decls_2): Likewise.
25460 (lto_symtab_merge_decls_1): Likewise.
25461 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
25462 * gimple.c (enum gtc_mode): Declare.
25463 (gimple_types_compatible_p): Make static.
25465 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25467 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
25468 temporary register to match Pmode.
25470 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25472 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
25473 and *vec_concatv4si_1_avx.
25475 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25477 PR rtl-optimization/48927
25478 * ira-conflicts.c (commutative_constraint_p): Use
25479 recog_data.alternative_enabled_p to disable alternatives where
25480 "enabled" attribute is false.
25481 (get_dup_num): Ditto.
25482 * ira-lives.c (single_reg_class): Ditto.
25483 (ira_implicitly_set_insn_hard_regs): Ditto.
25485 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
25487 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
25488 (dataflow_set_preserve_mem_locs): Likewise.
25490 2011-05-09 Philipp Thomas <pth@suse.de>
25492 * config/mep/mep.c (mep_validate_vliw): Syntax description
25493 should not be translated.
25495 2011-05-09 Joseph Myers <joseph@codesourcery.com>
25497 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
25498 * config/mips/mips-tables.opt: New file (generated).
25499 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
25500 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
25501 MIPS_ARCH_OPTION_NATIVE): Define.
25502 * config/mips/mips.c (mips_cpu_info_table): Move contents to
25504 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
25505 mips_parse_cpu): Remove.
25506 (mips_cpu_info_from_opt, mips_default_arch): New.
25507 (mips_handle_option): Don't assert that global structures are in
25508 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
25509 (mips_option_override): Use new variables and functions to set
25510 state of these options. Use strcmp to check for individual CPU names.
25511 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
25513 * config/mips/mips.opt (march=): Use ToLower and Enum.
25514 (mips): Use ToLower, Enum and Var.
25515 (mtune=): Use ToLower and Enum.
25516 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
25518 2011-05-08 Jan Hubicka <jh@suse.cz>
25520 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
25521 Arrange type pairs to be UID ordered.
25522 (gimple_lookup_type_leader): Make inline.
25524 2011-05-09 Nick Clifton <nickc@redhat.com>
25527 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
25531 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
25534 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
25536 * combine.c (simplify_comparison): Abstract out parts into...
25537 (simplify_compare_const): ... new function.
25538 (try_combine): Generalize parallel arithmetic/compare combining
25539 to call simplify_compare_const() and CANONICALIZE_COMPARE().
25541 2011-05-08 Jan Hubicka <jh@suse.cz>
25543 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
25544 (cgraph_create_virtual_clone): Call hooks once virtual clone
25546 * cgraph.h (cgraph_clone_node): Update prototype.
25547 * ipa-cp.c (ipcp_estimate_growth): Use
25548 estimate_ipcp_clone_size_and_time.
25549 * ipa-inline-transform.c (clone_inlined_nodes): Update.
25550 * lto-cgraph.c (input_node): Update.
25551 * ipa-inline.c (recursive_inlining): Update.
25552 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
25553 (evaluate_conditions_for_known_args): Break out from ...
25554 (evaluate_conditions_for_edge): ... here.
25555 (evaluate_conditions_for_ipcp_clone): New function.
25556 (inline_node_duplication_hook): Update clone summary based
25558 (estimate_callee_size_and_time): Rename to ...
25559 (estimate_node_size_and_time): take NODE instead of EDGE;
25560 take POSSIBLE_TRUTHS as argument.
25561 (estimate_callee_size_and_time): Update.
25562 (estimate_ipcp_clone_size_and_time): New function.
25563 (do_estimate_edge_time): Update.
25565 2011-05-08 Richard Guenther <rguenther@suse.de>
25567 PR middle-end/48908
25568 PR middle-end/48905
25569 * expmed.c (expand_shift_1): Compute adjusted constant shift
25572 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
25574 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
25576 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
25578 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
25580 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
25582 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
25584 2011-05-07 Jan Hubicka <jh@suse.cz>
25586 * ipa-inline-transform.c (inline_call): Account when program size
25588 * ipa-inline.c (relative_time_benefit): New function.
25589 (edge_badness): Reorganize to be power 2 based; fix thinko when
25590 computing badness for negative growth; update comments to match
25591 reality; better dumps.
25593 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
25595 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
25596 type to bool and adjust comment.
25597 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
25598 (fold_mathfn_compare): Remove calls to global_bindings_p.
25599 (fold_inf_compare): Likewise.
25600 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
25601 * c-tree.h (global_bindings_p): Adjust prototype.
25602 * c-decl.c (global_bindings_p): Return bool and simplify.
25604 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
25606 PR tree-optimization/48837
25607 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
25608 when accumulator transformation is performed.
25610 2011-05-06 Jan Hubicka <jh@suse.cz>
25612 * i386.h (ix86_tune_indices): Add
25613 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
25614 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
25615 * i386.c (initial_ix86_tune_features): Add
25616 X86_SOFTARE_PREFETCHING_BENEFICIAL.
25617 (software_prefetching_beneficial_p): Remove predicate.
25618 (ix86_option_override_internal): Use new macro.
25620 2011-05-06 Jan Hubicka <jh@suse.cz>
25622 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
25624 2011-05-06 Jan Hubicka <jh@suse.cz>
25626 * cgraph.c (cgraph_add_thunk): Create real function node instead
25627 of alias node; finalize it and mark needed/reachale; arrange visibility
25628 to be right and add it into the corresponding same comdat group list.
25629 (dump_cgraph_node): Dump thunks.
25630 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
25631 cgraph_function_with_gimple_body_p,
25632 cgraph_first_function_with_gimple_body,
25633 cgraph_next_function_with_gimple_body): New functions.
25634 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
25636 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
25637 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
25638 * cgraphunit.c (cgraph_finalize_function): Only look into possible
25639 devirtualization when optimizing.
25640 (verify_cgraph_node): Verify thunks.
25641 (cgraph_analyze_function): Analyze thunks.
25642 (cgraph_mark_functions_to_output): Output thunks only in combination
25643 with function they are assigned to.
25644 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
25645 alias into normal node.
25646 (assemble_thunks): New functoin.
25647 (cgraph_expand_function): Use it.
25648 * lto-cgraph.c (lto_output_node): Stream thunks.
25649 (input_overwrite_node): Stream in thunks.
25650 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
25651 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
25652 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
25653 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
25654 (inline_analyze_function): Do not care about thunk jump functions.
25655 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
25656 * ipa-prop.c (ipa_prop_write_jump_functions): Use
25657 cgraph_function_with_gimple_body_p.
25658 * passes.c (do_per_function_toporder): Use
25659 cgraph_function_with_gimple_body_p.
25660 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
25661 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
25662 (function_called_by_processed_nodes_p): Likewise.
25664 2011-05-06 Joseph Myers <joseph@codesourcery.com>
25666 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
25667 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
25669 (mabi=): Replace with separate entries for mabi=altivec,
25670 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
25671 mabi=ieeelongdouble and mabi=ibmlongdouble.
25672 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25673 check for -mabi=spe without SPE ABI support here.
25674 (rs6000_handle_option): Replace OPT_mabi_ handling with
25675 OPT_mabi_altivec and OPT_mabi_spe handling.
25677 2011-05-06 Cary Coutant <ccoutant@google.com>
25679 * dwarf2out.c (contains_subprogram_definition): New function.
25680 (should_move_die_to_comdat): Call it.
25682 2011-05-06 Jeff Law <law@redhat.com>
25684 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
25685 remove_ctrl_stmt_and_useless_edges.
25686 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
25687 (fixup_template_block, thread_single_edge): Likewise.
25688 (mark_threaded_blocks): Use THREAD_TARGET.
25690 2011-05-06 Alan Modra <amodra@gmail.com>
25693 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25694 const0_rtx as the arg to the dummy __tls_get_addr libcall.
25696 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
25698 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
25699 constraint modifier to "r".
25701 2011-05-06 Joseph Myers <joseph@codesourcery.com>
25703 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
25704 fall through for OPT_mcmodel_.
25706 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25708 * config/s390/s390.c (s390_asm_trampoline_template): Comment
25710 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
25712 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25715 * config/arm/arm.opt (marm): Document it.
25716 (mthumb): Reject negative variant.
25718 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
25721 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
25722 Fix typo in "ccvt" variable name.
25724 2011-05-06 Tristan Gingold <gingold@adacore.com>
25727 * config/vms/vms-ar.c (main): Remove cwd variable.
25729 2011-05-06 Jakub Jelinek <jakub@redhat.com>
25732 * var-tracking.c (prepare_call_arguments): Move else before #endif.
25734 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
25736 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
25737 * gimplify.c (gimplify_switch_expr): Likewise.
25738 * omp-low.c (expand_omp_sections): Likewise.
25739 * tree-eh.c (lower_try_finally_switch): Likewise.
25740 (lower_eh_dispatch): Likewise.
25741 * tree.h (build_case_label): Declare.
25742 * tree.c (build_case_label): Define.
25744 2011-05-05 Jason Merrill <jason@redhat.com>
25747 * tree-inline.c (copy_tree_r): Use copy_statement_list.
25748 (copy_statement_list): Don't recurse.
25749 * stor-layout.c (copy_self_referential_tree_r): Don't allow
25752 2011-05-05 Joseph Myers <joseph@codesourcery.com>
25754 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
25755 through from -mfpu= handling.
25756 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
25758 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
25760 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
25763 2011-05-05 Steve Ellcey <sje@cup.hp.com>
25765 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
25767 (hppa[12]*-*-hpux11*): Ditto.
25768 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
25769 * config/ia64/hpux-unix2003.h: New.
25770 * config/pa/pa-hpux1131.opt: New.
25771 * config/pa/pa-hpux1131.h: New.
25772 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
25773 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
25774 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
25776 2011-05-05 Jakub Jelinek <jakub@redhat.com>
25779 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
25780 instead of mode as 3rd argument to recursive call.
25781 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
25782 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
25784 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
25785 don't give up if mode is Pmode and mem_mode is not VOIDmode.
25786 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
25787 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
25789 2011-05-05 Julian Brown <julian@codesourcery.com>
25791 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
25792 parenthesis in D-register case.
25794 2011-05-05 Joseph Myers <joseph@codesourcery.com>
25796 * opt-functions.awk (var_type_struct): Handle Enum options.
25797 * optc-gen.awk: Don't check range of variables of character type.
25798 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
25799 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
25800 rs6000_sdata_name, rs6000_explicit_options): Remove.
25801 (rs6000_option_override_internal): Check for -malign-power here.
25802 Use global_options_set instead of rs6000_explicit_options.
25803 (rs6000_parse_fpu_option): Remove.
25804 (rs6000_handle_option): Access variables via opts and opts_set
25805 pointers. Use error_at and warning_at. Add fall-through
25806 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
25807 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
25808 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
25809 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
25810 here. Don't use rs6000_parse_fpu_option.
25811 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
25812 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
25813 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
25814 (mrecip=): Use Var.
25815 (mspe): Use Var and Save.
25816 (mtraceback=): Use Enum and Var.
25817 (rs6000_traceback_type): New Enum and EnumValue entries.
25818 (mfloat-gprs=): Use Enum, Var and Save.
25819 (rs6000_float_gprs): New Enum and EnumValue entries.
25820 (mlong-double-): use Var and Save.
25821 (msched-costly-dep=, minsert-sched-nops=): Use Var.
25822 (malign-): Use Enum and Var.
25823 (rs6000_alignment_flags): New Enum and EnumValue entries.
25825 (fpu_type_t): New Enum and EnumValue entries.
25826 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25827 global_options_set instead of rs6000_explicit_options.
25828 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25829 global_options_set instead of rs6000_explicit_options.
25830 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25831 global_options_set instead of rs6000_explicit_options.
25832 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25833 global_options_set instead of rs6000_explicit_options.
25834 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
25835 global_options_set instead of rs6000_explicit_options.
25836 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25837 global_options_set instead of rs6000_explicit_options.
25838 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
25840 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25841 global_options_set instead of rs6000_explicit_options.
25842 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
25843 (rs6000_cmodel): New Enum and EnumValue entries.
25844 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25845 global_options_set instead of rs6000_explicit_options.
25846 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
25847 (mtls-size=): Use Enum and Var.
25848 (rs6000_tls_size): New Enum and EnumValue entries.
25850 2011-05-05 Michael Matz <matz@suse.de>
25852 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
25853 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
25854 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
25855 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
25856 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
25857 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
25858 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
25859 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
25860 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
25861 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
25862 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
25863 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
25864 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
25865 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
25866 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
25867 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
25869 2011-05-05 Richard Guenther <rguenther@suse.de>
25871 * expmed.c (expand_variable_shift): Rename to ...
25872 (expand_shift_1): ... this. Take an expanded shift amount.
25873 For rotates recurse directly not building trees for the shift amount.
25874 (expand_variable_shift): Wrap around expand_shift_1.
25875 (expand_shift): Adjust.
25877 2011-05-05 Jakub Jelinek <jakub@redhat.com>
25879 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
25881 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
25883 * tree.h (get_pending_sizes): Remove prototype.
25884 (put_pending_size): Likewise.
25885 (put_pending_sizes): Likewise.
25886 * stor-layout.c (pending_sizes): Delete.
25887 (get_pending_sizes): Likewise.
25888 (put_pending_size): Likewise.
25889 (put_pending_sizes): Likewise.
25890 (variable_size): Do not call put_pending_size and tidy up.
25891 * function.h (struct function): Remove dont_save_pending_sizes_p.
25892 * lto-streamer-in.c (input_function): Do not stream it.
25893 * lto-streamer-out.c (output_function): Likewise.
25894 * tree-inline.c (initialize_cfun): Do not copy it.
25895 * c-decl.c (store_parm_decls): Do not set it.
25896 * omp-low.c (create_task_copyfn): Likewise.
25897 * tree-optimize.c (tree_rest_of_compilation): Likewise.
25899 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
25901 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
25903 (*movdf_internal): Ditto.
25904 (*movdf_internal_nointeger): Ditto.
25905 (*movsf_internal): Ditto.
25907 2011-05-05 Joseph Myers <joseph@codesourcery.com>
25909 * c-decl.c (finish_decl): Don't call get_pending_sizes.
25910 (grokparm): Add parameter expr. Pass it to grokdeclarator.
25911 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
25912 (c_variable_size): Remove.
25913 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
25914 call put_pending_sizes.
25915 (get_parm_info): Add parameter expr. Use it to set
25916 arg_info->pending_sizes.
25917 (store_parm_decls): Use arg_info->pending_sizes instead or calling
25919 * c-parser.c (c_parser_parms_declarator): Update call to
25920 c_parser_parms_list_declarator.
25921 (c_parser_parms_list_declarator): Take parameter expr. Update
25922 call to push_parm_decl. Update recursive call. Don't call
25923 get_pending_sizes. Update calls to get_parm_info.
25924 (c_parser_objc_method_definition): Update calls to
25925 c_parser_objc_method_decl and objc_start_method_definition.
25926 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
25927 (c_parser_objc_method_decl): Add parameter expr. Update call to
25929 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
25930 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
25931 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
25933 2011-05-05 Michael Hope <michael.hope@linaro.org>
25936 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
25937 __ARM_EABI__ hosts.
25939 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25941 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
25942 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
25943 (spu_output_mi_thunk): New function.
25945 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25947 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
25948 targetm.asm_out.print_operand.
25949 * config/sol2.c: Include target.h.
25951 2011-05-04 Jan Hubicka <jh@suse.cz>
25953 * ipa-inline.c (reset_edge_caches): New function.
25954 (update_caller_keys): Add check_inlinablity_for; do not
25955 reset edge caches; remove now unnecesary loop.
25956 (update_callee_keys): Add comments; reset node_growth_cache of callee.
25957 (update_all_callee_keys): Likewise.
25958 (inline_small_functions): Sanity check cache; update code
25961 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
25963 PR rtl-optimization/47612
25964 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
25965 as the last insn of the sequence to be moved.
25967 2011-05-04 Tobias Burnus <burnus@net-b.de>
25970 * doc/invoke.texi (Ofast): Document that it
25971 enables Fortran's -fno-protect-parens.
25973 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
25975 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
25977 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
25979 * stor-layout.c (variable_size): Do not issue errors.
25981 2011-05-04 Richard Guenther <rguenther@suse.de>
25983 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
25984 for array-ref indices.
25985 (tree_coverage_counter_addr): Likewise.
25986 (build_fn_info_type): Use size_int for index types.
25987 (build_gcov_info): Likewise.
25989 2011-05-04 Richard Guenther <rguenther@suse.de>
25991 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
25993 * c-typeck.c (really_start_incremental_init): Use bitsize_int
25994 for constructor indices.
25995 (push_init_level): Likewise.
25997 2011-05-04 Richard Guenther <rguenther@suse.de>
25999 * explow.c (promote_mode): Move variable declarations before code.
26001 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
26003 * tree.h (build_function_type_array): Declare.
26004 (build_varargs_function_type_array): Declare.
26005 (build_function_type_vec, build_varargs_function_type_vec): Define.
26006 * tree.c (build_function_type_array_1): New function.
26007 (build_function_type_array): New function.
26008 (build_varargs_function_type_array): New function.
26010 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
26012 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
26013 before setting STMT_VINFO_TYPE.
26015 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26017 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
26018 instead of spu_pass_by_reference.
26020 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26022 * calls.c (emit_library_call_value_1): Invoke
26023 promote_function_mode hook on libcall arguments.
26024 * explow.c (promote_function_mode, promote_mode): Handle TYPE
26025 argument being NULL.
26026 * targhooks.c (default_promote_function_mode): Lisewise.
26027 * config/s390/s390.c (s390_promote_function_mode): Likewise.
26028 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
26030 * doc/tm.texi: Document that TYPE argument might be NULL.
26032 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26034 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
26036 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26039 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
26041 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26043 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
26044 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
26046 * mips-tfile.c: ... here.
26047 Don't include coretypes.h, tm.h, filenames.h.
26048 (saber_stop): Remove definition and all calls.
26049 [__SABER__]: Remove.
26050 (__LINE__): Remove default.
26051 (Size_t, Ptrdiff_t): Remove definitions.
26052 Replace by size_t, ptrdiff_t.
26053 [!MIPS_DEBUGGING_INFO]: Remove.
26054 (SHASH_SIZE, THASH_SIZE): Remove defaults.
26055 (progname): Add const.
26057 Replace all uses by static.
26058 (ALIGN_SYMTABLE_OFFSET): Remove default.
26059 * mips-tdump.c: Don't include coretypes.h, tm.h.
26060 Remove !MIPS_IS_STAB guard.
26061 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
26062 $(TM_H), filenames.h dependencies.
26063 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
26065 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26068 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
26069 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
26071 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26074 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
26075 account and save/restore RETS.
26076 (PROFILE_BEFORE_PROLOGUE): Define.
26077 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
26078 the push insn to use predecrement.
26080 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26083 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
26085 2011-05-04 Nick Clifton <nickc@redhat.com>
26087 * config/mn10300/mn10300.c: Include cfgloop.h.
26089 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
26090 Lcc or a FLcc insn into the instruction stream.
26091 (mn10300_block_contains_call): New function. Returns true if the
26092 given basic block contains a CALL insn.
26093 (mn10300_loop_contains_call_insn): New function. Returns true if
26094 the given loop contains a CALL insn.
26095 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
26096 to use the SETLB and Lcc or FLcc insns.
26097 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
26098 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
26099 * config/mn10300/mn10300.opt (msetlb): New option. Used to
26100 disable the SETLB optimization.
26101 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
26102 __SETLB__ or __NO_SETLB__.
26103 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
26104 (movsf_internal): Handle MDR register.
26105 (cmpsi): Make visible.
26106 (setlb): New pattern.
26107 (Lcc): New pattern.
26108 (FLcc): New pattern.
26110 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
26113 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
26114 for reg<->xmm moves.
26115 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
26116 (vec_concatv2di_rex64_sse): Ditto.
26117 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
26118 (*vec_extractv2di_1_rex64): Ditto.
26121 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
26123 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
26125 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
26127 2011-05-04 Richard Guenther <rguenther@suse.de>
26129 * tree.h (int_const_binop): Remove notrunc argument.
26130 * fold-const.c (int_const_binop): Remove notrunc argument. Always
26131 create integer constants that are properly truncated.
26132 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
26133 (const_binop): Remove zero notrunc argument to int_const_binop.
26134 (size_binop_loc): Likewise.
26135 (fold_div_compare): Likewise.
26136 (maybe_canonicalize_comparison_1): Likewise.
26137 (fold_comparison): Likewise.
26138 (fold_binary_loc): Likewise.
26139 (multiple_of_p): Likewise.
26140 * expr.c (store_constructor): Likewise.
26141 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26142 (maybe_fold_stmt_addition): Likewise.
26143 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
26144 * stor-layout.c (layout_type): Likewise.
26145 * tree-data-ref.c (tree_fold_divides_p): Likewise.
26146 * tree-sra.c (build_ref_for_offset): Likewise.
26147 (build_user_friendly_ref_for_offset): Likewise.
26148 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
26149 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26150 * tree-ssa-loop-niter.c (inverse): Likewise.
26151 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
26152 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
26153 * tree-switch-conversion.c (check_range): Likewise.
26154 (build_constructors): Likewise.
26155 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
26156 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
26157 (extract_range_from_assert): Likewise.
26158 (vrp_int_const_binop): Likewise.
26159 (extract_range_from_binary_expr): Likewise.
26160 (extract_range_from_unary_expr): Likewise.
26161 (check_array_ref): Likewise.
26162 (find_case_label_range): Likewise.
26163 (simplify_div_or_mod_using_ranges): Likewise.
26164 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
26165 comparing case labels for merging.
26167 2011-05-03 Mark Wielaard <mjw@redhat.com>
26169 * dwarf2out.c (debug_str_hash_forced): Removed.
26170 (gen_label_for_indirect_string): Removed.
26171 (get_debug_string_label): Removed.
26172 (AT_string_form): Generate label directly.
26173 (output_indirect_string): Test indirect_string_node for
26174 DW_FORM_strp instead of checking label and refcount.
26175 (prune_indirect_string): Removed.
26176 (prune_unused_types): Don't check debug_str_hash_forced or
26177 call prune_indirect_string.
26179 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
26182 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
26184 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
26188 * combine.c (try_combine): Skip debug insns at m_split tests.
26190 2011-04-26 Mark Wielaard <mjw@redhat.com>
26193 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
26194 when info_section_emitted.
26196 2011-05-03 Joseph Myers <joseph@codesourcery.com>
26198 * config/mips/mips-opts.h: New.
26199 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
26201 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
26202 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
26203 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
26205 * config/mips/mips.h (enum mips_code_readable_setting): Move to
26207 (mips_abi, mips_code_readable): Don't declare.
26208 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
26209 (mabi=): Use Enum and Var.
26210 (mips_abi): New Enum and EnumValue entries.
26211 (mcode-readable=): Use Enum and Var.
26212 (mips_code_readable_setting): New Enum and EnumValue entries.
26213 (mr10k-cache-barrier=): Use Enum and Var.
26214 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
26216 2011-05-03 Jan Hubicka <jh@suse.cz>
26218 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
26219 replace hash by pointer map.
26220 (cgraph_node_set_element_def, cgraph_node_set_element,
26221 const_cgraph_node_set_element, varpool_node_set_element_def,
26222 varpool_node_set_element, const_varpool_node_set_element): Remove.
26223 (free_cgraph_node_set, free_varpool_node_set): New function.
26224 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
26225 * tree-emutls.c: Free varpool node set.
26226 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
26227 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
26228 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
26229 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
26230 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
26231 Move here from ipa.c; implement using pointer_map
26232 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
26233 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
26234 debug_cgraph_node_set, varpool_node_set_new,
26235 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
26236 dump_varpool_node_set, debug_varpool_node_set):
26237 Move to ipa-uitls.c.
26238 * passes.c (ipa_write_summaries): Update.
26240 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26242 From Mike Frysinger:
26243 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
26244 bf542/bf544/bf547/bf548/bf549.
26246 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
26248 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
26250 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26252 From Bernd Schmidt:
26253 * config/bfin/bfin.md (MOVCC): New mode_macro.
26254 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
26255 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
26256 comments from generated assembly.
26258 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26261 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
26262 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
26263 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
26264 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
26265 * config/bfin/lib1funcs.asm (___muldi3): New function.
26267 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26269 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
26270 build_function_type_list instead of build_function_type.
26271 Rearrange initialization of `args' to do so.
26273 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26275 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
26276 instead of build_function_type.
26278 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26280 * config/rs6000/rs6000.c (spe_init_builtins): Call
26281 build_function_type_list instead of build_function_type.
26282 (paired_init_builtins, altivec_init_builtins): Likewise.
26283 (builtin_function_type): Likewise.
26285 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26287 * config/sh/sh.c (sh_media_init_builtins): Call
26288 build_function_type_list instead of build_function_type.
26290 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26292 * config/sparc/sparc.c (sparc_file_end): Call
26293 build_function_type_list instead of build_function_type.
26295 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26297 * config/alpha/alpha.c (alpha_init_builtins): Call
26298 build_function_type_list instead of build_function_type.
26300 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26302 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
26303 build_function_type_list instead of build_function_type.
26305 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26307 * config/iq2000/i2000.c (iq2000_init_builtins): Call
26308 build_function_type_list instead of build_function_type.
26309 Delete `endlink' variable.
26311 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26313 * config/avr/avr.c (avr_init_builtins): Call
26314 build_function_type_list instead of build_function_type.
26316 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26318 * config/picochip/picochip.c (picochip_init_builtins): Call
26319 build_function_type_list instead of build_function_type.
26320 Delete `endlink' variable.
26322 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26324 * config/bfin/bfin.c (bfin_init_builtins): Call
26325 build_function_type_list instead of build_function_type.
26327 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26330 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
26331 that's not CONST_INT. Seemingly redundant check is due to PR39768.
26333 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26336 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
26337 libbffastfp overrides libgcc when -mfast-fp.
26339 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26341 Originally from Bernd Schmidt
26342 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
26343 * config/bfin/bfin.c (override_options): Test it and error if
26346 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26348 Originally From Bernd Schmidt
26349 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
26352 2011-05-03 Jeff Law <law@redhat.com>
26354 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
26355 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
26356 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
26357 than accessing AUX field directly. Free the AUX field before
26359 (thread_block, thread_through_loop_header): Likewise.
26360 (thread_single_edge, mark_threaded_blocks): Likewise.
26361 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
26362 (register_jump_thread): Do not attempt to thread to a NULL edge.
26364 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
26366 * function.c (init_function_start): Call decide_function_section.
26367 * varasm.c (decide_function_section): New function.
26368 (assemble_start_function): When not using
26369 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
26370 or first_function_block_is_cold.
26371 * rtl.h (decide_function_section): Declare.
26373 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
26374 Jakub Jelinek <jakub@redhat.com>
26377 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
26378 only succeed if req_mode is the same as set_mode.
26380 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
26382 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
26383 * genemit.c (gen_exp): Handle RETURN.
26384 * emit-rtl.c (verify_rtx_sharing): Likewise.
26385 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
26386 * rtl.c (copy_rtx): RETURN is shared.
26387 * rtl.h (enum global_rtl_index): Add GR_RETURN.
26389 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
26390 * config/s390/s390.c (s390_emit_epilogue): Likewise.
26391 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
26392 * config/cris/cris.c (cris_expand_return): Likewise.
26393 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
26394 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
26395 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
26396 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
26397 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
26399 * config/v850/v850.c (expand_epilogue): Likewise.
26400 * config/bfin/bfin.c (bfin_expand_call): Likewise.
26401 * config/arm/arm.md (epilogue): Likewise.
26402 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
26403 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
26404 variable to ret_reg.
26406 2011-05-03 Richard Guenther <rguenther@suse.de>
26409 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
26410 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
26411 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26413 2011-05-03 Richard Guenther <rguenther@suse.de>
26415 * c-decl.c (grokdeclarator): Instead of looking at
26416 TREE_OVERFLOW check if the constant fits in the index type.
26418 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
26420 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
26421 (vec_store_lanes<mode><mode>): Likewise.
26423 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
26425 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
26426 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
26427 convert_optab_index values.
26428 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
26429 * genopinit.c (optabs): Initialize the new optabs.
26430 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
26431 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
26432 (expand_STORE_LANES): New functions.
26433 * tree.h (build_array_type_nelts): Declare.
26434 * tree.c (build_array_type_nelts): New function.
26435 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
26436 (vect_model_load_cost): Likewise.
26437 (vect_store_lanes_supported, vect_load_lanes_supported)
26438 (vect_record_strided_load_vectors): Declare.
26439 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
26440 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
26441 (vect_transform_strided_load): Split out statement recording into...
26442 (vect_record_strided_load_vectors): ...this new function.
26443 * tree-vect-stmts.c (create_vector_array, read_vector_array)
26444 (write_vector_array, create_array_ref): New functions.
26445 (vect_model_store_cost): Add store_lanes_p argument.
26446 (vect_model_load_cost): Add load_lanes_p argument.
26447 (vectorizable_store): Try to use store-lanes functions for
26448 interleaved stores.
26449 (vectorizable_load): Likewise load-lanes and loads.
26450 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
26451 to vect_model_store_cost.
26452 (vect_build_slp_tree): Likewise vect_model_load_cost.
26454 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
26456 * hooks.h (hook_bool_mode_uhwi_false): Declare.
26457 * hooks.c (hook_bool_mode_uhwi_false): New function.
26458 * target.def (array_mode_supported_p): New hook.
26459 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
26460 * doc/tm.texi: Regenerate.
26461 * stor-layout.c (mode_for_array): New function.
26462 (layout_type): Use it.
26463 * config/arm/arm.c (arm_array_mode_supported_p): New function.
26464 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
26466 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
26469 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
26470 for -fstack-check if the size to allocate is negative.
26472 2011-05-02 Lawrence Crowl <crowl@google.com>
26474 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
26475 (timevar_cond_start): New for starting a timer only when it is not
26477 (timevar_cond_stop): New for stopping a timer when it was not already
26480 * timevar.c (timevar_stop): Enable start/stop timers to start again.
26481 (timevar_cond_start): New as above.
26482 (timevar_cond_stop): New as above.
26484 * timevar.def: Add start/stop timers for compiler phases,
26485 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
26486 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
26487 and TV_PHASE_FINALIZE.
26488 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
26489 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
26490 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
26491 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
26492 Make unused TV_OVERLOAD into a start/stop timer.
26494 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
26495 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
26496 to indicate that they are start/stop timers.
26498 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
26499 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
26500 Move initialization to do_compile.
26501 (do_compile): Add initialization from above.
26502 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
26504 * c-decl.c (c_write_global_declarations): Add start/stop of
26505 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
26507 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
26508 or TV_PARSE_INLINE, as appropriate.
26509 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
26510 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
26512 2011-05-02 Jason Merrill <jason@redhat.com>
26515 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
26517 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
26520 * c-decl.c (finish_decl): Only create a composite if the types are
26523 2011-05-02 Joseph Myers <joseph@codesourcery.com>
26525 * config/fr30/fr30-protos.h (Mmode): Don't define.
26526 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
26527 definition where used.
26528 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
26529 define. Expand definitions where used.
26530 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
26531 Expand definitions where used.
26532 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
26533 rx_function_arg, rx_function_arg_advance,
26534 rx_function_arg_boundary): Expand definitions of those macros.
26535 * config/v850/v850-protos.h (Mmode): Don't define. Expand
26536 definition where used.
26538 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
26540 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
26542 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
26543 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
26544 with *movv2sf_internal_rex64_avx.
26545 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
26546 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
26547 Use %v prefix in insn mnemonic to handle TARGET_AVX.
26548 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
26549 "vex" in "prefix" attribute calculation.
26550 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
26552 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
26555 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
26556 inputs match the output.
26558 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
26561 * config/m68k/m68k.c (m68k_expand_prologue): Set
26562 current_function_static_stack_size.
26564 2011-05-02 Jan Hubicka <jh@suse.cz>
26566 * lto-streamer.c (lto_streamer_cache_insert_1,
26567 lto_streamer_cache_lookup, lto_streamer_cache_create,
26568 lto_streamer_cache_delete): Use pointer map instead of hashtable.
26569 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
26571 2011-05-02 Joseph Myers <joseph@codesourcery.com>
26573 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
26574 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
26575 config/m68k/t-opts: New files.
26576 * config/m68k/m68k-tables.opt: New file (generated).
26577 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
26578 extra_options and m68k/t-opts to tmake_file.
26579 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
26580 (all_isas): Initialize using m68k-isas.def.
26581 (all_microarchs): Initialize using m68k-microarchs.def.
26582 (m68k_find_selection): Remove.
26583 (m68k_handle_option): Don't assert that global structures are in
26584 use. Use error_at. Access variables via opts pointer. Don't
26585 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
26586 directly for -m68020-40 and -m68020-60.
26587 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
26588 m68k_tune_entry here.
26589 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
26591 (m68k_library_id_string): Remove declaration.
26592 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
26593 (m68k_library_id_string): New Variable.
26594 (march=, mcpu=, mtune=): Use Enum and Var.
26596 2011-05-02 Richard Guenther <rguenther@suse.de>
26598 * varasm.c (output_constructor_regular_field): Compute zero-based
26599 index with double-ints. Make sure to ICE instead of producing
26601 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
26602 in asserts. Properly use a signed type.
26604 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
26606 * config/i386/sse.md (V): New mode iterator.
26607 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
26609 (V_256): Rename from AVX256MODE.
26610 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
26611 condition to all users.
26613 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
26614 condition to all users.
26615 (VF_128): Make V4SF mode unconditional.
26616 (VF_256): Rename from AVX256MODEF2P.
26617 (VI4F_128): Rename from SSEMODE4S.
26618 (VI8F_128): Rename from SSEMODE2D.
26619 (VI4F_256): Rename from AVX256MODE8P.
26620 (VI8F_256): Rename from AVX256MODE4P.
26621 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
26622 (ssescalarmodesuffix): Remove SF and DF modes.
26623 (SSEMODE124): Remove.
26624 (SSEMODE1248): Ditto.
26625 (SSEMODEF2P): Ditto.
26626 (AVXMODEF2P): Ditto.
26627 (AVXMODEFDP): Ditto.
26628 (AVXMODEFSP): Ditto.
26629 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
26631 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
26633 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
26634 xop_pcmov_<mode>256. Use V mode iterator.
26636 Adjust RTX patterns globally for renamed mode attributes.
26638 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26640 * haifa-sched.c (sched_emit_insn): Emit insn before first
26641 non-scheduled insn. Inform back-end about new insn. Add
26642 new insn to scheduled_insns list.
26644 2011-05-02 Richard Guenther <rguenther@suse.de>
26646 PR tree-optimization/48822
26647 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
26648 (process_scc): Indicate which iteration we start.
26650 2011-05-02 Jan Hubicka <jh@suse.cz>
26652 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
26653 (lto_section_overrun): New.
26654 * lto-section-out.c (append_block): Rename to ...
26655 (lto_append_block): ... this one; export.
26656 (lto_output_1_stream): Move lto lto-streamer.h
26657 (lto_output_data_stream): Update.
26658 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
26659 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
26662 2011-05-02 Richard Guenther <rguenther@suse.de>
26664 * tree.c (tree_code_counts): New global array.
26665 (record_node_allocation_statistics): Count individual tree codes.
26666 (dump_tree_statistics): Dump individual code stats.
26668 2011-05-01 Jan Hubicka <jh@suse.cz>
26670 * ipa-inline.c (caller_growth_limits): Fix thinko when
26671 looking for largest stack frame.
26672 * ipa-inline.h (dump_inline_summary): Declare.
26673 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
26675 (dump_inline_summary): Export.
26676 (debug_inline_summary): Declare as DEBUG_FUNCTION.
26678 2011-05-01 Anatoly Sokolov <aesok@post.ru>
26680 * reginfo.c (memory_move_cost): Change rclass argument type form
26681 'enum reg_class' to reg_class_t.
26682 * reload.h (memory_move_cost): Update prototype.
26683 * postreload.c reload_cse_simplify_set): Change type dclass var to
26685 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
26687 (ira_allocate_and_set_costs): Change aclass argument type form
26688 'enum reg_class' to reg_class_t.
26689 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
26690 Change aclass argument type to reg_class_t.
26691 (update_conflict_hard_reg_costs): Change type aclass and pref vars
26693 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
26694 memory_move_cost call.
26696 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
26697 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
26698 Change type tmp var to reg_class_t.
26700 2011-04-30 Jan Hubicka <jh@suse.cz>
26702 * ipa-inline.c (can_inline_edge_p): Disregard limits when
26703 inlining into function with flatten attribute.
26704 (want_inline_small_function_p): Be more realistic about inlining
26705 cold calls where callee size grows.
26707 2011-04-30 Jan Hubicka <jh@suse.cz>
26709 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
26712 2011-04-30 Anatoly Sokolov <aesok@post.ru>
26714 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
26715 PRINT_OPERAND_PUNCT_VALID_P): Remove.
26716 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
26717 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
26718 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26719 (print_operand): Rename to...
26720 (sparc_print_operand): ...this. Make static. Adjust
26721 sparc_print_operand function call.
26722 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
26725 2011-04-30 Jan Hubicka <jh@suse.cz>
26727 PR middle-end/48752
26728 * ipa-inline.c (early_inliner): Disable when doing late
26729 addition of function.
26731 2011-04-30 Jakub Jelinek <jakub@redhat.com>
26733 * dwarf2out.c (get_address_mode): New inline.
26734 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
26735 if not dwarf_strict emit
26736 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
26737 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
26738 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
26739 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
26740 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
26741 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
26742 mem_loc_descriptor callers.
26743 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26744 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
26745 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
26746 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
26747 (base_types): New variable.
26748 (get_base_type_offset, calc_base_type_die_sizes,
26749 base_type_for_mode, mark_base_types, base_type_cmp,
26750 move_marked_base_types): New functions.
26751 (calc_die_sizes): Assert that die_offset is 0 or equal to
26753 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
26754 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
26755 callers. If not dwarf_strict, call mem_loc_descriptor even for
26756 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
26757 (gen_subprogram_die): Don't give up on call site parameters
26758 with non-integral or large integral modes. Adjust
26759 mem_loc_descriptor callers.
26760 (prune_unused_types): Call prune_unused_types_mark on base_types
26762 (resolve_addr): Call mark_base_types.
26763 (dwarf2out_finish): Call move_marked_base_types.
26765 PR tree-optimization/48809
26766 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
26768 (gen_inbound_check): Don't compute index_expr - range_min in utype
26769 again, instead reuse SSA_NAME initialized in build_arrays.
26770 Remove two useless gsi_for_stmt calls.
26772 2011-04-29 Jeff Law <law@redhat.com>
26774 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
26776 2011-04-29 Martin Jambor <mjambor@suse.cz>
26778 * cgraph.h (cgraph_postorder): Remove declaration.
26779 * ipa-utils.h (ipa_free_postorder_info): Declare.
26780 (ipa_reverse_postorder): Likewise.
26781 * cgraphunit.c: Include ipa-utils.h.
26782 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
26783 * ipa-inline.c: Include ipa-utils.h.
26784 (ipa_inline): Update call to ipa_reverse_postorder.
26785 * ipa-pure-const.c (propagate_pure_const): Update call to
26786 ipa_reduced_postorder and ipa_print_order. Call
26787 ipa_free_postorder_info to clean up.
26788 (propagate_nothrow): Likewise.
26789 * ipa-reference.c (propagate): Removed a useless call to
26790 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
26791 and ipa_print_order. Call ipa_free_postorder_info to clean up.
26792 * ipa.c: Include ipa-utils.h.
26793 (ipa_profile): Update call to ipa_reverse_postorder.
26794 (cgraph_postorder): Moved to...
26795 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
26796 (ipa_utils_print_order): Renamed to ipa_print_order.
26797 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
26799 (ipa_free_postorder_info): New function.
26800 * passes.c: Include ipa-utils.h.
26801 (do_per_function_toporder): Update call to ipa_reverse_postorder.
26802 (ipa_write_summaries): Likewise.
26803 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
26804 (cgraphunit.o): Likewise.
26806 (ipa-inline.o): Likewise.
26808 2011-04-29 Jan Hubicka <jh@suse.cz>
26810 * ipa-inline.h (clause_t): Turn into unsigned int.
26811 * ipa-inline-analysis.c (add_clause): Do more simplification.
26812 (and_predicates): Shortcut more cases.
26813 (predicates_equal_p): Move forward; check that clauses are properly
26815 (or_predicates): Shortcut more cases.
26816 (edge_execution_predicate): Rewrite as...
26817 (set_cond_stmt_execution_predicate): ... this function; handle
26818 __builtin_constant_p.
26819 (set_switch_stmt_execution_predicate): New .
26820 (compute_bb_predicates): New.
26821 (will_be_nonconstant_predicate): Update TODO.
26822 (estimate_function_body_sizes): Use compute_bb_predicates
26823 and free them later, always try to estimate if stmt is constant.
26824 (estimate_time_after_inlining, estimate_size_after_inlining):
26825 Gracefully handle optimized out edges.
26826 (read_predicate): Fix off by one error.
26828 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
26830 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
26832 2011-04-27 Xinliang David Li <davidxl@google.com>
26834 * tree-profile.c (init_ic_make_global_vars): Set
26835 tls attribute on ic vars.
26836 * coverage.c (coverage_end_function): Initialize
26837 function_list with zero.
26839 2011-04-29 Richard Guenther <rguenther@suse.de>
26841 * builtins.c (fold_builtin_classify_type): Use integer_type_node
26842 for the type of the result.
26843 (fold_builtin_isascii): Likewise.
26844 (fold_builtin_toascii): Use integer_type_node where appropriate.
26845 (fold_builtin_logb): Likewise.
26846 (fold_builtin_frexp): Likewise.
26847 (fold_builtin_strstr): Likewise.
26848 (fold_builtin_strpbrk): Likewise.
26849 (fold_builtin_fputs): Likewise.
26850 (fold_builtin_sprintf): Likewise.
26851 (fold_builtin_snprintf): Likewise.
26852 (fold_builtin_printf): Likewise.
26853 (do_mpfr_remquo): Use a proper type for the assigned constant.
26854 (do_mpfr_lgamma_r): Likewise.
26855 * dwarf2out.c (resolve_one_addr): Use size_int.
26856 * except.c (init_eh): Likewise.
26857 (assign_filter_values): Use integer_type_node for filter values.
26858 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
26860 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
26861 for EH region numbers.
26862 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
26863 for the shift amount.
26865 2011-04-29 Richard Guenther <rguenther@suse.de>
26867 * expr.h (expand_shift): Rename to ...
26868 (expand_variable_shift): ... this.
26869 (expand_shift): Take a constant shift amount.
26870 * expmed.c (expand_shift): Rename to ...
26871 (expand_variable_shift): ... this.
26872 (expand_shift): New wrapper around expand_variable_shift.
26873 * expr.c (convert_move, emit_group_load_1, emit_group_store,
26874 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
26875 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
26876 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
26877 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
26878 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
26879 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
26880 emit_store_flag_1, emit_store_flag): Likewise.
26881 * builtins.c (expand_builtin_signbit): Likewise.
26882 * calls.c (load_register_parameters): Likewise.
26883 * function.c (assign_parm_setup_block): Likewise.
26884 * lower-subreg.c (resolve_shift_zext): Likewise.
26885 * optabs.c (widen_bswap, expand_abs_nojump,
26886 expand_one_cmpl_abs_nojump, expand_float): Likewise.
26887 * spu/spu.c (spu_expand_extv): Likewise.
26888 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
26890 2011-04-29 Richard Guenther <rguenther@suse.de>
26892 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
26893 for the remapped region number.
26894 * predict.c (build_predict_expr): Use integer_type_node for the
26896 * fold-const.c (fold_binary_loc): Use integer_type_node for
26897 the shift amount. Use a proper type for the PLUS_EXPR operand.
26899 2011-04-29 Michael Matz <matz@suse.de>
26901 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
26902 other trees that just builtins.
26903 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
26905 2011-04-29 Richard Guenther <rguenther@suse.de>
26907 * tree-nested.c (get_trampoline_type): Use size_int.
26908 (get_nl_goto_field): Likewise.
26909 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
26911 (lower_eh_constructs_2): Likewise.
26912 (lower_resx): Likewise.
26913 (lower_eh_dispatch): Likewise.
26914 * tree-mudflap.c (mf_build_string): Use size_int.
26915 (mudflap_register_call): Use integer_type_node for the flag.
26916 (mudflap_enqueue_constant): Use size_int.
26917 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
26918 instead of rebuilding it.
26920 2011-04-29 Richard Guenther <rguenther@suse.de>
26922 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
26923 Handle OBJ_TYPE_REF.
26924 (find_func_aliases_for_call): Use it more consistently.
26926 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
26928 * haifa-sched.c (last_nondebug_scheduled_insn): New.
26929 (rank_for_schedule): Use it.
26930 (schedule_block): Set it.
26932 2011-04-28 David Li <davidxl@google.com>
26934 * tree.c (crc32_string): Use crc32_byte.
26935 (crc32_byte): New function.
26936 * tree.h (crc32_byte): New function.
26937 * gcov.c (read_graph_file): Handle new cfg_cksum.
26938 (read_count_file): Ditto.
26939 * profile.c (instrument_values): Ditto.
26940 (get_exec_counts): Ditto.
26941 (read_profile_edge_counts): Ditto.
26942 (compute_branch_probabilities): Ditto.
26943 (compute_value_histograms): Ditto.
26944 (branch_prob): Ditto.
26945 (end_branch_prob): Ditto.
26946 * coverage.c (read_counts_file): Ditto.
26947 (get_coverage_counts): Ditto.
26948 (tree_coverage_counter_addr): Ditto.
26949 (coverage_checksum_string): Ditto.
26950 (coverage_begin_output): Ditto.
26951 (coverage_end_function): Ditto.
26952 (build_fn_info_type): Ditto.
26953 (build_fn_info_value): Ditto.
26954 * libgcov.c (gcov_exit): Ditto.
26955 * gcov-dump.c (tag_function): Ditto.
26956 (compute_checksum): Remove.
26958 2011-04-29 Alan Modra <amodra@gmail.com>
26960 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26961 unspec plus offset. Tidy macho code.
26963 2011-04-29 Martin Jambor <mjambor@suse.cz>
26965 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
26966 node instead of a decl. Update all callers.
26967 * cgraph.h: Update declaration.
26969 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
26971 PR tree-optimization/48765
26972 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
26973 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
26974 to indicate if loop aware SLP is being used. Scan the statements
26975 and update the vectorization factor according to the type of
26976 vectorization before statement analysis.
26977 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
26978 pass it to vect_analyze_loop_operations.
26979 (vectorizable_reduction): Set number of copies to 1 in case of pure
26981 * tree-vect-stmts.c (vectorizable_conversion,
26982 vectorizable_assignment, vectorizable_shift,
26983 vectorizable_operation, vectorizable_type_demotion,
26984 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
26986 (vectorizable_condition): Move the check that it is not SLP
26987 vectorization before the number of copies check.
26988 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
26989 to vectorize the loop using SLP.
26991 2011-04-28 Jakub Jelinek <jakub@redhat.com>
26993 PR middle-end/48597
26994 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
26997 2011-04-28 Joseph Myers <joseph@codesourcery.com>
26999 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
27000 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
27001 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27002 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27003 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
27005 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
27006 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27007 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27008 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27009 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27010 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
27012 * config/i386/linux.h (REG_NAME): Don't define.
27013 * config/i386/linux64.h (REG_NAME): Don't define.
27014 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
27015 Undefine before defining.
27017 2011-04-28 Jan Hubicka <jh@suse.cz>
27019 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
27020 nonconstant_names array.
27021 (estimate_function_body_sizes): Build nonconstant_names array; handle
27022 BUILT_IN_CONSTANT_P.
27024 2011-04-28 Richard Guenther <rguenther@suse.de>
27028 2011-04-28 Richard Guenther <rguenther@suse.de>
27030 * tree-ssa-structalias.c (solve_constraints): Build succ graph
27031 as late as possible.
27033 2011-04-28 Richard Guenther <rguenther@suse.de>
27035 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
27036 (debug_constraint): Do it here.
27037 (dump_constraints): And here.
27038 (rewrite_constraints): And here.
27039 (dump_constraint_edge): Remove.
27040 (dump_constraint_graph): Rewrite to produce DOT output.
27041 (solve_constraints): Build succ graph as late as possible.
27042 Dump constraint graphs before and after solving.
27044 2011-04-28 Richard Guenther <rguenther@suse.de>
27046 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27047 New function split out from ...
27048 (find_func_aliases): ... here. Call it.
27049 (find_func_aliases_for_call): Likewise.
27051 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
27053 * internal-fn.h (internal_fn_name_array): Declare.
27054 (internal_fn_flags_array): Likewise.
27056 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
27058 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
27059 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
27061 (ssemodefsuffix): Remove.
27062 (ssevecmodesuffix): New mode attribute.
27063 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
27064 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
27065 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
27066 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
27067 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
27068 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
27069 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
27070 ssemodesuffix mode attribute.
27071 (float splitters): Use ssevecmodesuffix mode attribute.
27072 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
27073 (sseinsmode): Rename from avxvecmode.
27074 (avxsizesuffix): Rename from avxmodesuffix.
27075 (sseintvecmode): Rename from avxpermvecmode.
27076 (ssedoublevecmode): Rename from ssedoublesizemode.
27077 (ssehalfvecmode): Rename from avxhalfvecmode.
27078 (ssescalarmode): Rename from avxscalarmode.
27079 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
27080 templates for ssemodesuffix mode attribute.
27081 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
27084 Adjust RTX patterns globally for renamed mode attributes.
27086 2011-04-27 Jan Hubcika <jh@suse.cz>
27088 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
27089 * ipa-inline-analysis.c: Include alloc-pool.h.
27090 (edge_predicate_pool): New.
27091 (trye_predicate_p): New function
27092 (false_predicate_p): New function.
27093 (add_clause): Sanity check that false clauses are "optimized";
27094 never add clauses to predicate that is already known to be false.
27095 (and_predicate): Use flase_predicate_p.
27096 (evaulate_predicate): Rename to ...
27097 (evaluate_predicate): ... this one; update all callers; assert
27098 that false is not listed among possible truths.
27099 (dump_predicate): Use true_predicate_p.
27100 (account_size_time): Use false_predicate_p.
27101 (evaulate_conditions_for_edge): Rename to ...
27102 (evaluate_conditions_for_edge) ... this one.
27103 (edge_set_predicate): New function.
27104 (inline_edge_duplication_hook): Duplicate edge predicates.
27105 (inline_edge_removal_hook): Free edge predicates.
27106 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
27107 (dump_inline_summary): Update.
27108 (estimate_function_body_sizes): Set edge predicates.
27109 (estimate_calls_size_and_time): Handle predicates.
27110 (estimate_callee_size_and_time): Update.
27111 (remap_predicate): Add toplev_predicate; update comment.
27112 (remap_edge_predicates): New function.
27113 (inline_merge_summary): Compute toplev predicate; update.
27114 (read_predicate): New function.
27115 (read_inline_edge_summary): Use it.
27116 (inline_read_section): Likewise.
27117 (write_predicate): New function.
27118 (write_inline_edge_summary): Use it.
27119 (inline_write_summary): Likewise.
27120 (inline_free_summary): Free alloc pool and edge summary vec.
27122 2011-04-27 Richard Guenther <rguenther@suse.de>
27124 * tree-ssa-structalias.c (changed_count): Remove.
27125 (changed): Use a bitmap.
27126 (unify_nodes): Adjust.
27127 (do_sd_constraint): Likewise.
27128 (do_ds_constraint): Likewise.
27129 (do_complex_constraint): Likewise.
27130 (solve_graph): Likewise.
27132 2011-04-27 Jan Hubicka <jh@suse.cz>
27134 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
27136 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
27138 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
27139 (avx_vperm2f128_*_operand): Ditto.
27140 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
27141 Use avx_vpermilp_parallel in insn condition.
27142 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
27143 Use avx_vperm2f128_parallel in insn condition.
27145 2011-04-27 Richard Guenther <rguenther@suse.de>
27147 * Makefile.in (tree-ssa-structalias.o): Remove
27148 gt-tree-ssa-structalias.h dependency.
27149 (GTFILES): Remove tree-ssa-structalias.c.
27150 * tree.c (allocate_decl_uid): New function.
27151 (make_node_stat): Use it.
27152 (copy_node_stat): Likewise.
27153 * tree.h (allocate_decl_uid): Declare.
27154 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
27155 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
27156 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
27157 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
27158 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
27159 (struct heapvar_map): Likewise.
27160 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
27161 heapvar_insert): Likewise.
27162 (make_heapvar_for): Rename to ...
27163 (make_heapvar): ... this. Simplify.
27164 (fake_var_decl_obstack): New global var.
27165 (build_fake_var_decl): New function.
27166 (make_constraint_from_heapvar): Adjust.
27167 (handle_lhs_call): Likewise.
27168 (create_function_info_for): Likewise.
27169 (intra_create_variable_infos): Likewise.
27170 (init_alias_vars): Allocate fake_var_decl_obstack.
27171 (init_alias_heapvars, delete_alias_heapvars): Remove.
27172 (compute_points_to_sets): Do not call init_alias_heapvars.
27173 (ipa_pta_execute): Likewise.
27174 (delete_points_to_sets): Free fake_var_decl_obstack.
27176 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27178 * config/spu/divmovti4.c (union qword_UTItype): New data type.
27179 (si_from_UTItype, si_to_UTItype): New functions.
27180 (__udivmodti4): Use them to implement type-punning.
27181 * config/spu/multi3.c (union qword_TItype): New data type.
27182 (si_from_TItype, si_to_TItype): New functions.
27183 (__multi3): Use them to implement type-punning.
27185 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27187 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
27189 2011-04-27 Jan Hubicka <jh@suse.cz>
27191 * ipa-prop.c (function_insertion_hook_holder): New holder.
27192 (ipa_add_new_function): New function.
27193 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
27194 Register/deregister holder.
27196 2011-04-27 Richard Guenther <rguenther@suse.de>
27198 PR tree-optimization/48772
27199 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
27201 2011-04-27 Richard Guenther <rguenther@suse.de>
27203 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
27204 TARGET_MEM_REF handling.
27206 2011-04-27 Nick Clifton <nickc@redhat.com>
27208 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
27209 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
27210 (REG_CLASS_NAMES): Likewise.
27211 (REG_CLASS_CONTENTS): Likewise.
27212 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
27213 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
27214 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
27215 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
27216 (EVEN_REGS): New macro. Alias for QUAD_REGS.
27217 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
27218 duplicate register classes.
27219 (frv_class_likely_spilled_p): Likewise.
27220 (frv_register_move_cost): Likewise.
27222 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
27223 end of the regno_reg_class array.
27225 2011-04-27 Jakub Jelinek <jakub@redhat.com>
27228 * c-typeck.c (build_binary_op): Don't wrap arguments if
27229 int_operands is true.
27231 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
27234 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
27235 targetm.calls.must_pass_in_stack for void type.
27237 2011-04-26 Jan Hubicka <jh@suse.cz>
27239 * cgraphbuild.c (build_cgraph_edges): Update call
27240 of cgraph_create_edge and cgraph_create_indirect_edge.
27241 * cgraph.c (cgraph_create_edge_including_clones,
27242 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
27243 cgraph_update_edges_for_call_stmt_node): Do not take nest
27244 argument; do not initialize call_stmt_size/time.
27245 (dump_cgraph_node): Do not dump nest.
27246 (cgraph_clone_edge): Do not take loop_nest argument;
27247 do not propagate it; do not clone call_stmt_size/time.
27248 (cgraph_clone_node): Likewise.
27249 (cgraph_create_virtual_clone): Update.
27250 * cgraph.h (struct cgraph_edge): Remove
27251 call_stmt_size/call_stmt_time/loop_nest.
27252 (cgraph_create_edge, cgraph_create_indirect_edge,
27253 cgraph_create_edge_including_clones, cgraph_clone_node): Update
27255 * tree-emutls.c (gen_emutls_addr): Update.
27256 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
27257 loop_nest; handle indirect calls, too.
27258 (clone_inlined_nodes): Do not care about updating inline summaries.
27259 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
27260 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
27261 stream call_stmt_size/call_stmt_time/loop_nest.
27262 * ipa-inline.c (edge_badness): Update.
27263 (ipa_inline): dump summaries after inlining.
27264 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
27266 (inline_edge_summary): New function.
27267 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
27268 (inline_edge_removal_hook): Handle edge summaries.
27269 (inline_edge_duplication_hook): New hook.
27270 (inline_summary_alloc): Alloc hooks.
27271 (initialize_growth_caches): Do not register removal hooks.
27272 (free_growth_caches); Do not free removal hook.
27273 (dump_inline_edge_summary): New function.
27274 (dump_inline_summary): Use it.
27275 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
27276 (inline_update_callee_summaries): New function.
27277 (inline_merge_summary): Use it.
27278 (do_estimate_edge_time, do_estimate_edge_growth): Update.
27279 (read_inline_edge_summary): New function.
27280 (inline_read_section): Use it.
27281 (write_inline_edge_summary): New function.
27282 (inline_write_summary): Use it.
27283 (inline_free_summary): Free edge new holders.
27284 * tree-inline.c (copy_bb): Update.
27286 2011-04-26 Jason Merrill <jason@redhat.com>
27288 * tree-eh.c (lower_try_finally_switch): Create the label along with
27289 the CASE_LABEL_EXPR.
27291 2011-04-26 David S. Miller <davem@davemloft.net>
27292 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27294 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
27295 * configure: Regenerate.
27297 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
27300 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
27302 (VEC_reduc): New code iterator and splitters for vector reduction.
27303 (VEC_reduc_name): Ditto.
27304 (VEC_reduc_rtx): Ditto.
27305 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
27306 (reduc_<VEC_reduc_name>_v4sf): Ditto.
27308 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27309 support for extracting SF on VSX.
27311 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
27312 generating xscvspdp.
27313 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
27314 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
27315 double add, minimum, maximum vector reduction.
27316 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
27317 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
27318 optimize double vector reduction.
27319 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
27321 2011-04-26 Joseph Myers <joseph@codesourcery.com>
27323 * config/fr30/fr30.h (inhibit_libc): Don't define.
27324 * config/m32r/m32r-protos.h: Correct comment.
27325 * config/v850/v850.h (GHS_default_section_names,
27326 GHS_current_section_names): Use tree, not union tree_node *.
27328 2011-04-26 Xinliang David Li <davidxl@google.com>
27330 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
27331 * c-family/c-opts.c (c_common_handle_option): Set
27332 warn_maybe_uninitialized.
27333 * opts.c (common_handle_option): Ditto.
27334 * common.opt: New option.
27335 * tree-ssa.c (warn_uninit): Add one more parameter.
27336 (warn_uninitialized_var): Pass warning code.
27337 * tree-flow.h: Interface change.
27339 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27341 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
27342 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
27343 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
27345 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27347 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
27348 * config/mips/mips.opt (mmips-tfile): Remove.
27350 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
27351 mips-tdump reference to ...
27352 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
27353 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
27354 reference by Tru64 UNIX.
27356 2011-04-26 Jakub Jelinek <jakub@redhat.com>
27359 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
27360 is error_mark_node, set value to NULL.
27362 PR tree-optimization/48734
27363 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
27364 if return value from maybe_fold_*_comparsions isn't something
27365 the code is prepared to handle.
27367 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
27369 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
27371 (ext_QIreg_nomode_operands): Remove.
27372 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
27376 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
27378 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
27380 2011-04-26 Richard Guenther <rguenther@suse.de>
27382 * c-typeck.c (build_unary_op): Do not expand array-refs via
27383 pointer arithmetic. Only adjust qualifiers for function types.
27385 2011-04-26 Richard Guenther <rguenther@suse.de>
27387 PR middle-end/48694
27388 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
27389 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
27390 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
27391 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
27393 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
27395 * doc/extend.texi: Document __underlying_type.
27397 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
27399 * config/rs6000/titan.md (automata_option "progress"): Remove.
27401 2011-04-25 Jeff Law <law@redhat.com>
27403 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
27405 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
27407 * system.h (ENUM_BITFIELD): Remove.
27409 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
27410 Eric Botcazou <ebotcazou@adacore.com>
27412 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
27413 for STORE_FLAG_VALUE==-1 case.
27415 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
27418 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
27419 LEGITIMATE_PIC_OPERAND_P.
27421 2011-04-24 Jan Hubicka <jh@suse.cz>
27423 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
27425 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
27426 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
27427 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
27428 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
27429 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
27430 Sanity check predicate length.
27431 (remap_predicate): Likewise; sanity check jump functions.
27432 (inline_read_section, inline_write_summary): Sanity check
27435 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27438 * doc/extend.texi (Type Traits): Document __is_standard_layout,
27439 __is_literal_type, and __is_trivial; update throughout about
27440 possibly cv-qualified void types.
27442 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
27444 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
27445 testsuite and make it version agnostic.
27447 2011-04-22 Jan Hubicka <jh@suse.cz>
27449 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
27451 2011-04-23 Jakub Jelinek <jakub@redhat.com>
27454 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
27455 to VOID_TYPE even around MODIFY_EXPR.
27457 2011-04-22 Mike Stump <mikestump@comcast.net>
27459 * gensupport.c (read_md_rtx): Fix typo in comment.
27460 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
27463 2011-04-22 Jan Hubicka <jh@suse.cz>
27465 * gengtype.c (open_base_files): Add ipa-inline.h include.
27466 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
27467 ipa-prop.c; update all uses.
27468 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
27469 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
27470 merge summary of inlined function into former caller.
27471 * ipa-inline.c (max_benefit): Remove.
27472 (edge_badness): Compensate for removal of benefits.
27473 (update_caller_keys): Use
27474 reset_node_growth_cache/reset_edge_growth_cache.
27475 (update_callee_keys): Likewise.
27476 (update_all_callee_keys): Likewise.
27477 (inline_small_functions): Do not collect max_benefit; do not reset
27478 estimated_growth; call free_growth_caches and initialize_growth_caches.
27479 * ipa-inline.h (struct condition, type clause_t, struct predicate,
27480 struct size_time_entry): New structures.
27481 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
27482 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
27483 and estimated_growth.
27484 (edge_growth_cache_entry): New structure.
27485 (node_growth_cache, edge_growth_cache): New global vars.
27486 (estimate_growth): Turn into inline.
27487 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
27488 initialize_growth_caches, free_growth_caches): Declare.
27489 (estimate_edge_growth): Rewrite.
27490 (estimate_edge_time): Implement as inline cache lookup.
27491 (reset_node_growth_cache, reset_edge_growth_cache): New inline
27493 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
27494 (NUM_CONDITIONS): New constant.
27495 (predicate_conditions): New enum.
27496 (IS_NOT_CONSTANT): New constant.
27497 (edge_removal_hook_holder): New var.
27498 (node_growth_cache, edge_growth_cache): New global vars.
27499 (true_predicate, single_cond_predicate, false_predicate,
27500 not_inlined_predicate, add_condition, add_clause, and_predicates,
27501 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
27502 dump_clause, dump_predicate, account_size_time,
27503 evaulate_conditions_for_edge): New functions.
27504 (inline_summary_alloc): Move to heap.
27505 (inline_node_removal_hook): Clear condition and entry vectors.
27506 (inline_edge_removal_hook): New function.
27507 (initialize_growth_caches, free_growth_caches): New function.
27508 (dump_inline_summary): Update.
27509 (edge_execution_predicate): New function.
27510 (will_be_nonconstant_predicate): New function.
27511 (estimate_function_body_sizes): Compute BB and constantness predicates.
27512 (compute_inline_parameters): Do not clear estimated_growth.
27513 (estimate_edge_size_and_time): New function.
27514 (estimate_calls_size_and_time): New function.
27515 (estimate_callee_size_and_time): New function.
27516 (remap_predicate): New function.
27517 (inline_merge_summary): New function.
27518 (do_estimate_edge_time): New function based on...
27519 (estimate_edge_time): ... this one.
27520 (do_estimate_edge_growth): New function.
27521 (do_estimate_growth): New function based on....
27522 (estimate_growth): ... this one.
27523 (inline_analyze_function): Analyze after deciding on jump functions.
27524 (inline_read_section): New function.
27525 (inline_read_summary): Use it.
27526 (inline_write_summary): Write all the new data.
27527 * ipa-prop.c (ipa_get_param_decl_index): Export.
27528 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
27529 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
27531 (ipa_get_lattice): Move here from ipa-cp.c
27532 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
27533 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
27534 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
27535 cgraph_edge_inlinable_p): Remove.
27536 * cgraphunit.c: Include ipainline.h
27537 (cgraph_process_new_functions): Update call of
27538 compute_inline_parameters.
27540 2011-04-22 Richard Guenther <rguenther@suse.de>
27542 * tree.c (build_int_cst): Properly create canonicalized integer
27544 (build_int_cst_type): Remove scary comments.
27546 2011-04-22 Xinliang David Li <davidxl@google.com>
27548 * toplev.c (process_options): Enable -Werror=coverage-mismatch
27549 by default when -Wno-error is not specified.
27550 * opts-global.c (decode_options): Remove call to
27551 control_warning_options.
27553 2011-04-22 Jakub Jelinek <jakub@redhat.com>
27555 PR tree-optimization/48717
27556 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
27557 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
27559 2011-04-22 Joseph Myers <joseph@codesourcery.com>
27561 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
27562 definition where used.
27564 2011-04-22 Jakub Jelinek <jakub@redhat.com>
27567 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
27568 TREE_STATIC variables declared inside of some OpenMP construct.
27570 2011-04-22 Martin Jambor <mjambor@suse.cz>
27572 PR middle-end/48585
27573 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
27575 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
27578 * c-typeck.c (pop_init_level): Do not warn about initializing
27581 2011-04-22 Alan Modra <amodra@gmail.com>
27583 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
27584 when returning call_cookie.
27585 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
27586 pointers, to functions with no more vector args than the current
27587 function, and some non-local calls for ABI_V4.
27588 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
27589 sibcall_nonlocal_aix64): Combine to ..
27590 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
27591 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
27592 (sibcall_value_nonlocal_aix<mode>): ..likewise.
27593 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
27594 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
27596 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
27597 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
27598 sibcall_value_symbolic_64): Delete.
27600 2011-04-21 Xinliang David Li <davidxl@google.com>
27602 * cgraph.h: Remove pid.
27603 * cgraph.c: Remove pid.
27604 * value-prof.c (init_node_map): New function.
27605 (del_node_map): New function.
27606 (find_func_by_funcdef_no): New function.
27607 (gimple_ic_transform): Call new function.
27608 * cgraphunit.c (cgraph_finalize_function): Remove pid.
27609 * function.c (get_last_funcdef_no): New function.
27610 * function.h (get_last_funcdef_no): New function.
27611 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
27612 to libgcov function.
27613 (tree-profiling): Call node map init and delete function.
27615 2011-04-21 Ian Lance Taylor <iant@google.com>
27617 * godump.c (go_format_type): Use exported Go name for anonymous
27620 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27622 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
27623 Call builtin_function_type_list instead of builtin_function_type.
27624 (UNARY, BINARY, TRINARY, QUAD): Likewise.
27626 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27628 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
27629 build_function_type_list instead of build_function_type.
27630 Delete variable `endlink'.
27632 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27634 * config/s390/s390.c (s390_init_builtins): Call
27635 build_function_type_list instead of build_function_type.
27637 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27639 * config/ia64/ia64.c (ia64_init_builtins): Call
27640 build_function_type_list instead of builtin_function_type.
27642 2011-04-21 Easwaran Raman <eraman@google.com>
27644 * cfgexpand.c (stack_var): Remove OFFSET...
27645 (add_stack_var): ...and its reference here...
27646 (expand_stack_vars): ...and here.
27647 (stack_var_cmp): Sort by descending order of size.
27648 (partition_stack_vars): Change heuristic.
27649 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
27650 (dump_stack_var_partition): Add newline after each partition.
27652 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
27653 Jeff Law <law@redhat.com>
27655 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
27656 * gengtype.c (matching_file_name_substitute): Likewise.
27658 2011-04-21 Richard Guenther <rguenther@suse.de>
27661 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
27663 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
27665 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
27667 2011-04-21 Richard Guenther <rguenther@suse.de>
27669 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
27672 2011-04-21 Richard Guenther <rguenther@suse.de>
27674 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
27675 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
27676 Use DECL_P, not SSA_VAR_P.
27677 (ptr_derefs_may_alias_p): Likewise.
27678 (ptr_deref_may_alias_ref_p_1): Likewise.
27679 (decl_refs_may_alias_p): Likewise.
27680 (refs_may_alias_p_1): Likewise.
27681 (ref_maybe_used_by_call_p_1): Likewise.
27682 (call_may_clobber_ref_p_1): Likewise.
27683 (indirect_ref_may_alias_decl_p): Assume indirect refrences
27684 are either MEM_REF or TARGET_MEM_REF.
27685 (indirect_refs_may_alias_p): Likewise.
27686 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
27687 for MEM_EXPR of indirect calls.
27689 2011-04-21 Tristan Gingold <gingold@adacore.com>
27691 * vmsdbgout.c (write_srccorr): Compute file length from the string.
27692 (dst_file_info_struct): Remove flen field.
27693 (lookup_filename): Remove code that set flen field.
27695 2011-04-21 Tristan Gingold <gingold@adacore.com>
27697 * config/ia64/ia64.c (ia64_start_function): Add a guard.
27699 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
27702 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
27703 vec_extract and vec_concat for non-SSE4_1 targets.
27705 2011-04-21 Richard Guenther <rguenther@suse.de>
27707 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
27710 2011-04-21 Joseph Myers <joseph@codesourcery.com>
27712 * config/i386/cygming.h (union tree_node, TREE): Don't define or
27714 (FILE): Don't undefine.
27716 2011-04-21 Joseph Myers <joseph@codesourcery.com>
27718 * config/alpha/alpha.c (struct machine_function): Use rtx, not
27720 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
27722 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
27723 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
27724 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
27726 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
27727 definitions where used.
27728 * config/microblaze/microblaze.h (struct microblaze_args): Use
27729 rtx, not struct rtx_def *.
27730 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
27732 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
27733 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
27734 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
27735 not struct rtx_def *.
27736 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
27738 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
27740 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
27742 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27744 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
27745 operand_equal_p to compare DR_BASE_ADDRESSes.
27746 (vect_check_interleaving): Likewise.
27748 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27751 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
27752 for all Neon struct constants.
27754 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27756 * target.def (legitimate_constant_p): New hook.
27757 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
27758 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
27759 * doc/tm.texi: Regenerate.
27760 * hooks.h (hook_bool_mode_rtx_true): Declare.
27761 * hooks.c (hook_bool_mode_rtx_true): Define.
27762 * system.h (LEGITIMATE_CONSTANT_P): Poison.
27763 * calls.c (precompute_register_parameters): Replace uses of
27764 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
27765 (emit_library_call_value_1): Likewise.
27766 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
27767 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
27768 * ira-costs.c (scan_one_insn): Likewise.
27769 * recog.c (general_operand, immediate_operand): Likewise.
27770 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
27771 * reload1.c (init_eliminable_invariants): Likewise.
27773 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
27775 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
27776 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
27778 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27779 * config/alpha/predicates.md (input_operand): Update call to
27780 alpha_legitimate_constant_p.
27782 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
27783 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
27784 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
27785 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27786 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
27787 (arm_legitimate_constant_p): New functions.
27788 (arm_cannot_force_const_mem): Make static.
27790 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
27792 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
27793 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
27794 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
27795 instead of bfin_legitimate_constant_p.
27796 (bfin_legitimate_constant_p): Make static. Add a mode argument.
27797 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27799 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
27801 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
27803 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
27804 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
27805 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27806 (frv_legitimate_constant_p): Make static. Add a mode argument.
27808 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
27809 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
27810 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
27812 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
27813 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
27814 * config/i386/i386.c (legitimate_constant_p): Rename to...
27815 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
27817 (ix86_cannot_force_const_mem): Update accordingly.
27818 (ix86_legitimate_address_p): Likewise.
27819 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27820 * config/i386/i386.md: Update commentary.
27822 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
27823 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
27824 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27825 (ia64_legitimate_constant_p): Make static. Add a mode argument.
27827 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
27829 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
27830 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
27831 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27832 (lm32_legitimate_constant_p): Make static. Add a mode argument.
27834 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
27835 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
27836 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
27838 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
27839 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27840 (m32r_legitimate_constant_p): New function.
27842 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
27843 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
27844 LEGITIMATE_CONSTANT_P.
27845 (LEGITIMATE_CONSTANT_P): Delete.
27846 * config/m68k/m68k.c (m68k_expand_prologue): Call
27847 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
27848 (m68k_legitimate_constant_p): New function.
27849 * config/m68k/m68k.md: Update comments.
27851 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
27852 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27853 (mcore_legitimate_constant_p): New function.
27855 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
27856 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
27857 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
27858 Add a mode argument.
27859 (mep_legitimate_address): Update accordingly.
27860 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27862 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
27864 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
27865 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
27866 static. Check OP's mode for VOIDmode.
27867 (microblaze_legitimate_constant_p): New function.
27868 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27870 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
27871 * config/mips/mips.c (mips_legitimate_constant_p): New function.
27872 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
27873 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27874 * config/mips/predicates.md: Update comments.
27876 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
27877 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
27878 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27879 (mmix_legitimate_constant_p): Make static, return a bool, and take
27881 (mmix_print_operand_address): Update accordingly.
27883 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
27885 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
27886 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
27887 static. Add a mode argument.
27888 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27890 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
27892 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
27893 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27894 (pa_legitimate_constant_p): New function.
27896 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
27898 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
27899 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27900 (pdp11_legitimate_constant_p): New function.
27902 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
27903 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27904 (rs6000_legitimate_constant_p): New function.
27906 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
27907 (rx_legitimate_constant_p): ...this.
27908 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
27909 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
27910 (rx_legitimate_constant_p): ...this.
27911 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27912 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
27914 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
27915 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
27916 * config/s390/s390.c (legitimate_constant_p): Rename to...
27917 (s390_legitimate_constant_p): ...this. Make static, return a bool,
27918 and add a mode argument.
27919 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27921 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
27923 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
27924 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27925 (sh_legitimate_constant_p): New function.
27927 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
27928 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
27929 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27930 (legitimate_constant_p): Rename to...
27931 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
27933 (constant_address_p): Update accordingly.
27935 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
27936 argument and return a bool.
27937 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
27938 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27939 (spu_legitimate_constant_p): Add a mode argument and return a bool.
27940 (spu_rtx_costs): Update accordingly.
27941 * config/spu/predicates.md (vec_imm_operand): Likewise.
27943 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
27945 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
27946 * config/v850/v850.c (v850_legitimate_constant_p): New function.
27947 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27949 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
27950 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
27951 * config/vax/vax.c (legitimate_constant_p): Likewise.
27953 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
27954 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27955 (xtensa_legitimate_constant_p): New function.
27957 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27959 * target.def (cannot_force_const_mem): Add a mode argument.
27960 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
27961 * doc/tm.texi: Regenerate.
27962 * hooks.h (hook_bool_mode_rtx_false): Declare.
27963 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
27964 (hook_bool_mode_const_rtx_true): Likewise.
27965 (hook_bool_mode_rtx_false): New function.
27966 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
27967 to be non-VOID. Update call to cannot_force_const_mem.
27968 (find_reloads): Update accordingly.
27969 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
27970 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
27972 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
27973 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
27974 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
27975 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
27976 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
27977 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
27978 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
27979 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
27980 (m68k_cannot_force_const_mem): ...this new function.
27981 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
27983 (mips_const_insns, mips_legitimize_const_move): Update calls.
27984 (mips_secondary_reload_class): Likewise.
27985 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
27986 (pa_cannot_force_const_mem): ...this new function.
27987 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
27988 (rs6000_cannot_force_const_mem): ...this new function.
27989 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
27991 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
27992 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
27994 (xtensa_cannot_force_const_mem): ...this new function.
27996 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
27998 * config/mips/mips.c (mips16_build_function_stub): Call
27999 build_function_type_list instead of build_function_type.
28000 (mips16_build_call_stub): Likewise.
28002 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
28004 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
28005 instead of build_function_type.
28007 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
28009 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
28010 instead of build_function_type.
28012 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
28015 * config/i386/i386.md (insv): Change operand 0 constraint to
28016 "register_operand". Change operand 1 and 2 constraint to
28017 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
28018 * config/i386/sse.md (sse4_1_pinsrb): Export.
28019 (sse2_pinsrw): Ditto.
28020 (sse4_1_pinsrd): Ditto.
28021 (sse4_1_pinsrq): Ditto.
28022 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
28023 * config/i386/i386.c (ix86_expand_pinsr): New.
28025 2011-04-20 Easwaran Raman <eraman@google.com>
28027 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
28028 containing union type only with -fstrict-aliasing.
28030 2011-04-20 Jim Meyering <meyering@redhat.com>
28032 Remove useless if-before-free tests.
28033 * calls.c (expand_call, save_area): Likewise.
28034 * cfgcleanup.c (try_forward_edges): Likewise.
28035 * collect2.c (collect_execute): Likewise.
28036 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
28037 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
28038 * coverage.c (coverage_checksum_string): Likewise.
28039 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
28040 * cselib.c (cselib_init): Likewise.
28041 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
28042 (df_set_clean_cfg): Likewise.
28043 * function.c (free_after_compilation): Likewise.
28044 * gcc.c (do_spec_1, main): Likewise.
28045 * gcov.c (create_file_names): Likewise.
28046 * gensupport.c (identify_predicable_attribute): Likewise.
28047 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
28048 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
28049 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
28050 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
28051 * ipa-pure-const.c (local_pure_const): Likewise.
28052 * ipa-reference.c (propagate): Likewise.
28053 * ira-costs.c (free_ira_costs): Likewise.
28054 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
28055 * matrix-reorg.c (mat_free): Likewise.
28056 * prefix.c (get_key_value): Likewise.
28057 * profile.c (compute_value_histograms): Likewise.
28058 * reload1.c (free_reg_equiv): Likewise.
28059 * sched-deps.c (free_deps): Likewise.
28060 * sel-sched-ir.c (fence_clear): Likewise.
28061 * sese.c (set_rename, if_region_set_false_region): Likewise.
28062 * tree-data-ref.c (free_rdg): Likewise.
28063 * tree-eh.c (lower_try_finally): Likewise.
28064 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
28065 * tree-ssa-live.c (delete_var_map): Likewise.
28066 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
28067 * tree-ssa-pre.c (phi_trans_add): Likewise.
28069 2011-04-20 Jakub Jelinek <jakub@redhat.com>
28071 PR tree-optimization/48611
28072 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
28073 beyond ERT_MUST_NOT_THROW region.
28075 2011-04-20 Catherine Moore <clm@codesourcery.com>
28077 * config/mips/mips.opt (mfix-24k): New.
28078 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
28079 * config/mips/mips.md (length): Increase by 4 for stores if
28081 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
28082 all noreorder if fixing 24K errata.
28083 * doc/invoke.texi: Document mfix-24k.
28085 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
28087 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
28088 quad-word modes, reduce to 9-bit index range when above 1016 limit.
28090 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
28092 * config/arm/arm.c (arm_gen_constant): Move movw support ....
28093 (const_ok_for_op): ... to here.
28095 2011-04-20 Kai Tietz <ktietz@redhat.com>
28097 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
28098 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
28100 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
28102 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
28104 2011-04-20 Richard Guenther <rguenther@suse.de>
28106 PR tree-optimization/47892
28107 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
28108 are if-convertible.
28110 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
28112 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
28114 2011-04-20 Tristan Gingold <gingold@adacore.com>
28116 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
28118 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
28122 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
28123 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
28124 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28125 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
28126 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
28128 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
28131 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
28132 (avr_asm_named_section, avr_asm_output_aligned_common,
28133 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
28134 New functions to update...
28135 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
28136 (avr_asm_init_sections): Overwrite section callbacks for
28137 data_section, bss_section.
28138 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
28140 (avr_file_end): ...here.
28142 2011-04-20 Richard Guenther <rguenther@suse.de>
28144 PR middle-end/48695
28145 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
28146 objects and types here. Adjust for their offset before comparing.
28148 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
28150 * tree-vect-stmts.c (vectorizable_store): Only chain one related
28151 statement per copy.
28153 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
28155 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
28156 (GIMPLE_H): Include $(INTERNAL_FN_H).
28157 (OBJS-common): Add internal-fn.o.
28158 (internal-fn.o): New rule.
28159 * internal-fn.def: New file.
28160 * internal-fn.h: Likewise.
28161 * internal-fn.c: Likewise.
28162 * gimple.h: Include internal-fn.h.
28163 (GF_CALL_INTERNAL): New gf_mask.
28164 (gimple_statement_call): Put fntype into a union with a new
28166 (gimple_build_call_internal): Declare.
28167 (gimple_build_call_internal_vec): Likewise.
28168 (gimple_call_same_target_p): Likewise.
28169 (gimple_call_internal_p): New function.
28170 (gimple_call_internal_fn): Likewise.
28171 (gimple_call_fntype): Return null for internal calls.
28172 (gimple_call_set_fntype): Assert that the function is not internal.
28173 (gimple_call_set_fn): Likewise.
28174 (gimple_call_set_fndecl): Likewise.
28175 (gimple_call_set_internal_fn): New function.
28176 (gimple_call_addr_fndecl): Handle null functions.
28177 (gimple_call_return_type): Likewise null types.
28178 * gimple.c (gimple_build_call_internal_1): New function.
28179 (gimple_build_call_internal): Likewise.
28180 (gimple_build_call_internal_vec): Likewise.
28181 (gimple_call_same_target_p): Likewise.
28182 (gimple_call_flags): Handle calls to internal functions.
28183 (gimple_call_fnspec): New function.
28184 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
28185 (gimple_has_side_effects): Handle null functions.
28186 (gimple_rhs_has_side_effects): Likewise.
28187 (gimple_call_copy_skip_args): Handle calls to internal functions.
28188 * cfgexpand.c (expand_call_stmt): Likewise.
28189 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
28190 * gimple-fold.c (gimple_fold_call): Handle null functions.
28191 (gimple_fold_stmt_to_constant_1): Don't fold
28192 calls to internal functions.
28193 * gimple-low.c (gimple_check_call_args): Handle calls to internal
28195 * gimple-pretty-print.c (dump_gimple_call): Likewise.
28196 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
28197 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
28198 (do_warn_unused_result): Likewise.
28199 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
28200 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
28201 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
28202 the target of a call.
28203 (initialize_hash_element): Update accordingly.
28204 (hashable_expr_equal_p): Use gimple_call_same_target_p.
28205 (iterative_hash_hashable_expr): Handle calls to internal functions.
28206 (print_expr_hash_elt): Likewise.
28207 * tree-ssa-pre.c (can_value_number_call): Likewise.
28208 (eliminate): Handle null functions.
28209 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
28210 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
28211 (find_func_aliases): Likewise.
28212 * value-prof.c (gimple_ic_transform): Likewise.
28213 (gimple_indirect_call_to_profile): Likewise.
28214 * lto-streamer-in.c (input_gimple_stmt): Likewise.
28215 * lto-streamer-out.c (output_gimple_stmt): Likewise.
28217 2011-04-19 Jan Hubicka <jh@suse.cz>
28219 * ipa-inline-transform.c (save_inline_function_body): Add comments.
28220 * ipa-inline.c (inline_small_functions): Compute summaries first,
28221 populate heap later.
28223 2011-04-19 Jan Hubicka <jh@suse.cz>
28225 * cgraph.h (save_inline_function_body): Remove.
28226 * ipa-inline-transform.c: New file, broke out of...
28227 * ipa-inline.c: ... this one; Update toplevel comment.
28228 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
28230 (update_noncloned_frequencies): Move to ipa-inline-transform.c
28231 (cgraph_mark_inline_edge): Rename to inline_call; move to
28232 ipa-inline-transform.c.
28233 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
28234 move to ipa-inline-transform.c
28235 (recursive_inlining, inline_small_functions, flatten_function,
28236 ipa_inline, inline_always_inline_functions,
28237 early_inline_small_functions): Update.
28238 (inline_transform): Move to ipa-inline-transform.c.
28239 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
28241 * Makefile.in (ipa-inline-transform.o): New file.
28242 * cgraphunit.c (save_inline_function_body): Move to
28243 ipa-inline-transform.c
28245 2011-04-19 DJ Delorie <dj@redhat.com>
28247 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
28248 registers if we already know there aren't any.
28249 (m32c_emit_epilogue): Don't emit a barrier here.
28250 (m32c_emit_eh_epilogue): Likewise.
28251 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
28252 operands at expand time.
28253 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
28255 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
28256 duplicates. Provide aliases instead.
28257 * config/m32c/prologue.md (eh_return): Emit a barrier here.
28258 (eh_epilogue): Add a "(return)" here as a hint to other parts of
28261 2011-04-19 Anatoly Sokolov <aesok@post.ru>
28263 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
28264 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
28265 (general_or_i64_p, sparc_register_move_cost): New function.
28267 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28269 * doc/install.texi (Configuration, --enable-threads): Remove mach.
28270 Add lynx, mipssde. Sort table.
28272 2011-04-19 Xinliang David Li <davidxl@google.com>
28274 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
28277 2011-04-19 Jakub Jelinek <jakub@redhat.com>
28280 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
28281 is a SUBREG with non-MODE_INT mode inside of it.
28283 2011-04-19 Martin Jambor <mjambor@suse.cz>
28285 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
28286 also according to actual contants.
28287 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
28288 (gimple_fold_call): Use it.
28289 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
28291 2011-04-19 Martin Jambor <mjambor@suse.cz>
28293 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
28294 non-pointer assignments.
28296 2011-04-19 Martin Jambor <mjambor@suse.cz>
28298 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
28299 account anc_offset and otr_type from the indirect edge info.
28300 * ipa-prop.c (get_ancestor_addr_info): New function.
28301 (compute_complex_ancestor_jump_func): Assignment analysis moved to
28302 get_ancestor_addr_info, call it.
28303 (ipa_note_param_call): Do not initialize information about polymorphic
28304 calls, return the indirect call graph edge. Remove the last
28305 parameter, adjust all callers.
28306 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
28307 parameters. Initialize polymorphic information in the indirect edge.
28309 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
28312 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
28313 the types if they have different enumeration identifiers.
28315 2011-04-19 Jan Hubicka <jh@suse.cz>
28317 * cgraph.h (cgraph_optimize_for_size_p): Declare.
28318 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
28319 * predict.c (cgraph_optimize_for_size_p): Break out from ...
28320 (optimize_function_for_size_p) ... here.
28322 2011-04-19 Richard Guenther <rguenther@suse.de>
28325 * tree.c (free_lang_data): Do not reset the decl-assembler-name
28328 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
28330 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
28331 if DECL_NO_INLINE_WARNING_P is set on the function.
28333 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
28336 * reload1.c (inc_for_reload): Return void. All callers changed.
28337 (emit_input_reload_insns): Don't try to delete previous output
28338 reloads to a register, or record spill_reg_store for autoincs.
28340 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
28342 * gengtype.h: Updated copyright year.
28343 (struct input_file_st): Add inpisplugin field.
28344 (type_fileloc): New function.
28346 (write_typed_struct_alloc_def): Add gcc_assert.
28347 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
28348 (write_typed_alloc_defns): Don't output for plugin files.
28349 (input_file_by_name): Clear inpisplugin field.
28350 (main): Set inpisplugin field for plugin files.
28352 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
28354 * gengtype-state.c (string_eq): New.
28355 (read_state): Use string_eq instead of strcmp when creating the
28358 2011-04-19 Wei Guozhi <carrot@google.com>
28361 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
28362 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
28364 * config/arm/constraints.md (Uu): New constraint.
28365 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
28367 2011-04-19 Tristan Gingold <gingold@adacore.com>
28369 * config.gcc (-*-*-*vms): Added.
28370 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
28372 * config/vms/vms-ld.c: New file.
28373 * config/vms/vms-ar.c: New file.
28374 * config/vms/t-vmsnative: New file.
28376 2011-04-18 Xinliang David Li <davidxl@google.com>
28378 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
28380 2011-04-18 Jakub Jelinek <jakub@redhat.com>
28382 PR middle-end/48661
28383 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
28384 if TREE_TYPE (v) is non-NULL.
28386 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
28387 gimple_get_virt_mehtod_for_binfo.
28388 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
28389 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
28391 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28393 2011-04-18 Michael Matz <matz@suse.de>
28394 Steve Ellcey <sje@cup.hp.com>
28396 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
28397 use its mode as source mode if it isn't VOIDmode.
28399 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
28401 * doc/passes.texi: Fill crossref nodes.
28403 2011-04-18 Jim Meyering <meyering@redhat.com>
28405 Fix doubled-word typos in comments and strings
28406 * config/alpha/vms-unwind.h: s/for for/for/
28407 * config/arm/unwind-arm.h: Likewise.
28408 * config/microblaze/microblaze.c: Likewise.
28409 * config/sh/constraints.md: s/in in/in/
28410 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
28412 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
28414 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
28415 (AVX_FLOAT_MODE_P): Ditto.
28416 (AVX128_VEC_FLOAT_MODE_P): Ditto.
28417 (AVX256_VEC_FLOAT_MODE_P): Ditto.
28418 (AVX_VEC_FLOAT_MODE_P): Ditto.
28419 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
28420 (UNSPEC_MASKSTORE): Ditto.
28421 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
28422 Merge from <sse>_movmsk<ssemodesuffix> and
28423 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
28424 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
28426 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
28427 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
28428 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
28430 2011-04-18 Jan Hubicka <jh@suse.cz>
28432 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
28434 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
28435 (want_inline_function_called_once_p): Break out the logic from
28437 (edge_badness): Ensure that profile is not misupdated.
28438 (lookup_recursive_calls): Prioritize by call frequencies.
28439 (inline_small_functions): Move program size estimates here;
28440 actually process whole queue even when unit growth has been
28441 met. (to properly compute inline_failed reasons and for the
28442 case unit size decrease.) Revisit comments on recursive inlining.
28443 (ipa_inline): Remove unit summary code; first inline hot calls
28444 of functions called once, cold calls next.
28445 (order, nnodes): Remove unused variables.
28446 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
28447 (GTFILES): Remove ipa-inline.c
28448 * sel-sched.c (fill_insns): Silence uninitialized var warning.
28450 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
28452 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
28454 2011-04-18 Jie Zhang <jie@codesourcery.com>
28455 Richard Earnshaw <rearnsha@arm.com>
28457 * arm.c (neon_builtin_type_bits): Remove.
28458 (typedef enum neon_builtin_mode): New.
28459 (T_MAX): Don't define.
28460 (typedef enum neon_builtin_datum): Remove bits, codes[],
28461 num_vars and base_fcode. Add mode, code and fcode.
28462 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
28463 VAR10): Change accordingly.
28464 (neon_builtin_data[]): Change accordingly
28465 (arm_init_neon_builtins): Change accordingly.
28466 (neon_builtin_compare): Remove.
28467 (locate_neon_builtin_icode): Remove.
28468 (arm_expand_neon_builtin): Change accordingly.
28470 * arm.h (enum arm_builtins): Move to ...
28471 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
28473 * arm.c (arm_builtin_decl): Declare.
28474 (TARGET_BUILTIN_DECL): Define.
28475 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
28476 (arm_builtin_decls[]): New.
28477 (arm_init_neon_builtins): Store builtin declarations in
28478 arm_builtin_decls[].
28479 (arm_init_tls_builtins): Likewise.
28480 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
28481 (arm_builtin_decl): New.
28483 2011-04-18 Richard Guenther <rguenther@suse.de>
28485 * tree.c (upper_bound_in_type): Build properly canonicalized
28487 (lower_bound_in_type): Likewise.
28489 2011-04-18 Richard Guenther <rguenther@suse.de>
28491 * gimple.h (gimple_call_addr_fndecl): New function.
28492 (gimple_call_fndecl): Use it.
28493 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
28495 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
28496 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
28498 2011-04-18 Richard Guenther <rguenther@suse.de>
28500 PR middle-end/48650
28501 * tree.c (build_string): STRING_CST is now derived from tree_typed.
28503 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
28506 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
28507 DECL_IN_CONSTANT_POOL without RTL.
28509 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
28510 Ira Rosen <ira.rosen@linaro.org>
28513 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
28514 to match neon_vzip/vuzp/vtrn_internal.
28515 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
28516 outputs explicitly dependent on both inputs.
28517 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
28519 2011-04-18 Jakub Jelinek <jakub@redhat.com>
28521 PR tree-optimization/48616
28522 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
28523 whether the shift is by scalar or vector based on whether all SLP
28524 scalar stmts have the same rhs.
28526 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
28528 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
28531 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
28534 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
28537 2011-04-17 Jan Hubicka <jh@suse.cz>
28539 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
28540 * cgrpahunit.c (cgraph_finalize_function): Do not set
28541 finalized_by_frontend.
28542 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
28543 finalized_by_frontend.
28545 2011-04-17 Jan Hubicka <jh@suse.cz>
28547 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
28548 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
28549 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
28550 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
28552 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
28554 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
28556 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
28559 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
28560 is non-null before accessing it.
28561 (input_cgraph): Remove trailing spaces.
28563 2011-04-17 Revital Eres <revital.eres@linaro.org>
28565 * params.def (sms-min-sc): New param flag.
28566 * modulo-sched.c (sms_schedule): Use it.
28567 * doc/invoke.texi (sms-min-sc): Document it.
28569 2011-04-17 Jan Hubicka <jh@suse.cz>
28571 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
28572 present, also set gimple_call_set_cannot_inline.
28573 * ipa-inline.c: Update toplevel comment.
28574 (MAX_TIME): Remove.
28575 (cgraph_clone_inlined_nodes): Fix linebreaks.
28576 (cgraph_check_inline_limits): Restructure to ...
28577 (caller_growth_limits): ... this one; be more tolerant
28578 on growth in nested inline chains; add explanatory comment;
28579 fix stack accounting thinko introduced by previous patch.
28580 (cgraph_default_inline_p): Remove.
28581 (report_inline_failed_reason): New function.
28582 (can_inline_edge_p): New function.
28583 (can_early_inline_edge_p): New function.
28584 (leaf_node_p): Move upwards in file.
28585 (want_early_inline_function_p): New function.
28586 (want_inline_small_function_p): New function.
28587 (want_inline_self_recursive_call_p): New function.
28588 (cgraph_edge_badness): Rename to ...
28589 (edge_badness) ... this one; fix linebreaks.
28590 (update_edge_key): Update call of edge_baddness; add
28591 detailed dump about queue updates.
28592 (update_caller_keys): Use can_inline_edge_p and
28593 want_inline_small_function_p.
28594 (cgraph_decide_recursive_inlining): Rename to...
28595 (recursive_inlining): Use can_inline_edge_p and
28596 want_inline_self_recursive_call_p; simplify and remove no longer
28598 (cgraph_set_inline_failed): Remove.
28599 (add_new_edges_to_heap): Use can_inline_edge_p and
28600 want_inline_small_function_p.
28601 (cgraph_decide_inlining_of_small_functions): Rename to ...
28602 (inline_small_functions): ... this one; cleanup; use
28603 can/want predicates; cleanup debug ouput; work edges till fibheap
28604 is exhausted and do not stop once unit growth is reached; remove
28605 later loop processing remaining edges.
28606 (cgraph_flatten): Rename to ...
28607 (flatten_function): ... this one; use can_inline_edge_p
28608 and can_early_inline_edge_p predicates.
28609 (cgraph_decide_inlining): Rename to ...
28610 (ipa_inline): ... this one; remove unreachable nodes before
28611 inlining functions called once; simplify the pass.
28612 (cgraph_perform_always_inlining): Rename to ...
28613 (inline_always_inline_functions): ... this one; use
28614 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
28615 (cgraph_decide_inlining_incrementally): Rename to ...
28616 (early_inline_small_functions): ... this one; simplify
28617 using new predicates; cleanup; make dumps prettier.
28618 (cgraph_early_inlining): Rename to ...
28619 (early_inliner): newer inline regular functions into always-inlines;
28620 fix updating of call stmt summaries.
28621 (pass_early_inline): Update for new names.
28622 (inline_transform): Fix formating.
28623 (gate_cgraph_decide_inlining): Rename to ...
28624 (pass_ipa_inline): ... this one.
28625 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
28626 * ipa-inline-analysis.c (dump_inline_summary): Update.
28627 (compute_inline_parameters): Do not compute disregard_inline_limits;
28628 look for mismatching arguments.
28629 (estimate_growth): Fix handlig of non-trivial self recursion.
28630 (inline_read_summary): Do not read info->disregard_inline_limits.
28631 (inline_write_summary): Do not write info->disregard_inline_limits.
28632 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
28633 and move all checks into can_inline_edge_p predicate; re-enable code
28634 comparing optimization levels.
28635 (expand_call_inline): Do not test inline_forbidden_into_p.
28636 * Makefile.in (ipa-inline.o): Update arguments.
28638 2011-04-17 Revital Eres <revital.eres@linaro.org>
28640 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
28642 2011-04-17 Revital Eres <revital.eres@linaro.org>
28644 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
28646 2011-04-17 Michael Matz <matz@suse.de>
28648 PR tree-optimization/48622
28650 * ipa-inline-analysis.c (inline_read_summary): Read size/time
28651 in same order as they're written.
28653 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28655 * config/pa/predicates.md: Reorganize and simplify predicates.
28656 Eliminate duplicate code checks.
28657 (arith_operand): Rename to arith14_operand
28658 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
28659 * config/pa/pa.md: Use renamed operands.
28660 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
28661 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
28662 arith11_operand, adddi3_operand, indexed_memory_operand,
28663 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
28664 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
28665 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
28666 move_dest_operand, move_src_operand, prefetch_cc_operand,
28667 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
28668 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
28669 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
28670 div_operand, int5_operand, movb_comparison_operator,
28671 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
28672 arith_double_operand, ireg_operand, lhs_lshift_operand,
28673 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
28674 integer_store_memory_operand): Likewise.
28675 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
28676 (integer_store_memory_operand, read_only_operand,
28677 function_label_operand, borx_reg_operand,
28678 non_hard_reg_operand): Likewise.
28679 (eq_neq_comparison_operator): Delete unused operator.
28680 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
28681 function_label_operand.
28682 (emit_move_sequence): Likewise.
28684 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
28686 * config/i386/sse.md (sseunpackmode): New mode attribute.
28687 (ssepackmode): Ditto.
28688 (vec_pack_trunc_<mode>): Macroize expander from
28689 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
28690 (vec_unpacks_lo_<mode>): Macroize expander from
28691 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28692 (vec_unpacks_hi_<mode>): Macroize expander from
28693 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28694 (vec_unpacku_lo_<mode>): Macroize expander from
28695 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28696 (vec_unpacku_hi_<mode>): Macroize expander from
28697 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28698 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
28699 ix86_expand_sse4_unpack.
28700 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
28702 2011-04-16 Jan Hubicka <jh@suse.cz>
28704 * cgraphbuild.c: Include ipa-inline.h.
28705 (reset_inline_failed): Use initialize_inline_failed.
28706 * cgraph.c: Include ipa-inline.h.
28707 (cgraph_create_node_1): Do not initialize estimated_growth.
28708 (initialize_inline_failed): More to ipa-inline-analysis.c
28709 (dump_cgraph_node): Do not dump inline flags.
28710 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
28711 and disregard_inline_limits flags.
28712 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
28713 time, size, estimated_growth.
28714 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
28716 * cgraphunit.c (cgraph_decide_is_function_needed): Use
28717 DECL_DISREGARD_INLINE_LIMITS.
28718 (cgraph_analyze_function): Do not initialize
28719 node->local.disregard_inline_limits.
28720 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
28721 inlinable, versionable and disregard_inline_limits.
28722 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
28723 cgraph_check_inline_limits, cgraph_default_inline_p,
28724 cgraph_edge_badness, update_caller_keys, update_callee_keys,
28725 add_new_edges_to_heap): Update.
28726 (cgraph_decide_inlining_of_small_function): Update; set
28727 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
28728 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
28729 cgraph_decide_inlining_incrementally): Update.
28730 * ipa-inline.h (inline_summary): Add inlinable, versionable,
28731 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
28732 time, size and estimated_growth parameters.
28733 (estimate_edge_growth): Update.
28734 (initialize_inline_failed): Declare.
28735 * ipa-split.c: Include ipa-inline.h
28736 (execute_split_functions): Update.
28737 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
28738 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
28739 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
28740 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
28741 estimated_growth to INT_MIN.
28742 (inline_node_duplication_hook): Likewise.
28743 (dump_inline_summary): Dump new fields.
28744 (compute_inline_parameters): Update.
28745 (estimate_edge_time, estimate_time_after_inlining,
28746 estimate_size_after_inlining, estimate_growth, inline_read_summary,
28747 inline_write_summary):
28748 (initialize_inline_failed): Move here from cgraph.c.
28749 * tree-sra.c: Include ipa-inline.h.
28750 (ipa_sra_preliminary_function_checks): Update.
28751 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
28754 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
28756 * config/i386/sse.md (V16): New mode iterator.
28758 (AVXMODEQI, AVXMODEDI): Remove.
28759 (sse2, sse3): New mode attribute.
28760 (mov<mode>): Use V16 mode iterator.
28761 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
28762 (push<mode>1): Use V16 mode iterator.
28763 (movmisalign<mode>): Ditto.
28764 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
28765 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
28766 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
28767 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
28768 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
28769 avx_movdqu<avxmodesuffix>.
28770 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
28771 *avx_movdqu<avxmodesuffix>.
28772 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
28773 avx_lddqu<avxmodesuffix>.
28774 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
28775 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
28776 avx_movnt<AVXMODEDI:mode>.
28777 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
28778 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
28780 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
28783 * haifa-sched.c (prune_ready_list, schedule_block): Use
28784 sched_pressure_p rather than flag_sched_pressure.
28786 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
28788 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
28789 cgraph_get_node instead of cgraph_get_create_node.
28791 2011-04-15 Jakub Jelinek <jakub@redhat.com>
28793 * cfgexpand.c (expand_debug_expr): Use
28794 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
28796 2011-04-15 Michael Matz <matz@suse.de>
28798 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
28799 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
28800 * function.c (gimplify_parameters): Ditto.
28801 * gimplify.c (gimplify_vla_decl): Ditto.
28803 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
28804 (gimple_call_set_alloca_for_var): New inline function.
28805 (gimple_call_alloca_for_var_p): Ditto.
28806 * gimple.c (gimple_build_call_from_tree): Remember
28807 CALL_ALLOCA_FOR_VAR_P state.
28808 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
28810 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
28811 calls if they were for VLA objects.
28813 2011-04-15 Martin Jambor <mjambor@suse.cz>
28815 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
28818 2011-04-15 Martin Jambor <mjambor@suse.cz>
28820 PR middle-end/48601
28821 * tree-emutls.c (lower_emutls_function_body): Call
28822 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
28823 result is non-NULL.
28825 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
28827 * c-decl.c (detect_field_duplicates): Call
28828 objc_detect_field_duplicates instead of objc_get_interface_ivars.
28830 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
28832 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
28833 * gimple.c (gimple_asm_clobbers_memory_p): Define.
28834 * ipa-pure-const.c (check_stmt): Call it.
28835 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
28837 2011-04-15 Richard Guenther <rguenther@suse.de>
28839 PR tree-optimization/48290
28840 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
28841 Properly decide inhibiting propagation based on the valueized
28842 operand. Do loop-closed SSA form preserving here ...
28843 (init_copy_prop): ... not here.
28845 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
28848 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
28849 (*ieee_smax<mode>3): Likewise.
28851 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28853 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
28854 Replace match_operand with match_dup for the third operand in
28857 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
28859 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
28860 to track processing of conditionals. Update all callers.
28861 (try_combine, simplify_if_then_else): Update.
28863 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
28865 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
28868 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
28870 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
28871 instead of match_operand for operand 3.
28873 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
28875 * recog.h (insn_operand_data): Add an "allows_mem" field.
28876 * genoutput.c (output_operand_data): Initialize it.
28877 * optabs.c (maybe_legitimize_operand_same_code): New function.
28878 (maybe_legitimize_operand): Use it when matching the original
28881 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
28883 * gimplify.c: Fix issues in comments throughout.
28884 (voidify_wrapper_expr): Fix long line.
28885 (build_stack_save_restore): Likewise.
28886 (gimplify_loop_expr): Likewise.
28887 (gimplify_compound_lval): Likewise.
28888 (gimplify_init_ctor_eval): Likewise.
28889 (gimplify_modify_expr_rhs): Likewise.
28890 (omp_notice_threadprivate_variable): Likewise.
28892 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
28894 * cfgexpand.c (expand_call_stmt): Convert the function type to the
28895 original one if this is not a builtin function.
28897 2011-04-14 Jakub Jelinek <jakub@redhat.com>
28900 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
28901 offset it as needed based on top 2 bits in operands[3], change
28902 MEM mode to SFmode and mask those 2 bits away from operands[3].
28904 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
28906 * c-parser.c (c_parser_objc_protocol_definition): Updated for
28907 change from objc_declare_protocols() to objc_declare_protocol().
28909 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
28911 * config/i386/sse.md (sse4_1): New mode attribute.
28912 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
28913 avx_blend<ssemodesuffix><avxmodesuffix> and
28914 sse4_1_blend<ssemodesuffix> using VF mode iterator.
28915 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
28916 avx_blendv<ssemodesuffix><avxmodesuffix> and
28917 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
28918 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
28919 avx_dp<ssemodesuffix><avxmodesuffix> and
28920 sse4_1_dp<ssemodesuffix> using VF mode iterator.
28921 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
28922 (sse4_1_packusdw): Merge with *avx_packusdw.
28923 (sse4_1_pblendvb): Merge with *avx_pblendvb.
28924 (sse4_1_pblendw): Merge with *avx_pblendw.
28925 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
28926 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
28927 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
28929 (sse4_1_round<ssescalarmodesuffix>): Merge with
28930 *avx_round<ssescalarmodesuffix>.
28931 (aesenc): Merge with *avx_aesenc.
28932 (aesenclast): Merge with *avx_aesenclast.
28933 (aesdec): Merge with *avx_aesdec.
28934 (aesdeclast): Merge with *avx_aesdeclast.
28935 (pclmulqdq): Merge with *pclmulqdq.
28936 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
28938 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
28940 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
28942 PR middle-end/48608
28943 * cfgexpand.c (get_decl_align_unit): Renamed to ...
28944 (align_local_variable): This. Update DECL_ALIGN.
28945 (add_stack_var): Updated.
28946 (expand_one_stack_var): Likewise.
28948 2011-04-14 Richard Guenther <rguenther@suse.de>
28950 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
28952 (dse_initialize_block_local_data, dse_leave_block,
28953 record_voperand_set, get_stmt_uid): Likewise.
28954 (dse_possible_dead_store_p): Allow any kind of killing stmt.
28955 (dse_optimize_stmt): Remove voperand set handling code.
28956 Simplify and improve to handle any kind of killing stmt.
28957 (dse_record_phi): Remove.
28958 (dse_enter_block): Simplify.
28959 (tree_ssa_dse): Likewise.
28960 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
28962 2011-04-14 Jan Hubicka <jh@suse.cz>
28964 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
28965 * cgraph.h (struct inline_summary): Move to ipa-inline.h
28966 (cgraph_local_info): Remove inline_summary.
28967 * ipa-cp.c: Include ipa-inline.h.
28968 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
28969 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
28971 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
28972 (input_overwrite_node): Do not set inline summary.
28973 (input_node): Do not stream inline summary.
28974 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
28975 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
28976 growth; we do not have inline parameters computed for that anyway.
28977 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
28978 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
28979 (inline_summary_t): New type and VECtor.
28980 (debug_inline_summary, dump_inline_summaries): Declare.
28981 (inline_summary): Use VOCtor.
28982 (estimate_edge_growth): Kill hack computing call stmt size directly.
28983 * lto-section-in.c (lto_section_name): Add inline section.
28984 * ipa-inline-analysis.c: Include lto-streamer.h
28985 (node_removal_hook_holder, node_duplication_hook_holder): New holders
28986 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
28987 (inline_summary_vec): Define.
28988 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
28989 dump_inline_summaries): New functions.
28990 (estimate_function_body_sizes): Properly compute size/time of outgoing
28992 (compute_inline_parameters): Alloc inline_summary; do not compute
28993 size/time of incomming calls.
28994 (estimate_edge_time): Avoid missing time summary hack.
28995 (inline_read_summary): Read inline summary info.
28996 (inline_write_summary): Write inline summary info.
28997 (inline_free_summary): Free all hooks and inline summary vector.
28998 * lto-streamer.h: Add LTO_section_inline_summary section.
28999 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
29000 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
29002 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29004 * tree-vectorizer.h (vect_strided_store_supported): Add a
29005 HOST_WIDE_INT argument.
29006 (vect_strided_load_supported): Likewise.
29007 (vect_permute_store_chain): Return void.
29008 (vect_transform_strided_load): Likewise.
29009 (vect_permute_load_chain): Delete.
29010 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
29011 count argument. Check that the count is a power of two.
29012 (vect_strided_load_supported): Likewise.
29013 (vect_permute_store_chain): Return void. Update after above changes.
29014 Assert that the access is supported.
29015 (vect_permute_load_chain): Likewise.
29016 (vect_transform_strided_load): Return void.
29017 * tree-vect-stmts.c (vectorizable_store): Update calls after
29018 above interface changes.
29019 (vectorizable_load): Likewise.
29020 (vect_analyze_stmt): Don't check for strided powers of two here.
29022 2011-04-14 Richard Guenther <rguenther@suse.de>
29024 PR tree-optimization/48590
29025 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
29026 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
29027 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
29028 BUILT_IN_STACK_SAVE.
29029 * tree-ssa-dce.c (propagate_necessity): Handle
29030 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
29032 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
29034 * c-parser.c (c_parser_objc_class_declaration): Updated call to
29035 objc_declare_class.
29037 2011-04-14 Richard Guenther <rguenther@suse.de>
29039 * tree.h (get_object_alignment_1): Declare.
29040 * builtins.c (get_object_alignment_1): Split out worker from ...
29041 (get_object_alignment): ... here.
29042 * fold-const.c (get_pointer_modulus_and_residue): Use
29043 get_object_alignment_1.
29045 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29047 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
29049 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
29050 parameter. Generalise code to handle arrays as well as vectors.
29051 (vect_setup_realignment): Update accordingly.
29052 * tree-vect-stmts.c (vectorizable_store): Likewise.
29053 (vectorizable_load): Likewise.
29055 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29057 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
29058 within the per-copy loop.
29060 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29062 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
29065 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29067 * doc/options.texi (Negative): Explicitly mention that the
29068 Negative chain must be circular.
29070 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
29072 * function.h (block_chainon): Declare.
29073 * function.c (block_chainon): Define.
29075 2011-04-14 Anatoly Sokolov <aesok@post.ru>
29076 Eric Weddington <eric.weddington@atmel.com>
29077 Georg-Johann Lay <avr@gjlay.de>
29079 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
29081 (avr_init_builtins, avr_expand_builtin,
29082 avr_expand_delay_cycles, avr_expand_unop_builtin,
29083 avr_expand_binop_builtin ): New functions.
29084 (avr_builtin_id): New enum
29085 (struct avr_builtin_description): New struct
29086 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
29087 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
29089 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
29090 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
29091 UNSPECV_DELAY_CYCLES): new enumeration values
29092 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
29093 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
29094 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
29095 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
29096 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
29097 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
29098 "fmulsu"): New insns
29100 * config/avr/avr-c.c: fix line endings
29101 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
29102 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
29103 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
29104 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
29105 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
29107 * doc/extend.texi (AVR Built-in Functions): New node
29108 (Target Builtins): Add documentation of AVR
29109 built-in functions.
29111 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
29114 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
29115 alone. Error if non-const data has attribute progmem.
29117 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29119 * tree.h (struct tree_constructor): Include tree_typed instead of
29121 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
29122 TS_TYPED instead of TS_COMMON.
29124 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
29126 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
29127 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
29128 (sse2_psadbw): Merge with *avx_psadbw.
29129 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
29130 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
29131 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
29132 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
29133 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
29134 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
29135 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
29136 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
29137 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
29138 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
29139 (ssse3_palignrti): Merge with *avx_palignrti.
29141 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29143 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
29144 * tree-ssanames.c (fini_ssanames): VEC_free it.
29145 (make_ssa_name_fn): Update for VECness of free_ssanames.
29146 (release_ssa_name, release_dead_ssa_names): Likewise.
29147 * tree.h (struct tree_ssa_name): Include tree_typed instead of
29149 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
29150 TS_TYPED instead of TS_COMMON.
29152 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29154 * postreload-gcse.c (gcse_after_reload_main): Add calls to
29155 statistics_counter_event.
29156 * tree-ssa-copyrename.c (stats): Define.
29157 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
29158 statistics_counter_event.
29159 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
29160 (bswap_stats, widen_mul_stats): Define.
29161 (insert_reciprocals): Increment rdivs_inserted.
29162 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
29163 rfuncs_inserted. Add calls to statistics_counter_event.
29164 (execute_cse_sincos_1): Increment inserted.
29165 (execute_cse_sincos): Zeroize sincos_stats. Add call to
29166 statistics_counter_event.
29167 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
29168 of bswap_stats. Add calls to statistics_counter_event.
29169 (convert_mult_to_widen): Increment widen_mults_inserted.
29170 (convert_plusminus_to_widen): Increment maccs_inserted.
29171 (convert_mult_to_fma): Increment fmas_inserted.
29172 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
29173 calls to statistics_counter_event.
29175 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
29177 PR rtl-optimization/48455
29178 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
29179 `temp_costs->mem_cost'.
29181 2011-04-13 Jan Hubicka <jh@suse.cz>
29183 * ipa-inline.h: New file.
29184 * ipa-inline-analysis.c: New file. Broken out of ...
29185 * ipa-inline.c: ... this file; update toplevel comment;
29186 include ipa-inline.h
29187 (inline_summary): Move to ipa-inline.h
29188 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
29189 ipa-inline-analysis.c.
29190 (cgraph_estimate_time_after_inlining): Rename to
29191 estiamte_time_after_inlining; move to ipa-inline-analysis.c
29192 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
29193 to estimate_edge_growth.
29194 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
29195 rename to estimate_size_after_inlining.
29196 (cgraph_mark_inline_edge): Update for new naming convention.
29197 (cgraph_check_inline_limits): Likewise.
29198 (cgraph_edge_badness): Likewise.
29199 (cgraph_decide_recursive_inlining): Likewise.
29200 (cgraph_decide_inlining_of_small_functions): Likewise.
29201 (cgraph_decide_inlining_incrementally): Likewise.
29202 (cgraph_estimate_growth): Rename to estimate_growth; move to
29203 ipa-inline-analysis.c.
29204 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
29205 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
29206 (compute_inline_parameters): Likewise.
29207 (compute_inline_parameters_for_current): Likewise.
29208 (pass_inline_parameters): Likewise.
29209 (inline_indirect_intraprocedural_analysis): Likewise.
29210 (analyze_function): Rename to inline_analyze_function; likewise.
29211 (add_new_function): Move to ipa-inline-analysis.c.
29212 (inline_generate_summary): Likewise.
29213 (inline_read_summary): Likewise.
29214 (inline_write_summary): Likewise.
29215 * Makefile.in (ipa-inline-analysis.c): New file.
29217 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29219 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
29220 * configure: Regenerate.
29222 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29224 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
29225 instead of tree_common.
29226 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
29228 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
29229 TS_TYPED rather than TS_COMMON.
29230 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
29232 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
29235 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
29236 r20 around calls of __tablejump_elpm__
29238 2011-04-13 Jakub Jelinek <jakub@redhat.com>
29240 PR middle-end/48591
29241 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
29243 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
29245 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
29247 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
29248 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
29249 (cfi_vec): New typedef.
29250 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
29251 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
29252 (cie_cfi_vec): New static variable.
29253 (cie_cfi_head): Delete.
29254 (add_cfi): Accept a cfi_vec * as first argument. All callers and
29255 declaration changed. Use vector rather than list operations.
29256 (new_cfi): Don't initialize the dw_cfi_next field.
29257 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
29258 rather than list operations.
29259 (lookup_cfa): Use vector rather than list operations.
29260 (output_cfis): New argument upto. Accept a cfi_vec rather than
29261 a dw_cfi_ref list head as argument. All callers changed.
29262 Iterate over the vector using upto as a maximum index.
29263 (output_all_cfis): New static function.
29264 (output_fde): Use vector rather than list operations. Use the
29265 new upto argument for output_cfis rather than manipulating a
29267 (dwarf2out_begin_prologue): Change initializations to match
29268 new struct members.
29269 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
29270 from the vector length rather than searching for the end of a list.
29271 Use output_all_cfis.
29272 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
29274 2011-04-13 Nick Clifton <nickc@redhat.com>
29276 * config/rx/rx.md (movmemsi): Do not use this pattern when
29277 volatile pointers are involved.
29279 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
29281 * config/i386/sse.md (pinsrbits): Remove.
29282 (sse2_packsswb): Merge with *avx_packsswb.
29283 (sse2_packssdw): Merge with *avx_packssdw.
29284 (sse2_packuswb): Merge with *avx_packuswb.
29285 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
29286 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
29287 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
29288 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
29289 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
29290 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
29291 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
29292 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
29293 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
29294 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
29295 (sse2_loadld): Merge with *avx_loadld.
29296 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
29297 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
29298 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
29299 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
29300 (vec_concatv2di): Merge with *vec_concatv2di_avx.
29302 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
29304 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
29305 calling TREE_CHAIN.
29306 * print-tree.c (print_node): Likewise.
29307 * tree-inline.c (copy_tree_r): Likewise.
29308 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
29309 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
29310 instead of TS_COMMON.
29311 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
29312 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
29313 (copy_node_stat): Zero TREE_CHAIN only if necessary.
29314 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
29315 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
29317 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
29319 (TREE_CHAIN): Check for a TS_COMMON structure.
29320 (TREE_TYPE): Check for a TS_TYPED structure.
29322 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
29324 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
29325 cgraph_get_create_node instead of cgraph_node.
29327 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
29329 * c-parser.c (c_parser_initelt): Updated call to
29330 objc_build_message_expr.
29331 (c_parser_postfix_expression): Likewise.
29333 2011-04-12 Kai Tietz <ktietz@redhat.com>
29335 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
29336 MASK_MS_BITFIELD_LAYOUT bit.
29338 2011-04-12 Jakub Jelinek <jakub@redhat.com>
29340 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
29341 assert it is always true.
29342 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
29345 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
29347 * c-parser.c (c_lex_one_token): Rewritten conditional used when
29348 compiling Objective-C to be more efficient.
29350 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
29352 * opts-common.c (decode_cmdline_options_to_array): Remove variable
29355 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29357 * recog.h, genoutput.c, optabs.c: Revert last patch.
29359 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29362 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
29364 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29366 * recog.h (insn_operand_data): Add an "allows_mem" field.
29367 * genoutput.c (output_operand_data): Initialize it.
29368 * optabs.c (maybe_legitimize_operand_same_code): New function.
29369 (maybe_legitimize_operand): Use it when matching the original
29372 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29374 * genpreds.c (process_define_predicate): Move most processing
29375 to gensupport.c. Continue to validate the expression.
29376 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
29377 (process_define_predicate): Move processing to gensupport.c.
29378 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
29379 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
29380 (compute_predicate_codes): Moved from genrecog.c. Add lineno
29382 (valid_predicate_name_p): New function, split out from old
29383 genpreds.c:process_define_predicate.
29384 (process_define_predicate): New function, combining code from
29385 old genpreds.c and genrecog.c functions.
29386 (process_rtx): Call it for DEFINE_PREDICATE and
29387 DEFINE_SPECIAL_PREDICATE.
29389 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29391 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
29392 size of a '%A' memory reference.
29393 (T_DREG, T_QREG): New neon_builtin_type_bits.
29394 (arm_init_neon_builtins): Assert that the load and store operands
29395 are neon_struct_operands.
29396 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
29397 (NEON_ARG_MEMORY): New builtin_arg.
29398 (neon_dereference_pointer): New function.
29399 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
29400 Handle NEON_ARG_MEMORY.
29401 (arm_expand_neon_builtin): Update after above interface changes.
29402 Use NEON_ARG_MEMORY for loads and stores.
29403 * config/arm/predicates.md (neon_struct_operand): New predicate.
29404 * config/arm/iterators.md (V_two_elem): Tweak formatting.
29405 (V_three_elem): Use BLKmode for accesses that have no associated mode.
29406 (V_four_elem): Tweak formatting.
29407 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
29408 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
29409 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
29410 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
29411 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
29412 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
29413 (neon_vst4<mode>): Replace pointer operand with a memory operand.
29414 Use %A in the output template.
29415 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
29416 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
29417 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
29418 the width of the memory access. Remove post-increment.
29419 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
29421 2011-04-12 Nick Clifton <nickc@redhat.com>
29423 * config/v850/v850.c (expand_prologue): Do not use the CALLT
29424 instruction for interrupt handlers if the target is the basic V850
29426 (expand_epilogue): Likewise.
29428 2011-04-12 Jakub Jelinek <jakub@redhat.com>
29430 PR rtl-optimization/48549
29431 * combine.c (propagate_for_debug): Also stop after BB_END of
29432 this_basic_block. Process LAST and just stop processing after it.
29433 (combine_instructions): If last_combined_insn has been deleted,
29434 set last_combined_insn to its PREV_INSN.
29436 2011-04-12 Richard Guenther <rguenther@suse.de>
29438 PR tree-optimization/46076
29439 * gimple.h (struct gimple_statement_call): Add fntype field.
29440 (gimple_call_fntype): Adjust.
29441 (gimple_call_set_fntype): New function.
29442 * gimple.c (gimple_build_call_1): Set the call function type.
29443 * gimplify.c (gimplify_call_expr): Preserve the function
29444 type the frontend used for the call.
29445 (gimplify_modify_expr): Likewise.
29446 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
29448 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
29450 * tree-ssa.c (useless_type_conversion_p): Function pointer
29451 conversions are useless.
29453 2011-04-12 Martin Jambor <mjambor@suse.cz>
29455 * cgraph.h (cgraph_node): Remove function declaration.
29456 (cgraph_create_node): Declare.
29457 (cgraph_get_create_node): Likewise.
29458 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
29459 Updated all callers.
29460 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
29461 the decl does not already exist. Call cgraph_get_create_node instead
29463 (cgraph_get_create_node): New function.
29464 (cgraph_same_body_alias): Update comment.
29465 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
29466 assert it does not return NULL.
29467 (cgraph_update_edges_for_call_stmt): Likewise.
29468 (cgraph_clone_edge): Likewise.
29469 (cgraph_create_virtual_clone): Likewise.
29470 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
29471 instead of cgraph_node.
29472 (cgraph_add_new_function): Call cgraph_create_node or
29473 cgraph_get_create_node instead of cgraph_node.
29474 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
29475 instead of cgraph_node.
29476 (record_eh_tables): Likewise.
29477 (mark_address): Likewise.
29478 (mark_load): Likewise.
29479 (build_cgraph_edges): Call cgraph_get_create_node instead
29481 (rebuild_cgraph_edges): Likewise.
29482 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
29483 instead of cgraph_node.
29484 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
29486 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
29487 cgraph_create_node instead of cgraph_node.
29488 * c-decl.c (finish_function): Call cgraph_get_create_node instead
29490 * lto-cgraph.c (input_node): Likewise.
29491 * lto-streamer-in.c (input_function): Likewise.
29492 * varasm.c (mark_decl_referenced): Likewise.
29493 (assemble_alias): Likewise.
29495 2011-04-12 Martin Jambor <mjambor@suse.cz>
29497 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
29498 instead of cgraph_node and assert it does not return NULL.
29499 * lto-streamer-in.c (lto_read_body): Likewise.
29500 * omp-low.c (new_omp_context): Likewise.
29501 (create_task_copyfn): Likewise.
29502 * tree-emutls.c (lower_emutls_function_body): Likewise.
29503 * matrix-reorg.c (transform_allocation_sites): Likewise.
29505 2011-04-12 Jakub Jelinek <jakub@redhat.com>
29508 * c-typeck.c (build_asm_expr): Error out on attempts to use
29509 void type outputs or inputs for constraints that allow reg or
29510 don't allow memory.
29512 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
29513 Richard Earnshaw <rearnsha@arm.com>
29516 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
29517 to use sign-magnitude offsets. Reject unsupported unaligned
29518 cases. Add detailed description in comments.
29519 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
29520 condition from TARGET_32BIT to TARGET_ARM.
29522 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
29524 * tree.h (struct typed_tree): New.
29525 (struct tree_common): Include it instead of tree_base.
29526 (TREE_TYPE): Update for new location of type field.
29527 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
29528 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
29529 (union tree_node): Add typed field.
29530 * treestruct.def (TS_TYPED): New.
29531 * lto-streamer.c (check_handled_ts_structures): Handle it.
29532 * tree.c (MARK_TS_TYPED): New macro.
29533 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
29535 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
29537 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
29538 (force_nonfallthru): Do not alter the loop nest if no basic block
29541 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
29543 * config/i386/sse.md (VI): New mode iterator.
29544 (SSEMODEI): Remove.
29545 (AVX256MODEI): Ditto.
29546 (AVXMODEF4P): Ditto.
29547 (avxvecpsmode): Ditto.
29548 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
29549 (sse2_andnot<mode>3): New expander.
29550 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
29551 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
29552 (<any_logic:code><mode>3): Use VI mode iterator.
29553 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
29554 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
29555 (*andnottf3): Handle AVX three-operand constraints.
29556 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
29558 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29559 Robert Millan <rmh@gnu.org>
29561 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
29562 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
29563 GNU_USER_DYNAMIC_LINKER64): Define.
29564 (REG_NAME): Don't undefine.
29565 (MD_UNWIND_SUPPORT): Undefine.
29566 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
29567 (REG_NAME): Don't undefine.
29568 (MD_UNWIND_SUPPORT): Undefine.
29569 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
29571 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29573 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
29574 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
29576 2011-04-11 Xinliang David Li <davidxl@google.com>
29578 * value-profile.c (check_ic_target): New function.
29579 (gimple_ic_transform): Sanity check indirect call target.
29580 * gimple-low.c (gimple_check_call_args): Interface change.
29581 (gimple_check_call_matching_types): New function.
29582 * tree-inline.c (tree_can_inline_p): Call new function.
29584 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
29586 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
29587 tree-pretty-print.h & realmpfr.h.
29589 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
29591 PR middle-end/48464
29592 * ira.c (setup_pressure_classes): Fix typo in loop condition.
29593 (setup_allocno_and_important_classes): Ditto.
29595 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29597 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
29598 GNU_USER_DYNAMIC_LINKER.
29599 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
29600 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29601 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
29602 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29603 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29604 GNU_USER_TARGET_OS_CPP_BUILTINS.
29605 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
29606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29607 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29609 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
29610 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29611 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29612 GNU_USER_TARGET_OS_CPP_BUILTINS.
29613 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29614 GNU_USER_DYNAMIC_LINKER.
29615 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29616 GNU_USER_TARGET_OS_CPP_BUILTINS.
29617 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
29618 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29619 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
29620 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29621 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
29622 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
29623 GNU_USER_DYNAMIC_LINKER64): Remove.
29624 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
29625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29626 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29627 GNU_USER_DYNAMIC_LINKER.
29628 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29629 GNU_USER_TARGET_OS_CPP_BUILTINS.
29630 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29631 GNU_USER_TARGET_OS_CPP_BUILTINS.
29632 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
29633 to GNU_USER_TARGET_OS_CPP_BUILTINS.
29634 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29635 GNU_USER_TARGET_OS_CPP_BUILTINS.
29636 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
29637 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
29638 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
29639 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
29640 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29641 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29642 GNU_USER_DYNAMIC_LINKER.
29643 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29644 GNU_USER_TARGET_OS_CPP_BUILTINS.
29645 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
29646 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29647 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29648 GNU_USER_DYNAMIC_LINKER.
29649 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29650 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29651 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
29652 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29653 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29654 GNU_USER_DYNAMIC_LINKER.
29655 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
29656 GNU_USER_DYNAMIC_LINKERN32.
29657 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
29658 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
29659 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
29660 GNU_USER_DYNAMIC_LINKER32.
29661 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
29662 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29663 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29664 GNU_USER_DYNAMIC_LINKER.
29665 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29667 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
29668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29669 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29670 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
29671 GNU_USER_DYNAMIC_LINKER32.
29672 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
29673 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
29674 GNU_USER_DYNAMIC_LINKER.
29675 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
29676 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29677 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
29678 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
29679 GNU_USER_DYNAMIC_LINKER64.
29680 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
29681 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29682 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29683 GNU_USER_DYNAMIC_LINKER.
29684 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
29685 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29686 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29687 GNU_USER_DYNAMIC_LINKER.
29688 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
29689 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29690 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
29691 GNU_USER_DYNAMIC_LINKER32.
29692 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
29693 GNU_USER_DYNAMIC_LINKER64.
29694 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
29695 GNU_USER_DYNAMIC_LINKER64.
29696 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
29697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29698 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
29699 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29700 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29702 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29704 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
29705 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
29706 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
29707 GNU_USER_DYNAMIC_LINKER.
29708 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
29709 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
29710 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
29711 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
29712 GNU_USER_DYNAMIC_LINKER64.
29713 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
29714 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
29715 GNU_USER_LINK_EMULATION.
29716 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
29717 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
29718 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
29719 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
29720 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
29721 CPP_SPEC, CC1_SPEC): Remove.
29722 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
29723 (GNU_USER_DYNAMIC_LINKER): Define.
29724 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
29725 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
29726 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
29727 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
29728 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
29729 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
29730 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
29731 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
29732 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
29733 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
29734 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
29735 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
29736 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
29737 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
29738 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
29739 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
29740 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29741 GNU_USER_DYNAMIC_LINKER.
29742 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29743 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
29744 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29745 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
29746 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29747 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
29748 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
29749 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
29750 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
29751 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
29753 2011-04-11 Kai Tietz <ktietz@redhat.com>
29757 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
29758 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
29760 (ix86_is_msabi_thiscall): Removed.
29761 (ix86_is_type_thiscall): Likewise.
29762 (ix86_get_callcvt): New function.
29763 (ix86_comp_type_attributes): Simplify check.
29764 (ix86_function_regparm): Use ix86_get_callcvt for calling
29765 convention attribute checks.
29766 (ix86_return_pops_args): Likewise.
29767 (ix86_static_chain): Likewise.
29768 (x86_this_parameter): Likewise.
29769 (x86_output_mi_thunk): Likewise.
29770 (ix86_function_type_abi): Optimize check for types without attributes.
29771 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
29772 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
29773 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
29775 (IX86_BASE_CALLCVT): Helper macro.
29776 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
29777 Use ix86_get_callcvt for calling convention attribute checks and avoid
29778 symbol-decoration for stdcall in TARGET_RTD case.
29779 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
29781 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
29784 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
29786 * config/i386/sse.md (VI_128): New mode iterator.
29787 (VI12_128): Rename from SSEMODE12.
29788 (VI14_128): Rename from SSEMODE14.
29789 (VI124_128): New mode iterator.
29790 (VI24_128): Rename from SSEMODE248.
29791 (VI248_128): Rename from SSEMODE248.
29792 (SSEMODE124C8): Remove.
29793 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
29794 (*sse2_<plusminus_insn><mode>3): Merge with
29795 *avx_<plusminus_insn><mode>3.
29796 (*mulv8hi3): Merge with *avx_mulv8hi3.
29797 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
29798 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
29799 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
29800 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
29801 (ashr<mode>3): Merge with *avx_ashr<mode>3.
29802 (lshr<mode>3): Merge with *avx_lshr<mode>3.
29803 (ashl<mode>3): Merge with *avx_ashl<mode>3.
29804 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
29805 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
29806 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
29807 (*<smaxmin:code>v8hi3): Ditto.
29808 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
29809 (*<smaxmin:code>v16qi3): Ditto.
29810 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
29811 (*sse2_eq<mode>3): Ditto.
29812 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
29813 (*sse2_gt<mode>3): Ditto.
29814 (vcondv2di): Split out of vcond<mode>.
29815 (vconduv2di): Split out of vcondu<mode>.
29817 2011-04-11 Richard Guenther <rguenther@suse.de>
29819 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
29820 before calling tree_low_cst.
29822 2011-04-11 Richard Guenther <rguenther@suse.de>
29824 * stor-layout.c (layout_type): Compute all array index size operations
29825 in the original type.
29826 (initialize_sizetypes): Add comment.
29827 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
29829 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29831 * common.opt (Tbss=, Tdata=, Ttext=): New options.
29833 2011-04-11 Martin Jambor <mjambor@suse.cz>
29835 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
29836 of cgraph_node, handle NULL return value.
29837 (cgraph_global_info): Likewise.
29838 (cgraph_rtl_info): Likewise.
29839 * tree-inline.c (estimate_num_insns): Likewise.
29840 * gimplify.c (unshare_body): Likewise.
29841 (unvisit_body): Likewise.
29842 (gimplify_body): Likewise.
29843 * predict.c (optimize_function_for_size_p): Likewise.
29844 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29845 (call_may_clobber_ref_p_1): Likewise.
29846 * varasm.c (function_section_1): Likewise.
29847 (assemble_start_function): Likewise.
29849 2011-04-11 Martin Jambor <mjambor@suse.cz>
29851 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
29853 * final.c (rest_of_clean_state): Likewise.
29854 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
29855 * passes.c (pass_init_dump_file): Likewise.
29856 (execute_all_ipa_transforms): Likewise.
29857 (function_called_by_processed_nodes_p): Likewise.
29858 * predict.c (maybe_hot_frequency_p): Likewise.
29859 (probably_never_executed_bb_p): Likewise.
29860 (compute_function_frequency): Likewise.
29861 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
29862 (unnest_nesting_tree_1): Likewise.
29863 (lower_nested_functions): Likewise.
29864 * tree-optimize.c (execute_fixup_cfg): Likewise.
29865 (tree_rest_of_compilation): Likewise.
29866 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
29867 * tree-sra.c (ipa_early_sra): Likewise.
29868 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
29869 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
29870 * ipa.c (record_cdtor_fn): Likewise.
29871 * ipa-inline.c (cgraph_early_inlining): Likewise.
29872 (compute_inline_parameters_for_current): Likewise.
29873 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29874 * ipa-pure-const.c (local_pure_const): Likewise.
29875 * ipa-split.c (split_function): Likewise.
29876 (execute_split_functions): Likewise.
29877 * cgraphbuild.c (build_cgraph_edges): Likewise.
29878 (rebuild_cgraph_edges): Likewise.
29879 (cgraph_rebuild_references): Likewise.
29880 (remove_cgraph_callee_edges): Likewise.
29881 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
29882 (verify_cgraph_node): Likewise.
29883 (cgraph_analyze_functions): Likewise.
29884 (cgraph_preserve_function_body_p): Likewise.
29885 (save_inline_function_body): Likewise.
29886 (save_inline_function_body): Likewise.
29887 * tree-inline.c (copy_bb): Likewise.
29888 (optimize_inline_calls): Likewise.
29890 2011-04-11 Martin Jambor <mjambor@suse.cz>
29892 PR tree-optimization/48195
29893 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
29894 ipa_check_create_edge_args.
29895 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
29896 ipa_check_create_edge_args.
29897 * ipa-inline.c (inline_generate_summary): Do not call
29898 ipa_check_create_node_params and ipa_check_create_edge_args.
29899 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
29900 ipa_check_create_edge_args.
29902 2011-04-09 Anatoly Sokolov <aesok@post.ru>
29904 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
29906 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
29907 * function.c (record_hard_reg_sets): Likewise.
29908 * ira.c (compute_regs_asm_clobbered): Likewise.
29909 * sched-deps.c (sched_analyze_1): Likewise.
29910 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
29912 2011-04-09 Xinliang David Li <davidxl@google.com>
29914 PR tree-optimization/PR48484
29915 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
29916 has_valid_pred lazily
29918 2011-04-09 Duncan Sands <baldrick@free.fr>
29920 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
29922 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
29924 * combine.c (combine_validate_cost): Adjust comments. Set registered
29925 cost of I0 to zero at the end, if any.
29927 2011-04-08 Xinliang David Li <davidxl@google.com>
29929 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
29930 to insane profile data.
29932 2011-04-08 Xinliang David Li <davidxl@google.com>
29934 * ipa-cp.c (ipcp_update_profiling): Correct
29935 negative scale factor due to insane profile data.
29937 2011-04-08 Xinliang David Li <davidxl@google.com>
29939 * final.c (dump_basic_block_info): New function.
29940 (final): Dump basic block.
29941 (final_scan_insn): Remove old dump.
29943 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
29946 * config.gcc (i386-*-freebsd): Disable unwind table generation for
29949 2011-04-08 Michael Matz <matz@suse.de>
29951 PR middle-end/48389
29952 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
29954 (rebuild_jump_labels): Call rebuild_jump_labels_1.
29955 * rtl.h (rebuild_jump_labels_chain): Declare.
29956 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
29957 insns inserted on edges.
29959 2011-04-08 Joseph Myers <joseph@codesourcery.com>
29961 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
29962 * config/arm/arm-arches.def: New.
29963 * config/arm/arm-opts.h: New.
29964 * config/arm/genopt.sh: New.
29965 * config/arm/arm-tables.opt: New (generated).
29966 * config/arm/arm.c (arm_handle_option, arm_target_help,
29967 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
29968 (all_architectures): Get most table contents from arm-arches.def.
29969 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
29970 arm_selected_tune here.
29971 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
29972 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
29973 (march=, mcpu=, mtune=): Use Enum and Var.
29974 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
29975 (arm.o): Update dependencies.
29977 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
29979 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
29981 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
29982 (write_typed_alloc_defns): Likewise.
29983 (main): Calls write_typed_alloc_defns with output_header.
29985 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
29987 PR inline-asm/48435
29988 * ira-color.c (setup_profitable_hard_regs): Add comments.
29989 Don't take prohibited hard regs into account.
29990 (setup_conflict_profitable_regs): Rename to
29991 get_conflict_profitable_regs.
29992 (check_hard_reg_p): Check prohibited hard regs.
29994 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
29996 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
29997 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
29998 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
30000 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30003 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
30004 move from floating point to shift amount register.
30005 (emit_move_sequence): Remove secondary reload support for floating
30006 point to shift amount amount register copies.
30007 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
30008 amount register copies.
30009 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
30010 register, return false if mode isn't a scalar integer mode.
30011 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
30013 2011-04-08 Richard Guenther <rguenther@suse.de>
30015 * gimple.c (gimple_call_flags): Remove kludge.
30017 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30019 * sel-sched.c (sel_region_init): Move call to
30020 sel_setup_region_sched_flags after setup_current_loop_nest.
30022 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
30024 PR rtl-optimization/48272
30025 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
30026 init_insn_reg_pressure_info. Adjust a caller.
30027 * sched-int.h (init_insn_reg_pressure_info): Declare.
30028 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
30029 when sched-pressure is enabled.
30031 2011-04-08 Richard Guenther <rguenther@suse.de>
30033 * gimple.c (gimple_set_modified): Do not queue calls to
30034 MODIFIED_NORETURN_CALLS here ...
30035 * tree-ssa-operands.c (update_stmt_operands): ... but here.
30037 2011-04-08 Richard Guenther <rguenther@suse.de>
30040 * toplev.c (lang_dependent_init): Do not open asm_out_file
30041 in WPA mode, nor perform debug machinery initialization.
30042 (finalize): Do not unlink asm_out_file in WPA mode.
30044 2011-04-08 Richard Guenther <rguenther@suse.de>
30046 * gimple.h (gimple_call_fntype): New function.
30047 (gimple_call_return_type): Use it.
30048 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
30049 * gimple-low.c (gimple_check_call_args): Likewise.
30050 * gimple.c (gimple_call_flags): Likewise.
30051 (gimple_call_arg_flags): Likewise.
30052 (gimple_call_return_flags): Likewise.
30053 * tree-cfg.c (verify_gimple_call): Likewise.
30054 (do_warn_unused_result): Likewise.
30055 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
30056 * value-prof.c (gimple_ic_transform): Fix fndecl check.
30058 2011-04-08 Dmitry Melnik <dm@ispras.ru>
30060 PR rtl-optimization/48235
30061 * sel-sched.c (code_motion_process_successors): Recompute the last
30062 insn in basic block if control flow changed.
30063 (code_motion_path_driver): Ditto. Recompute the first insn as well.
30064 Update condition for ilist_remove.
30066 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30068 PR rtl-optimization/48302
30069 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
30070 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
30071 it to record added preheader blocks.
30072 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
30073 on to sel_add_loop_preheaders.
30074 (sel_region_init): Move call to setup_current_loop_nest after
30077 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30080 * cfgloop.h (loop_has_exit_edges): New helper.
30081 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
30083 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
30084 that have no exit edges.
30086 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30088 PR rtl-optimization/48442
30089 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
30090 all callers. Adjust assert.
30092 2011-04-08 Jakub Jelinek <jakub@redhat.com>
30094 PR tree-optimization/48377
30095 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
30096 is_packed to true even for types with smaller TYPE_ALIGN than
30099 2011-04-08 Richard Guenther <rguenther@suse.de>
30102 * doc/tm.texi: Re-generate.
30104 2011-04-08 Wei Guozhi <carrot@google.com>
30107 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
30108 * config/arm/arm.c (arm_attr_length_push_multi): New function.
30109 * config/arm/arm.md (*push_multi): Change the length computation to
30112 2011-04-08 Anatoly Sokolov <aesok@post.ru>
30114 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
30115 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
30116 * doc/tm.texi: Regenerate.
30117 * system.h (ASM_OUTPUT_BSS): Poison.
30118 * varasm.c (asm_output_bss): Remove function.
30119 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
30121 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
30122 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
30123 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
30124 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30126 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30128 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30130 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
30132 2011-04-07 Joseph Myers <joseph@codesourcery.com>
30134 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
30137 2011-04-07 Joseph Myers <joseph@codesourcery.com>
30139 * config/m68k/m68k.c (m68k_handle_option): Don't handle
30140 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
30141 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
30143 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
30144 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
30145 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
30146 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
30147 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
30148 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
30149 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
30150 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
30151 options. Don't map other m68k options manually. Don't handle
30152 old-style options as canonical.
30153 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
30154 * doc/install.texi (m68k-*-*): Document binutils version requirement.
30156 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
30158 * basic-block.h (force_nonfallthru): Move to...
30159 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
30160 (force_nonfallthru): ...here.
30161 * cfghooks.c (force_nonfallthru): New function.
30162 * cfgrtl.c (force_nonfallthru): Rename into...
30163 (rtl_force_nonfallthru): ...this.
30164 (commit_one_edge_insertion): Do not set AUX field.
30165 (commit_edge_insertions): Do not discover new basic blocks.
30166 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
30167 (cfg_layout_rtl_cfg_hooks): Likewise.
30168 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
30169 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
30170 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
30172 2011-04-07 Anatoly Sokolov <aesok@post.ru>
30174 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
30177 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
30179 * config/i386/sse.md: Update copyright year.
30180 (avxcvtvecmode): Remove.
30181 (sse_movhlps): Merge with *avx_movhlps.
30182 (sse_movlhps): Merge with *avx_movlhps.
30183 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
30184 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
30185 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
30186 (sse_loadhps): Merge with *avx_loadhps.
30187 (sse_storelps): Merge with *avx_storelps.
30188 (sse_loadlps): Merge with *avx_loadlps.
30189 (sse_movss): Merge with *avx_movss.
30190 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
30191 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
30192 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
30193 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
30194 (vec_set<mode>_0): Ditto.
30195 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
30196 (sse4_1_insertps): Merge with *avx_insertps.
30197 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
30198 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
30199 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
30200 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
30201 (sse2_storehpd): Merge with *avx_storehpd.
30202 (sse2_loadhpd): Merge with *avx_loadhpd.
30203 (sse2_loadlpd): Merge with *avx_loadlpd.
30204 (sse2_movsd): Merge with *avx_movsd.
30205 (*vec_concatv2df): Merge with *vec_concatv2df.
30207 2011-04-07 Jakub Jelinek <jakub@redhat.com>
30210 * combine.c (combine_instructions): Add last_combined_insn,
30211 update it if insn is after it, pass it to all try_combine calls.
30212 (try_combine): Add last_combined_insn parameter, pass it instead of
30213 i3 to propagate_for_debug.
30215 2011-04-07 Nick Clifton <nickc@redhat.com>
30217 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
30218 to handle MDR <-> data register transfers.
30219 (movhi_internal): Likewise.
30221 2011-04-07 Alan Modra <amodra@gmail.com>
30223 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
30224 previous stack info.
30226 2011-04-07 Tom de Vries <tom@codesourcery.com>
30229 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
30230 flow_find_cross_jump. Swap variables to implement backward replacement.
30231 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
30233 2011-04-07 Tom de Vries <tom@codesourcery.com>
30236 * cfgcleanup.c (walk_to_nondebug_insn): New function.
30237 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
30239 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
30240 src1 or src2. Redirect edges to the last basic block. Update
30241 frequency and count on multiple basic blocks in case of fallthru.
30243 2011-04-07 Tom de Vries <tom@codesourcery.com>
30246 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
30248 (old_insns_match_p): Change return type. Replace return false/true
30249 with return dir_none/dir_both. Use can_replace_by.
30250 (flow_find_cross_jump): Add dir_p parameter. Init replacement
30251 direction from dir_p. Register replacement direction in dir, last_dir
30252 and afterlast_dir. Handle new return type of old_insns_match_p using
30253 merge_dir. Return replacement direction in dir_p.
30254 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
30255 return type of old_insns_match_p.
30256 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
30257 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
30258 flow_find_cross_jump.
30259 * basic-block.h (enum replace_direction): New type.
30260 (flow_find_cross_jump): Add parameter to declaration.
30262 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
30264 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
30265 (AVXMODEDCVTPS2DQ): Ditto.
30266 (VEC_FLOAT_MODE): Ditto.
30267 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
30268 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
30269 (<any_logic:code><mode>3): Use VF mode iterator.
30270 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
30271 Use VF mode iterator.
30272 (copysign<mode>3): Use VF mode iterator.
30273 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
30274 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
30275 (*<any_logic:code><MODEF:mode>3): Merge with
30276 *avx_<any_logic:code><MODEF:mode>3.
30277 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
30278 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
30279 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
30280 (avx_cvtdq2ps<avxmodesuffix>): Remove.
30281 (sse2_cvtdq2ps): Use %v modifier.
30282 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
30283 (avx_cvtps2dq<avxmodesuffix>): Remove.
30284 (sse2_cvtps2dq): Use %v modifier.
30285 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
30286 (avx_cvttps2dq<avxmodesuffix>): Remove.
30287 (sse2_cvttps2dq): Use %v modifier.
30288 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
30289 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
30290 (sse2_cvtsd2siq): Fix insn template.
30291 (sse2_cvtsd2siq_2): Ditto.
30292 (sse2_cvttsd2siq): Ditto.
30293 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
30294 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
30296 2011-04-06 Joseph Myers <joseph@codesourcery.com>
30298 * gcov-io.c: Use GCC Runtime Library Exception.
30300 2011-04-06 Jakub Jelinek <jakub@redhat.com>
30303 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
30304 as base_reg whatever register reg has been eliminated to, instead
30305 of hardcoding STACK_POINTER_REGNUM.
30307 2011-04-06 Joseph Myers <joseph@codesourcery.com>
30309 * doc/tm.texi.in: Document C target hooks as separate from general
30311 * doc/tm.texi: Regenerate.
30312 * genhooks.c (struct hook_desc): Add docname field.
30313 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
30315 (hook_array): Include c-target.def.
30316 (emit_documentation): Use docname field in output.
30317 (emit_init_macros): Take docname argument. Only emit definitions
30318 for hooks matching docname.
30319 (main): Expect additional arguments in all cases. Pass argument
30320 to emit_init_macros.
30321 * target.def: Move initial macro definitions and comments to
30322 target-hooks-macros.h.
30323 (gcc_targetcm): Move to c-family/c-target.def.
30324 * target.h (targetcm): Move declaration to c-family/c-target.h.
30325 * targhooks.c (default_handle_c_option): Move to
30327 * targhooks.h (default_handle_c_option): Move declaration to
30328 c-family/c-common.h.
30329 * target-hooks-macros.h: New file.
30330 * config.gcc (target_has_targetcm): Define and use to add to
30331 c_target_objs and cxx_target_objs.
30332 * config/default-c.c: New file.
30333 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
30334 of target.h and target-def.h.
30335 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
30336 (darwin_objc_construct_string, darwin_cfstring_ref_p,
30337 darwin_check_cfstring_format_arg): Make static.
30338 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
30339 TARGET_STRING_OBJECT_REF_TYPE_P,
30340 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
30341 * config/darwin-protos.h (darwin_objc_construct_string,
30342 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
30344 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
30345 TARGET_STRING_OBJECT_REF_TYPE_P,
30346 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
30347 * config/t-darwin (darwin-c.o): Update dependencies.
30348 * system.h (TARGET_HAS_TARGETCM): Poison.
30349 * Makefile.in (TARGET_H): Update.
30350 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
30351 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
30352 (default-c.o): New target.
30353 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
30354 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
30355 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
30357 (build/genhooks.o): Update dependencies.
30359 2011-04-06 Richard Guenther <rguenther@suse.de>
30361 * ipa-inline.c (enum inlining_mode): Remove.
30362 (cgraph_flatten): Use some other token.
30363 (cgraph_edge_early_inlinable_p): New function, split out from ...
30364 (cgraph_perform_always_inlining): New function, split out from ...
30365 (cgraph_decide_inlining_incrementally): ... here.
30366 (cgraph_mark_inline_edge): Adjust.
30367 (cgraph_early_inlining): Re-structure.
30368 (pass_early_inline): Require SSA form.
30370 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
30371 Julian Brown <julian@codesourcery.com>
30372 Mark Shinwell <shinwell@codesourcery.com>
30374 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
30375 LO_REGS only for Thumb-1.
30376 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
30377 be used in short instructions when optimising for size on Thumb-2.
30379 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
30381 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
30382 associated with user returns to be preserved.
30384 2011-04-06 Tristan Gingold <gingold@adacore.com>
30386 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
30387 symbol_queue_size, DBXOUT_DECR_NESTING,
30388 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
30389 if XCOFF_DEBUGGING_INFO.
30391 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
30393 * config/i386/i386.md (attribute isa): New.
30394 (attribute enabled): New.
30395 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
30396 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
30397 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
30398 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
30399 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
30400 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30401 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
30402 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
30404 * config/i386/sse.md (VF): New mode iterator.
30408 (SSEMODEF4): Remove.
30409 (attribute sse): Handle V8SF and V4DF modes.
30410 (<absneg:code><mode>2): Use VF mode iterator.
30411 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
30413 (<plusminus_insn><mode>3): Use VF mode iterator.
30414 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
30415 Use VF mode iterator.
30416 (<sse>_vm<plusminus_insn><mode>3): Merge with
30417 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
30418 (mul<mode>3): Use VF mode iterator.
30419 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
30420 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
30422 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
30423 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
30424 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
30425 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
30427 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
30428 Use VF1 mode iterator.
30429 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
30430 (sqrt<VF2:mode>2): New expander.
30431 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
30432 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
30433 and sqrtv2df2. Use VF mode iterator.
30434 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
30436 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
30437 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
30438 Use VF1 mode iterator.
30439 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
30440 (<smaxmin:code><mode>3): Use VF mode iterator.
30441 (*<smaxmin:code><mode>3_finite): Merge with
30442 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
30443 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30444 (<sse>_vm<smaxmin:code><mode>2): Merge with
30445 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
30446 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
30448 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
30450 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
30451 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
30452 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
30453 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
30454 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
30456 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
30457 Use VF_128 mode iterator.
30458 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
30460 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
30461 VF_128 mode iterator.
30462 (vcond<mode>): Use VF mode iterator.
30463 * config/i386/predicates.md (sse_comparison_operator): Merge with
30464 avx_comparison_float_operator. Do not declare as special_predicate.
30465 * config/i386/i386.c (struct builtin_description): Update for renamed
30467 (ix86_expand_args_builtin): Ditto.
30468 (ix86_expand_sse_compare_mask): Ditto.
30470 2011-04-06 Richard Guenther <rguenther@suse.de>
30472 * tree-inline.c (estimate_num_insns): For calls simply account
30473 for all passed arguments and a used return value.
30475 2011-04-06 Richard Guenther <rguenther@suse.de>
30477 PR tree-optimization/47663
30478 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
30479 call_stmt_time fields.
30480 (cgraph_edge_inlinable_p): Declare.
30481 (cgraph_edge_recursive_p): New inline function.
30482 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
30483 (cgraph_clone_edge): Copy it.
30484 * ipa-inline.c (cgraph_estimate_edge_time): New function.
30485 Account for call stmt time.
30486 (cgraph_estimate_time_after_inlining): Take edge argument.
30487 (cgraph_estimate_edge_growth): Account call stmt size.
30488 (cgraph_estimate_size_after_inlining): Take edge argument.
30489 (cgraph_mark_inline_edge): Adjust.
30490 (cgraph_check_inline_limits): Likewise.
30491 (cgraph_recursive_inlining_p): Remove.
30492 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
30493 (cgraph_decide_recursive_inlining): Take edge argument and
30495 (cgraph_decide_inlining_of_small_functions): Do not avoid
30496 diags for recursive inlining here.
30497 (cgraph_flatten): Adjust.
30498 (cgraph_decide_inlining_incrementally): Likewise.
30499 (estimate_function_body_sizes): Remove call cost handling.
30500 (compute_inline_parameters): Initialize caller edge call costs.
30501 (cgraph_estimate_edge_growth): New function.
30502 (cgraph_estimate_growth): Use it.
30503 (cgraph_edge_badness): Likewise.
30504 (cgraph_check_inline_limits): Take an edge argument.
30505 (cgraph_decide_inlining_of_small_functions): Adjust.
30506 (cgraph_decide_inlining): Likewise.
30507 * tree-inline.c (estimate_num_insns): Only account for call
30508 return value if it is used.
30509 (expand_call_inline): Avoid diagnostics on recursive inline
30511 * lto-cgraph.c (lto_output_edge): Output edge call costs.
30512 (input_edge): Input edge call costs.
30514 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30516 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
30518 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
30520 * doc/invoke.texi (Spec Files): Fix typo.
30522 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
30524 * profile.c (branch_prob): Move declaration of local variable. Remove
30525 obsolete ??? comment. Expand the location explicitly instead of using
30526 the LOCATION_FILE and LOCATION_LINE macros.
30528 2011-04-06 Wei Guozhi <carrot@google.com>
30531 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
30532 (arm_cond_branch): Likewise.
30533 (arm_cond_branch_reversed): Likewise.
30534 (arm_jump): Likewise.
30535 (push_multi): Likewise.
30536 * config/arm/constraints.md (Py): New constraint.
30538 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30541 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
30543 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
30544 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
30545 #ifdef DBX_DEBUGGING_INFO.
30547 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
30550 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
30551 if old and new states differ.
30553 2011-04-05 Joseph Myers <joseph@codesourcery.com>
30555 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
30556 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
30557 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
30558 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
30559 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
30560 mcfv4e): Use Alias.
30561 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
30562 ColdFire options to -mcpu= options.
30564 2011-04-05 Jeff Law <law@redhat.com>
30566 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
30567 check if BB is a successor of LOOP->header and return
30568 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
30570 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
30572 * cprop.c (struct reg_use): Remove.
30573 (reg_use_table): Make an array of RTX.
30574 (find_used_regs, constprop_register, local_cprop_pass,
30575 bypass_block): Simplify users of reg_use_table.
30576 (cprop_insn): Likewise. Iterate if copy propagation succeeded
30577 on one of the uses found by find_used_regs.
30579 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30582 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
30585 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30587 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
30589 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
30591 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
30593 PR middle-end/48441
30594 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
30596 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30598 * combine.c: Include obstack.h.
30599 (struct insn_link): Define.
30600 (uid_log_links): Adjust type.
30601 (FOR_EACH_LOG_LINK): New macro.
30602 (insn_link_obstack): Declare.
30603 (alloc_insn_link): Define.
30604 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
30605 type of link variables.
30606 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
30607 (try_combine, record_promoted_values, distribute_notes): Likewise.
30608 (distribute_links): Likewise. Tweak prototype.
30609 (clear_log_links): Delete.
30610 (adjust_for_new_dest): Call alloc_insn_link.
30611 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
30613 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30615 * gcse.c (modify_mem_list): Convert to an array of VECs.
30616 (canon_modify_mem_list, compute_transp): Tweak formatting.
30617 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
30618 (load_killed_in_block_p): Likewise.
30619 (record_last_mem_set_info): Likewise.
30620 (clear_modify_mem_tables): Likewise.
30622 2011-04-05 Tom de Vries <tom@codesourcery.com>
30624 PR middle-end/48461
30625 * function.c (emit_use_return_register_into_block): Only define if
30628 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
30630 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
30632 2011-04-05 Joseph Myers <joseph@codesourcery.com>
30634 * config/rx/rx-opts.h: New.
30635 * config/rx/rx.c (rx_cpu_type): Remove.
30636 (rx_handle_option): Don't assert that global structures are in
30637 use. Access variables via opts pointer. Defer most handling of
30638 OPT_mint_register_. Use error_at.
30639 (rx_option_override): Handle deferred OPT_mint_register_ here.
30640 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
30641 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
30642 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
30643 (rx_cpu_types): New Enum and EnumValue entries.
30644 (mint-register=): Use Defer and use Var accordingly.
30646 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30648 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
30649 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
30650 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
30652 (debug_free_queue, debug_nesting, symbol_queue_index):
30654 * dbxout.c: ...to here. Make static.
30656 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30658 * gcse.c (modify_pair): Define. Define a VEC of it.
30659 (canon_modify_mem_list): Convert to an array of VECs.
30660 (free_insn_expr_list_list): Delete.
30661 (clear_modify_mem_tables): Call VEC_free instead.
30662 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
30663 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
30664 (canon_list_insert, compute_transp): Likewise.
30666 2011-04-05 Tom de Vries <tom@codesourcery.com>
30669 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
30672 2011-04-05 Tom de Vries <tom@codesourcery.com>
30675 * function.c (emit_use_return_register_into_block): New function.
30676 (thread_prologue_and_epilogue_insns): Use
30677 emit_use_return_register_into_block.
30679 2011-04-05 Tom de Vries <tom@codesourcery.com>
30682 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
30685 2011-04-05 Tom de Vries <tom@codesourcery.com>
30687 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
30689 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
30691 * config/arm/arm.md (define_constants for unspec): Replace with
30693 (define_constants for unspecv): Replace with define_c_enum.
30694 * config/arm/neon.md (define_constants for unspec): Replace with
30697 2011-04-04 Richard Henderson <rth@redhat.com>
30700 * dwarf2out.c (output_line_info): Always emit line info from
30701 at least one section.
30702 (dwarf2out_init): Create text_section_line_info here ...
30703 (set_cur_line_info_table): ... not here.
30705 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
30708 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
30711 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
30713 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
30715 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
30716 (expr_equiv_p): Remove.
30717 (insert_set_in_table): Look at <dest, src> pair instead of expr.
30718 (hash_scan_set): Update call to insert_set_in_table.
30719 (dump_hash_table): Dump <dest, src> pair.
30720 (lookup_set): Simplify. Lookup <dest, src> pair.
30721 (compute_transp): Remove, fold heavily simplified code into...
30722 (compute_local_properties): ...here. Expect COMP and TRANSP
30724 (find_avail_set): Take set directly from struct expr.
30725 (find_bypass-set): Likewise.
30726 (bypass_block): Likewise.
30727 (cprop_insn): Likewise. Remove redundant INSN_P test.
30729 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
30730 checks on form of COND from find_implicit_sets to here.
30731 (find_implicit_sets): Cleanup control flow. Split critical edges
30732 if it exposes implicit sets. Allocate/resize implicit_sets as
30734 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
30735 changed something. Run df_analyze after find_implicit_sets if any
30736 edges were split. Do not allocate implicit_sets here.
30738 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
30739 (gcse_obstack): Renamed to cprop_obstack.
30740 (GNEW, GNEWVEC, GNEWVAR): Remove.
30742 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
30743 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
30744 (gcse_alloc): Likewise, and rename to cprop_alloc.
30745 (alloc_gcse_men, free_gcse_mem): Remove.
30746 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
30747 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
30748 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
30750 * cprop.c (oprs_not_set_p): Remove.
30751 (mark_set, mark_clobber): Remove.
30752 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
30753 (reg_not_set_p): New function.
30754 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
30755 (cprop_insn): Likewise.
30756 (cprop_jump): Use FOR_EACH_EDGE.
30758 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
30761 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
30762 (rank_for_schedule): Use scheduled_insns vector instead of
30763 last_scheduled_insn.
30764 (ok_for_early_queue_removal): Likewise.
30765 (queue_to_ready): Search forward in nonscheduled_insns_begin if
30767 (choose_ready): Likewise.
30768 (commit_schedule): Use VEC_iterate.
30769 (schedule_block): Initialize nonscheduled_insns_begin. If we have
30770 a dbg_cnt, use it and ensure the first insn is in the ready list.
30771 (haifa_sched_init): Allocate scheduled_insns.
30772 (sched_extend_ready_list): Don't allocate it; reserve space.
30773 (haifa_sched_finish): Free it.
30775 2011-04-04 Joseph Myers <joseph@codesourcery.com>
30777 * optc-gen.awk: Always remove type from Variable entry before
30778 recording in var_seen.
30780 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
30782 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
30783 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
30784 call to tidy_fallthru_edges.
30786 2011-04-04 Joseph Myers <joseph@codesourcery.com>
30788 * doc/options.texi (ToLower): Document.
30789 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
30790 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
30791 * opts.h (cl_option): Add cl_tolower field.
30792 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
30793 arguments with lowercase strings.
30794 * config/rx/rx.opt (mcpu=): Add ToLower.
30795 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
30798 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
30800 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
30802 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
30804 * config/vax/vax.c: Include reload.h.
30806 2011-04-04 Anatoly Sokolov <aesok@post.ru>
30808 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
30809 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
30810 (sparc_preferred_reload_class): New function.
30812 2011-04-04 Jakub Jelinek <jakub@redhat.com>
30815 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
30816 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
30818 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
30820 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
30821 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
30823 2011-04-03 Anatoly Sokolov <aesok@post.ru>
30825 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
30826 (ASM_OUTPUT_ALIGNED_BSS): Define.
30828 2011-04-03 Michael Matz <matz@suse.de>
30830 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
30831 and next_slot members.
30832 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
30833 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
30834 (lto_streamer_cache_append): Declare.
30835 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
30836 unsigned index, remove offset parameter, ensure that we append
30837 or update existing entries.
30838 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
30839 parameter, update next_slot for append.
30840 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
30842 (lto_streamer_cache_insert_at): Likewise.
30843 (lto_streamer_cache_append): New function.
30844 (lto_streamer_cache_lookup): Use unsigned index.
30845 (lto_streamer_cache_get): Likewise.
30846 (lto_record_common_node): Don't test tree_node_can_be_shared.
30847 (preload_common_node): Adjust call to lto_streamer_cache_insert.
30848 (lto_streamer_cache_delete): Don't free offsets member.
30849 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
30850 (lto_output_string_with_length): Use lto_output_data_stream.
30851 (lto_output_tree_header): Remove ix parameter, don't write it.
30852 (lto_output_builtin_tree): Likewise.
30853 (lto_write_tree): Adjust callers to above, don't track and write
30854 offset, write unsigned index.
30855 (output_unreferenced_globals): Don't emit all global vars.
30856 (write_global_references): Use unsigned indices.
30857 (lto_output_decl_state_refs): Likewise.
30858 (write_symbol): Likewise.
30859 * lto-streamer-in.c (lto_input_chain): Move earlier.
30860 (input_function): Use unsigned index.
30861 (input_alias_pairs): Don't read and then ignore all global vars.
30862 (lto_materialize_tree): Remove ix_p parameter, don't read index,
30863 don't pass it back, use lto_streamer_cache_append.
30864 (lto_register_var_decl_in_symtab): Use unsigned index.
30865 (lto_register_function_decl_in_symtab): Likewise.
30866 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
30868 (lto_get_builtin_tree): Don't read index, use
30869 lto_streamer_cache_append.
30870 (lto_read_tree): Adjust call to lto_materialize_tree.
30872 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
30873 don't use function calls in arguments to MIN.
30875 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
30878 * gimple.c (gimple_type_leader_entry): Mark deletable.
30880 2011-04-03 Alan Modra <amodra@gmail.com>
30882 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
30884 2011-04-03 Michael Matz <matz@suse.de>
30886 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
30888 * tree.h (tree_decl_non_common.vindex): Adjust comment.
30890 2011-04-03 Michael Matz <matz@suse.de>
30892 * cgraphbuild.c (record_reference): Canonicalize constructor values.
30893 * gimple-fold.c (canonicalize_constructor_val): Accept being called
30894 without function context.
30895 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
30896 current_function_decl and cfun.
30898 2011-04-03 Michael Matz <matz@suse.de>
30900 * tree.c (decl_init_priority_insert): Don't create entry for
30902 (decl_fini_priority_insert): Ditto.
30903 (fields_compatible_p, find_compatible_field): Remove.
30904 * tree.h (fields_compatible_p, find_compatible_field): Remove.
30905 * gimple.c (gimple_compare_field_offset): Adjust block comment.
30907 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
30909 * combine.c (try_combine): Remove useless local variable.
30911 2011-04-03 Richard Guenther <rguenther@suse.de>
30912 Ira Rosen <ira.rosen@linaro.org>
30914 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
30915 non-variable offsets and compare the remaining bases of the two
30916 accesses instead of looking for exact same data-ref.
30918 2011-04-02 Kai Tietz <ktietz@redhat.com>
30921 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
30923 * i386.c (ix86_is_msabi_thiscall): New helper function.
30924 (ix86_is_type_thiscall): New helper function.
30925 (ix86_comp_type_attributes): Handle thiscall for method-functions
30927 (init_cumulative_args): Likewise.
30928 (find_drap_reg): Likewise.
30929 (ix86_static_chain): Likewise.
30930 (x86_this_parameter): Likewise.
30931 (x86_output_mi_thunk): Likewise.
30933 2011-04-01 Olivier Hainque <hainque@adacore.com>
30934 Nicolas Setton <setton@adacore.com>
30935 Eric Botcazou <ebotcazou@adacore.com>
30937 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
30938 (add_gnat_descriptive_type_attribute): New function.
30939 (gen_array_type_die): Call it.
30940 (gen_enumeration_type_die): Likewise.
30941 (gen_struct_or_union_type_die): Likewise.
30942 (modified_type_die): Likewise.
30943 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
30944 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
30945 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
30947 2011-04-01 Jakub Jelinek <jakub@redhat.com>
30950 * dwarf2out.c (resolve_addr): Don't call force_decl_die
30951 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
30954 2011-03-17 Richard Guenther <rguenther@suse.de>
30957 * lto-cgraph.c (input_overwrite_node): Clear the abstract
30958 origin for decls in other ltrans units.
30959 (input_varpool_node): Likewise.
30961 2011-04-01 Jakub Jelinek <jakub@redhat.com>
30963 PR middle-end/48335
30964 * expr.c (expand_assignment): Handle all possibilities
30965 if TO_RTX is CONCAT.
30966 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
30967 (store_split_bit_field): If SUBREG_REG (op0) or
30968 op0 itself has smaller mode than word, return it
30969 for offset 0 and const0_rtx for out-of-bounds stores.
30970 If word is const0_rtx, skip it.
30972 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
30974 * config/h8300/h8300.c (print_operand_address): Rename to...
30975 (h8300_print_operand_address): ...this. Make static. Adjust comments.
30976 Call h8300_print_operand and h8300_print_operand_address instead of
30977 print_operand and print_operand_address. Declare.
30978 (print_operand): Renake to...
30979 (h8300_print_operand): ...this. Make static. Adjust comments.
30980 Call h8300_print_operand instead of print_operand. Declare.
30981 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
30982 (h8300_register_move_cost): Likewise.
30983 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
30984 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
30985 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
30986 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
30987 * config/h8300/h8300-protos.h (print_operand): Delete.
30988 (print_operand_address): Delete.
30990 2011-04-01 Richard Henderson <rth@redhat.com>
30993 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
30994 in strict mode before dwarf4. Re-order tests to early out
30995 before switching sections.
30997 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
30999 * config/h8300/constraints.md: New file.
31000 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
31001 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
31002 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
31003 * config/h8300/predicates.md (bit_operand): Likewise.
31004 (incdec_operand): Use satisfies_constraint_M and
31005 satisfies_constraint_O. Don't use C code block.
31006 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
31007 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
31008 (compute_mov_length): Use satisfies_constraint_G.
31009 (fix_bit_operand): Use satisfies_constraint_U.
31010 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
31011 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
31012 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
31013 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
31014 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
31015 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
31016 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31017 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
31018 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
31019 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
31020 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
31021 (EXTRA_MEMORY_CONSTRAINT): Delete.
31023 2011-04-01 Andrew Pinski <pinskia@gmail.com>
31024 Michael Meissner <meissner@linux.vnet.ibm.com>
31027 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
31028 operands, as per the specifications.
31030 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
31031 (vec_extract_evenv4sf): Ditto.
31032 (vec_extract_evenv8hi): Ditto.
31033 (vec_extract_evenv16qi): Ditto.
31034 (vec_extract_oddv4si): Ditto.
31036 2011-03-31 Mark Wielaard <mjw@redhat.com>
31038 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
31039 high_pc attribute if the CU has no associated code. Only output
31040 DW_AT_entry_pc for CU if not generating strict dwarf and
31043 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
31045 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
31046 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
31048 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
31049 * final.c (final_start_function): Call the new function rather
31050 than using a NULL argument for dwarf2out_frame_debug.
31052 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
31053 that contains the prologue.
31055 * haifa-sched.c (queue_insn): New arg REASON. All callers
31056 changed. Print it in debugging output.
31058 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
31060 * sched-ebb.c (begin_schedule_ready): Remove second argument.
31061 Split most of the code into...
31062 (begin_move_insn): ... here. New function.
31063 (ebb_sched_info): Add a pointer to it.
31064 * haifa-sched.c (scheduled_insns): New static variable.
31065 (sched_extend_ready_list): Allocate it.
31066 (schedule_block): Use it to record the order of scheduled insns.
31067 Perform RTL changes to move insns only after all scheduling
31068 decisions have been made.
31069 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
31070 begin_move_insn field.
31071 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
31072 * sched-int.h (struct haifa_sched_info): Remove second argument
31073 from begin_schedule_ready hook. Add new member begin_move_insn.
31074 * sched-rgn.c (begin_schedule_ready): Remove second argument.
31075 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
31077 * haifa-sched.c (prune_ready_list): New function, broken out of
31079 (schedule_block): Use it.
31081 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31083 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
31085 2011-04-01 Kai Tietz <ktietz@redhat.com>
31087 * config.gcc (*-*-mingw*): Allow as option the
31088 posix threading model.
31089 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
31090 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
31092 (CPP_SPEC): Add pthread/no-pthread handling.
31093 (LIB_SPEC): Likewise.
31094 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
31095 (LIB_SPEC): Likewise.
31096 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
31097 flag to pass -pthread option for shared libgcc build.
31098 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
31099 for shared libgcc build.
31100 * config/i386/t-mingw-pthread: New file.
31101 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
31102 New define to enable use of library pthread by default.
31103 * config/i386/mingw.opt (pthread): New driver option.
31104 (no-pthread): New driver option.
31105 * config/i386/cygming.opt: Make sure trailing empty line is retained.
31106 * config/i386/mingw-w64.opt: Likewise.
31108 2011-04-01 Gary Funck <gary@intrepid.com>
31110 * c-decl.c (grokdeclarator): Fix formatting.
31112 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
31114 * expr.c (emit_block_move_via_movmem): Use n_generator_args
31115 instead of n_operands.
31116 (set_storage_via_setmem): Likewise.
31117 * optabs.c (maybe_gen_insn): Likewise.
31118 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
31119 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
31120 (mips_expand_builtin_direct): Likewise.
31121 * config/spu/spu.c (expand_builtin_args): Likewise.
31123 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
31125 * recog.h (insn_data_d): Add n_generator_args.
31126 * genoutput.c (data): Likewise.
31127 (output_insn_data): Print it.
31128 (max_opno, num_dups): Delete.
31129 (scan_operands): Just fill in "d->operand[...]".
31130 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
31132 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
31134 * gensupport.h (pattern_stats): New structure.
31135 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
31136 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
31137 (max_operand_1, max_operand_vec): Delete.
31138 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
31140 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
31142 * emit-rtl.c (emit_pattern_after_setloc): New function.
31143 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
31144 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
31145 (emit_pattern_after): New function.
31146 (emit_insn_after, emit_jump_insn_after): Call it.
31147 (emit_call_insn_after, emit_debug_insn_after): Likewise.
31148 (emit_pattern_before_setloc): New function.
31149 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
31150 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
31152 (emit_pattern_before): New function.
31153 (emit_insn_before, emit_jump_insn_before): Call it.
31154 (emit_call_insn_before, emit_debug_insn_before): Likewise.
31156 2011-03-31 Richard Henderson <rth@redhat.com>
31158 * dwarf2out.c (dw_separate_line_info_ref): Remove.
31159 (dw_separate_line_info_entry): Remove.
31160 (enum dw_line_info_opcode): New.
31161 (dw_line_info_entry): Use it.
31162 (dw_line_info_table, dw_line_info_table_p): New.
31163 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
31164 (line_info_table, line_info_label_num): Remove.
31165 (line_info_table_in_use): Remove.
31166 (separate_line_info_table): Remove.
31167 (separate_line_info_table_allocated): Remove.
31168 (separate_line_info_table_in_use): Remove.
31169 (LINE_INFO_TABLE_INCREMENT): Remove.
31170 (line_info_label_num): New.
31171 (cur_line_info_table): New.
31172 (text_section_line_info, cold_text_section_line_info): New.
31173 (separate_line_info): New.
31174 (SEPARATE_LINE_CODE_LABEL): Remove.
31175 (print_dwarf_line_table): Remove.
31176 (debug_dwarf): Don't dump it.
31177 (output_one_line_info_table): New.
31178 (output_line_info): Use it.
31179 (new_line_info_table): New.
31180 (set_cur_line_info_table): New.
31181 (dwarf2out_switch_text_section): Use it.
31182 (dwarf2out_begin_function): Likewise.
31183 (push_dw_line_info_entry): New.
31184 (dwarf2out_source_line): Rewrite for new line info tables.
31185 (dwarf2out_init): Remove dead initailizations.
31187 2011-03-31 Joseph Myers <joseph@codesourcery.com>
31189 * opts.h (cl_option): Add comments to fields. Add bit-fields for
31191 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
31192 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
31193 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
31194 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
31195 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
31196 * opt-functions.awk (flag_init, switch_bit_fields): New.
31197 (switch_flags): Don't handle flags moved to bit-fields. Don't
31198 generate CL_MISSING_OK or CL_SAVE.
31199 * optc-gen.awk: Update to generate bit-field output as well as
31201 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
31202 bit-field instead of CL_REJECT_DRIVER flag.
31203 * opts-common.c (generate_canonical_option,
31204 decode_cmdline_option): Use bit-fields instead of CL_* flags.
31205 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
31206 instead of CL_REJECT_NEGATIVE flag.
31207 * toplev.c (print_switch_values): Use cl_report bit-field instead
31210 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
31212 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
31213 a zero minimum index only if it is redundant.
31215 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
31217 PR rtl-optimization/48381
31218 * ira-color.c (assign_hard_reg): Use hard reg set intersection
31219 instead of ira_class_hard_reg_index for calculating conflicting
31222 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
31224 * cprop.c: Clean up hash table building.
31225 (reg_avail_info): Remove.
31226 (oprs_available_p): Remove.
31227 (record_last_reg_set_info): Remove.
31228 (record_last_set_info): Remove.
31229 (reg_available_p): New function.
31230 (gcse_constant_p): Do not treat unfolded conditions as constants.
31231 (make_set_regs_unavailable): New function.
31232 (hash_scan_set): Simplify with new reg_available_p.
31233 (compute_hash_table_work): Traverse insns stream only once.
31234 Do not compute reg_avail_info. Traverse insns in reverse order.
31235 Record implicit sets after recording explicit sets from the block.
31237 2011-03-31 Michael Matz <matz@suse.de>
31239 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
31241 2011-03-31 Anatoly Sokolov <aesok@post.ru>
31243 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
31244 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
31245 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31246 (h8300_mode_dependent_address_p): New function.
31247 (h8300_get_index): Make static.
31249 2011-03-31 Jeff Law <law@redhat.com>
31251 * reload1.c (elimination_effects): Fix typo in recent change.
31253 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
31254 typo potentially leading to null pointer dereference.
31256 * caller-save.c (new_saved_hard_reg): Eliminate return value.
31257 (setup_save_areas): Corresponding changes to avoid useless
31260 * jump.c (reversed_comparison_code_parts): Avoid successive return
31261 statements when REVERSE_CONDITION is defined.
31263 * expr.c (expand_assignment): Avoid useless assignments.
31264 (expand_expr_real_1): Likewise.
31265 (expand_expr_real_2): Avoid useless statements.
31267 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
31269 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
31271 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
31274 * stmt.c (expand_expr_stmt): Avoid useless assignment.
31276 2011-03-31 Joseph Myers <joseph@codesourcery.com>
31279 * doc/tm.texi.in (TARGET_VERSION): Remove.
31280 * doc/tm.texi: Regenerate.
31281 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
31282 * collect2.c (main): Don't use TARGET_VERSION.
31283 * mips-tdump.c (main): Don't use TARGET_VERSION.
31284 * mips-tfile.c (main): Don't use TARGET_VERSION.
31285 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
31286 * config/rs6000/vxworksae.h: Remove.
31287 * config/alpha/alpha.h (TARGET_VERSION): Remove.
31288 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
31289 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
31290 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
31291 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
31292 * config/arm/arm.h (TARGET_VERSION): Remove.
31293 * config/arm/coff.h (TARGET_VERSION): Remove.
31294 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
31295 * config/arm/elf.h (TARGET_VERSION): Remove.
31296 * config/arm/freebsd.h (TARGET_VERSION): Remove.
31297 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
31298 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
31299 * config/arm/pe.h (TARGET_VERSION): Remove.
31300 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
31301 * config/arm/semi.h (TARGET_VERSION): Remove.
31302 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
31303 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
31304 * config/arm/vxworks.h (TARGET_VERSION): Remove.
31305 * config/avr/avr.h (TARGET_VERSION): Remove.
31306 * config/bfin/bfin.h (TARGET_VERSION): Remove.
31307 * config/fr30/fr30.h (TARGET_VERSION): Remove.
31308 * config/frv/frv.h (TARGET_VERSION): Remove.
31309 * config/h8300/h8300.h (TARGET_VERSION): Remove.
31310 * config/i386/cygwin.h (TARGET_VERSION): Remove.
31311 * config/i386/darwin.h (TARGET_VERSION): Remove.
31312 * config/i386/darwin64.h (TARGET_VERSION): Remove.
31313 * config/i386/djgpp.h (TARGET_VERSION): Remove.
31314 * config/i386/freebsd.h (TARGET_VERSION): Remove.
31315 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
31316 * config/i386/gnu.h (TARGET_VERSION): Remove.
31317 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
31318 * config/i386/i386elf.h (TARGET_VERSION): Remove.
31319 * config/i386/linux.h (TARGET_VERSION): Remove.
31320 * config/i386/linux64.h (TARGET_VERSION): Remove.
31321 * config/i386/lynx.h (TARGET_VERSION): Remove.
31322 * config/i386/mingw32.h (TARGET_VERSION): Remove.
31323 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
31324 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
31325 * config/i386/netware.h (TARGET_VERSION): Remove.
31326 * config/i386/nto.h (TARGET_VERSION): Remove.
31327 * config/i386/openbsd.h (TARGET_VERSION): Remove.
31328 * config/i386/vxworks.h (TARGET_VERSION): Remove.
31329 * config/ia64/elf.h (TARGET_VERSION): Remove.
31330 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
31331 * config/ia64/hpux.h (TARGET_VERSION): Remove.
31332 * config/ia64/linux.h (TARGET_VERSION): Remove.
31333 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
31334 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
31335 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
31336 * config/lm32/lm32.h (TARGET_VERSION): Remove.
31337 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
31338 * config/m32c/m32c.h (TARGET_VERSION): Remove.
31339 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
31340 * config/m32r/m32r.h (TARGET_VERSION): Remove.
31341 * config/m68k/linux.h (TARGET_VERSION): Remove.
31342 * config/m68k/m68k.h (TARGET_VERSION): Remove.
31343 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
31344 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
31345 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
31346 * config/mep/mep.h (TARGET_VERSION): Remove.
31347 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
31348 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
31349 * config/mips/iris6.h (MACHINE_TYPE): Remove.
31350 * config/mips/linux.h (TARGET_VERSION): Remove.
31351 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
31352 * config/mips/vxworks.h (TARGET_VERSION): Remove.
31353 * config/mmix/mmix.h (TARGET_VERSION): Remove.
31354 * config/mn10300/linux.h (TARGET_VERSION): Remove.
31355 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
31356 * config/pa/pa.h (TARGET_VERSION): Remove.
31357 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
31358 * config/picochip/picochip.h (TARGET_VERSION): Remove.
31359 * config/rs6000/aix.h (TARGET_VERSION): Remove.
31360 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
31361 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
31362 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
31363 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
31364 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
31365 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
31366 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
31367 * config/rs6000/linux.h (TARGET_VERSION): Remove.
31368 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
31369 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
31370 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
31371 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
31372 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
31373 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
31374 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
31375 * config/s390/linux.h (TARGET_VERSION): Remove.
31376 * config/s390/s390.h (TARGET_VERSION): Remove.
31377 * config/s390/tpf.h (TARGET_VERSION): Remove.
31378 * config/score/score.h (TARGET_VERSION): Remove.
31379 * config/sh/linux.h (TARGET_VERSION): Remove.
31380 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
31381 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
31382 * config/sh/sh.h (TARGET_VERSION): Remove.
31383 * config/sh/sh64.h (TARGET_VERSION): Remove.
31384 * config/sh/superh.h (TARGET_VERSION): Remove.
31385 * config/sh/vxworks.h (TARGET_VERSION): Remove.
31386 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
31387 * config/sparc/linux.h (TARGET_VERSION): Remove.
31388 * config/sparc/linux64.h (TARGET_VERSION): Remove.
31389 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
31390 TARGET_NAME32, TARGET_NAME): Remove.
31391 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
31392 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
31393 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
31394 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
31395 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
31396 * config/spu/spu.h (TARGET_VERSION): Remove.
31397 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
31398 * config/v850/v850.h (TARGET_VERSION): Remove.
31399 * config/vax/linux.h (TARGET_VERSION): Remove.
31400 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
31401 * config/xtensa/elf.h (TARGET_VERSION): Remove.
31402 * config/xtensa/linux.h (TARGET_VERSION): Remove.
31404 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
31407 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
31408 frame-related from frame-unrelated adjustments to the stack pointer.
31410 2011-03-31 Jakub Jelinek <jakub@redhat.com>
31412 * common.opt (fdebug-types-section): Move earlier.
31413 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
31415 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
31417 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
31420 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
31422 * tree.h (CASE_CHAIN): Define.
31423 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
31424 (gimple_redirect_edge_and_branch): Likewise.
31426 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
31428 PR middle-end/48367
31429 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
31432 2011-03-30 Jeff Law <law@redhat.com>
31434 * PR bootstrap/48371
31435 * reload1.c (reload): Fix botch in last change.
31437 * reload.h (struct reload): Fix typo introduced in last change.
31439 2011-03-30 Joseph Myers <joseph@codesourcery.com>
31441 * config/arm/arm.opt (mhard-float, msoft-float): Mark
31442 Undocumented. Remove help text.
31443 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
31446 2011-03-30 Joseph Myers <joseph@codesourcery.com>
31448 * doc/options.texi (NegativeAlias): Document.
31449 (Alias): Mention NegativeAlias.
31450 * opt-functions.awk: Handle NegativeAlias.
31451 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
31452 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
31453 * opts.h (CL_NEGATIVE_ALIAS): Define.
31454 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
31455 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
31457 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
31459 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31460 mno-spe and mno-isel instead of mspe=no and -misel=no.
31462 2011-03-29 Mark Wielaard <mjw@redhat.com>
31464 * common.opt (fdebug-types-section): New flag.
31465 * doc/invoke.texi: Document new -fno-debug-types-section flag.
31466 * dwarf2out.c (use_debug_types): New define.
31467 (struct die_struct): Mark die_id with GTY desc use_debug_types.
31468 (print_die): Guard output of type unit signatures using
31470 (build_abbrev_table): Replace assert of dwarf_version >= 4
31471 with assert on use_debug_types.
31472 (size_of_die): Likewise.
31473 (unmark_dies): Likewise.
31474 (value_format): Decide AT_ref_external form on use_debug_types.
31475 (output_die): Replace dwarf_version version check guard with
31476 use_debug_types where appropriate.
31477 (modified_type_die): Likewise.
31478 (gen_reference_type_die): Likewise.
31479 (dwarf2out_start_source_file): Likewise.
31480 (dwarf2out_end_source_file): Likewise.
31481 (prune_unused_types_walk_attribs): Likewise.
31482 (dwarf2out_finish): Likewise.
31484 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
31486 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
31488 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
31490 PR rtl-optimization/48332
31491 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
31492 mode of input operand N and modeN to its actual mode.
31494 2011-03-30 Jeff Law <law@redhat.com>
31496 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
31497 define accessor macro.
31498 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
31499 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
31500 (reg_equiv_init): Likewise.
31501 (reg_equivs_size): New variable.
31502 (reg_equiv_init_size): Remove.
31503 (allocate_initial_values): Move prototype to here from....
31504 * integrate.h (allocate_initial_values): Remove prototype.
31505 * integrate.c: Include reload.h.
31506 (allocate_initial_values): Corresponding changes.
31507 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
31508 (fix_reg_equiv_init, no_equiv): Corresponding changes.
31509 (update_equiv_regs): Corresponding changes.
31510 (ira): Corresponding changes.
31511 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
31512 (push_secondary_reload): Corresponding changes.
31513 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
31514 (make_memloc, find_reloads_address): Corresponding changes.
31515 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
31516 (find_reloads_address_1): Corresponding changes.
31517 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
31518 (refers_to_regno_for_reload_p): Corresponding changes.
31519 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
31520 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
31521 * reload1.c: Include ggc.h.
31522 (grow_reg_equivs): New function.
31523 (replace_pseudos_in, reload): Corresponding changes.
31524 (calculate_needs_all_insns, alter_regs): Corresponding changes.
31525 (eliminate_regs_1, elimination_effects): Corresponding changes.
31526 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
31527 (delete_output_reload): Likewise.
31528 * caller-save.c (mark_referenced_regs): Corresponding changes.
31529 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
31530 * frv/predicates.md (frv_load_operand): Corresponding changes.
31531 * microblaze/microblaze.c (double_memory_operand): Corresponding
31533 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
31534 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
31535 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
31536 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
31537 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
31539 * pa/pa.c (emit_move_sequence): Corresponding changes.
31540 * vax/vax.c (nonindexed_address_p): Corresponding changes.
31542 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
31545 * config/arm/arm.c (coproc_secondary_reload_class): Handle
31546 structure modes. Don't check neon_vector_mem_operand for
31547 vector or structure modes.
31549 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
31550 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31553 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
31554 operand 1 and reshuffle the operands to match.
31555 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
31557 2011-03-30 Christian Schüler <cschueler@gmx.de>
31560 * config/c.opt (F): Added 'Driver' to -F option.
31563 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
31565 * config/darwin.opt: Added '-arch' option.
31567 2011-03-30 Nick Clifton <nickc@redhat.com>
31569 * config/rx/rx.md: Add peepholes and patterns to combine
31570 extending loads and simple arithmetic instructions.
31571 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
31572 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
31573 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
31574 modes to use pre-decrement and post-increment addressing.
31575 (rx_is_restricted_memory_address): Add range checking of REG+INT
31577 (rx_print_operand): Add support for %Q. Fix handling of %Q.
31578 (rx_memory_move_cost): Adjust cost of stores.
31579 (rx_adjust_insn_length): New function.
31581 2011-03-30 Jakub Jelinek <jakub@redhat.com>
31584 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
31585 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
31586 matching arg00/arg01 types.
31588 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
31590 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
31591 last_location to UNKNOWN_LOCATION.
31593 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
31596 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
31599 2011-03-30 Joseph Myers <joseph@codesourcery.com>
31600 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31603 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
31604 Init(PROCESSOR_V7).
31605 (sparc_cpu): Likewise.
31606 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
31609 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
31612 PR middle-end/48342
31613 PR rtl-optimization/48345
31614 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
31615 hard regs for given mode from profitable regs when doing secondary
31618 2011-03-29 Jeff Law <law@redhat.com>
31621 * tree-ssa-threadupdate.c (struct redirection_data): Remove
31622 do_not_duplicate field.
31623 (lookup_redirection_data): Corresponding changes.
31624 (create_duplicates): Always create a template block.
31625 (redirect_edges): Remove code which reused the original block
31626 when it was going to become unreachable code.
31627 (thread_block): Don't set do_not_duplicate field.
31629 2011-03-29 Joseph Myers <joseph@codesourcery.com>
31631 * lto-opts.c (register_user_option_p, lto_register_user_option):
31632 Make type argument unsigned.
31633 * lto-streamer.h (lto_register_user_option): Make type argument
31635 * opth-gen.awk: Make CL_* macros unsigned.
31636 * opts-common.c (find_opt): Make lang_mask argument unsigned.
31637 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
31638 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
31639 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
31640 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
31641 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
31642 (find_opt): Make lang_mask argument unsigned.
31644 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
31646 PR rtl-optimization/48331
31647 PR rtl-optimization/48334
31648 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
31649 for any used algorithm.
31651 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
31653 * ira-conflicts.c (build_object_conflicts): Add unused attribute
31656 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
31658 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
31659 (alpha_option_override): Don't set alpha_sr_alias_set.
31660 (emit_frame_store_1): Use gen_frame_mem rather than calling
31662 (alpha_expand_epilogue): Ditto.
31664 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
31666 PR tree-optimization/48290
31667 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
31668 vectorization, check that relevant phis in the basic block after
31669 the inner loop are really inner loop's exit phis.
31671 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
31674 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
31675 (cached_dw_loc_list_def): New structure.
31676 (cached_dw_loc_list): New typedef.
31677 (cached_dw_loc_list_table): New variable.
31678 (cached_dw_loc_list_table_hash): New function.
31679 (cached_dw_loc_list_table_eq): Likewise.
31680 (add_location_or_const_value_attribute): Take a bool cache_p.
31681 Cache the list when the parameter is true.
31682 (gen_formal_parameter_die): Update caller.
31683 (gen_variable_die): Likewise.
31684 (dwarf2out_finish): Likewise.
31685 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
31686 while generating debug info for the decl.
31687 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
31688 (dwarf2out_init): Initialize cached_dw_loc_list_table.
31689 (resolve_addr): Cache the result of resolving a chain of
31692 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
31694 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
31695 conflict object hard regset nodes have intersecting hard reg sets.
31697 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
31698 after regstat_init_n_sets_and_refs.
31700 * ira.c: Add more comments at the top.
31701 (setup_stack_reg_pressure_class, setup_pressure_classes):
31702 Add comments how we compute the register pressure classes.
31703 (setup_allocno_and_important_classes): Add more comments.
31704 (setup_class_translate_array, reorder_important_classes)
31705 (setup_reg_class_relations): Add comments.
31707 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
31710 * ira-color.c: Add 2011 to the Copyright line.
31711 (assign_hard_reg): Add more comments.
31712 (improve_allocation): Ditto.
31714 * ira-costs.c: Add 2011 to the Copyright line.
31715 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
31717 (setup_regno_cost_classes_by_mode): Ditto.
31719 Initial patches from ira-improv branch:
31721 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
31723 * ira-build.c (ira_create_object): Remove initialization of
31724 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
31725 (ira_create_allocno): Remove initialization of
31726 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
31727 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
31728 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
31729 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
31730 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
31731 Initialize ALLOCNO_ADD_DATA.
31732 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
31733 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
31735 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
31736 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
31738 * ira.c (ira_reallocate): Remove.
31739 (setup_pressure_classes): Call
31740 ira_init_register_move_cost_if_necessary. Use
31741 ira_register_move_cost instead of ira_get_register_move_cost.
31742 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
31743 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
31745 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
31746 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
31747 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
31748 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
31749 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
31750 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
31752 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
31753 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
31754 (struct allocno_color_data): New.
31755 (allocno_color_data_t): New typedef.
31756 (allocno_color_data): New definition.
31757 (ALLOCNO_COLOR_DATA): New macro.
31758 (struct object_color_data): New.
31759 (object_color_data_t): New typedef.
31760 (object_color_data): New definition.
31761 (OBJECT_COLOR_DATA): New macro.
31762 (update_copy_costs, calculate_allocno_spill_cost): Call
31763 ira_init_register_move_cost_if_necessary. Use
31764 ira_register_move_cost instead of ira_get_register_move_cost.
31765 (move_spill_restore, update_curr_costs): Ditto.
31766 (allocno_spill_priority): Make it inline.
31767 (color_pass): Allocate and free allocno_color_dat and object_color_data.
31768 (struct coalesce_data, coalesce_data_t): New.
31769 (allocno_coalesce_data): New definition.
31770 (ALLOCNO_COALESCE_DATA): New macro.
31771 (merge_allocnos, coalesced_allocno_conflict_p): Use
31772 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
31773 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
31774 (coalesce_allocnos): Ditto.
31775 (setup_coalesced_allocno_costs_and_nums): Ditto.
31776 (collect_spilled_coalesced_allocnos): Ditto.
31777 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
31778 (setup_slot_coalesced_allocno_live_ranges): Ditto.
31779 (coalesce_spill_slots): Ditto.
31780 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
31781 free allocno_coalesce_data.
31783 * ira-conflicts.c: Fix formatting.
31784 (process_regs_for_copy): Call
31785 ira_init_register_move_cost_if_necessary. Use
31786 ira_register_move_cost instead of ira_get_register_move_cost.
31787 (build_object_conflicts): Optimize.
31789 * ira-costs.c (record_reg_classes): Optimize. Call
31790 ira_init_register_move_cost_if_necessary. Use
31791 ira_register_move_cost, ira_may_move_in_cost, and
31792 ira_may_move_out_cost instead of ira_get_register_move_cost and
31793 ira_get_may_move_cost.
31794 (record_address_regs): Ditto.
31795 (scan_one_insn): Optimize.
31796 (find_costs_and_classes): Optimize.
31797 (process_bb_node_for_hard_reg_moves): Call
31798 ira_init_register_move_cost_if_necessary. Use
31799 ira_register_move_cost instead of ira_get_register_move_cost.
31801 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
31802 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
31803 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
31804 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
31806 (ira_initiate_emit_data, ira_finish_emit_data)
31807 (create_new_allocno): New functions.
31808 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
31809 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
31810 Use ira_register_move_cost instead of ira_get_register_move_cost.
31812 * ira-int.h: Fix some comments.
31813 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
31814 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
31815 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
31816 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
31818 (struct ira_allocno): Make mode and aclass a bitfield. Move other
31819 bitfield after mode. Make hard_regno a short int. Make
31820 hard_regno short. Remove first_coalesced_allocno and
31821 next_coalesced_allocno. Move mem_optimized_dest_p,
31822 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
31823 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
31824 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
31825 temp, colorable_p. Add new member add_data.
31826 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
31827 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
31828 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
31829 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
31830 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
31831 (ALLOCNO_ADD_DATA): New macro.
31832 (ira_emit_data_t): New typedef.
31833 (struct ira_emit_data): New. Move mem_optimized_dest_p,
31834 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
31835 from struct ira_allocno.
31836 (ALLOCNO_EMIT_DATA): New macro.
31837 (ira_allocno_emit_data, allocno_emit_reg): New.
31838 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
31839 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
31840 (OBJECT_ADD_DATA): New macro.
31841 (ira_reallocate): Remove.
31842 (ira_initiate_emit_data, ira_finish_emit_data): New.
31843 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
31844 (ira_init_register_move_cost_if_necessary): New.
31845 (ira_object_conflict_iter_next): Merge into
31846 ira_object_conflict_iter_cond.
31847 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
31849 * ira-live.c (process_single_reg_class_operands): Call
31850 ira_init_register_move_cost_if_necessary. Use
31851 ira_register_move_cost instead of ira_get_register_move_cost.
31853 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
31855 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
31857 * ira-costs.c: Fix formatting.
31858 (cost_classes, cost_classes_num): Remove.
31859 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
31860 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
31861 (cost_classes_del, cost_classes_htab): New.
31862 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
31863 (initiate_regno_cost_classes, setup_cost_classes): New.
31864 (setup_regno_cost_classes_by_aclass): New.
31865 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
31866 (record_reg_classes): Use regno_cost_classes instead of
31867 cost_classes. Move checking opposite operand up.
31868 (record_address_regs): Use regno_cost_classes
31869 instead of cost_classes.
31870 (scan_one_insn): Ditto. Use always general register.
31871 (print_allocno_costs): Use regno_cost_classes instead of
31873 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
31874 (find_costs_and_classes): Set up cost classes for each registers.
31875 Use also their mode for this. Use regno_cost_classes instead of
31877 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
31879 (free_ira_costs, ira_init_costs): Don't use cost_classes.
31880 (ira_costs, ira_set_pseudo_classes): Call
31881 initiate_regno_cost_classes and finish_regno_cost_classes.
31883 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
31885 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
31887 * target.def (ira_cover_classes): Remove.
31889 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
31891 * doc/tm.texi.in: Ditto.
31893 * ira-conflicts.c: Remove mentioning cover classes from the file.
31894 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
31895 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
31897 * targhooks.c (default_ira_cover_classes): Remove.
31899 * targhooks.h (default_ira_cover_classes): Ditto.
31901 * haifa-sched.c: Remove mentioning cover classes from the file.
31902 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
31903 ira_pressure_classes and ira_pressure_classes_num instead of
31904 ira_reg_class_cover_size and ira_reg_class_cover. Use
31905 sched_regno_pressure_class instead of sched_regno_cover_class.
31906 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
31907 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
31909 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
31910 classes from the file.
31911 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
31912 (struct object_hard_regs, struct object_hard_regs_node): New.
31913 (struct ira_object): New members profitable_hard_regs,
31914 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
31915 (struct ira_allocno): Rename cover_class to aclass. Rename
31916 cover_class_cost and updated_cover_class_cost to class_cost and
31917 updated_class_cost. Remove splay_removed_p and
31918 left_conflict_size. Add new members colorable_p.
31919 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
31920 (ALLOCNO_COLORABLE_P): New macro.
31921 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
31922 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
31923 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
31924 (OBJECT_...): Rename parameter C to O.
31925 (OBJECT_PROFITABLE_HARD_REGS): New macro.
31926 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
31927 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
31928 (struct target_ira_int): New members x_ira_max_memory_move_cost,
31929 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
31930 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
31931 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
31932 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
31933 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
31934 x_ira_reg_class_subunion.
31935 (ira_max_memory_move_cost, ira_max_register_move_cost)
31936 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
31937 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
31938 (ira_important_class_nums, ira_reg_class_superunion): New macros.
31939 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
31940 (ira_reg_class_union): Rename to ira_reg_class_subunion.
31941 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
31942 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
31943 (ira_tune_allocno_costs_and_cover_classes): Rename to
31944 ira_tune_allocno_costs.
31945 (ira_debug_hard_regs_forest): New.
31946 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
31947 (ira_object_conflict_iter_next): Fix comments.
31948 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
31949 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
31950 cover_class to aclass.
31951 (ira_allocate_and_accumulate_costs): Ditto.
31952 (ira_allocate_and_set_or_copy_costs): Ditto.
31954 * opts.c (decode_options): Remove ira_cover_class check.
31956 * ira-color.c: Remove mentioning cover classes from the file. Use
31957 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
31958 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
31959 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
31960 (splay-tree.h): Remove include.
31961 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
31962 before copy_freq_compare_func.
31963 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
31964 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
31966 (hard_regs_roots, hard_regs_node_vec): Ditto.
31967 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
31968 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
31969 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
31970 (create_new_object_hard_regs_node): Ditto.
31971 (add_new_object_hard_regs_node_to_forest): Ditto.
31972 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
31973 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
31975 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
31976 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
31977 (remove_unused_object_hard_regs_nodes): Ditto.
31978 (enumerate_object_hard_regs_nodes): Ditto.
31979 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
31980 (object_hard_regs_subnode_t): Ditto.
31981 (struct object_hard_regs_subnode): Ditto.
31982 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
31983 (setup_object_hard_regs_subnode_index): Ditto.
31984 (get_object_hard_regs_subnodes_num): Ditto.
31985 (form_object_hard_regs_nodes_forest): Ditto.
31986 (finish_object_hard_regs_nodes_tree): Ditto.
31987 (finish_object_hard_regs_nodes_forest): Ditto.
31988 (allocnos_have_intersected_live_ranges_p): Rename to
31989 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
31990 (pseudos_have_intersected_live_ranges_p): Rename to
31991 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
31992 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
31993 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
31994 (update_copy_costs): Remove assert. Skip cost update if the hard
31995 reg does not belong the class.
31996 (assign_hard_reg): Process only profitable hard regs.
31997 (uncolorable_allocnos_num): Make it scalar.
31998 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
31999 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
32000 and ira_reg_class_max_nregs.
32001 (bucket_allocno_compare_func): Check frequency first.
32002 (sort_bucket): Add compare function as a parameter.
32003 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
32004 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
32005 (push_allocno_to_stack): Rewrite for checking new allocno
32007 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
32008 (push_only_colorable): Pass new parameter to sort_bucket.
32009 (push_allocno_to_spill): Remove.
32010 (allocno_spill_priority_compare): Make it inline and rewrite.
32011 (splay_tree_allocate, splay_tree_free): Remove.
32012 (allocno_spill_sort_compare): New function.
32013 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
32014 build and use splay tree. Choose first allocno in uncolorable
32015 allocno bucket to spill. Remove setting spill cost.
32016 (all_conflicting_hard_regs): Remove.
32017 (setup_allocno_available_regs_num): Check only profitable hard
32018 regs. Print info about hard regs nodes.
32019 (setup_allocno_left_conflicts_size): Remove.
32020 (put_allocno_into_bucket): Don't call
32021 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
32022 (improve_allocation): New.
32023 (color_allocnos): Call setup_profitable_hard_regs,
32024 form_object_hard_regs_nodes_forest, improve_allocation,
32025 finish_object_hard_regs_nodes_forest. Setup spill cost.
32026 (print_loop_title): Use pressure classes.
32027 (color_allocnso): Ditto.
32028 (do_coloring): Remove allocation and freeing splay_tree_node_pool
32029 and allocnos_for_spilling.
32030 (ira_sort_regnos_for_alter_reg): Don't setup members
32031 {first,next}_coalesced_allocno.
32032 (color): Remove allocating and freeing removed_splay_allocno_vec.
32033 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
32034 prohibited_class_mode_regs.
32036 * ira-lives.c: Remove mentioning cover classes from the file. Fix
32038 (update_allocno_pressure_excess_length): Use pressure classes.
32039 (inc_register_pressure, dec_register_pressure): Check for pressure
32041 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
32042 pressure class. Use ira_reg_class_nregs instead of
32043 ira_reg_class_max_nregs.
32044 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
32045 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
32046 (single_reg_class): Use ira_reg_class_nregs instead of
32047 ira_reg_class_max_nregs.
32048 (process_bb_node_lives): Use pressure classes.
32050 * ira-emit.c: Remove mentioning cover classes from the file. Use
32051 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
32052 (change_loop): Use pressure classes.
32053 (modify_move_list): Call ira_set_allocno_class instead of
32054 ira_set_allocno_cover_class.
32056 * ira-build.c: Remove mentioning cover classes from the file. Use
32057 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
32058 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
32059 ALLOCNO_UPDATED_CLASS_COST instead of
32060 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
32061 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
32062 (ira_create_allocno): Remove initialization of
32063 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
32064 ALLOCNO_COLORABLE_P.
32065 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
32066 Update conflict regs for the objects.
32067 (create_cap_allocno): Remove assert. Don't propagate
32068 ALLOCNO_AVAILABLE_REGS_NUM.
32069 (ira_free_allocno_costs): New function.
32070 (finish_allocno): Change a part of code into call of
32071 ira_free_allocno_costs.
32072 (low_pressure_loop_node_p): Use pressure classes.
32073 (object_range_compare_func): Don't compare classes.
32074 (setup_min_max_conflict_allocno_ids): Ditto.
32076 * loop-invariant.c: Remove mentioning cover classes from the file.
32077 Use ira_pressure_classes and ira_pressure_classes_num instead of
32078 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
32079 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
32080 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32081 Use reg_allocno_class instead of reg_cover_class.
32082 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
32083 STACK_REG_COVER_CLASS.
32084 (get_regno_cover_class): Rename to get_regno_pressure_class.
32085 (move_loop_invariants): Initialize and finalize regstat.
32087 * ira.c: Remove mentioning cover classes from the file. Add
32088 comments about coloring without cover classes. Use ALLOCNO_CLASS
32089 instead of ALLOCNO_COVER_CLASS. Fix formatting.
32090 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
32091 setup_class_subset_and_memory_move_costs.
32092 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
32093 (setup_cover_and_important_classes): Rename to
32094 setup_allocno_and_important_classes.
32095 (setup_class_translate_array): New.
32096 (setup_class_translate): Call it for allocno and pressure classes.
32097 (cover_class_order): Rename to allocno_class_order.
32098 (comp_reg_classes_func): Use ira_allocno_class_translate instead
32099 of ira_class_translate.
32100 (reorder_important_classes): Set up ira_important_class_nums.
32101 (setup_reg_class_relations): Set up ira_reg_class_superunion.
32102 (print_class_cover): Rename to print_classes. Add parameter.
32103 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
32104 Print pressure classes too.
32105 (find_reg_class_closure): Rename to find_reg_classes. Don't call
32106 setup_reg_subclasses.
32107 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
32108 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
32109 (setup_prohibited_class_mode_regs): Use
32110 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
32111 (clarify_prohibited_class_mode_regs): New function.
32112 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
32113 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
32114 (ira_init_once): Initialize them.
32115 (free_register_move_costs): Process them.
32116 (ira_init): Move calls of find_reg_classes and
32117 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
32118 Call clarify_prohibited_class_mode_regs.
32119 (ira_no_alloc_reg): Remove.
32120 (too_high_register_pressure_p): Use pressure classes.
32122 * sched-deps.c: Remove mentioning cover classes from the file.
32123 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
32124 ira_pressure_classes and ira_pressure_classes_num instead of
32125 ira_reg_class_cover_size and ira_reg_class_cover.
32126 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
32127 sched_regno_pressure_class instead of sched_regno_cover_class.
32128 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
32129 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32131 * ira.h: Add 2010 to Copyright.
32132 (ira_no_alloc_reg): Remove external.
32133 (struct target_ira): Rename x_ira_hard_regno_cover_class,
32134 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
32135 x_ira_class_translate to x_ira_hard_regno_allocno_class,
32136 x_ira_allocno_classes_num, x_ira_allocno_classes, and
32137 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
32138 x_ira_pressure_classes, x_ira_pressure_class_translate, and
32139 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
32140 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
32141 x_ira_no_alloc_regs.
32142 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
32143 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
32144 ira_allocno_classes_num and ira_allocno_classes.
32145 (ira_class_translate): Rename to ira_allocno_class_translate.
32146 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
32147 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
32148 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
32149 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
32150 (ira_no_alloc_regs): New.
32152 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
32153 classes from the file. Use ALLOCNO_CLASS instead of
32154 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
32155 ALLOCNO_COVER_CLASS_COST.
32156 (regno_cover_class): Rename to regno_aclass.
32157 (record_reg_classes): Use ira_reg_class_subunion instead of
32158 ira_reg_class_union.
32159 (record_address_regs): Check overflow.
32160 (scan_one_insn): Ditto.
32161 (print_allocno_costs): Print total mem cost fore regional allocation.
32162 (print_pseudo_costs): Use REG_N_REFS.
32163 (find_costs_and_classes): Use classes intersected with them on the
32164 1st pass. Check overflow. Use ira_reg_class_subunion instead of
32165 ira_reg_class_union. Use ira_allocno_class_translate and
32166 regno_aclass instead of ira_class_translate and regno_cover_class.
32167 Modify code for finding regno_aclass. Setup preferred classes for
32169 (setup_allocno_cover_class_and_costs): Rename to
32170 setup_allocno_class_and_costs. Use regno_aclass instead of
32171 regno_cover_class. Use ira_set_allocno_class instead of
32172 ira_set_allocno_cover_class.
32173 (init_costs, finish_costs): Use regno_aclass instead of
32175 (ira_costs): Use setup_allocno_class_and_costs instead of
32176 setup_allocno_cover_class_and_costs.
32177 (ira_tune_allocno_costs_and_cover_classes): Rename to
32178 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
32179 by processing objects. Use ira_reg_class_max_nregs instead of
32180 ira_reg_class_nregs.
32182 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
32184 * sched-int.h: Remove mentioning cover classes from the file.
32185 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
32187 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
32188 classes from the file.
32189 (struct reg_pref): Rename coverclass into allocnoclass.
32190 (reg_cover_class): Rename to reg_allocno_class.
32192 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
32194 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
32196 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
32198 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
32200 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
32202 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
32204 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
32206 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
32208 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
32210 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
32212 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
32213 (i386_ira_cover_classes): Ditto.
32215 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
32217 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
32219 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
32221 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
32223 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
32225 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
32227 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
32228 (mips_ira_cover_classes): Ditto.
32230 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
32232 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
32234 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
32236 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
32238 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
32240 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
32241 (IRA_COVER_CLASSES_VSX): Ditto.
32243 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
32244 (rs6000_ira_cover_classes): Ditto.
32246 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
32248 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
32250 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
32252 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
32254 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
32256 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
32258 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
32260 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
32262 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
32264 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
32266 2011-03-29 Jakub Jelinek <jakub@redhat.com>
32269 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
32270 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
32271 dw_fde_unlikely_section_end_label, cold_in_std_section,
32272 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
32273 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
32275 (output_fde): Use dw_fde_second_{begin,end} if second is
32276 true, otherwise dw_fde_{begin,end}.
32277 (output_call_frame_info): Test dw_fde_second_begin != NULL
32278 instead of dw_fde_switched_sections.
32279 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
32280 fields, initialize new fields. Initialize in_std_section
32281 unconditionally from the first partition.
32282 (dwarf2out_end_epilogue): Don't override dw_fde_end when
32283 dw_fde_second_begin is non-NULL.
32284 (dwarf2out_switch_text_section): Stop initializing removed
32285 dw_fde_struct fields, initialize new fields, initialize
32286 also dw_fde_end here. Set dw_fde_switch_cfi even when
32287 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
32288 (struct var_loc_list_def): Add last_before_switch field.
32289 (arange_table, arange_table_allocated, arange_table_in_use,
32290 ARANGE_TABLE_INCREMENT, add_arange): Removed.
32291 (size_of_aranges): Count !in_std_section and !second_in_std_section
32292 hunks in fdes, instead of looking at arange_table_in_use.
32293 (output_aranges): Add aranges_length argument, don't call
32294 size_of_aranges here. Instead of using aranges_table*
32295 emit ranges for fdes when !in_std_section resp.
32296 !second_in_std_section.
32297 (dw_loc_list): Break ranges crossing section switch.
32298 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
32299 use dw_fde_second_end instead of dw_fde_end as end of last range.
32300 (gen_subprogram_die): Don't call add_arange. Use
32301 dw_fde_{begin,end} for first partition and if switched
32302 section dw_fde_second_{begin,end} for the second.
32303 (var_location_switch_text_section_1,
32304 var_location_switch_text_section): New functions.
32305 (dwarf2out_begin_function): Initialize cold_text_section even
32306 when function_section () isn't text_section.
32307 (prune_unused_types): Don't walk arange_table.
32308 (dwarf2out_finish): Don't needlessly test
32309 flag_reorder_blocks_and_partition when testing cold_text_section_used.
32310 If info_section_emitted, call size_of_aranges and if it indicates
32311 non-empty .debug_aranges, call output_aranges with the computed
32312 size. Stop using removed dw_fde_struct fields, use
32313 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
32317 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
32318 create ENTRY_VALUE if incoming or address of incoming's MEM
32320 * dwarf2out.c (mem_loc_descriptor): Don't emit
32321 DW_OP_GNU_entry_value of DW_OP_fbreg.
32322 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
32323 on ENTRY_VALUE is able to find the canonical parameter VALUE.
32324 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
32325 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
32327 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
32328 is a REG_P or MEM_P with REG_P address, compute hash directly
32329 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
32330 (preserve_only_constants): Don't clear VALUES forwaring
32331 ENTRY_VALUE to some other VALUE.
32333 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
32335 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
32336 instead of GEN_INT.
32338 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
32340 * cfgexpand.c (expand_gimple_cond): Always set the source location and
32341 block before expanding the statement.
32342 (expand_gimple_stmt_1): Likewise. Set them here...
32343 (expand_gimple_stmt): ...and not here. Tidy.
32344 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
32347 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
32349 * Makefile.in: New rule for cprop.o.
32350 * gcse.c: Move constant/copy propagation to cprop.c.
32351 (compute_local_properties): Only handle expression tables.
32352 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
32353 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
32354 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
32355 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
32356 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
32357 compute_cprop_data, find_used_regs, try_replace_reg,
32358 find_avail_set, cprop_jump, constprop_register, cprop_insn,
32359 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
32360 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
32361 find_bypass_set, reg_killed_on_edge, bypass_block,
32362 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
32363 execute_rtl_cprop, pass_rtl_cprop): Move to...
32364 * cprop.c: ...here. New file, constant/copy propagation for RTL
32365 moved from gcse.c to here with minor cleanups in duplicated code.
32367 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
32369 * config/i386/i386.c (flag_opts): Fix a typo in
32370 -mavx256-split-unaligned-store.
32372 2011-03-28 Anatoly Sokolov <aesok@post.ru>
32374 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
32375 LIBCALL_VALUE): Remove macros.
32376 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32377 TARGET_FUNCTION_VALUE_REGNO_P): Define.
32378 (h8300_function_value, h8300_libcall_value,
32379 h8300_function_value_regno_p): New functions.
32381 2011-03-28 Anatoly Sokolov <aesok@post.ru>
32383 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
32385 2011-03-28 Jeff Law <law@redhat.com>
32387 * tree-ssa-threadupdate.c (redirect_edges): Call
32388 create_edge_and_update_destination_phis as needed.
32389 (create_edge_and_update_destination_phis): Accept new BB argument.
32390 All callers updated.
32391 (thread_block): Do not update the profile when threading around
32392 intermediate blocks.
32393 (thread_single_edge): Likewise.
32394 (determine_bb_domination_status): If BB is not a successor of the
32395 loop header, return NONDOMINATING.
32396 (register_jump_thread): Note when we register a jump thread around
32397 an intermediate block.
32398 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
32399 (thread_across_edge): Use it.
32401 2011-03-28 Tristan Gingold <gingold@adacore.com>
32403 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
32404 when for_return is 2.
32406 2011-03-28 Jeff Law <law@redhat.com>
32408 * var-tracking.c (canonicalize_values_mark): Delete unused
32410 (canonicalize_values_star, set_variable_part): Likewise.
32411 (clobber_variable_part, delete_variable_part): Likewise.
32413 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
32415 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
32417 2011-03-28 Martin Jambor <mjambor@suse.cz>
32419 * tree-inline.c (expand_call_inline): Do not check that destination
32421 (optimize_inline_calls): Assert that destination node is analyzed.
32422 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
32423 not call tree_lowering_passes.
32424 * cgraph.h (cgraph_analyze_function): Declare.
32425 * cgraphunit.c (cgraph_analyze_function): Make public.
32427 2011-03-28 Joseph Myers <joseph@codesourcery.com>
32429 * config/sparc/sparc-opts.h: New.
32430 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
32431 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
32432 (sparc_option_override): Store processor_type enumeration rather
32433 than string in cpu_default. Remove name and enumeration from
32434 cpu_table. Directly default -mcpu then default -mtune from -mcpu
32435 without using sparc_select. Use target_flags_explicit instead of
32437 * config/sparc/sparc.h (enum processor_type): Move to
32439 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
32440 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
32441 HeaderInclude entry.
32442 (mcpu=, mtune=): Use Var and Enum.
32443 (sparc_processor_type): New Enum and EnumValue entries.
32445 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32446 Iain Sandoe <iains@gcc.gnu.org>
32449 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
32451 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
32453 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
32454 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
32455 Insert new statements at it in lieu of STMT.
32456 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
32457 * tree-vect-stmts.c (vectorizable_store): Likewise.
32458 (vectorizable_load): Likewise.
32460 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
32462 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
32467 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
32469 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
32470 unaligned 256bit load/store.
32471 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
32472 (*avx_movdqu<avxmodesuffix>): Likewise.
32474 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32477 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
32478 * config/pa/pa.md (iordi3): Use new predicate in expander.
32479 (iorsi3): Likewise.
32481 2011-03-27 Anatoly Sokolov <aesok@post.ru>
32483 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
32484 FUNCTION_VALUE_REGNO_P): Remove macros.
32485 * config/mips/mips-protos.h (mips_function_value): Remove.
32486 * config/mips/mips.c (mips_function_value): Rename to...
32487 (mips_function_value_1): ... this. Make static. Handle receiving
32488 the function type in 'fn_decl_or_type' argument.
32489 (mips_function_value, mips_libcall_value,
32490 mips_function_value_regno_p): New function.
32491 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32492 TARGET_FUNCTION_VALUE_REGNO_P): Define.
32494 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
32496 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
32497 and -mavx256-split-unaligned-store.
32498 (ix86_option_override_internal): Split 32-byte AVX unaligned
32499 load/store by default.
32500 (ix86_avx256_split_vector_move_misalign): New.
32501 (ix86_expand_vector_move_misalign): Use it.
32503 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
32504 -mavx256-split-unaligned-store.
32506 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
32507 256bit load/store. Generate unaligned store on misaligned memory
32509 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
32511 (*avx_movdqu<avxmodesuffix>): Likewise.
32513 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
32514 -mavx256-split-unaligned-store.
32516 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
32519 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
32522 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
32524 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
32525 opno arguments with an expand_operand. Use create_input_operand.
32526 (mips_prepare_builtin_target): Delete.
32527 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
32529 (mips_expand_builtin_direct): Use create_output_operand and
32530 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
32531 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
32532 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
32534 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
32536 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
32538 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
32540 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
32542 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
32543 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
32544 basic blocks and call commit_edge_insertions directly.
32545 (fixup_abnormal_edges): Move from here to...
32546 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
32547 on the edges and return whether some have actually been inserted.
32548 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
32551 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
32553 PR rtl-optimization/48144
32554 * sel-sched-ir.c (merge_history_vect): Factor out from ...
32555 (merge_expr_data): ... here.
32556 (av_set_intersect): Rename to av_set_code_motion_filter.
32557 Update all callers. Call merge_history_vect when an expression
32558 is found in both sets.
32559 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
32561 2011-03-26 Alan Modra <amodra@gmail.com>
32563 * config/rs6000/predicates.md (word_offset_memref_op): Handle
32564 cmodel medium addresses.
32565 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
32566 64-bit gpr loads and stores.
32567 (rs6000_secondary_reload_ppc64): New function.
32568 * config/rs6000/rs6000-protos.h: Declare it.
32569 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
32571 2011-03-26 Alan Modra <amodra@gmail.com>
32574 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
32575 GNU Go in traceback table.
32577 2011-03-25 Richard Henderson <rth@redhat.com>
32579 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
32580 if there are exactly 6 operands.
32581 (set_storage_via_setmem): Similarly.
32583 2011-03-25 Kai Tietz <ktietz@redhat.com>
32585 * collect2.c (write_c_file_stat): Handle backslash
32586 as right-hand directory separator.
32587 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
32588 checking just for slash.
32589 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
32590 instead of checking for trailing slash.
32591 * gcc.c (record_temp_file): Use filename_cmp instead
32593 (do_spec_1): Likewise.
32594 (replace_outfile_spec_function): Likewise.
32595 (is_directory): Use filename_ncmp instead of strncmp.
32596 (print_multilib_info): Likewise.
32597 * gcov.c (find_source): Use filename_cmp instead
32599 (make_gcov_file_name): Fix order of slash/backslash
32601 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
32602 (add_standard_paths): Likewise.
32603 * mips-tfile.c (saber_stop): Handle backslash.
32604 * prefix.c (update_path): Use filename_ncmp instead of
32606 * profile.c (output_location): Use filename_cmp instead
32608 * read-md.c (handle_toplevel_file): Handle backslash.
32609 * tlink.c (frob_extension): Likewise.
32610 * tree-cfg.c (same_line_p): Use filename_cmp instead of
32612 * tree-dump.c (dequeue_and_dump): Handle backslash.
32613 * tree.c (get_file_function_name): Likewise.
32614 * gengtype.c (read_input_list): Likewise.
32615 (get_file_realbasename): Likewise.
32616 (get_output_file_with_visibility): Use filename_cmp
32619 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
32621 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
32624 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
32626 * fold-const.c (expr_location_or): New function.
32627 (fold_truth_not_expr): Call it.
32629 2011-03-25 Jeff Law <law@redhat.com>
32631 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
32633 * c-family/c-common.c (def_fn_type): Likewise.
32634 * emit-rtl.c (gen_rtvec): Likewise.
32635 * lto/lto-lang.c (def_fn_type): Likewise.
32637 2011-03-25 Richard Guenther <rguenther@suse.de>
32639 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
32640 also generate copies.
32641 (fini_copy_prop): Handle constant values properly.
32643 2011-03-25 Jakub Jelinek <jakub@redhat.com>
32645 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
32646 mode size instead of bitsize with DWARF2_ADDR_SIZE.
32647 (hash_loc_operands, compare_loc_operands): Handle
32648 DW_OP_GNU_entry_value.
32650 2011-03-25 Kai Tietz <ktietz@redhat.com>
32652 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
32653 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
32654 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
32655 comment and use macro TARGET_64BIT_MS_ABI instead.
32656 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
32657 and change default behavior for 32-bit MS_ABI.
32658 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
32659 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
32661 (ix86_cfun_abi): Likewise.
32662 (ix86_maybe_switch_abi): Adjust comment.
32663 (init_cumulative_args): Check for bit-ness in MS_ABI case.
32664 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
32665 instead of checking for SYSV_ABI.
32666 (ix86_nsaved_sseregs): Likewise.
32667 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
32669 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
32670 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
32671 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
32672 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
32673 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
32675 2011-03-25 Richard Guenther <rguenther@suse.de>
32677 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
32678 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
32679 (verify_gimple): Remove.
32680 * tree-cfg.c (verify_gimple_call): Merge verification
32682 (verify_gimple_phi): Merge verification from verify_stmts.
32683 (verify_gimple_label): New function.
32684 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
32685 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
32686 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
32687 (verify_stmts): Rename to verify_gimple_in_cfg.
32688 (verify_gimple_in_cfg): New function.
32689 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
32690 * tree-ssa.c (verify_ssa): Likewise.
32691 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
32693 2011-03-25 Richard Guenther <rguenther@suse.de>
32695 * passes.c (init_optimization_passes): Add FRE pass after
32698 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
32699 Andrew Stubbs <ams@codesourcery.com>
32701 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
32703 (arm_movdi_vfp_cortexa8): New pattern.
32704 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
32705 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
32706 instructions when tuning for Cortex-A8. Set attribute "arch".
32707 * config/arm/arm.md: Move include arm-tune.md up a bit.
32708 (define_attr "arch"): Add "onlya8" and "nota8" values.
32709 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
32711 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
32715 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32717 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
32718 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
32719 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
32720 * passes.c (init_optimization_passes): Move
32721 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
32723 2011-03-25 Kai Tietz <ktietz@redhat.com>
32725 * c-typeck.c (comptypes_internal): Replace target
32726 hook call of comp_type_attributes by version in tree.c file.
32727 * gimple.c (gimple_types_compatible_p_1): Likewise.
32728 * tree-ssa.c (useless_type_conversion_p): Likewise.
32729 * tree.c (build_type_attribute_qual_variant): Likewise.
32730 (attribute_value_equal): New static helper function.
32731 (comp_type_attributes): New function.
32732 (merge_attributes): Use attribute_value_equal for comparison.
32733 (attribute_list_contained): Likewise.
32734 * tree.h (comp_type_attributes): New prototype.
32736 2011-03-25 Richard Guenther <rguenther@suse.de>
32738 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
32739 of complex types at -O0.
32740 (verify_gimple_assign_binary): Likewise.
32741 (verify_gimple_assign_ternary): Likewise.
32743 2011-03-24 Mark Wielaard <mjw@redhat.com>
32745 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
32746 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
32748 2011-03-24 Mark Wielaard <mjw@redhat.com>
32751 * dwarf2out.c (output_abbrev_section): Only write table when
32752 abbrev_die_table_in_use > 1.
32754 2011-02-24 Richard Henderson <rth@redhat.com>
32756 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
32757 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
32758 (alpha_expand_unaligned_load_words): Use extql.
32759 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
32760 (emit_insxl): Handle all modes for consistency.
32762 2011-02-24 Richard Henderson <rth@redhat.com>
32764 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
32765 (alpha_expand_unaligned_load): Likewise.
32766 (alpha_expand_unaligned_store): Likewise.
32767 (alpha_expand_unaligned_load_words): Likewise.
32768 (alpha_expand_unaligned_store_words): Likewise.
32769 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
32770 (alpha_split_lock_test_and_set_12): Likewise.
32771 (print_operand, alpha_fold_builtin_extxx): Likewise.
32772 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
32773 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
32774 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
32775 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
32776 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
32777 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
32778 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
32779 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
32780 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
32781 (extwl, extll, extql): Similarly.
32782 (inswh, inslh, insqh): Similarly.
32783 (mskbl, mskwl, mskll, mskql): Similarly.
32784 (mskwh, msklh, mskqh): Similarly.
32786 2011-02-24 Richard Henderson <rth@redhat.com>
32788 * config/alpha/alpha.md (attribute isa): Add er, ner.
32789 (attribute enabled): Handle them.
32790 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
32792 2011-02-24 Richard Henderson <rth@redhat.com>
32794 * config/alpha/alpha.md (attribute isa): Add vms.
32795 (attribute enabled): Handle it.
32796 (*movsf): Merge *movsf_{nofix,fix,nofp}.
32797 (*movdf): Merge *movdf_{nofix,fix,nofp}.
32798 (*movtf): Rename from *movtf_internal for consistency.
32799 (*movsi): Merge with *movsi_nt_vms.
32800 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
32801 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
32802 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
32803 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
32805 2011-02-24 Richard Henderson <rth@redhat.com>
32807 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
32808 (extendqisi2, extendhisi2): Likewise.
32809 (extendqidi2): Simplify BWX/non-BWX expansions.
32810 (extendhidi2): Similarly.
32812 2011-02-24 Richard Henderson <rth@redhat.com>
32814 * config/alpha/alpha.md (attribute isa): New.
32815 (attribute enabled): New.
32816 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
32817 (zero_extendqisi2, zero_extendqidi2): Similarly.
32818 (zero_extendhisi2, zero_extendhidi2): Similarly.
32819 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
32821 2011-02-24 Richard Henderson <rth@redhat.com>
32823 * config/alpha/predicates.md (input_operand): Revert last change;
32824 update comment to mention 32-bit VMS rather than Windows.
32826 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32828 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
32829 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
32830 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
32831 * passes.c (init_optimization_passes): Move
32832 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
32834 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
32836 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
32838 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
32840 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
32843 2011-03-24 Jakub Jelinek <jakub@redhat.com>
32846 * simplify-rtx.c (simplify_const_unary_operation): Call
32847 real_convert when changing mode class with FLOAT_EXTEND.
32849 2011-03-24 Nick Clifton <nickc@redhat.com>
32851 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
32852 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
32853 * config/rx/rx.c (rx_option_override): Set align_jumps,
32854 align_loops and align_labels if not set by the user.
32855 (rx_align_for_label): New function.
32856 (rx_max_skip_for_label): New function.
32857 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
32858 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
32859 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
32860 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
32861 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
32863 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
32865 PR rtl-optimization/48263
32866 * optabs.c (expand_binop_directly): Reinstate convert_modes code
32867 and original commutative_p handling. Use maybe_gen_insn.
32869 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32871 * reload.c (find_reloads_subreg_address): Add address_reloaded
32872 parameter and return true there if the full address has been
32874 (find_reloads_toplev): Pass address_reloaded flag.
32875 (find_reloads_address_1): Don't use address_reloaded parameter.
32877 2011-03-24 Jeff Law <law@redhat.com>
32879 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
32880 unused variable "ann".
32881 (remove_unused_locals): Likewise.
32883 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
32886 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
32889 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32891 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
32892 for invalid symbolic addresses.
32893 (s390_secondary_reload): Don't use s390_check_symref_alignment for
32896 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
32898 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
32899 the argument in calls to fold_truth_not_expr.
32901 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32903 * tree.c (record_node_allocation_statistics): New function.
32904 (make_node_stat, copy_node_stat, build_string): Call it.
32905 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
32906 (build1_stat, build_omp_clause): Likewise.
32908 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
32910 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
32913 2011-03-24 Richard Guenther <rguenther@suse.de>
32915 PR tree-optimization/48271
32916 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
32917 blocks that still exist.
32919 2011-03-24 Richard Guenther <rguenther@suse.de>
32921 PR tree-optimization/48270
32922 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
32923 not free datarefs before ddrs.
32925 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
32927 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
32928 from the address built for a reference with variable offset.
32930 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
32933 * config/i386/i386.md (*movdf_internal_rex64): Do not split
32934 alternatives that can be handled with movq or movabsq insn.
32935 (*movdf_internal): Disable for !TARGET_64BIT.
32936 (*movdf_internal_nointeger): Ditto.
32937 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
32939 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32941 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
32942 (FUNCTION_ARG_ADVANCE): Likewise.
32943 * tm.texi.in: Change references to them to hook references.
32944 * tm.texi: Regenerate.
32945 * targhooks.c (default_function_arg): Eliminate check for target macro.
32946 (default_function_incoming_arg): Likewise.
32947 (default_function_arg_advance): Likewise.
32948 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
32949 (function_arg_advance): Likewise.
32950 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
32952 2011-03-24 Richard Guenther <rguenther@suse.de>
32954 PR middle-end/48269
32955 * tree-object-size.c (addr_object_size): Do not double-account
32956 for MEM_REF offsets.
32958 2011-03-24 Diego Novillo <dnovillo@google.com>
32960 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
32961 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
32962 (lto_input_data_block): Move from lto-opts.c. Make extern.
32964 (lto_input_string): Rename from input_string. Make extern.
32966 * lto-streamer-out.c (lto_output_string_with_length): Rename from
32967 output_string_with_length.
32968 Output 0 to indicate a non-NULL string. Update all callers to
32970 (lto_output_string): Rename from output_string. Make extern.
32972 (lto_output_decl_state_streams): Make extern.
32973 (lto_output_decl_state_refs): Make extern.
32974 * lto-streamer.h (lto_input_string): Declare.
32975 (lto_input_data_block): Declare.
32976 (lto_output_string): Declare.
32977 (lto_output_string_with_length): Declare.
32978 (lto_output_decl_state_streams): Declare.
32979 (lto_output_decl_state_refs): Declare.
32981 2011-03-24 Richard Guenther <rguenther@suse.de>
32983 PR tree-optimization/46562
32984 * tree.c (build_invariant_address): New function.
32985 * tree.h (build_invariant_address): Declare.
32986 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
32987 a renamed function moved ...
32988 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
32989 Take valueization callback parameter.
32990 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
32991 * gimple-fold.h: New file.
32992 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
32993 (ccp_fold, fold_const_aggregate_ref,
32994 fold_ctor_reference, fold_nonarray_ctor_reference,
32995 fold_array_ctor_reference, fold_string_cst_ctor_reference,
32996 get_base_constructor): Move ...
32997 * gimple-fold.c: ... here.
32998 (gimple_fold_stmt_to_constant_1): New function
32999 split out from ccp_fold. Take a valueization callback parameter.
33000 Valueize all operands.
33001 (gimple_fold_stmt_to_constant): New wrapper function.
33002 (fold_const_aggregate_ref_1): New function split out from
33003 fold_const_aggregate_ref. Take a valueization callback parameter.
33004 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
33005 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
33006 invariant POINTER_PLUS_EXPRs to invariant form.
33007 (vn_valueize): New function.
33008 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
33009 * tree-vrp.c (vrp_valueize): New function.
33010 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
33011 to fold statements to constants.
33012 * tree-ssa-pre.c (eliminate): Properly guard propagation of
33013 function declarations.
33014 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
33015 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
33017 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
33019 * config/h8300/predicates.md (jump_address_operand): Fix register
33022 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
33024 * doc/invoke.texi (max-stores-to-sink): Document.
33025 * params.h (MAX_STORES_TO_SINK): Define.
33026 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
33027 if either vectorization or if-conversion is disabled.
33028 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
33029 tree-vect-data-refs.c vect_equal_offsets.
33030 (dr_equal_offsets_p): New function.
33031 (find_data_references_in_bb): Remove static.
33032 * tree-data-ref.h (find_data_references_in_bb): Declare.
33033 (dr_equal_offsets_p): Likewise.
33034 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
33035 (vect_drs_dependent_in_basic_block): Update calls to
33036 vect_equal_offsets.
33037 (vect_check_interleaving): Likewise.
33038 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
33039 (cond_if_else_store_replacement): Rename to...
33040 (cond_if_else_store_replacement_1): ... this. Change arguments and
33042 (cond_if_else_store_replacement): New function.
33043 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
33044 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
33046 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
33049 * config/arm/arm.md (casesi): Use the gen_int_mode() function
33050 to subtract lower bound instead of GEN_INT().
33052 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
33057 * doc/extend.texi (Alignment): Move section to match order in TOC.
33058 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
33059 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
33061 2011-03-23 Jeff Law <law@redhat.com>
33063 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
33064 before removing the edge.
33066 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
33067 it may have been freed by redirect_branch_edge or
33068 redirect_edge_succ_nodup.
33070 2011-03-23 Richard Guenther <rguenther@suse.de>
33072 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
33073 (check_va_list_escapes): Likewise.
33074 (check_all_va_list_escapes): Likewise.
33076 2011-03-23 Richard Guenther <rguenther@suse.de>
33078 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
33079 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
33080 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
33081 (alias.o): Likewise.
33082 (ipa-type-escape.o): Remove.
33083 (ipa-struct-reorg.o): Likewise.
33084 (GTFILES): Remove ipa-struct-reorg.c.
33085 * alias.c: Do not include ipa-type-escape.h.
33086 * tree-ssa-alias.c: Likewise.
33087 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
33088 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
33089 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
33090 and ipa-type-escape passes.
33091 * tree-pass.h (pass_ipa_type_escape): Remove.
33092 (pass_ipa_struct_reorg): Likewise.
33093 * ipa-struct-reorg.h: Remove.
33094 * ipa-struct-reorg.c: Likewise.
33095 * ipa-type-escape.h: Likewise.
33096 * ipa-type-escape.c: Likewise.
33097 * doc/invoke.texi (-fipa-struct-reorg): Remove.
33098 (--param struct-reorg-cold-struct-ratio): Likewise.
33099 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
33100 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
33101 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
33103 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33105 * config/s390/2084.md: Enable all insn reservations also for z9_ec
33106 cpu attribute value.
33107 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
33108 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
33109 * config/s390/s390.c (processor_flags_table): New constant array.
33110 (s390_handle_arch_option): Remove.
33111 (s390_handle_option): Remove s390_handle_arch_option invocations
33112 and OPT_mwarn_framesize_ handling.
33113 (s390_option_override): Remove s390_handle_arch_option invocation.
33114 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
33116 * config/s390/s390.md (cpu attribute): Add z9_ec value.
33117 * config/s390/s390.opt (s390_tune, s390_arch)
33118 (march=): Replace s390_arch_option enum and values with
33119 processor_type. Set variable name to s390_arch. Set
33120 initialization value.
33121 (mtune=): Replace s390_arch_option with processor_type. Set
33122 variable name to s390_tune. Set initialization value.
33124 2011-03-23 Julian Brown <julian@codesourcery.com>
33126 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
33127 accesses which are not naturally aligned.
33129 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
33132 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
33134 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
33136 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
33137 parameter from "int" to "enum insn_code".
33138 (expand_operand_type): New enum.
33139 (expand_operand): New structure.
33140 (create_expand_operand): New function.
33141 (create_fixed_operand, create_output_operand): Likewise
33142 (create_input_operand, create_convert_operand_to): Likewise.
33143 (create_convert_operand_from, create_address_operand): Likewise.
33144 (create_integer_operand): Likewise.
33145 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
33146 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
33147 (expand_insn, expand_jump_insn): Likewise.
33148 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
33149 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
33150 (expand_movstr, expand_builtin___clear_cache): Likewise.
33151 (expand_builtin_lock_release): Likewise.
33152 * explow.c (allocate_dynamic_stack_space): Likewise.
33153 (probe_stack_range): Likewise. Allow check_stack to FAIL,
33154 and use the default handling in that case.
33155 * expmed.c (check_predicate_volatile_ok): Delete.
33156 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
33157 (emit_cstore): Likewise.
33158 * expr.c (emit_block_move_via_movmem): Likewise.
33159 (set_storage_via_setmem, expand_assignment): Likewise.
33160 (emit_storent_insn, try_casesi): Likewise.
33161 (emit_single_push_insn): Likewise. Allow the expansion to fail.
33162 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
33163 (expand_vec_shift_expr, expand_binop_directly): Likewise.
33164 (expand_twoval_unop, expand_twoval_binop): Likewise.
33165 (expand_unop_direct, emit_indirect_jump): Likewise.
33166 (emit_conditional_move, vector_compare_rtx): Likewise.
33167 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
33168 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
33169 (expand_sync_lock_test_and_set): Likewise.
33170 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
33171 (emit_unop_insn): Likewise.
33172 (expand_copysign_absneg): Change icode to an insn_code.
33173 (create_convert_operand_from_type): New function.
33174 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
33175 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
33176 (expand_insn, expand_jump_insn): Likewise.
33177 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
33178 than const_int_operand for operand 2.
33180 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33182 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
33185 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33187 * emit-rtl.c (emit_pattern_before_noloc): New function.
33188 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
33189 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
33190 (emit_pattern_after_noloc): New function.
33191 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
33192 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
33194 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33196 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
33197 (__ffsDI2): Likewise.
33199 2011-03-22 Richard Henderson <rth@redhat.com>
33201 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
33202 of !TARGET_ABI_OPEN_VMS.
33203 (alpha_trampoline_init, alpha_start_function): Likewise.
33204 (alpha_expand_epilogue, alpha_file_start): Likewise.
33205 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
33206 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
33207 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
33208 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
33209 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
33211 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33213 * config/s390/s390-opts.h: New.
33214 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
33215 s390_arch_flags, s390_warn_framesize, s390_stack_size,
33216 s390_stack_guard): Remove.
33217 (s390_handle_arch_option): Return void. Take enum
33218 s390_arch_option value instead of string and searching array.
33219 (s390_handle_option): Don't assert that global structures are in
33220 use. Access variables via opts pointer. Use error_at. Don't use
33221 sscanf for -mstack-guard= or -mstack-size=. Update call to
33222 s390_handle_arch_option.
33223 (s390_option_override): Update call to s390_handle_arch_option.
33224 (s390_emit_prologue): Use %d format for s390_stack_size in
33225 diagnostic. Use %wd for HOST_WIDE_INT.
33226 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
33227 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
33228 * config/s390/s390.opt (config/s390/s390-opts.h): New
33229 HeaderInclude entry.
33230 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
33231 s390_arch_flags, s390_warn_framesize): New Variable entries.
33232 (s390_arch_option): New Enum and EnumValue entries.
33233 (march=): Use Enum instead of Var.
33234 (mstack-guard=, mstack-size=): Use UInteger and Var.
33235 (mtune=): Use Enum.
33237 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33239 * config/score/score.c (score_handle_option): Don't assert that
33240 global structures are in use. Access target_flags via opts
33241 pointer. Use value of -march= option to determine target_flags
33243 * config/score/score.opt (march=): Use Enum.
33244 (score_arch): New Enum and EnumValue entries.
33246 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33248 * config/mep/mep.c (option_mtiny_specified): Remove.
33249 (mep_option_override): Move register handling for -mivc2 from
33250 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
33251 instead of option_mtiny_specified.
33252 (mep_handle_option): Access target_flags via opts pointer. Don't
33253 assert that global structures are in use. Defer part of -mivc2
33254 handling and move it to mep_option_override.
33255 * config/mep/mep.opt (IVC2): New Mask entry.
33256 (mivc2): Use Var and Defer instead of Mask.
33258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33260 * config/v850/v850-opts.h: New.
33261 * config/v850/v850.c (small_memory): Replace with
33262 small_memory_physical_max array. Make that array static const.
33263 (v850_handle_memory_option): Take integer value of argument. Take
33264 gcc_options pointer, option text and location. Return void.
33265 Update for changes to small memory structures.
33266 (v850_handle_option): Access target_flags via opts pointer. Don't
33267 assert that global structures are in use. Update calls to
33268 v850_handle_memory_option.
33269 (v850_encode_data_area): Update references to small memory settings.
33270 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
33271 (enum small_memory_type): Move to v850-opts.h.
33272 * config/v850/v850.opt (config/v850/v850-opts.h): New
33273 HeaderInclude entry.
33274 (small_memory_max): New Variable entry.
33275 (msda): Replace by pair of options msda= and msda-. Use UInteger.
33276 (mtda, mzda): Likewise.
33278 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33280 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
33281 pointer. Don't assert that global structures are in use.
33283 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33285 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
33286 via opts pointer. Don't assert that global structures are in use.
33288 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33290 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
33291 (munix=93): Use Var.
33292 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
33293 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
33294 * config/pa/pa-opts.h: New.
33295 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
33296 (pa_handle_option): Don't assert that global structures are in
33297 use. Access target_flags via opts pointer. Don't handle
33298 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
33300 (pa_option_override): Handle deferred OPT_mfixed_range_.
33302 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33304 * config/mn10300/mn10300-opts.h: New.
33305 * config/mn10300/mn10300.c (mn10300_processor,
33306 mn10300_tune_string): Remove.
33307 (mn10300_handle_option): Don't assert that global structures are
33308 in use. Access mn10300_processor via opts pointer. Don't handle
33310 * config/mn10300/mn10300.h (enum processor_type): Move to
33312 (mn10300_processor): Remove.
33313 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
33314 HeaderInclude entry.
33315 (mn10300_processor): New Variable entry.
33318 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33320 * config/microblaze/microblaze.c: Don't include opts.h.
33321 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
33322 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
33323 (mno-clearbss): Use Var and Warn.
33325 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33327 * config/m32r/m32r-opts.h: New.
33328 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
33329 (m32r_handle_option): Don't assert that global structures are in
33330 use. Access target_flags and m32r_cache_flush_func via opts
33331 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
33332 OPT_mno_flush_trap here.
33333 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
33334 include of m32r-opts.h.
33335 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
33336 HeaderInclude entry.
33337 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
33338 (mmodel=): Use Enum and Var.
33339 (m32r_model): New Enum and EnumValue entries.
33340 (mno-flush-trap): Use Var.
33341 (msdata=): Use Enum and Var.
33342 (m32r_sdata): New Enum and EnumValue entries.
33344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33346 * config/m32c/m32c.c: Don't include opts.h.
33347 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
33348 m32c_handle_option): Remove.
33349 (m32c_option_override): Check global_options_set.x_target_memregs
33350 instead of target_memregs_set.
33351 * config/m32c/m32c.h (target_memregs): Remove.
33352 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
33355 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33357 * config/iq2000/iq2000-opts.h: New.
33358 * config/iq2000/iq2000.c: Don't include opts.h.
33359 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
33360 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
33361 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
33362 HeaderInclude entry.
33363 (iq2000_tune): New Variable entry.
33364 (march=): Add comment. Use Enum.
33365 (iq2000_arch): New Enum and EnumValue entries.
33366 (mcpu=): Use Enum and Var.
33367 (iq2000_tune): New Enum and EnumValue entries.
33369 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33371 * config/ia64/ia64-opts.h: New.
33372 * config/ia64/ia64.c (ia64_tune): Remove.
33373 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
33374 here. Use error_at.
33375 (ia64_option_override): Handle deferred OPT_mfixed_range_.
33376 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
33377 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
33378 HeaderInclude entry.
33379 (ia64_tune): New Variable entry.
33380 (mfixed-range=): Use Defer and Var.
33381 (mtune=): Use Enum and Var.
33382 (ia64_tune): New Enum and EnumValue entries.
33384 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33386 * config/frv/frv-opts.h: New.
33387 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
33389 (frv_cpu_type): Remove.
33390 * config/frv/frv.c: Don't include opts.h.
33391 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
33392 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
33393 (frv_cpu_type): New Variable entry.
33394 (frv_cpu): New Enum and EnumValue entries.
33396 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33398 * config/cris/cris.c (cris_handle_option): Access target_flags via
33399 opts pointer. Don't assert that global structures are in use.
33400 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
33401 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
33403 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33405 * config/bfin/bfin-opts.h: New.
33406 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
33407 bfin_si_revision, bfin_workarounds): Remove.
33408 (bfin_cpus): Make static const.
33409 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
33410 not bfin_lib_id_given.
33411 (bfin_handle_option): Don't set bfin_lib_id_given. Access
33412 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
33413 pointer. Use error_at. Don't assert that global structures are in use.
33414 * config/bfin/bfin.h: Include bfin-opts.h.
33415 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
33416 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
33417 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
33418 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
33421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33423 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
33424 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
33425 or -msoft-float here.
33426 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
33427 -msoft-float and -mhard-float.
33428 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
33429 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
33431 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
33433 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
33434 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
33436 (LIBGCC_SPEC): Don't handle -msoft-float.
33437 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
33439 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
33441 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
33442 -mfloat-abi=*, not -msoft-float and -mhard-float.
33443 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
33445 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
33446 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
33447 mhard-float and msoft-float.
33448 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
33449 mfloat-abi=soft in comments, not mhard-float and msoft-float.
33450 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
33451 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
33453 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
33454 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
33456 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
33458 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
33461 2011-03-22 Richard Henderson <rth@redhat.com>
33463 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
33464 TARGET_ABI_WINDOWS_NT.
33465 (alpha_output_function_end_prologue): Likewise.
33466 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
33467 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
33468 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
33469 (trap, *movsi_nt_vms): Likewise.
33470 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
33471 (*tablejump_osf_nt_internal): Remove.
33472 * config/alpha/predicates.md (input_operand): Only test Pmode.
33474 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33476 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
33477 via opts pointer. Use error_at. Don't assert that global
33478 structures are in use.
33480 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33482 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
33483 (ix86_handle_option): Access ix86_isa_flags and
33484 ix86_isa_flags_explicit via opts pointer. Don't assert that
33485 global structures are in use.
33486 (ix86_function_specific_save, ix86_function_specific_restore):
33487 Update ix86_isa_flags_explicit field name.
33488 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
33489 (ix86_isa_flags_explicit): Rename TargetSave entry to
33490 x_ix86_isa_flags_explicit.
33492 2011-03-22 Richard Henderson <rth@redhat.com>
33494 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
33495 (alpha_option_override, direct_return): Likewise.
33496 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
33497 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
33498 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
33499 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
33500 (alpha_expand_epilogue, alpha_end_function): Likewise.
33501 (alpha_init_libfuncs): Likewise.
33502 (struct machine_function): Remove unicosmk members.
33503 (print_operand) ['t']: Remove.
33504 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
33505 unicosmk_output_module_name, unicosmk_output_common,
33506 current_section_align, unicosmk_output_text_section_asm_op,
33507 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
33508 unicosmk_section_type_flags, unicosmk_unique_section,
33509 unicosmk_asm_named_section, unicosmk_insert_attributes,
33510 unicosmk_output_align, unicosmk_defer_case_vector,
33511 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
33512 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
33513 unicosmk_output_ssib, unicosmk_add_call_info_word,
33514 unicosmk_extern_head, unicosmk_output_default_externs,
33515 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
33516 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
33517 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
33518 * config/alpha/alpha-protos.h: Update.
33519 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
33520 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
33521 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
33522 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
33523 (*mulsi_se, mulvsi3): Likewise.
33524 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
33525 (*divmodsi_internal, call, call_value, realign): Likewise.
33526 (moddi3, umoddi3): Likewise; remove duplicate expander.
33527 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
33528 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
33529 (*movdi_nofix): Remove r/U alternative.
33530 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
33531 * config/alpha/constraints.md ("U"): Remove.
33532 * config/alpha/predicates.md (call_operand"): Don't test
33533 TARGET_ABI_UNICOSMK.
33535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33537 * target.def (handle_option): Take gcc_options and
33538 cl_decoded_option pointers and location_t.
33539 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
33540 * doc/tm.texi: Regenerate.
33541 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
33542 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
33543 * lto-opts.c (lto_reissue_options): Generate option structure for
33544 targetm.handle_option call.
33545 * opts.c (target_handle_option): Update call to
33546 targetm.handle_option. Remove assertions about values now passed
33548 * targhooks.c (default_target_handle_option): New.
33549 * targhooks.h (default_target_handle_option): Declare.
33550 * config/alpha/alpha.c: Include opts.h.
33551 (alpha_handle_option): Update to new hook interface.
33552 * config/arm/arm.c: Include opts.h.
33553 (arm_handle_option): Update to new hook interface.
33554 * config/arm/t-arm (arm.o): Update dependencies.
33555 * config/bfin/bfin.c: Include opts.h.
33556 (bfin_handle_option): Update to new hook interface.
33557 * config/cris/cris.c: Include opts.h.
33558 (cris_handle_option): Update to new hook interface.
33559 * config/frv/frv.c: Include opts.h.
33560 (frv_handle_option): Update to new hook interface.
33561 * config/i386/i386.c: Include opts.h.
33562 (ix86_handle_option): Update to new hook interface.
33563 (ix86_valid_target_attribute_inner_p): Generate option structure
33564 for call to ix86_handle_option.
33565 * config/i386/t-i386 (i386.o): Update dependencies.
33566 * config/ia64/ia64.c: Include opts.h.
33567 (ia64_handle_option): Update to new hook interface.
33568 * config/ia64/t-ia64 (ia64.o): Update dependencies.
33569 * config/iq2000/iq2000.c: Include opts.h.
33570 (iq2000_handle_option): Update to new hook interface.
33571 * config/m32c/m32c.c: Include opts.h.
33572 (m32c_handle_option): Update to new hook interface.
33573 * config/m32r/m32r.c: Include opts.h.
33574 (m32r_handle_option): Update to new hook interface.
33575 * config/m68k/m68k.c: Include opts.h.
33576 (m68k_handle_option): Update to new hook interface.
33577 * config/mep/mep.c: Include opts.h.
33578 (mep_handle_option): Update to new hook interface.
33579 * config/microblaze/microblaze.c: Include opts.h.
33580 (microblaze_handle_option): Update to new hook interface.
33581 * config/mips/mips.c: Include opts.h.
33582 (mips_handle_option): Update to new hook interface.
33583 * config/mn10300/mn10300.c: Include opts.h.
33584 (mn10300_handle_option): Update to new hook interface.
33585 * config/pa/pa.c: Include opts.h.
33586 (pa_handle_option): Update to new hook interface.
33587 * config/pdp11/pdp11.c: Include opts.h.
33588 (pdp11_handle_option): Update to new hook interface.
33589 * config/rs6000/rs6000.c: Include opts.h.
33590 (rs6000_handle_option): Update to new hook interface.
33591 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
33592 * config/rx/rx.c: Include opts.h.
33593 (rx_handle_option): Update to new hook interface.
33594 * config/s390/s390.c: Include opts.h.
33595 (s390_handle_option): Update to new hook interface.
33596 * config/score/score.c: Include opts.h.
33597 (score_handle_option): Update to new hook interface.
33598 * config/sh/sh.c: Include opts.h.
33599 (sh_handle_option): Update to new hook interface.
33600 * config/sparc/sparc.c: Include opts.h.
33601 (sparc_handle_option): Update to new hook interface.
33602 * config/v850/v850.c: Include opts.h.
33603 (v850_handle_option): Update to new hook interface.
33605 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33607 * gcc.c (driver_unknown_option_callback): Only permit and save
33608 unknown -Wno- options.
33609 (driver_wrong_lang_callback): Save options directly instead of via
33610 driver_unknown_option_callback.
33612 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
33614 * combine.c (simplify_set): Try harder to find the best CC mode when
33615 simplifying a nested COMPARE on the RHS.
33617 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33619 * config/alpha/gnu.h: Remove.
33620 * config/arc: Remove directory.
33621 * config/arm/netbsd.h: Remove.
33622 * config/arm/t-pe: Remove.
33623 * config/crx: Remove directory.
33624 * config/i386/netbsd.h: Remove.
33625 * config/m68hc11: Remove directory.
33626 * config/m68k/uclinux-oldabi.h: Remove.
33627 * config/mcore/mcore-pe.h: Remove.
33628 * config/mcore/t-mcore-pe: Remove.
33629 * config/netbsd-aout.h: Remove.
33630 * config/rs6000/gnu.h: Remove.
33631 * config/sh/sh-symbian.h: Remove.
33632 * config/sh/symbian-base.c: Remove.
33633 * config/sh/symbian-c.c: Remove.
33634 * config/sh/symbian-cxx.c: Remove.
33635 * config/sh/symbian-post.h: Remove.
33636 * config/sh/symbian-pre.h: Remove.
33637 * config/sh/t-symbian: Remove.
33638 * config/svr3.h: Remove.
33639 * config/vax/netbsd.h: Remove.
33640 * config.build: Don't handle i[34567]86-*-pe.
33641 * config.gcc: Remove handling of deprecations for most deprecated
33643 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
33644 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
33645 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
33646 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
33647 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
33648 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
33650 * config.host: Don't handle i[34567]86-*-pe.
33651 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
33652 (ASM_SPEC32): Don't handle -mcall-gnu.
33653 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
33655 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
33656 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
33657 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
33658 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
33659 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
33660 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
33661 conditional on SYMBIAN.
33662 * configure.ac: Don't handle powerpc*-*-gnu*.
33663 * configure: Regenerate.
33664 * doc/extend.texi (interrupt attribute): Don't mention CRX.
33665 * doc/install-old.texi (m6811, m6812): Don't mention.
33666 * doc/install.texi (arc-*-elf*): Don't document multilib option.
33667 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
33668 (m68k-uclinuxoldabi): Don't mention.
33669 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
33671 (-mcall-gnu): Remove.
33672 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
33673 families): Remove constraint documentation.
33675 2011-03-22 Marius Strobl <marius@FreeBSD.org>
33677 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
33678 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
33679 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
33681 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
33684 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
33685 vector when peeking at the next token for vector, don't expand the
33688 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
33690 * config/avr/avr-protos.h (expand_epilogue): Change prototype
33691 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
33692 * config/avr/avr.c (init_cumulative_args)
33693 (avr_function_arg_advance): Use it.
33694 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
33696 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
33697 (avr_function_ok_for_sibcall): ...this new function.
33698 (avr_lookup_function_attribute1): New static Function.
33699 (avr_naked_function_p, interrupt_function_p)
33700 (signal_function_p, avr_OS_task_function_p)
33701 (avr_OS_main_function_p): Use it.
33702 * config/avr/avr.md ("sibcall", "sibcall_value")
33703 ("sibcall_epilogue"): New expander.
33704 ("*call_insn", "*call_value_insn"): New insn.
33705 ("call_insn", "call_value_insn"): Remove
33706 ("call", "call_value", "epilogue"): Change expander to handle
33709 2011-03-21 Nick Clifton <nickc@redhat.com>
33711 * doc/invoke.texi (Overall Options): Move closing brace to end of
33713 (Optimization Options): Add missing @gol.
33714 (Directory Options): Likewise.
33715 (i386 and x86-64 Options): Likewise.
33716 (RS6000 and PowerPC Options): Likewise.
33717 (i386 and x86-64 Windows Options): Likewise.
33718 (V850 Options): Add text missing from descriptions.
33720 2011-03-22 Richard Henderson <rth@redhat.com>
33722 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
33723 (avr_incoming_return_addr_rtx): New.
33724 (emit_push_byte): New.
33725 (expand_prologue): Use it. Remove incorrect dwarf annotation for
33726 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
33727 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
33728 (emit_pop_byte): New.
33729 (expand_epilogue): Use it. Pop frame pointer by bytes.
33730 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
33731 (INCOMING_RETURN_ADDR_RTX): New.
33732 (INCOMING_FRAME_SP_OFFSET): New.
33733 (ARG_POINTER_CFA_OFFSET): New.
33734 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
33735 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
33738 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
33740 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33742 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
33743 (FUNCTION_ARG_ADVANCE): Likewise.
33744 * tm.texi.in: Change references to them to hook references.
33745 * tm.texi: Regenerate.
33746 * targhooks.c (default_function_arg): Eliminate check for target
33748 (default_function_incoming_arg): Likewise.
33749 (default_function_arg_advance): Likewise.
33750 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
33751 (function_arg_advance): Likewise.
33752 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
33754 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33756 * tree.c (build_call_1): New function.
33757 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
33759 2011-03-22 Richard Guenther <rguenther@suse.de>
33761 PR tree-optimization/48228
33762 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
33763 for single-arg PHIs.
33765 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
33767 PR rtl-optimization/48143
33768 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
33769 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
33770 sse2_cvtps2pd): Likewise.
33772 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33774 * recog.c (canonicalize_change_group): Use validate_unshare_change.
33776 2011-03-22 Richard Guenther <rguenther@suse.de>
33778 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
33779 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
33780 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
33781 and REALIGN_LOAD_EXPR.
33782 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
33783 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
33784 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
33785 DOT_PROD_EXPR case ...
33786 (expand_expr_real_2): ... here.
33787 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
33788 and REALIGN_LOAD_EXPR.
33789 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
33790 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
33791 (vect_create_epilog_for_reduction): Likewise.
33792 (vectorizable_reduction): Likewise.
33793 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
33794 * tree-vect-stmts.c (vectorizable_load): Likewise.
33796 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
33798 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
33800 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33802 * config/s390/s390.c (s390_delegitimize_address): Fix offset
33803 handling for PLTOFF/GOTOFF.
33805 2011-03-22 Nick Clifton <nickc@redhat.com>
33807 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
33808 trailing backslash from the end of the macro definition.
33810 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33812 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
33815 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
33817 * expr.h (prepare_operand): Move to...
33818 * optabs.h (prepare_operand): ...here and change the insn code
33819 parameter from "int" to "enum insn_code".
33820 (insn_operand_matches): Declare.
33821 * expr.c (init_expr_target): Use insn_operand_matches.
33822 (compress_float_constant): Likewise.
33823 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
33824 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
33825 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
33826 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
33828 (gen_cond_trap): Likewise.
33829 (prepare_operand): Likewise. Change icode to an insn_code.
33830 (insn_operand_matches): New function.
33831 * reload.c (find_reloads_address_1): Use insn_operand_matches.
33832 * reload1.c (gen_reload): Likewise.
33833 * targhooks.c (default_secondary_reload): Likewise.
33835 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
33837 * config/alpha/alpha.md (unspec): New define_c_enum.
33840 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
33843 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
33844 between a call and its CALL_ARG_LOCATION note.
33846 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
33848 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
33850 2011-03-21 Jakub Jelinek <jakub@redhat.com>
33854 * c-common.c (shorten_compare): If primopN is first sign-extended
33855 to opN and then zero-extended to result type, set primopN to opN.
33857 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
33859 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
33860 for barrier handlers.
33862 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
33864 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
33865 UNSPEC constants to be in the unspec enumeration, and redefine
33866 all UNSPECV constants to be in the unspecv enumeration, so that
33867 dumps print which unspec/unspec_volatile this is.
33868 * config/rs6000/vector.md (UNSPEC_*): Ditto.
33869 * config/rs6000/paired.md (UNSPEC_*): Ditto.
33870 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
33871 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
33872 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
33874 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
33875 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
33876 UNSPECV_LWSYNC, since these are used as unspec_volatile.
33877 * config/rs6000/sync.md (isync, lwsync): Ditto.
33879 2011-03-21 Richard Guenther <rguenther@suse.de>
33881 * params.def (lto-min-partition): Fix typo.
33883 2011-03-21 Richard Guenther <rguenther@suse.de>
33886 * c-decl.c (grokdeclarator): Drop to the main variant only
33887 for array types. Drop flag_gen_aux_info check.
33889 2011-03-21 Richard Guenther <rguenther@suse.de>
33891 PR translation/47911
33892 * params.def (lto-partitions): Fix typo.
33893 (lto-min-partition): Fix wording.
33895 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
33897 * config/rs6000/t-freebsd: Remove duplication from file.
33899 2011-03-21 Richard Guenther <rguenther@suse.de>
33901 PR middle-end/47661
33902 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
33904 2011-03-21 Richard Guenther <rguenther@suse.de>
33907 * params.def (lto-partitions): Require at least 1 partition.
33909 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33911 * gthr-solaris.h: Remove.
33912 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
33913 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
33914 (LIB_SPEC): Likewise.
33915 * config/sol2.opt (threads): Remove.
33916 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
33917 (sparc*-*-solaris2*): Likewise.
33918 * configure.ac (enable_threads): Enable solaris support.
33919 * configure: Regenerate.
33920 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
33921 * doc/install.texi (Configuration, --enable-threads=lib): Remove
33924 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33926 * config.gcc: Obsolete *-*-solaris2.8*.
33927 * doc/install.texi (Specific, *-*-solaris2*): Document it.
33929 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33932 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
33933 reference. Solaris 8 perl works.
33935 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33938 * doc/install.texi (Prerequisites): Move jar etc. up.
33939 Explain support library version requirements.
33941 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33944 * doc/install.texi (Prerequisites): Move Perl to build
33945 requirements. Always necessary on Solaris 2 with Sun ld.
33947 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33949 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
33951 (Specific, i?86-*-solaris2.[89]): Likewise.
33952 (Specific, i?86-*-solaris2.10): Likewise.
33953 (Specific, mips-sgi-irix6): Likewise.
33954 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
33955 Update for binutils 2.21.
33957 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33959 * configure.ac (gcc_cv_lto_plugin): Fix typo.
33960 Allow -fuse-linker-plugin for non-default plugin linker.
33961 * configure: Regenerate.
33963 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
33966 * gengtype.c (files_rules): Added rule for cp/parser.h.
33968 2011-03-21 Jakub Jelinek <jakub@redhat.com>
33971 * config/s390/s390.c (s390_delegitimize_address): Don't call
33972 lowpart_subreg if orig_x has BLKmode.
33974 2011-03-21 Kai Tietz <ktietz@redhat.com>
33977 * doc/plugins.texi: Adjust documentation for plugin register_callback.
33978 * tree.h (attribute_spec): Add new member affects_type_identity.
33979 * attribs.c (empty_attribute_table): Adjust attribute_spec
33981 * config/alpha/alpha.c: Likewise.
33982 * config/arc/arc.c: Likewise.
33983 * config/arm/arm.c: Likewise.
33984 * config/avr/avr.c: Likewise.
33985 * config/bfin/bfin.c: Likewise.
33986 * config/crx/crx.c: Likewise.
33987 * config/darwin.h: Likewise.
33988 * config/h8300/h8300.c: Likewise.
33989 * config/i386/cygming.h: Likewise.
33990 * config/i386/i386.c: Likewise.
33991 * config/ia64/ia64.c: Likewise.
33992 * config/m32c/m32c.c: Likewise.
33993 * config/m32r/m32r.c: Likewise.
33994 * config/m68hc11/m68hc11.c: Likewise.
33995 * config/m68k/m68k.c: Likewise.
33996 * config/mcore/mcore.c: Likewise.
33997 * config/mep/mep.c: Likewise.
33998 * config/microblaze/microblaze.c: Likewise.
33999 * config/mips/mips.c: Likewise.
34000 * config/rs6000/rs6000.c: Likewise.
34001 * config/rx/rx.c: Likewise.
34002 * config/sh/sh.c: Likewise.
34003 * config/sol2.h: Likewise.
34004 * config/sparc/sparc.c: Likewise.
34005 * config/spu/spu.c: Likewise.
34006 * config/stormy16/stormy16.c: Likewise.
34007 * config/v850/v850.c: Likewise.
34009 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34011 * simplify-rtx.c (simplify_binary_operation_1): Handle
34012 (xor (and A B) C) case when B and C are both constants.
34014 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
34016 * tree-dfa.c (add_referenced_var): Fix typo in comment.
34018 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
34021 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
34023 2011-03-20 Jakub Jelinek <jakub@redhat.com>
34025 PR rtl-optimization/48156
34026 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
34027 assume df and df_lr are not NULL.
34029 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34032 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
34033 between a call and its CALL_ARG_LOCATION note.
34035 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
34038 * config/sh/sh.c (find_barrier): Don't emit a constant pool
34039 between a call and its corresponding CALL_ARG_LOCATION note.
34041 2011-03-19 Anatoly Sokolov <aesok@post.ru>
34043 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
34044 instead of loop. Use HARD_REGISTER_NUM_P predicate.
34045 * haifa-sched.c (setup_ref_regs): Ditto.
34046 * caller-save.c (add_used_regs_1): Ditto.
34047 * dse.c (look_for_hardregs): Ditto.
34048 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
34049 * sched-rgn.c (check_live_1): Ditto.
34051 2011-03-18 Joseph Myers <joseph@codesourcery.com>
34053 * c-decl.c (diagnose_mismatched_decls): Give an error for
34054 redefining a typedef with variably modified type.
34056 2011-03-18 Joseph Myers <joseph@codesourcery.com>
34058 * c-decl.c (grokfield): Don't allow typedefs for structures or
34059 unions with no tag by default.
34060 * doc/extend.texi (Unnamed Fields): Update.
34062 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
34064 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
34065 Rewrite using indirect functions.
34066 (lwp_slwpcb): Ditto.
34067 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
34068 (avx_vinsertf128<mode>): Ditto.
34070 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34072 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
34075 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34077 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
34078 splitting between a call and its corresponding CALL_ARG_LOCATION note.
34080 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
34082 PR rtl-optimization/48170
34083 * gcse.c (hoist_code): Remove bogus asserts.
34085 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
34087 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
34088 computation for prologue/epilogue.
34090 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34092 * Makefile.in (check-consistency): Remove.
34094 2011-03-18 Jakub Jelinek <jakub@redhat.com>
34097 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
34098 arange_table_in_use is 0, but either text_section_used or
34099 cold_text_section_used is true. Don't call it if
34100 !info_section_emitted.
34102 2011-03-18 Anatoly Sokolov <aesok@post.ru>
34104 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
34105 FUNCTION_VALUE_REGNO_P): Remove.
34106 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
34108 * config/avr/avr.c (avr_ret_register): Make static inline.
34109 (avr_function_value_regno_p): New function.
34110 (avr_libcall_value): Make static. Add 'func' argument.
34111 (avr_function_value): Make static. Rename 'func' argument to
34112 'fn_decl_or_type', forward it to avr_libcall_value. Call
34113 avr_ret_register function instead of RET_REGISTER macro.
34114 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
34116 2011-03-18 Jason Merrill <jason@redhat.com>
34119 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
34121 2011-03-18 Richard Guenther <rguenther@suse.de>
34123 * doc/install.texi (--enable-gold): Remove.
34124 (--with-plugin-ld): Document.
34125 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
34127 2011-03-18 Andrew Pinski <pinskia@gmail.com>
34129 PR middle-end/47790
34130 * expr.c (optimize_bitfield_assignment_op): Revamp to work
34131 again after expansion changes.
34133 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
34135 * combine.c (try_combine): Do simplification only call of
34136 subst() on i2 even when i1 is present. Update comments.
34138 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
34140 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
34141 and UNSPEC_PCREL_SYMOFF.
34143 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34145 * config/s390/s390.md: Use define_c_enum for the unspec constant
34148 2011-03-18 Richard Henderson <rth@redhat.com>
34149 Jakub Jelinek <jakub@redhat.com>
34152 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
34153 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
34155 2011-03-17 Anatoly Sokolov <aesok@post.ru>
34157 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34158 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
34159 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
34160 Change return type to bool.
34161 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34163 2011-03-17 Jakub Jelinek <jakub@redhat.com>
34166 * var-tracking.c (prepare_call_arguments): If CALL target
34167 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
34168 pc instead of looking it up using cselib_lookup and use
34169 Pmode for it if x has VOIDmode.
34170 * dwarf2out.c (gen_subprogram_die): If also both first and
34171 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
34174 * function.c (assign_parms): For data.passed_pointer parms
34175 use MEM of data.entry_parm instead of data.entry_parm itself
34176 as DECL_INCOMING_RTL.
34177 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
34178 also when passed and declared mode is the same, DECL_RTL
34179 is a MEM with pseudo as address and DECL_INCOMING_RTL is
34182 2011-03-16 Jeff Law <law@redhat.com>
34184 PR rtl-optimization/37273
34185 * ira-costs.c (scan_one_insn): Detect constants living in memory and
34186 handle them like argument loads from stack slots. Do not double
34187 count memory for memory constants and argument loads from stack slots.
34189 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
34192 * var-tracking.c (prepare_call_arguments): Check SUBREG.
34194 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
34197 * config/i386/i386.opt: Add Save to -mavx and -mfma.
34199 2011-03-17 Jakub Jelinek <jakub@redhat.com>
34202 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
34204 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
34205 Clear call_arg_locations and call_arg_loc_last always.
34207 PR middle-end/48152
34208 * var-tracking.c (prepare_call_arguments): If argument needs to be
34209 passed by reference, adjust argtype and mode.
34211 2011-03-17 Richard Guenther <rguenther@suse.de>
34213 PR middle-end/48134
34214 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
34215 a value make sure to fold the statement.
34217 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
34220 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
34221 return condition with !cfun->calls_alloca.
34223 2011-03-17 Richard Guenther <rguenther@suse.de>
34226 * lto-cgraph.c (input_overwrite_node): Clear the abstract
34227 origin for decls in other ltrans units.
34228 (input_varpool_node): Likewise.
34230 2011-03-17 Richard Guenther <rguenther@suse.de>
34232 PR middle-end/48165
34233 * tree-object-size.c (compute_object_offset): Properly return
34234 the offset operand of MEM_REFs as sizetype.
34236 2011-03-17 Jakub Jelinek <jakub@redhat.com>
34238 PR rtl-optimization/48141
34239 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
34240 * dse.c: Include params.h.
34241 (active_local_stores_len): New variable.
34242 (add_wild_read, dse_step1): Clear it when setting active_local_stores
34244 (record_store, check_mem_read_rtx): Decrease it when removing
34246 (scan_insn): Likewise. Increase it when adding to chain, if it
34247 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
34248 set active_local_stores to NULL before the addition.
34249 * Makefile.in (dse.o): Depend on $(PARAMS_H).
34251 PR rtl-optimization/48141
34252 * dse.c (record_store): If no positions are needed in an insn
34253 that cannot be deleted, at least unchain it from active_local_stores.
34255 2011-03-16 Dodji Seketeli <dodji@redhat.com>
34258 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
34259 (lookup_type_die_strip_naming_typedef): ... here.
34260 (get_context_die): Use it.
34261 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
34262 the anonymous struct named by the naming typedef.
34264 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
34267 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
34268 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
34270 2011-03-16 Jeff Law <law@redhat.com>
34272 * tree-vrp.c (identify_jump_threads): Slightly simplify type
34273 check for operands of conditional. Allow type to be a pointer.
34275 2011-03-16 Richard Guenther <rguenther@suse.de>
34277 PR tree-optimization/48149
34278 * fold-const.c (fold_binary_loc): Fold
34279 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
34281 2011-03-16 Richard Guenther <rguenther@suse.de>
34283 PR tree-optimization/26134
34284 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
34285 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
34286 (non_rewritable_mem_ref_base): Handle complex type component
34287 accesses, constrain offsets for vector and complex extracts
34290 2011-03-16 Richard Guenther <rguenther@suse.de>
34292 PR tree-optimization/48146
34293 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
34294 operands avoiding the need for renaming.
34296 2011-03-16 Richard Guenther <rguenther@suse.de>
34298 * gimple-fold.c (maybe_fold_reference): Open-code relevant
34299 constant folding. Move MEM_REF canonicalization first.
34300 Rely on fold_const_aggregate_ref for initializer folding.
34301 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
34303 2011-03-16 Jakub Jelinek <jakub@redhat.com>
34305 PR middle-end/48136
34306 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
34307 arg0/arg1 or their arguments are always fold converted to matching
34310 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
34313 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34316 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
34317 Handle in-tree gold.
34318 (ld_vers): Extract binutils version for gold.
34319 (gcc_cv_ld_hidden): Handle gold here.
34320 (gcc_cv_lto_plugin): Determine level of linker plugin support.
34321 * configure: Regenerate.
34322 * config.in: Regenerate.
34323 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
34324 -fuse-linker-plugin otherwise.
34325 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
34326 (LINK_COMMAND_SPEC): Use it.
34327 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
34329 2011-03-16 Jakub Jelinek <jakub@redhat.com>
34331 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
34332 * calls.c: Remove debug.h include.
34333 (emit_call_1): Don't call virtual_call_token debug hook.
34334 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
34335 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
34336 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
34337 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
34338 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
34339 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
34340 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
34341 dwarf2out_virtual_call): Remove.
34342 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
34343 copy_call_info and virtual_call hooks.
34344 (dwarf2out_init): Don't initialize vcall_insn_table,
34345 debug_dcall_section and debug_vcall_section.
34346 (prune_unused_types): Don't mark nodes from dcall_table.
34347 (dwarf2out_finish): Don't output dcall or vcall tables.
34348 * final.c (final_scan_insn): Don't call direct_call or
34349 virtual_call debug hooks.
34350 * debug.h (struct gcc_debug_hooks): Remove direct_call,
34351 virtual_call_token, copy_call_info and virtual_call hooks.
34352 (debug_nothing_uid): Remove prototype.
34353 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
34354 copy_call_info and virtual_call hooks.
34355 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
34356 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
34357 * debug.c (do_nothing_debug_hooks): Likewise.
34358 (debug_nothing_uid): Remove.
34359 * doc/invoke.texi (-fenable-icf-debug): Remove.
34360 * common.opt (-fenable-icf-debug): Likewise.
34362 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
34363 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
34364 call's MEM. Handle functions returning aggregate through a hidden
34365 first pointer. For virtual calls add clobbered pc to call arguments
34367 * dwarf2out.c (gen_subprogram_die): Emit
34368 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
34372 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
34373 * rtl.h (ENTRY_VALUE_EXP): Define.
34374 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
34375 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
34376 * print-rtl.c (print_rtx): Likewise.
34377 * gengtype.c (adjust_field_rtx_def): Likewise.
34378 * var-tracking.c (vt_add_function_parameter): Adjust
34379 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
34380 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
34381 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
34382 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
34383 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
34385 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
34386 Call var_location debug hook even on CALL_INSNs.
34387 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
34388 * rtl.def (ENTRY_VALUE): New.
34389 * dwarf2out.c: Include cfglayout.h.
34390 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
34391 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
34392 (struct call_arg_loc_node): New type.
34393 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
34394 tail_call_site_count): New variables.
34395 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
34396 DW_TAG_GNU_call_site_parameter.
34397 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
34398 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
34399 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
34400 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
34401 and DW_AT_GNU_all_source_call_sites.
34402 (mem_loc_descriptor): Handle ENTRY_VALUE.
34403 (add_src_coords_attributes): Don't add enything if
34404 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
34405 (dwarf2out_abstract_function): Save and clear call_arg_location,
34406 call_site_count and tail_call_site_count around dwarf2out_decl call.
34407 (gen_call_site_die): New function.
34408 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
34409 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
34410 (dwarf2out_function_decl): Clear call_arg_locations,
34411 call_arg_loc_last, set call_site_count and tail_call_site_count
34412 to -1 and free block_map.
34413 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
34414 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
34415 followed by any real instructions.
34416 (dwarf2out_begin_function): Set call_site_count and
34417 tail_call_site_count to 0.
34418 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
34419 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
34420 attempt to force a DIE for it and worst case remove the attribute.
34421 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
34422 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
34424 * var-tracking.c: Include tm_p.h.
34425 (vt_stack_adjustments): For calls call note_register_arguments.
34426 (argument_reg_set): New variable.
34427 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
34428 ensure the VALUE is resolved.
34429 (call_arguments): New variable.
34430 (prepare_call_arguments): New function.
34431 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
34432 (struct expand_loc_callback_data): Add ignore_cur_loc field.
34433 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
34434 always use the best expression.
34435 (vt_expand_loc): Add ignore_cur_loc argument.
34436 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
34437 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
34438 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
34439 note for all calls.
34440 (vt_add_function_parameter): Use cselib_lookup_from_insn.
34441 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
34442 argument. Don't call cselib_preserve_only_values and
34443 cselib_reset_table.
34444 (note_register_arguments): New function.
34445 (vt_initialize): Compute argument_reg_set. Call
34446 vt_add_function_parameters before processing basic blocks instead of
34447 afterwards. For calls call prepare_call_arguments before calling
34448 cselib_process_insn.
34449 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
34450 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
34451 (var-tracking.o): Depend on $(TM_P_H).
34452 * cfglayout.h (insn_scope): New prototype.
34453 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
34454 * cfglayout.c (insn_scope): No longer static.
34455 * insn-notes.def (CALL_ARG_LOCATION): New.
34456 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
34457 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
34458 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
34459 nothing for DECL_EXTERNAL BLOCK_VARS.
34461 2011-03-16 Alan Modra <amodra@gmail.com>
34464 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
34465 create invalid offset address for vsx splat insn.
34466 * config/rs6000/predicates.md (splat_input_operand): New.
34467 * config/rs6000/vsx.md (vsx_splat_*): Use it.
34469 2011-03-15 Xinliang David Li <davidxl@google.com>
34472 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
34473 (normalize_preds): New function.
34474 (is_use_properly_guarded): Normalize def predicates.
34476 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34479 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
34480 in the output template.
34482 2011-03-15 Richard Guenther <rguenther@suse.de>
34484 PR middle-end/47650
34485 * tree-pretty-print.c (dump_function_declaration): Properly
34486 dump unprototyped and varargs function types.
34488 2011-03-15 Richard Guenther <rguenther@suse.de>
34490 PR tree-optimization/13954
34491 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
34494 2011-03-15 Richard Guenther <rguenther@suse.de>
34496 PR tree-optimization/48037
34497 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
34498 selects into BIT_FIELD_REFs.
34499 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
34502 2011-03-15 Jakub Jelinek <jakub@redhat.com>
34504 PR tree-optimization/48129
34505 * builtins.c (fold_builtin_snprintf): Convert to type of
34506 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
34507 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
34509 2011-03-15 Richard Guenther <rguenther@suse.de>
34511 PR tree-optimization/41490
34512 * tree-ssa-dce.c (propagate_necessity): Handle returns without
34513 value but with VUSE.
34514 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
34516 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
34517 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
34518 * tree-tailcall.c (find_tail_calls): Ignore returns.
34520 2011-03-15 Richard Guenther <rguenther@suse.de>
34522 PR middle-end/48031
34523 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
34524 or variable-indexed array accesses when in gimple form.
34526 2011-03-15 Richard Guenther <rguenther@suse.de>
34528 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
34530 2011-03-15 Alan Modra <amodra@gmail.com>
34533 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
34534 presume symbol_refs without a symbol_ref_decl are suitably
34535 aligned, nor other trees we may see here. Handle anchor symbols.
34536 (legitimate_constant_pool_address_p): Comment. Add mode param.
34537 Check cmodel=medium addresses. Adjust all calls.
34538 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
34539 creating cmodel=medium optimized access to locals.
34540 * config/rs6000/constraints.md (R): Pass QImode to
34541 legitimate_constant_pool_address_p.
34542 * config/rs6000/predicates.md (input_operand): Pass mode to
34543 legitimate_constant_pool_address_p.
34544 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
34547 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34550 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
34551 64-bit constants being loaded into registers other than GPRs such
34552 as loading 0 into a VSX register.
34554 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34556 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
34558 2011-03-14 Jakub Jelinek <jakub@redhat.com>
34560 PR middle-end/47917
34561 * builtins.c (fold_builtin_snprintf): New function.
34562 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
34563 (fold_builtin_4): Likewise.
34565 PR middle-end/38878
34566 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
34567 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
34568 and C - X == X also strip nops from +/-/p+ operand.
34569 When optimizing -X == C, fold C to arg0's type.
34572 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
34573 emit it as add_AT_int instead of add_AT_unsigned.
34575 2011-03-14 Tom Tromey <tromey@redhat.com>
34577 * unwind-dw2.c: Include sys/sdt.h if it exists.
34578 (_Unwind_DebugHook): Use STAP_PROBE2.
34579 * config.in, configure: Rebuild.
34580 * configure.ac: Check for sys/sdt.h.
34582 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
34584 * config/i386/i386.md (ROUND_FLOOR): New constant.
34585 (ROUND_CEIL): Ditto.
34586 (ROUND_TRUNC): Ditto.
34587 (ROUND_MXCSR): Ditto.
34588 (ROUND_NO_EXC): Ditto.
34589 (rint<mode>2): Use new defines instead of numerical constants.
34590 (floor<mode>2): Ditto.
34591 (ceil<mode>2): Ditto.
34592 (btrunc<mode>2): Ditto.
34593 * config/i386/i386-builtin-types.def: Define ROUND function type
34595 * config/i386/i386.c (enum ix86_builtins): Add
34596 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
34597 (struct builtin_description): Add
34598 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
34599 (ix86_expand_sse_round): New static function.
34600 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
34602 (ix86_builtin_vectorized_function): Handle
34603 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
34605 2011-03-14 Tom Tromey <tromey@redhat.com>
34607 * c-parser.c (c_parser_asm_string_literal): Clear
34608 warn_overlength_strings.
34610 2011-03-14 Tom Tromey <tromey@redhat.com>
34612 * c-parser.c (disable_extension_diagnostics): Save
34613 warn_overlength_strings.
34614 (restore_extension_diagnostics): Restore warn_overlength_strings.
34616 2011-03-14 Jakub Jelinek <jakub@redhat.com>
34618 * BASE-VER: Change to 4.7.0.
34620 2011-03-14 Richard Guenther <rguenther@suse.de>
34622 PR middle-end/48098
34623 * tree.c (build_vector_from_val): Adjust assert to requirements
34626 2011-03-14 Jakub Jelinek <jakub@redhat.com>
34629 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
34631 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
34633 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
34634 terms of target_flags_explicit. Adjust copyright year.
34636 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
34637 * config/rs6000/t-freebsd: New file. Add override for
34640 2011-03-13 Chris Demetriou <cgd@google.com>
34642 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
34643 (-fno-diagnostics-show-option): this, to reflect current default.
34644 (-Werror=): Update text about -fno-diagnostics-show-option.
34646 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
34649 * config/rs6000/predicates.md (easy_vector_constant_add_self,
34650 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
34651 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
34652 mode is not V2DImode or V2DFmode.
34653 (vspltis_constant): Do not handle V2DImode and V2DFmode.
34654 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
34655 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
34657 (movdi_internal64): Likewise.
34659 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
34661 PR tree-optimization/47127
34662 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
34664 (set_cloog_options): Same.
34665 (scop_to_clast): Same.
34666 (print_clast_stmt): Do not call cloog_state_malloc and
34668 (print_generated_program): Same.
34670 * graphite-clast-to-gimple.h (cloog_state): Declared.
34671 (scop_to_clast): Adjust declaration.
34672 * graphite.c (cloog_state): Defined here.
34673 (graphite_initialize): Call cloog_state_malloc.
34674 (graphite_finalize): Call cloog_state_free.
34676 2011-03-11 Jason Merrill <jason@redhat.com>
34678 * attribs.c (lookup_attribute_spec): Take const_tree.
34681 2011-03-11 Joseph Myers <joseph@codesourcery.com>
34683 * config/sparc/sparc.c (sparc_option_override): Use
34684 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
34686 2011-03-11 Richard Guenther <rguenther@suse.de>
34688 PR tree-optimization/48067
34689 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
34690 multiplication result will be only used once on the target
34693 2011-03-11 Richard Guenther <rguenther@suse.de>
34695 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
34697 2011-03-11 Richard Guenther <rguenther@suse.de>
34700 * tree.c (find_decls_types_r): Do not walk types only reachable
34701 from IDENTIFIER_NODEs.
34703 2011-03-11 Jakub Jelinek <jakub@redhat.com>
34705 PR middle-end/48044
34706 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
34707 all vnode->force_output nodes as needed.
34709 2011-03-11 Jason Merrill <jason@redhat.com>
34712 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
34713 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
34715 2011-03-11 Martin Jambor <mjambor@suse.cz>
34717 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
34720 2011-03-11 Jakub Jelinek <jakub@redhat.com>
34722 PR tree-optimization/48063
34723 * ipa-inline.c (cgraph_decide_inlining): Don't try to
34724 inline functions called once if !tree_can_inline_p (node->callers).
34726 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
34728 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
34730 * config/score/score3.c: Delete.
34731 * config/score/score3.h: Delete.
34732 * config/score/mul-div.S: Delete.
34733 * config/score/sfp-machine.h: Add new file.
34734 * config/score/constraints.md: Add new file.
34735 * config/score/t-score-softfp: Add new file.
34736 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
34737 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
34738 (score7_extra_constraint): Delete.
34739 (score7_option_override): Remove unused code.
34740 * config/score/score.c: Remove score3 and score5 define and code.
34741 * config/score/score.h: Remove score3 and score5 define and code.
34742 * config/score/score.md: Remove score3 template and unusual insn.
34743 * config/score/score.opt: Remove score3 and score5 options.
34745 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34747 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
34748 when _HPUX_SOURCE is defined.
34749 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
34751 2011-03-10 Jason Merrill <jason@redhat.com>
34754 * stor-layout.c (layout_type): Don't set structural equality
34755 on arrays of incomplete type.
34756 * tree.c (type_hash_eq): Handle comparing them properly.
34758 2011-03-10 Jakub Jelinek <jakub@redhat.com>
34761 * config/s390/s390.c (s390_delegitimize_address): Make sure the
34762 result mode matches original rtl mode.
34764 2011-03-10 Nick Clifton <nickc@redhat.com>
34766 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
34767 (andsi3, andsi3_flags): Fix timings for three operand alternative.
34769 2011-03-09 Jakub Jelinek <jakub@redhat.com>
34771 PR rtl-optimization/47866
34772 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
34773 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
34774 if target wasn't scalar.
34775 * function.c (assign_stack_temp_for_type): Assert that neither
34776 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
34777 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
34779 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
34781 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34783 * config/s390/s390-protos.h (s390_label_align): New prototype.
34784 * config/s390/s390.c (s390_label_align): New function.
34785 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
34787 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34790 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
34791 V2DI/V2DF constants. Only all 0's or all 1's are easy.
34792 (output_vec_const_move): Ditto.
34794 2011-03-08 Anatoly Sokolov <aesok@post.ru>
34796 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
34797 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
34798 * config/mips/mips.c (mips_preferred_reload_class): Make static.
34799 Change 'rclass' argument and result type to reg_class_t.
34800 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34802 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
34804 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
34805 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
34806 (TARGET_MEMORY_MOVE_COST): Define.
34807 (avr_register_move_cost, avr_memory_move_cost): New Functions.
34809 2011-03-08 Jakub Jelinek <jakub@redhat.com>
34812 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
34815 PR tree-optimization/48022
34816 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
34819 2011-03-07 Jakub Jelinek <jakub@redhat.com>
34822 * var-tracking.c (find_use_val): Return NULL for
34823 cui->sets && cui->store_p BLKmode MEMs.
34825 2011-03-07 Anatoly Sokolov <aesok@post.ru>
34827 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
34829 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
34830 xstormy16_print_operand_address): Remove.
34831 * config/stormy16/stormy16.c (xstormy16_print_operand,
34832 xstormy16_print_operand_address): Make static.
34833 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
34835 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
34838 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
34839 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
34842 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
34845 * cfgloopmanip.c (fix_bb_placements): Return immediately
34846 if FROM is BASE_LOOP's header.
34848 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
34850 * gimplify.c (gimplify_function_tree): Fix building calls
34851 to __builtin_return_address.
34853 2011-03-07 Alan Modra <amodra@gmail.com>
34855 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
34856 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
34857 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
34858 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
34860 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
34861 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
34862 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
34863 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
34864 * config/rs6000/rs6000.c
34865 (rs6000_elf_end_indicate_exec_stack): Rename to..
34866 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
34867 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
34868 (rs6000_file_start): ..here.
34869 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
34870 file scope variables.
34871 (call_ABI_of_interest): New function.
34872 (init_cumulative_args): Set above vars when function return value
34873 is a float, vector, or small struct.
34874 (rs6000_function_arg_advance_1): Likewise for function args.
34875 (rs6000_va_start): Set rs6000_passes_float if variable arg function
34876 references float args.
34878 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
34880 * doc/cfg.texi: Remove "See" before @ref.
34881 * doc/invoke.texi: Likewise.
34883 2011-03-05 Jason Merrill <jason@redhat.com>
34885 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
34887 2011-03-05 Anthony Green <green@moxielogic.com>
34889 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
34891 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
34893 PR rtl-optimization/47899
34894 * cfgloopmanip.c (fix_bb_placements): Fix first argument
34895 to flow_loop_nested_p when moving the loop upward.
34897 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
34900 * arm.md (movhi_insn_arch4): Accept any immediate constant.
34902 2011-03-05 Jakub Jelinek <jakub@redhat.com>
34904 PR tree-optimization/47967
34905 * ipa-cp.c (build_const_val): Return NULL instead of creating
34906 VIEW_CONVERT_EXPR for mismatching sizes.
34907 (ipcp_create_replace_map): Return NULL if build_const_val failed.
34908 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
34909 give up on versioning.
34911 2011-03-05 Alan Modra <amodra@gmail.com>
34914 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
34915 full cmodel medium/large lo_sum + high addresses.
34917 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34919 * config/s390/s390.c (s390_decompose_address): Reject non-literal
34920 pool references in UNSPEC_LTREL_OFFSET.
34922 2011-03-04 Jan Hubicka <jh@suse.cz>
34925 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
34926 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
34927 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
34929 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
34930 cgraph_add_thunk): Add node pointers.
34931 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
34932 associated to right node.
34933 (input_node): Update use of cgraph_same_body_alias
34934 and cgraph_add_thunk.
34936 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
34938 * config/i386/i386.opt (mprefer-avx128): New flag.
34939 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
34940 modes when the flag -mprefer-avx128 is on.
34942 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
34944 * dwarf2out.c (compare_loc_operands): Fix address handling.
34946 2011-03-04 Alan Modra <amodra@gmail.com>
34948 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
34950 2011-03-04 Richard Guenther <rguenther@suse.de>
34952 PR middle-end/47968
34953 * expmed.c (extract_bit_field_1): Prefer vector modes that
34954 vec_extract patterns can handle.
34956 2011-03-04 Richard Guenther <rguenther@suse.de>
34958 PR middle-end/47975
34959 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
34961 2011-03-04 Richard Henderson <rth@redhat.com>
34963 * explow.c (emit_stack_save): Remove 'after' parameter.
34964 (emit_stack_restore): Likewise.
34965 * expr.h: Update to match.
34966 * builtins.c, calls.c, stmt.c: Likewise.
34967 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
34968 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
34969 * function.c (expand_function_end): Insert the emit_stack_save
34970 sequence before parm_birth_insn instead of after.
34972 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
34974 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
34975 (ssse3_pmaddubsw128): Ditto.
34976 (ssse3_pmaddubsw): Ditto.
34978 2011-03-03 Steve Ellcey <sje@cup.hp.com>
34980 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
34982 2011-03-03 Jakub Jelinek <jakub@redhat.com>
34985 * gimplify.c (omp_add_variable): Only call omp_notice_variable
34986 on TYPE_SIZE_UNIT if it is a DECL.
34989 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
34990 first operand is not is_gimple_mem_ref_addr, try to fold it.
34991 If the operand still isn't is_gimple_mem_ref_addr, clear
34994 2011-03-03 Richard Guenther <rguenther@suse.de>
34996 PR middle-end/47283
34997 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
34999 (refs_may_alias_p_1): For release branches return true if
35000 we are confused by our input.
35002 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35004 * config/s390/s390.c (s390_function_value): Rename to ...
35005 (s390_function_and_libcall_value): ... this.
35006 (s390_function_value): New function.
35007 (s390_libcall_value): New function.
35008 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
35009 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
35010 target macro definitions.
35011 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
35013 2011-03-02 Joseph Myers <joseph@codesourcery.com>
35015 * config/i386/freebsd64.h (CC1_SPEC): Define.
35016 * config/i386/linux64.h (CC1_SPEC): Define.
35017 * config/i386/x86-64.h (CC1_SPEC): Don't define.
35019 2011-03-02 Anatoly Sokolov <aesok@post.ru>
35021 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
35023 * config/stormy16/stormy16.c: Include reload.h.
35024 (xstormy16_memory_move_cost): New function.
35025 (TARGET_MEMORY_MOVE_COST): Define.
35027 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
35029 PR rtl-optimization/47925
35030 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
35031 with side effects. Remove the more-specific check for volatile asms.
35033 2011-03-02 Alan Modra <amodra@gmail.com>
35036 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
35037 toc relative addresses for valid offsets.
35039 2011-03-01 Richard Guenther <rguenther@suse.de>
35041 PR tree-optimization/47890
35042 * tree-vect-loop.c (get_initial_def_for_induction): Set
35043 related stmt properly.
35045 2011-03-01 Richard Guenther <rguenther@suse.de>
35048 * lto-streamer.c (lto_record_common_node): Also register
35049 the canonical type.
35051 2011-03-01 Richard Guenther <rguenther@suse.de>
35054 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
35055 Do not stream DECL_ABSTRACT_ORIGIN.
35056 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
35057 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
35058 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
35059 Do not stream DECL_ABSTRACT_ORIGIN.
35060 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
35061 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
35063 2011-02-28 Anatoly Sokolov <aesok@post.ru>
35065 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
35066 FUNCTION_VALUE_REGNO_P): Remove.
35067 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
35068 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
35069 Add 'outgoing' argument.
35070 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
35072 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
35073 TARGET_FUNCTION_VALUE_REGNO_P): Define.
35075 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
35078 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
35079 (lookup_filename): Likewise.
35080 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
35082 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
35083 Jakub Jelinek <jakub@redhat.com>
35085 PR middle-end/47893
35086 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
35087 (assign_stack_local_1): Change last argument type to int.
35088 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
35089 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
35090 don't record padding space into frame_space_list nor use those areas.
35091 (assign_stack_local): Adjust caller.
35092 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
35093 of assign_stack_local, pass 0 as last argument.
35094 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
35097 2011-02-28 Jakub Jelinek <jakub@redhat.com>
35100 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
35101 Use target address_mode and pointer_mode hooks instead of hardcoded
35102 Pmode and ptr_mode. Handle some simple cases of extending if
35103 POINTERS_EXTEND_UNSIGNED < 0.
35104 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
35105 Call convert_debug_memory_address.
35106 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
35107 convert_debug_memory_address.
35109 PR middle-end/46790
35110 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
35111 * configure: Regenerated.
35112 * config.in: Regenerated.
35113 * varasm.c (default_function_section): Return NULL
35114 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
35116 2011-02-28 Martin Jambor <mjambor@suse.cz>
35118 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
35119 the description to match the printed values.
35121 2011-02-28 Richard Guenther <rguenther@suse.de>
35123 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
35124 of the copied scope tree.
35126 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35128 * doc/extend.texi (Function Attributes): Avoid deeply (and
35129 wrongly) nested tables.
35131 2011-02-27 Jakub Jelinek <jakub@redhat.com>
35133 PR middle-end/47903
35134 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
35135 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
35136 r isn't op0 nor op1.
35138 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
35140 * config/avr/avr.md: Remove magic comment for emacs.
35142 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
35145 * config/avr/avr.c (avr_option_override): Use error on bad options.
35146 (avr_help): New function.
35147 (TARGET_HELP): Define.
35149 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
35152 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
35153 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
35155 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
35157 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
35158 (ARM Options): Ditto.
35159 (i386 and x86-64 Options): Ditto.
35160 (RX Options): Ditto.
35161 (SPARC Options): Ditto.
35163 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
35165 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
35166 FreeBSD 6 and later. Generally use cpu generic.
35168 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
35170 * doc/cpp.texi: Update copyright years.
35172 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
35175 * config/lm32/lm32.md (ashrsi3): Added needed variable.
35177 2011-02-25 Jon Beniston <jon@beniston.com>
35180 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
35181 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
35182 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
35183 (lm32_block_move_inline): Add type cast to remove warning.
35184 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
35185 (gen_int_relational): Move declarations to start of function.
35187 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
35189 PR tree-optimization/45470
35190 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
35191 can throw internally only.
35192 * tree-vect-stmts.c (vectorizable_call): Likewise.
35194 2011-02-24 Anatoly Sokolov <aesok@post.ru>
35196 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
35197 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
35198 * config/stormy16/stormy16-protos.h
35199 (xstormy16_preferred_reload_class): Remove.
35200 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
35201 static. Change 'rclass' argument and return type to reg_class_t.
35202 (TARGET_PREFERRED_RELOAD_CLASS,
35203 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
35205 2011-02-24 Richard Guenther <rguenther@suse.de>
35207 * lto-streamer-in.c (input_bb): Do not find referenced vars
35208 in debug statements.
35210 2011-02-23 Jason Merrill <jason@redhat.com>
35212 * common.opt (fabi-version): Document v5 and v6.
35214 2011-02-23 Richard Guenther <rguenther@suse.de>
35216 PR tree-optimization/47849
35217 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
35219 2011-02-23 Jie Zhang <jie@codesourcery.com>
35221 * opts-common.c (decode_cmdline_option): Print empty string
35222 argument as "" in decoded->orig_option_with_args_text.
35223 * gcc.c (execute): Print empty string argument as ""
35224 in the verbose output.
35225 (do_spec_1): Keep empty string argument.
35227 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
35229 * config.gcc: Declare score-* and crx-* obsolete.
35231 2011-02-23 Jie Zhang <jie@codesourcery.com>
35233 PR rtl-optimization/47763
35234 * web.c (web_main): Ignore naked clobber when replacing register.
35236 2011-02-22 Anatoly Sokolov <aesok@post.ru>
35238 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
35241 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
35244 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
35246 2011-02-22 Mike Stump <mikestump@comcast.net>
35248 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
35250 * configure: Regenerate.
35252 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
35254 PR rtl-optimization/46002
35255 * ira-color.c (update_copy_costs): Change class intersection
35256 test to reg_class_contents[] test of 'hard_regno'.
35258 2011-02-21 Joseph Myers <joseph@codesourcery.com>
35260 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
35261 than Driver option.
35262 * config/hpux11.opt (mt): Likewise.
35263 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
35264 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
35265 * config/vax/elf.opt (mno-asm-pic): Likewise.
35266 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
35268 2011-02-21 Mike Stump <mikestump@comcast.net>
35271 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
35272 tree so we can get save the type.
35273 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
35274 for CFString instead of trying to use past the end of the builtins.
35275 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
35276 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
35277 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
35278 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
35279 Rename to darwin_builtin_cfstring.
35280 (darwin_init_cfstring_builtins): Return the built type.
35282 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
35285 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
35286 (_mm256_insert_epi64): Use _mm_insert_epi64.
35288 2011-02-21 Anatoly Sokolov <aesok@post.ru>
35290 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35291 * config/stormy16/stormy16-protos.h
35292 (xstormy16_mode_dependent_address_p): Remove.
35293 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
35294 Make static. Change return type to bool. Change argument type to
35295 const_rtx. Remove dead code.
35296 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35298 2011-02-21 Richard Guenther <rguenther@suse.de>
35301 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
35302 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
35303 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
35305 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
35306 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
35308 2011-02-20 Richard Guenther <rguenther@suse.de>
35311 * tree.c (free_lang_data_in_decl): Clean builtins from
35312 the TU decl BLOCK_VARS.
35314 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
35318 * haifa-sched.c (fix_tick_ready): Skip tick computation
35321 2011-02-19 Richard Guenther <rguenther@suse.de>
35324 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
35325 Remove lazy BLOCK_VARS streaming.
35326 (lto_input_ts_block_tree_pointers): Likewise.
35327 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
35329 2011-02-19 Joseph Myers <joseph@codesourcery.com>
35331 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
35333 2011-02-19 Joseph Myers <joseph@codesourcery.com>
35335 * config/i386/biarch32.h, config/i386/mach.h,
35336 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
35338 2011-02-19 Jakub Jelinek <jakub@redhat.com>
35341 * config/i386/i386.md (peephole2 for shift and plus): Use
35342 operands[1] original mode in the first insn.
35344 2011-02-18 Mike Stump <mikestump@comcast.net>
35346 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
35348 2011-02-18 Jan Hubicka <jh@suse.cz>
35350 PR middle-end/47788
35351 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
35352 to zero when the function is not inlinable at all.
35354 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35356 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
35357 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
35358 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
35359 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
35360 * config/pa/t-pa64: Likewise.
35361 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
35363 2011-02-18 Jakub Jelinek <jakub@redhat.com>
35366 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
35368 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35371 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
35373 2011-02-18 Anatoly Sokolov <aesok@post.ru>
35375 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
35376 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
35377 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
35378 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
35379 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
35380 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
35381 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
35382 m32r_load_postinc_p, m32r_store_preinc_predec_p,
35383 m32r_legitimate_address_p): New functions.
35384 * config/m32r/constraints.md (constraint "S"): Don't use
35385 STORE_PREINC_PREDEC_P.
35386 (constraint "U"): Don't use LOAD_POSTINC_P.
35388 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
35390 PR rtl-optimization/46178
35391 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
35392 compute ira_hard_regno_cover_class[].
35394 2011-02-18 Richard Guenther <rguenther@suse.de>
35397 * lto-streamer.h (lto_global_var_decls): Declare.
35398 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
35399 statics for global var processing.
35401 2011-02-18 Richard Guenther <rguenther@suse.de>
35403 PR tree-optimization/47737
35404 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
35405 edge dominance check.
35407 2011-02-18 Jakub Jelinek <jakub@redhat.com>
35410 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
35411 avoid invalid rtx sharing.
35413 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
35415 * doc/cpp.texi (Obsolete Features): Add background on the
35416 origin of assertions.
35418 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
35420 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
35422 * config/darwin.c (output_objc_section_asm_op): Added support for
35424 (is_objc_metadata): New.
35425 (darwin_objc2_section): New.
35426 (darwin_objc1_section): New.
35427 (machopic_select_section): Added support for ABI v1 and v2.
35428 (darwin_emit_objc_zeroed): New.
35429 (darwin_output_aligned_bss): Detect objc metadata and treat it
35431 (darwin_asm_output_aligned_decl_common): Same.
35432 (darwin_asm_output_aligned_decl_local): Same.
35433 * config/darwin-sections.def: Updated for ABI v1 and v2.
35434 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
35435 compiling Objective-C code for the NeXT runtime, default to using
35436 ABI version 0 for 32-bit, and version 2 for 64-bit.
35438 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35440 * common.opt (optimize_fast): New Variable.
35441 * opts.c (default_options_optimization): Use opts->x_optimize_fast
35442 instead of local variable ofast.
35444 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
35446 * doc/invoke.texi (fobjc-abi-version): Documented.
35447 (fobjc-nilcheck): Documented.
35448 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
35451 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35454 * common.opt (export-dynamic): New Driver option.
35455 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
35457 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35459 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
35461 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
35462 Jan Hubicka <jh@suse.cz>
35466 * cfgexpand.c (account_used_vars_for_block): Remove.
35467 (estimated_stack_frame_size): Use referenced vars.
35468 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
35469 that were referenced in the original function. Test src_fn
35470 rather than cfun. Drop redundant get_var_ann.
35471 (setup_one_parameter): Drop redundant get_var_ann.
35472 (declare_return_variable): Likewise.
35473 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
35474 (copy_arguments_for_versioning): Drop redundant get_var_ann.
35475 * ipa-inline.c (compute_inline_parameters): Do not compute
35476 disregard_inline_limits here.
35477 (compute_inlinable_for_current, pass_inlinable): New.
35478 (pass_inline_parameters): Require PROP_referenced_vars.
35479 * cgraphunit.c (cgraph_process_new_functions): Don't run
35480 compute_inline_parameters explicitly unless function is in SSA form.
35481 (cgraph_analyze_function): Set .disregard_inline_limits.
35482 * tree-sra.c (convert_callers): Compute inliner parameters
35483 only for functions already in SSA form.
35485 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35487 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
35488 -mlittle-endian-data.
35490 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35492 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
35493 -mno-fpu, not -fpu and -no-fpu.
35494 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
35495 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
35497 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
35500 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
35501 input reload with PLUS RTX.
35503 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35505 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
35506 of InverseVar(MDMX).
35508 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35510 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
35513 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35515 * config/mn10300/mn10300.opt (mno-crt0): New.
35517 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35519 * config/m68k/uclinux.opt (static-libc): New Driver option.
35521 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35523 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
35525 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35527 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
35528 %{muser-extend-enabled}.
35530 2011-02-16 Richard Guenther <rguenther@suse.de>
35532 PR tree-optimization/47738
35533 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
35534 the TODO from tree_predictive_commoning.
35536 2011-02-15 Jeff Law <law@redhat.com>
35539 2011-01-25 Jeff Law <law@redhat.com>
35541 PR rtl-optimization/37273
35542 * ira-costs.c (scan_one_insn): Detect constants living in memory and
35543 handle them like argument loads from stack slots. Do not double
35544 count memory for memory constants and argument loads from stack slots.
35546 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
35549 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
35550 mode for vector constants. Remove code that checks for TImode.
35552 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35556 * cgraph.h (compute_inline_parameters): Return void.
35557 * ipa-inline.c (compute_inline_parameters): Adjust.
35559 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35563 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
35565 * cfgexpand.c (estimated_stack_frame_size): Likewise.
35566 * ipa-inline.c (compute_inline_parameters): Adjust.
35568 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35572 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
35573 Adjust all users. Pass FN to...
35574 * tree-flow-inline.h (first_referenced_var): ... this. Add
35576 * ipa-struct-reorg.c: Adjust.
35577 * tree-dfa.c: Adjust.
35578 * tree-into-ssa.c: Adjust.
35579 * tree-sra.c: Adjust.
35580 * tree-ssa-alias.c: Adjust.
35581 * tree-ssa-live.c: Adjust.
35582 * tree-ssa.c: Adjust.
35583 * tree-ssanames.c: Adjust.
35584 * tree-tailcall.c: Adjust.
35586 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35590 * tree-flow.h (referenced_var_lookup): Add fn parameter.
35591 Adjust all callers.
35592 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
35593 * tree-flow-inline.h: Adjust.
35594 * gimple-pretty-print.c: Adjust.
35595 * tree-into-ssa.c: Adjust.
35596 * tree-ssa.c: Adjust.
35597 * cfgexpand.c: Adjust.
35599 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
35601 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
35602 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35603 (EXTRA_CONSTRAINT): Delete.
35604 * config/iq2000/constraints.md: New file.
35605 * config/iq2000/iq2000.md: Include it.
35606 (define_insn ""): Delete.
35607 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
35608 unsupported constraint letters from patterns.
35609 (call_value, call_value_internal1): Likewise.
35610 (call_value_multiple_internal1): Likewise.
35612 2011-02-15 Nick Clifton <nickc@redhat.com>
35614 * config/mn10300/mn10300.c: Include tm-constrs.h.
35615 (struct liw_data): New data structure describing an LIW candidate
35617 (extract_bundle): Use struct liw_data. Allow small integer
35618 operands for some instructions.
35619 (check_liw_constraints): Use struct liw_data. Remove swapped
35620 parameter. Add comments describing the checks. Fix bug when
35621 assigning the source of liw1 to the source of liw2.
35622 (liw_candidate): Delete. Code moved into extract_bundle.
35623 (mn10300_bundle_liw): Use struct liw_data. Check constraints
35625 * config/mn10300/predicates.md (liw_operand): New predicate.
35626 Allows registers and small integer constants.
35627 * config/mn10300/constraints.md (O): New constraint. Accetps
35628 integers in the range -8 to +7 inclusive.
35629 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
35630 for moving a small integer into a register. Give this alternative
35632 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
35633 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
35634 using the J,K,L and M constraints,
35635 (liw): Remove SI mode on second operands to allow for HI and QI
35637 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
35640 2011-02-15 Richard Guenther <rguenther@suse.de>
35642 PR tree-optimization/47743
35643 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
35644 for a non-type-compatible VN lookup bail out.
35646 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
35648 * config/fr30/constraints.md: New file.
35649 * config/fr30/fr30.md: Include it.
35650 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
35651 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35652 (EXTRA_CONSTRAINT): Delete.
35654 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
35656 * config/frv/constraints.md: New file.
35657 * config/frv/predicates.md: Include it.
35658 * config/frv/frv.c (reg_class_from_letter): Delete.
35659 (frv_option_override): Don't initialize it.
35660 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
35661 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
35662 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
35663 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
35664 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
35665 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35666 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
35667 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
35668 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
35669 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
35670 (REG_CLASS_FROM_CONSTRAINT): Delete.
35672 2011-02-15 Jakub Jelinek <jakub@redhat.com>
35674 PR middle-end/47581
35675 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
35676 if frame size is 0 in a leaf function.
35678 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35681 * config/alpha/host-osf.c: New file.
35682 * config/alpha/x-osf: New file.
35683 * config.host (alpha*-dec-osf*): Use it.
35685 2011-02-14 Anatoly Sokolov <aesok@post.ru>
35687 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35688 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
35689 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
35690 (rx_mode_dependent_address_p): ...this. Make static. Change argument
35692 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35694 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
35696 * config/stormy16/constraints.md: New file.
35697 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
35698 Use satisfies_constraint_Q and satisfies_constraint_R.
35699 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
35701 (xstormy16_legitiamte_address_p): Declare.
35702 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
35703 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35704 (EXTRA_CONSTRAINT): Delete.
35705 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
35707 (xstormy16_extra_constraint_p): Delete.
35709 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
35711 PR tree-optimization/46494
35712 * loop-unroll.c (split_edge_and_insert): Adjust comment.
35713 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
35714 (pass_rtl_loop_done): Add TODO_verify_flow.
35715 * fwprop.c (pass_rtl_fwprop): Likewise.
35716 * modulo-sched.c (pass_sms): Likewise.
35717 * tree-ssa-dom.c (pass_dominator): Likewise.
35718 * tree-ssa-loop-ch.c (pass_ch): Likewise.
35719 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
35720 (pass_tree_loop_done): Likewise.
35721 * tree-ssa-pre.c (execute_pre): Likewise.
35722 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
35723 * tree-ssa-sink.c (pass_sink_code): Likewise.
35724 * tree-vrp.c (pass_vrp): Likewise.
35726 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
35728 * config/v850/constraints.md: New file.
35729 * config/v850/v850.md: Include it.
35730 * config/v850/predicates.md (reg_or_0_operand): Use
35731 satisfies_constraint_G.
35732 (special_symbolref_operand): Use satisfies_constraint_K.
35733 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
35734 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
35735 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
35736 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
35737 (EXTRA_CONSTRAINT): Delete.
35738 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
35739 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
35740 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
35742 2011-02-14 Anatoly Sokolov <aesok@post.ru>
35745 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
35748 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
35750 * config/mcore/constraints.md: New file.
35751 * config/mcore/mcore.md: Include it.
35752 * config/mcore/mcore.c (reg_class_from_letter): Delete.
35753 * config/mcore/mcore.h (reg_class_from_letter): Delete.
35754 (REG_CLASS_FROM_LETTER): Delete.
35755 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
35756 insn_const_int_ok_for_constraint.
35757 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
35758 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
35759 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35760 (EXTRA_CONSTRAINT): Delete.
35762 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35765 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
35766 (IS_SIGHANDLER): Define.
35767 (sparc64_is_sighandler): New function, split off from
35768 sparc64_fallback_frame_state.
35769 (sparc_is_sighandler): New function, split off from
35770 sparc_fallback_frame_state.
35771 (sparc64_fallback_frame_state): Merge with ...
35772 (sparc_fallback_frame_state): ... this into ...
35773 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
35774 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
35775 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
35776 stack instead of hardcoded offsets.
35778 2011-02-14 Andriy Gapon <avg@freebsd.org>
35781 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
35783 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35785 * configure: Regenerate.
35787 2011-02-12 Joseph Myers <joseph@codesourcery.com>
35790 * gcc.c (asm_options): Correct spec matching --target-help.
35792 2011-02-12 Martin Jambor <mjambor@suse.cz>
35794 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
35795 to gimple call error.
35797 2011-02-12 Mike Stump <mikestump@comcast.net>
35799 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
35800 comments in backslash regions.
35802 2011-02-12 Mike Stump <mikestump@comcast.net>
35803 Jakub Jelinek <jakub@redhat.com>
35804 Iain Sandoe <iains@gcc.gnu.org>
35807 * dwarf2out.c (output_cfa_loc): When required, apply the
35808 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
35809 (output_loc_sequence): Likewise.
35810 (output_loc_operands_raw): Likewise.
35811 (output_loc_sequence_raw): Likewise.
35812 (output_cfa_loc): Likewise.
35813 (output_loc_list): Suppress register number adjustment when
35814 calling output_loc_sequence()
35815 (output_die): Likewise.
35817 2011-02-12 Anatoly Sokolov <aesok@post.ru>
35819 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
35821 * config/xtensa/xtensa.c (xtensa_register_move_cost,
35822 xtensa_memory_move_cost): New functions.
35823 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
35825 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
35828 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
35829 in the current directory.
35830 * configure: Rebuilt.
35832 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
35834 * config/darwin.c (darwin_override_options): Add a hunk missed
35835 from the commit of r168571. Trim comment line lengths and
35836 correct indents of the preceding block.
35838 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
35840 * gcc.c (driver_handle_option): Concatenate the argument to -F with
35843 2011-02-11 Joseph Myers <joseph@codesourcery.com>
35845 * common.opt (nostartfiles): New Driver option.
35847 2011-02-11 Xinliang David Li <davidxl@google.com>
35849 PR tree-optimization/47707
35850 * tree-chrec.c (convert_affine_scev): Keep type precision.
35852 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
35854 PR tree-optimization/47420
35855 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
35857 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
35859 PR rtl-optimization/47614
35860 * rtl.h (check_for_inc_dec): Declare.
35861 * dse.c (check_for_inc_dec): Externalize...
35862 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
35863 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
35865 2011-02-11 Joseph Myers <joseph@codesourcery.com>
35868 * gcc.c (main): Do not compile inputs if there were errors in
35870 * opts-common.c (read_cmdline_option): Check for wrong language
35871 after other error checks.
35873 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
35875 * cgraph.c: Fix comment typos.
35876 * cgraph.h: Likewise.
35877 * cgraphunit.c: Likewise.
35878 * ipa-cp.c: Likewise.
35879 * ipa-inline.c: Likewise.
35880 * ipa-prop.c: Likewise.
35881 * ipa-pure-const.c: Likewise.
35882 * ipa-ref.c: Likewise.
35883 * ipa-reference.c: Likewise.
35885 2011-02-11 Jakub Jelinek <jakub@redhat.com>
35888 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
35890 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35893 * doc/sourcebuild.texi (Require Support): Document
35894 dg-require-ascii-locale.
35896 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
35898 * doc/lto.texi (Write summary): Fix missing parentheses.
35900 2011-02-10 DJ Delorie <dj@redhat.com>
35902 * config/m32c/m32c.c (m32c_option_override): Disable
35903 -fcombine-stack-adjustments until flag value tracking and compare
35904 optimization can be rewritten.
35906 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
35908 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
35910 (PROCESSOR_DEFAULT64): Likewise.
35912 2011-02-10 Richard Henderson <rth@redhat.com>
35914 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
35915 change from 2011-02-03.
35916 * config/rx/rx.c (flags_from_code): Likewise.
35917 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
35918 is valid, n/pz otherwise.
35919 (rx_select_cc_mode): Return CCmode if Y is not zero.
35921 2011-02-10 Richard Guenther <rguenther@suse.de>
35923 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
35925 2011-02-10 Richard Guenther <rguenther@suse.de>
35927 PR tree-optimization/47677
35928 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
35930 2011-02-10 Jakub Jelinek <jakub@redhat.com>
35933 * combine.c (make_compound_operation): Only change shifts into
35934 multiplication for SCALAR_INT_MODE_P.
35936 2011-02-10 Jie Zhang <jie@codesourcery.com>
35940 2011-02-05 Jie Zhang <jie@codesourcery.com>
35942 * web.c (entry_register): Don't clobber the number of the
35943 first uninitialized reference in used[].
35945 2011-02-09 Richard Guenther <rguenther@suse.de>
35947 PR tree-optimization/47664
35948 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
35951 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
35955 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
35957 (PROCESSOR_DEFAULT64): Same.
35958 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
35960 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35962 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
35964 2011-02-09 Martin Jambor <mjambor@suse.cz>
35966 PR middle-end/45505
35967 * tree-sra.c (struct access): New flags grp_scalar_read and
35968 grp_scalar_write. Changed description of assignment read and write
35970 (dump_access): Dump new flags, reorder all of them.
35971 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
35972 to detect multiple scalar reads.
35973 (analyze_access_subtree): Use the new scalar read write flags instead
35974 of the old flags. Adjusted comments.
35976 2011-02-08 DJ Delorie <dj@redhat.com>
35979 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
35982 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35984 * config/m68k/uclinux.opt: New.
35985 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
35987 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35989 * config/cris/elf.opt (sim): New Driver option.
35991 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35993 * config/xtensa/elf.opt: New.
35994 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
35996 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35998 * config/vax/elf.opt: New.
35999 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
36001 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36003 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
36005 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36007 * config/gnu-user.opt: New.
36008 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
36009 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
36010 *-*-uclinux*): Use gnu-user.opt.
36012 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
36014 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
36015 * config/i386/gnu.h (CPP_SPEC): Likewise.
36017 2011-02-08 Ian Lance Taylor <iant@google.com>
36019 * common.opt (fcx-limited-range): Add SetByCombined flag.
36020 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
36021 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
36022 (fassociative-math, freciprocal-math): Likewise.
36023 (funsafe-math-optimizations): Likewise.
36024 * opth-gen.awk: Handle SetByCombined.
36025 * optc-gen.awk: Likewise.
36026 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
36027 (set_unsafe_math_optimizations_flags): Likewise.
36028 * doc/options.texi (Option properties): Document SetByCombined.
36030 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36032 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
36033 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
36034 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
36035 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
36036 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
36038 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
36040 PR tree-optimization/46834
36041 PR tree-optimization/46994
36042 PR tree-optimization/46995
36043 * graphite-sese-to-poly.c (used_outside_reduction): New.
36044 (detect_commutative_reduction): Call used_outside_reduction.
36045 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
36046 translate_scalar_reduction_to_array only when at least one
36047 loop-phi/close-phi tuple has been detected.
36049 2011-02-08 Richard Guenther <rguenther@suse.de>
36051 PR middle-end/47639
36052 * tree-vect-generic.c (expand_vector_operations_1): Update
36054 (expand_vector_operations): ... not here. Cleanup EH info
36055 and the CFG if required.
36057 2011-02-08 Richard Guenther <rguenther@suse.de>
36059 PR tree-optimization/47641
36060 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
36061 require type compatibility.
36063 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36065 * gimple-low.c (lower_function_body): Don't remove the location of
36066 the return statement here.
36067 (lower_gimple_return): Do it here instead but only if the return
36068 statement is actually used twice.
36070 2011-02-08 Richard Guenther <rguenther@suse.de>
36072 PR tree-optimization/47632
36073 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
36074 unused up_to_stmt parameter, return whether cfg-cleanup is
36075 necessary, remove EH info properly.
36076 (forward_propagate_into_gimple_cond): Adjust caller.
36077 (forward_propagate_into_cond): Likewise.
36078 (forward_propagate_comparison): Likewise.
36079 (tree_ssa_forward_propagate_single_use_vars): Make
36080 forward_propagate_comparison case similar to the two others.
36082 2011-02-08 Nick Clifton <nickc@redhat.com>
36084 * config/mn10300/mn10300.opt (mliw): New command line option.
36085 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
36086 (liw_bundling): New automaton.
36087 (liw): New attribute.
36088 (liw_op): New attribute.
36089 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
36090 (movsi_internal): Add LIW attributes.
36091 (andsi3): Likewise.
36092 (iorsi3): Likewise.
36093 (xorsi3): Likewise.
36094 (addsi3): Separate register and immediate alternatives.
36095 Add LIW attributes.
36096 (subsi3): Likewise.
36098 (aslsi3): Likewise.
36099 (lshrsi3): Likewise.
36100 (ashrsi3): Likewise.
36101 (liw): New pattern.
36102 * config/mn10300/mn10300.c (liw_op_names): New
36103 (mn10300_print_operand): Handle 'W' operand descriptor.
36104 (extract_bundle): New function.
36105 (check_liw_constraints): New function.
36106 (liw_candidate): New function.
36107 (mn10300_bundle_liw): New function.
36108 (mn10300_reorg): New function.
36109 (TARGET_MACHINE_DEPENDENT_REORG): Define.
36110 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
36111 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
36112 __LIW__ or __NO_LIW__.
36113 * doc/invoke.texi: Describe the -mliw command line option.
36115 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36117 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
36118 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
36119 pthread_mutex_unlock): Remove.
36120 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
36121 * config/pa/t-pa64: Likewise.
36122 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
36123 shared libc if not linking against libpthread.
36124 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36126 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
36129 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
36130 on 10.6 and later to ensure that we always use the unwinder from
36131 the system. Only add -no_compact_unwind when tarteting darwin
36134 2011-02-07 Steve Ellcey <sje@cup.hp.com>
36137 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
36138 (vec_interleave_lowv2sf): Ditto.
36139 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
36140 (vec_extract_oddv2sf): Ditto.
36142 2011-02-07 Mike Stump <mikestump@comcast.net>
36145 Add __ieee_divdc3 entry point.
36146 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
36148 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
36149 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
36150 * config/darwin.c (darwin_rename_builtins): Add.
36151 * config/darwin-protos.h (darwin_rename_builtins): Add.
36153 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
36156 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
36159 2011-02-07 Mike Stump <mikestump@comcast.net>
36161 * config/darwin.opt (mmacosx-version-min): Update default OS version.
36163 2011-02-07 Denis Chertykov <chertykov@gmail.com>
36166 * config/avr/libgcc.S (exit): Move .endfunc
36168 2011-02-07 Richard Guenther <rguenther@suse.de>
36170 PR tree-optimization/47615
36171 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
36172 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
36173 (run_scc_vn): Initialize it.
36174 (visit_reference_op_load): Use it.
36175 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
36177 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36179 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
36180 DImode trapping arithmetic libfuncs.
36182 2011-02-07 Richard Guenther <rguenther@suse.de>
36184 PR tree-optimization/47621
36185 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
36187 (execute_update_addresses_taken): ... here. Make it more
36188 conservative in what we accept.
36190 2011-02-06 Joseph Myers <joseph@codesourcery.com>
36192 * config/sparc/freebsd.h (ASM_SPEC): Define.
36193 * config/sparc/vxworks.h (ASM_SPEC): Define.
36195 2011-02-06 Joseph Myers <joseph@codesourcery.com>
36197 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
36199 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
36201 * doc/invoke.texi: Remove reference to compiler internals from
36202 user documentation.
36204 * reg-notes.def: Remove REG_VALUE_PROFILE.
36205 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
36207 2011-02-05 Jakub Jelinek <jakub@redhat.com>
36209 PR middle-end/47610
36210 * varasm.c (default_section_type_flags): If decl is NULL,
36211 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
36213 2011-02-05 Jie Zhang <jie@codesourcery.com>
36216 * web.c (entry_register): Don't clobber the number of the
36217 first uninitialized reference in used[].
36219 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
36221 PR tree-optimization/46194
36222 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
36223 (build_classic_dist_vector_1): Do not represent classic distance
36224 vectors when the access functions are variating in different loops.
36226 2011-02-04 Joseph Myers <joseph@codesourcery.com>
36228 * config/mips/iris6.opt: New.
36229 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
36231 2011-02-04 Richard Henderson <rth@redhat.com>
36232 Steve Ellcey <sje@cup.hp.com>
36235 * config/ia64/predicates.md (mux1_brcst_element): New.
36236 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
36237 * config/ia64/ia64.c (ia64_unpack_assemble): New.
36238 (ia64_unpack_sign): New.
36239 (ia64_expand_unpack): Rewrite using new routines.
36240 (ia64_expand_widen_sum): Ditto.
36241 (ia64_expand_dot_prod_v8qi): Ditto.
36242 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
36243 routines, add endian check.
36244 (pmpy2_even): Rename from pmpy2_r, add endian check.
36245 (pmpy2_odd): Rename from pmpy2_l, add endian check.
36246 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
36247 (vec_widen_smult_hi_v4hi): Ditto.
36248 (vec_widen_umult_lo_v4hi): Ditto.
36249 (vec_widen_umult_hi_v4hi): Ditto.
36250 (mulv2si3): Change endian checks.
36251 (sdot_prodv4hi): Rewrite with new calls.
36252 (udot_prodv4hi): New.
36253 (vec_pack_ssat_v4hi): Add endian check.
36254 (vec_pack_usat_v4hi): Ditto.
36255 (vec_pack_ssat_v2si): Ditto.
36256 (max1_even): Rename from max1_r, add endian check.
36257 (max1_odd): Rename from max1_l, add endian check.
36258 (*mux1_rev): Format change.
36259 (*mux1_mix): Ditto.
36260 (*mux1_shuf): Ditto.
36261 (*mux1_alt): Ditto.
36262 (*mux1_brcst_v8qi): Use new predicate.
36263 (vec_extract_evenv8qi): Remove endian check.
36264 (vec_extract_oddv8qi): Ditto.
36265 (vec_interleave_lowv4hi): Format change.
36266 (vec_interleave_highv4hi): Ditto.
36267 (mix2_even): Rename from mix2_r, add endian check.
36268 (mix2_odd): Rename from mux2_l, add endian check.
36269 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
36270 (vec_extract_evenodd_helper): Format change.
36271 (vec_extract_evenv4hi): Remove endian check.
36272 (vec_extract_oddv4hi): Remove endian check.
36273 (vec_interleave_lowv2si): Format change.
36274 (vec_interleave_highv2si): Format change.
36275 (vec_initv2si): Remove endian check.
36276 (vecinit_v2si): Add endian check.
36277 (reduc_splus_v2sf): Add endian check.
36278 (reduc_smax_v2sf): Ditto.
36279 (reduc_smin_v2sf): Ditto.
36280 (vec_initv2sf): Remove endian check.
36281 (fpack): Add endian check.
36282 (fswap): Add endian check.
36283 (vec_interleave_highv2sf): Add endian check.
36284 (vec_interleave_lowv2sf): Add endian check.
36285 (fmix_lr): Add endian check.
36286 (vec_setv2sf): Format change.
36287 (*vec_extractv2sf_0_be): Use shift to extract operand.
36288 (*vec_extractv2sf_1_be): New.
36289 (vec_pack_trunc_v4hi): Add endian check.
36290 (vec_pack_trunc_v2si): Format change.
36292 2011-02-04 Jakub Jelinek <jakub@redhat.com>
36294 PR inline-asm/23200
36295 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
36296 do bb, locus and block comparison and disallow loads if it is not set.
36297 (stmt_is_replaceable_p): New function.
36298 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
36300 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
36301 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
36303 * tree-flow.h (stmt_is_replaceable_p): New prototype.
36305 2011-02-04 Joseph Myers <joseph@codesourcery.com>
36307 * config/rs6000/xilinx.opt: New.
36308 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
36310 2011-02-04 Joseph Myers <joseph@codesourcery.com>
36312 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
36314 2011-02-03 Anatoly Sokolov <aesok@post.ru>
36316 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
36317 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
36318 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
36319 secondary_reload_info, xtensa_secondary_reload): Remove.
36320 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
36321 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
36322 (xtensa_preferred_reload_class): Make static. Change return and
36323 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
36324 Use CONST_DOUBLE_P predicate.
36325 (xtensa_preferred_output_reload_class): New function.
36326 (xtensa_secondary_reload): Make static.
36328 2011-02-03 Joseph Myers <joseph@codesourcery.com>
36330 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
36331 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
36332 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
36334 2011-02-03 Jakub Jelinek <jakub@redhat.com>
36336 PR middle-end/31490
36337 * output.h (SECTION_RELRO): Define.
36338 (SECTION_MACH_DEP): Adjust.
36339 (get_variable_section): New prototype.
36340 * varpool.c (varpool_finalize_named_section_flags): New function.
36341 (varpool_assemble_pending_decls): Call it.
36342 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
36343 * cgraphunit.c (cgraph_output_in_order): Call
36344 varpool_finalize_named_section_flags.
36345 * varasm.c (get_section): Allow section flags conflicts between
36346 relro and read-only sections if the section hasn't been declared yet.
36347 Set SECTION_OVERRIDE after diagnosing section type conflict.
36348 (get_variable_section): No longer static.
36349 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
36350 readonly sections that need relocations.
36351 (decl_readonly_section_1): New function.
36352 (decl_readonly_section): Use it.
36355 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
36356 Steve Ellcey <sje@cup.hp.com>
36358 PR middle-end/31490
36359 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
36360 if section attribute used.
36362 2011-02-03 Jakub Jelinek <jakub@redhat.com>
36364 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
36365 * config/darwin.c (SECTION_NO_ANCHOR): Define.
36366 (darwin_init_sections): Remove assertion.
36368 2011-02-03 Nick Clifton <nickc@redhat.com>
36370 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
36372 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
36373 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
36374 instead of "n" and "pz".
36375 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
36378 2011-02-03 Jakub Jelinek <jakub@redhat.com>
36381 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
36382 fma, expand FMA_EXPR as fma{,f,l} call.
36385 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
36386 copy them into a unsigned char variable and pass address of it to
36387 lto_output_data_stream.
36390 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
36391 around backend_init_target and lang_dependent_init_target calls.
36392 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
36393 (verify_cgraph_node): Don't call set_cfun here. Use
36394 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
36395 Set error_found for incorrectly represented calls to thunks.
36397 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
36400 PR rtl-optimization/43494
36401 * rtl.h (for_each_inc_dec_fn): New type.
36402 (for_each_inc_dec): Declare.
36403 * rtlanal.c (struct for_each_inc_dec_ops): New type.
36404 (for_each_inc_dec_find_inc_dec): New fn.
36405 (for_each_inc_dec_find_mem): New fn.
36406 (for_each_inc_dec): New fn.
36407 * dse.c (struct insn_size): Remove.
36408 (replace_inc_dec, replace_inc_dec_mem): Remove.
36409 (emit_inc_dec_insn_before): New fn.
36410 (check_for_inc_dec): Use it, along with for_each_inc_dec.
36411 (canon_address): Pass mem modes to cselib_lookup.
36412 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
36413 (cselib_lookup_from_insn): Likewise.
36414 (cselib_subst_to_values): Likewise.
36415 * cselib.c (find_slot_memmode): New var.
36416 (cselib_find_slot): New fn. Use it instead of
36417 htab_find_slot_with_hash everywhere.
36418 (entry_and_rtx_equal_p): Use find_slot_memmode.
36419 (autoinc_split): New fn.
36420 (rtx_equal_for_cselib_p): Rename and implement in terms of...
36421 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
36422 Deal with autoinc. Special-case recursion into MEMs.
36423 (cselib_hash_rtx): Likewise.
36424 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
36425 address and MEM modes.
36426 (cselib_subst_to_values): Add memmode, pass it on.
36428 (cselib_lookup): Add memmode argument, pass it on.
36429 (cselib_lookup_from_insn): Add memmode.
36430 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
36431 (struct cselib_record_autoinc_data): New.
36432 (cselib_record_autoinc_cb): New fn.
36433 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
36434 mode to cselib_lookup. Reset autoinced REGs here instead of...
36435 (cselib_process_insn): ... here.
36436 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
36438 (add_uses): Likewise, also to cselib_subst_to_values.
36439 (add_stores): Likewise.
36440 * sched-deps.c (add_insn_mem_dependence): Pass mode to
36441 cselib_subst_to_values.
36442 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
36443 * gcse.c (do_local_cprop): Adjusted.
36444 * postreload.c (reload_cse_simplify_set): Adjusted.
36445 (reload_cse_simplify_operands): Adjusted.
36446 * sel-sched-dump (debug_mem_addr_value): Pass mode.
36448 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
36450 PR tree-optimization/45122
36451 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
36452 unsafe assumptions when there's more than one loop exit.
36454 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36457 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36458 Document using vector double with the load/store builtins, and
36459 that the load/store builtins always use Altivec instructions.
36461 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
36462 to use altivec memory instructions, even on VSX.
36463 (vector_altivec_store_<mode>): Ditto.
36465 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
36468 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36469 V2DF, V2DI support to load/store overloaded builtins.
36471 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
36472 altivec load/store builtins for V2DF/V2DI types.
36474 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
36475 set avoid indexed addresses on power6 if -maltivec.
36476 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
36477 vector_altivec_load/vector_altivec_store builtins.
36478 (altivec_expand_st_builtin): Ditto.
36479 (altivec_expand_builtin): Add VSX memory builtins.
36480 (rs6000_init_builtins): Add V2DI types to internal types.
36481 (altivec_init_builtins): Add support for V2DF/V2DI altivec
36482 load/store builtins.
36483 (rs6000_address_for_altivec): Insure memory address is appropriate
36486 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
36487 vec_vsx_ld and vec_vsx_st.
36488 (vsx_store_<mode>): Ditto.
36490 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
36491 variables to hold long long types for VSX vector memory builtins.
36492 (RS6000_BTI_unsigned_long_long): Ditto.
36493 (long_long_integer_type_internal_node): Ditti.
36494 (long_long_unsigned_type_internal_node): Ditti.
36496 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
36497 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
36498 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
36500 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
36502 (vec_vsx_st): Ditto.
36504 2011-02-02 Joseph Myers <joseph@codesourcery.com>
36506 * config/pa/pa-hpux10.opt: New.
36507 * config/hpux11.opt (pthread): New Driver option.
36508 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
36509 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
36511 2011-02-02 Joseph Myers <joseph@codesourcery.com>
36513 * config/ia64/vms.opt: New.
36514 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
36516 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
36519 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
36520 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
36521 generator functions.
36522 (vsx_floatuns<VSi><mode>2): Ditto.
36523 (vsx_fix_trunc<mode><VSi>2): Ditto.
36524 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
36526 2011-02-02 Joseph Myers <joseph@codesourcery.com>
36528 * config/i386/djgpp.opt (posix): New Driver option.
36530 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
36532 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
36533 Move to the unsupported targets list.
36535 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
36537 PR rtl-optimization/47525
36538 * df-scan.c: Update copyright years.
36539 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
36540 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
36542 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36544 * config/i386/sysv4.h (TARGET_VERSION): Remove.
36545 (SUBTARGET_RETURN_IN_MEMORY): Remove.
36546 (ASM_OUTPUT_ASCII): Remove.
36547 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
36549 2011-02-02 Jeff Law <law@redhat.com>
36551 PR middle-end/47543
36552 * reload.c (find_reloads_address): Handle reg+d address where both
36553 components are invalid by reloading the entire address.
36555 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
36556 Richard Guenther <rguenther@suse.de>
36558 PR tree-optimization/40979
36560 * passes.c (init_optimization_passes): After LIM call copy_prop
36561 and DCE to clean up.
36562 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
36564 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
36566 PR tree-optimization/47576
36567 PR tree-optimization/47555
36568 * doc/invoke.texi (scev-max-expr-complexity): Documented.
36569 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
36570 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
36571 * tree-scalar-evolution.c (follow_ssa_edge): Use
36572 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
36574 2011-02-02 Richard Guenther <rguenther@suse.de>
36576 PR tree-optimization/47566
36577 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
36579 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
36583 * tree-inline.c (declare_return_variable): Remove unused caller
36588 * tree-flow-inline.h (clear_is_used, is_used_p): New.
36589 * cfgexpand.c (account_used_vars_for_block): Use them.
36590 * tree-nrv.c (tree_nrv): Likewise.
36591 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
36592 (dump_scope_block): Likewise.
36593 (remove_unused_locals): Likewise.
36597 * tree-inline.c (declare_return_variable): Add result decl to
36598 local decls only once.
36599 * gimple-low.c (record_vars_into): Mark newly-created variables
36602 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
36608 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36610 (no_real_insns_p, schedule_block, set_priorities): Drop special
36611 treatment of boundary debug insns.
36612 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36613 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
36614 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36615 (BOUNDARY_DEBUG_INSN_P): Likewise.
36616 (SCHEDULE_DEBUG_INSN_P): Likewise.
36617 * sched-rgn.c (init_ready_list): Drop special treatment of
36618 boundary debug insns.
36619 * final.c (rest_of_clean_state): Clear notes' BB.
36621 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36623 * config/openbsd.opt (assert=): New Driver option.
36625 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36627 * config/i386/nto.opt: New.
36628 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
36630 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36632 * config/i386/netware.opt: New.
36633 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
36635 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36637 * config/interix.opt (posix): New Driver option.
36639 2011-02-01 DJ Delorie <dj@redhat.com>
36641 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
36643 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
36646 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
36648 PR tree-optimization/47561
36649 * toplev.c (process_options): Print the Graphite flags. Add
36650 flag_loop_flatten to the list of options requiring Graphite.
36652 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36654 * config/i386/cygming.opt (posix): New Driver option.
36656 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36658 * config/arm/vxworks.opt: New.
36659 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
36661 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36663 * config/alpha/elf.opt: New.
36664 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
36665 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
36667 2011-02-01 Richard Guenther <rguenther@suse.de>
36669 PR tree-optimization/47559
36670 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
36671 store-motion on references that can throw.
36673 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
36675 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
36676 * tree-pass.h (TDF_CSELIB): New macro.
36677 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
36678 cselib_lookup): Check for it rather than for TDF_DETAILS.
36680 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
36683 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
36684 is HOST_BIT_BUCKET.
36686 * opts.c (finish_options): Don't add x_aux_base_name if it is
36689 2011-02-01 Richard Guenther <rguenther@suse.de>
36691 PR tree-optimization/47555
36693 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
36695 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
36697 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
36700 * config/lm32/t-lm32: Add multilib for all CPU options.
36702 2011-02-01 Richard Guenther <rguenther@suse.de>
36704 PR tree-optimization/47541
36705 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
36706 sure to have a field at offset zero.
36708 2011-01-31 Joseph Myers <joseph@codesourcery.com>
36710 * config/arc/arc.opt (EB, EL): New Driver options.
36712 2011-01-31 Joseph Myers <joseph@codesourcery.com>
36714 * config/alpha/osf5.opt: New.
36715 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
36717 2011-01-31 Joseph Myers <joseph@codesourcery.com>
36719 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
36721 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
36723 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
36724 -floop-interchange.
36725 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
36726 is an alias of -floop-interchange and that it requires the
36727 Graphite infrastructure.
36728 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
36729 flag_loop_interchange based on the value of flag_tree_loop_linear.
36731 2011-01-31 Jakub Jelinek <jakub@redhat.com>
36732 Richard Guenther <rguenther@suse.de>
36734 PR tree-optimization/47538
36735 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
36736 type instead of r1type, except for comparisons. For right
36737 shifts and comparisons punt if there are mismatches in
36738 sizetype vs. non-sizetype types.
36740 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36742 * doc/sourcebuild.texi (Effective-Target Keywords): Document
36745 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36747 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
36749 * configure: Regenerate.
36751 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36753 * configure.ac (gcc_cv_ld_static_option): Define.
36754 (gcc_cv_ld_dynamic_option): Define.
36755 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
36757 (HAVE_LD_STATIC_DYNAMIC): Update message.
36758 (LD_STATIC_OPTION): Define.
36759 (LD_DYNAMIC_OPTION): Define.
36760 * configure: Regenerate.
36761 * config.in: Regenerate.
36762 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
36763 HAVE_LD_STATIC_DYNAMIC]: Use them.
36765 2011-01-31 Nick Clifton <nickc@redhat.com>
36767 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
36768 registers inside interrupt handlers if the handler is not a leaf
36771 2011-01-31 Nick Clifton <nickc@redhat.com>
36773 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
36774 reg_renumber returning an INVALID_REGNUM.
36776 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
36779 * doc/install.texi: Document host options discarded when cross
36780 configuring target libraries.
36782 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
36785 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
36788 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36790 (no_real_insns_p, schedule_block, set_priorities): Drop special
36791 treatment of boundary debug insns.
36792 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36793 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
36794 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36795 (BOUNDARY_DEBUG_INSN_P): Likewise.
36796 (SCHEDULE_DEBUG_INSN_P): Likewise.
36797 * sched-rgn.c (init_ready_list): Drop special treatment of
36798 boundary debug insns.
36799 * final.c (rest_of_clean-state): Clear notes' BB.
36801 2011-01-31 Alan Modra <amodra@gmail.com>
36803 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
36804 toc relative expressions as we do in print_operand_address.
36806 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
36808 * doc/extend.texi: Follow spelling conventions.
36809 * doc/invoke.texi: Fix a typo.
36811 2011-01-30 Joseph Myers <joseph@codesourcery.com>
36813 * config/hpux11.opt: New.
36814 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
36815 ia64*-*-hpux*): Use hpux11.opt.
36817 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
36819 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
36822 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
36824 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
36827 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
36829 * doc/install.texi (Binaries): Remove outdated reference for
36830 Motorola 68HC11/68HC12 downloads.
36832 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
36834 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
36837 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
36840 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
36843 2011-01-28 Ahmad Sharif <asharif@google.com>
36845 * value-prof.c (check_counter): Corrected error message.
36847 2011-01-29 Jie Zhang <jie@codesourcery.com>
36849 * config/arm/arm.c (arm_legitimize_reload_address): New.
36850 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
36851 arm_legitimize_reload_address.
36852 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
36854 2011-01-28 Ian Lance Taylor <iant@google.com>
36856 * godump.c (go_define): Ignore macros whose definitions include
36857 two adjacent operands.
36859 2011-01-28 Jakub Jelinek <jakub@redhat.com>
36862 * varasm.c (force_const_mem): Store copy of x in desc->constant
36863 instead of x itself.
36864 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
36865 itself into REG_EQUAL note.
36867 2011-01-28 Joseph Myers <joseph@codesourcery.com>
36869 * config/freebsd.opt (posix, rdynamic): New Driver options.
36871 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36873 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
36874 -Bstatic/-Bdynamic.
36875 * configure: Regenerate.
36877 2011-01-27 Joseph Myers <joseph@codesourcery.com>
36879 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
36880 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
36882 2011-01-27 Anatoly Sokolov <aesok@post.ru>
36884 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
36885 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
36886 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
36887 (s390_preferred_reload_class): Make static. Change return and
36888 'rclass' argument type to reg_class_t.
36890 2011-01-27 Jan Hubicka <jh@suse.cz>
36892 PR middle-end/46949
36893 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
36894 (process_function_and_variable_attributes): Check defined weakrefs.
36896 2011-01-27 Martin Jambor <mjambor@suse.cz>
36898 PR tree-optimization/47228
36899 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
36900 build_ref_for_offset.
36902 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36904 * config/spu/spu-elf.h (ASM_SPEC): Remove.
36906 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
36908 PR rtl-optimization/46856
36909 * postreload.c (reload_combine_recognize_const_pattern): Do not
36910 separate cc0 setter and user on cc0 targets.
36912 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
36915 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
36916 passed a VOID_TYPE expression, immediately emit an error and
36917 return error_mark_node.
36919 2011-01-26 Jeff Law <law@redhat.com>
36921 PR rtl-optimization/47464
36922 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
36923 rather than may_trap_p as needed.
36925 2011-01-26 DJ Delorie <dj@redhat.com>
36927 PR rtl-optimization/46878
36928 * combine.c (insn_a_feeds_b): Check for the implicit cc0
36929 setter/user dependency as well.
36931 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
36933 PR rtl-optimization/44469
36934 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
36935 after removing trivially dead basic blocks.
36937 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36939 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
36940 * config/frv/frv.h (LINK_SPEC): Likewise.
36941 * config/i386/netware.h (LINK_SPEC): Likewise.
36942 * config/m68k/linux.h (ASM_SPEC): Likewise.
36943 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
36944 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
36945 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36946 * config/sparc/linux.h (ASM_SPEC): Likewise.
36947 * config/sparc/linux64.h (ASM_SPEC): Likewise.
36948 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36950 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36952 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
36953 * config/frv/frv.h (ASM_SPEC): Likewise.
36954 * config/m68k/linux.h (ASM_SPEC): Likewise.
36955 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
36956 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
36957 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36958 * config/sparc/linux.h (ASM_SPEC): Likewise.
36959 * config/sparc/linux64.h (ASM_SPEC): Likewise.
36960 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36962 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36964 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
36965 * config/frv/frv.h (LINK_SPEC): Likewise.
36966 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
36968 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36970 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
36971 * config/frv/frv.h (ASM_SPEC): Likewise.
36972 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
36973 * config/m68k/linux.h (ASM_SPEC): Likewise.
36974 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
36975 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
36976 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36977 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
36978 * config/sparc/linux.h (ASM_SPEC): Likewise.
36979 * config/sparc/linux64.h (ASM_SPEC): Likewise.
36980 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36981 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
36983 2011-01-26 Steve Ellcey <sje@cup.hp.com>
36986 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
36988 (vec_extract_evenodd_help): Ditto.
36989 (vec_extract_evenv4hi): Ditto.
36990 (vec_extract_oddv4hi): Ditto.
36991 (vec_interleave_lowv2si): Ditto.
36992 (vec_interleave_highv2si): Ditto.
36993 (vec_extract_evenv2si): Ditto.
36994 (vec_extract_oddv2si: Ditto.
36995 (vec_pack_trunc_v2si): Ditto.
36997 2011-01-22 Jan Hubicka <jh@suse.cz>
37000 * cgraph.h (cgraph_local_info): New field can_change_signature.
37001 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
37002 signature can change.
37003 (ipcp_estimate_growth): Call sequence simplify only if calle signature
37005 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
37006 (cgraph_function_versioning): We can not change signature of functions
37007 that don't allow that.
37008 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
37009 (lto_input_node): Likewise.
37010 * ipa-inline.c (compute_inline_parameters): Compute
37011 local.can_change_signature.
37012 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
37013 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
37014 functions that can not change signature.
37015 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
37016 init_cumulative_args): Do not use local calling conventions
37017 for functions that can not change signature.
37019 2011-01-22 Jan Hubicka <jh@suse.cz>
37021 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
37023 2011-01-26 Richard Guenther <rguenther@suse.de>
37025 PR tree-optimization/47190
37026 * cgraphunit.c (process_common_attributes): New function.
37027 (process_function_and_variable_attributes): Use it.
37029 2011-01-26 Richard Guenther <rguenther@suse.de>
37032 * cgraphbuild.c (record_eh_tables): Record reference to personality
37035 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
37038 * sel-sched.c (moveup_expr): Don't let debug insns prevent
37039 non-debug insns from moving up.
37041 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
37044 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
37045 t-dlldir{,-x} fragment for build and add it to tmake_file.
37046 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
37047 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
37048 * config/i386/t-dlldir: New file.
37049 (SHLIB_DLLDIR): Define.
37050 * config/i386/t-dlldir-x: New file.
37051 (SHLIB_DLLDIR): Define.
37052 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
37053 (SHLIB_INSTALL): Use it.
37055 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
37058 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
37059 lower bound of the allowed Thumb-2 coprocessor load/store
37060 index range to -256. Add explaining comment.
37062 2011-01-25 Ian Lance Taylor <iant@google.com>
37064 * godump.c (go_define): Improve lexing of macro expansion to only
37065 accept expressions which match Go spec.
37067 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
37070 * tree.c (handle_dll_attribute): Handle it.
37071 * doc/extend.texi (@item dllexport): Mention it.
37072 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
37074 2011-01-25 Ian Lance Taylor <iant@google.com>
37076 PR tree-optimization/26854
37077 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
37078 (decl_jump_unsafe): Move higher in file, with no other change.
37079 (bind): Set has_jump_unsafe_decl if appropriate.
37080 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
37081 (check_earlier_gotos): Likewise.
37082 (c_check_switch_jump_warnings): Likewise.
37084 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
37086 * doc/invoke.texi (Warning Options): Add missing hyphen.
37087 (-fprofile-dir): Minor grammatical fixes.
37088 (-fbranch-probabilities): Likewise.
37090 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
37094 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37096 (no_real_insns_p, schedule_block, set_priorities): Drop special
37097 treatment of boundary debug insns.
37098 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37099 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
37100 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37101 (BOUNDARY_DEBUG_INSN_P): Likewise.
37102 (SCHEDULE_DEBUG_INSN_P): Likewise.
37103 * sched-rgn.c (init_ready_list): Drop special treatment of
37104 boundary debug insns.
37105 * final.c (rest_of_clean-state): Clear notes' BB.
37107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37109 * Makefile.in (LAMBDA_H): Removed.
37110 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
37111 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
37112 lambda-trans.o, and tree-loop-linear.o.
37113 (lto-symtab.o): Remove dependence on LAMBDA_H.
37114 (tree-loop-linear.o): Remove rule.
37115 (lambda-mat.o): Same.
37116 (lambda-trans.o): Same.
37117 (lambda-code.o): Same.
37118 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
37119 (tree-vect-slp.o): Same.
37120 * hwint.h (gcd): Moved here.
37121 (least_common_multiple): Same.
37122 * lambda-code.c: Removed.
37123 * lambda-mat.c: Removed.
37124 * lambda-trans.c: Removed.
37125 * lambda.h: Removed.
37126 * tree-loop-linear.c: Removed.
37127 * lto-symtab.c: Do not include lambda.h.
37128 * omega.c (gcd): Removed.
37129 * passes.c (init_optimization_passes): Remove pass_linear_transform.
37130 * tree-data-ref.c (print_lambda_vector): Moved here.
37131 (lambda_vector_copy): Same.
37132 (lambda_matrix_copy): Same.
37133 (lambda_matrix_id): Same.
37134 (lambda_vector_first_nz): Same.
37135 (lambda_matrix_row_add): Same.
37136 (lambda_matrix_row_exchange): Same.
37137 (lambda_vector_mult_const): Same.
37138 (lambda_vector_negate): Same.
37139 (lambda_matrix_row_negate): Same.
37140 (lambda_vector_equal): Same.
37141 (lambda_matrix_right_hermite): Same.
37142 * tree-data-ref.h: Do not include lambda.h.
37143 (lambda_vector): Moved here.
37144 (lambda_matrix): Same.
37145 (dependence_level): Same.
37146 (lambda_transform_legal_p): Removed declaration.
37147 (lambda_collect_parameters): Same.
37148 (lambda_compute_access_matrices): Same.
37149 (lambda_vector_gcd): Same.
37150 (lambda_vector_new): Same.
37151 (lambda_vector_clear): Same.
37152 (lambda_vector_lexico_pos): Same.
37153 (lambda_vector_zerop): Same.
37154 (lambda_matrix_new): Same.
37155 * tree-flow.h (least_common_multiple): Removed declaration.
37156 * tree-parloops.c (lambda_trans_matrix): Moved here.
37157 (LTM_MATRIX): Same.
37158 (LTM_ROWSIZE): Same.
37159 (LTM_COLSIZE): Same.
37160 (LTM_DENOMINATOR): Same.
37161 (lambda_trans_matrix_new): Same.
37162 (lambda_matrix_vector_mult): Same.
37163 (lambda_transform_legal_p): Same.
37164 * tree-pass.h (pass_linear_transform): Removed declaration.
37165 * tree-ssa-loop.c (tree_linear_transform): Removed.
37166 (gate_tree_linear_transform): Removed.
37167 (pass_linear_transform): Removed.
37168 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
37169 flag_loop_interchange.
37171 2011-01-25 Jakub Jelinek <jakub@redhat.com>
37173 PR tree-optimization/47265
37174 PR tree-optimization/47443
37175 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
37176 if name still has some uses.
37178 2011-01-25 Martin Jambor <mjambor@suse.cz>
37180 PR tree-optimization/47382
37181 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
37182 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
37184 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
37186 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
37187 sjlj_except_unwind_info.
37189 2011-01-25 Richard Guenther <rguenther@suse.de>
37191 PR tree-optimization/47426
37192 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
37193 visible functions results escape.
37195 2011-01-25 Jakub Jelinek <jakub@redhat.com>
37198 * config/arm/arm.c (any_sibcall_uses_r3): New function.
37199 (arm_get_frame_offsets): Use it.
37201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37202 Jakub Jelinek <jakub@redhat.com>
37204 PR tree-optimization/47271
37205 * tree-if-conv.c (bb_postdominates_preds): New.
37206 (if_convertible_bb_p): Call bb_postdominates_preds.
37207 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
37208 (predicate_scalar_phi): Call bb_postdominates_preds.
37210 2011-01-25 Nick Clifton <nickc@redhat.com>
37212 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
37213 * config/rx/rx.c (rx_function_value): Likewise.
37214 (rx_promote_function_mode): Likewise.
37215 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
37216 in order to make it legitimate.
37217 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
37218 make sure that the first operand is the same as the result register.
37219 (addsi3_unspec): Delete.
37220 (subdi3): Do not accept immediate operands.
37221 (subdi3_internal): Likewise.
37223 2011-01-25 Jeff Law <law@redhat.com>
37225 PR rtl-optimization/37273
37226 * ira-costs.c (scan_one_insn): Detect constants living in memory and
37227 handle them like argument loads from stack slots. Do not double
37228 count memory for memory constants and argument loads from stack slots.
37230 2011-01-25 Jakub Jelinek <jakub@redhat.com>
37232 PR tree-optimization/47427
37233 PR tree-optimization/47428
37234 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
37235 coalesce if the new root var would be TREE_READONLY.
37237 2011-01-25 Richard Guenther <rguenther@suse.de>
37239 PR middle-end/47414
37240 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
37241 correct type for TBAA.
37243 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37245 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
37246 (close_phi_written_to_memory): Call for_each_index with
37247 dr_indices_valid_in_loop.
37249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37251 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
37252 when it is initialized.
37254 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37256 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
37257 call to graphite_find_data_references_in_stmt.
37258 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
37259 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
37260 call to graphite_find_data_references_in_stmt.
37261 (analyze_drs_in_stmts): Same.
37262 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
37263 in which the scalar analysis of indices is performed.
37264 (create_data_ref): Same. Update call to dr_analyze_indices.
37265 (find_data_references_in_stmt): Update call to create_data_ref.
37266 (graphite_find_data_references_in_stmt): Same.
37267 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
37269 (create_data_ref): Same.
37270 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
37271 call to create_data_ref.
37273 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37275 * graphite-sese-to-poly.c (build_poly_scop): Move
37276 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
37278 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37280 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
37281 VAR_DECL, PARM_DECL, and RESULT_DECL.
37283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37285 * graphite-dependences.c (reduction_dr_1): Allow several reductions
37286 in a reduction PBB.
37287 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
37288 that have already been marked as PBB_IS_REDUCTION.
37290 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37292 * graphite-scop-detection.c (same_close_phi_node): New.
37293 (remove_duplicate_close_phi): New.
37294 (make_close_phi_nodes_unique): New.
37295 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
37297 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37299 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
37300 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
37301 of both data references to be the same.
37303 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37305 * graphite-dependences.c (build_lexicographical_constraint): Remove
37306 the gdim parameter.
37307 (build_lexicographical_constraint): Adjust call to
37308 ppl_powerset_is_empty.
37309 (dependence_polyhedron): Same.
37310 (graphite_legal_transform_dr): Same.
37311 (graphite_carried_dependence_level_k): Same.
37312 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
37314 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
37316 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37318 * graphite-sese-to-poly.c
37319 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
37320 (close_phi_written_to_memory): New.
37321 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
37324 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37326 * doc/install.texi: Update the expected version number of PPL to 0.11.
37327 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
37328 #if PPL_VERSION_MINOR < 11.
37330 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37332 * graphite-dependences.c: Include graphite-cloog-util.h.
37333 (new_poly_ddr): Inlined into dependence_polyhedron.
37334 (free_poly_ddr): Moved close by new_poly_ddr.
37335 (dependence_polyhedron_1): Renamed dependence_polyhedron.
37336 Early return NULL when ppl_powerset_is_empty returns true.
37337 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
37338 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
37339 (graphite_legal_transform_dr): Call new_poly_ddr.
37340 (graphite_carried_dependence_level_k): Same.
37341 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
37342 (dot_transformed_deps_stmt_1): Removed.
37343 (dot_deps_stmt_1): Call dot_deps_stmt_2.
37344 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
37345 (dot_deps_1): Call dot_deps_2.
37346 * Makefile.in (graphite-dependences.o): Add missing dependence on
37347 graphite-cloog-util.h.
37349 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37351 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
37352 (build_lexicographical_constraint): Same.
37353 (dependence_polyhedron_1): Same.
37354 (graphite_legal_transform_dr): Same.
37355 (graphite_carried_dependence_level_k): Same.
37356 * graphite-ppl.c (ppl_powerset_is_empty): New.
37357 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
37358 * tree-data-ref.c (dump_data_reference): Print the basic block index.
37360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37362 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
37363 the "a followed by b" relation and document it.
37365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37367 * graphite-dependences.c (build_lexicographical_constraint): Stop the
37368 iteration when the bag of constraints is empty.
37370 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37372 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
37374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37376 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
37377 nest and two loop depths as parameters.
37378 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
37379 lst_perfect_nestify.
37381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37383 * graphite-dependences.c (print_pddr): Call
37384 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
37386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37388 * graphite-ppl.c (debug_gmp_value): New.
37389 * graphite-ppl.h (debug_gmp_value): Declared.
37391 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
37393 * doc/install.texi: Document availability of cloog-0.16.
37395 2011-01-25 Vladimir Kargov <kargov@gmail.com>
37397 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
37398 invalid postdominance info.
37400 2011-01-24 Jan Hubicka <jh@suse.cz>
37403 * doc/extend.texi (weak pragma): Drop claim that it must
37404 appear before definition.
37405 * varasm.c (merge_weak, declare_weak): Only sanity check
37406 that DECL is not output at a time it is declared weak.
37408 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
37410 * machmode.def: Fixed comments.
37412 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
37414 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
37416 2011-01-24 Paul Koning <ni1d@arrl.net>
37418 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
37421 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
37424 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
37425 (block_info): Add scanned and prev.
37426 (move_or_delete_vzeroupper_2): Return if the basic block
37427 has been scanned and the upper 128bit state is unchanged
37428 from the last scan.
37429 (move_or_delete_vzeroupper_1): Return true if the exit
37431 (move_or_delete_vzeroupper): Visit basic blocks using the
37432 work-list based algorithm based on vt_find_locations in
37435 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
37437 2011-01-24 Nick Clifton <nickc@redhat.com>
37439 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
37440 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
37441 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
37442 then define __v850e1__.
37443 * doc/invoke.texi: Document -mv850es.
37445 2011-01-24 Richard Henderson <rth@redhat.com>
37447 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
37448 compound unordered comparisons.
37449 * config/rx/rx.c (rx_split_fp_compare): Remove.
37450 * config/rx/rx-protos.h: Update.
37451 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
37452 (cbranchsf4): Don't call rx_split_fp_compare.
37453 (*cbranchsf4): Use rx_split_cbranch.
37454 (*cmpsf): Don't accept "i" constraint.
37455 (*conditional_branch): Only valid after reload.
37456 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
37458 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
37461 * config/rs6000/altivec.md (vector constant splitters): Add
37462 support for creating vector single precision constants if -mvsx is
37463 used and we would create the constant using Altivec primitives.
37465 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
37466 Richard Sandiford <rdsandiford@googlemail.com>
37468 PR rtl-optimization/47166
37469 * reload1.c (emit_reload_insns): Disable the spill_reg_store
37470 mechanism for PRE_MODIFY and POST_MODIFY.
37471 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
37474 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
37476 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
37478 2011-01-22 Jan Hubicka <jh@suse.cz>
37481 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
37483 2011-01-22 Jan Hubicka <jh@suse.cz>
37485 PR tree-optimization/43884
37487 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
37488 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
37490 2011-01-22 Anatoly Sokolov <aesok@post.ru>
37492 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
37493 * config/s390/s390.c (s390_register_move_cost,
37494 s390_memory_move_cost): New.
37495 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
37497 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37499 PR middle-end/47401
37500 * except.c (sjlj_assign_call_site_values): Move setting the
37501 crtl->uses_eh_lsda flag to ...
37502 (sjlj_mark_call_sites): ... here.
37503 (sjlj_emit_function_enter): Support NULL dispatch label.
37504 (sjlj_build_landing_pads): In a function with no landing pads
37505 that still has must-not-throw regions, generate code to register
37506 a personality function with empty LSDA.
37508 2011-01-21 Richard Henderson <rth@redhat.com>
37510 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
37512 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
37514 * compare-elim.c: New file.
37515 * Makefile.in (OBJS-common): Add it.
37516 (compare-elim.o): New.
37517 * common.opt (fcompare-elim): New.
37518 * opts.c (default_options_table): Add OPT_fcompare_elim.
37519 * tree-pass.h (pass_compare_elim_after_reload): New.
37520 * passes.c (init_optimization_passes): Add it.
37521 * recog.h: Protect against re-inclusion.
37522 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
37523 * doc/invoke.texi (-fcompare-elim): Document it.
37524 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
37525 * doc/tm.texi: Rebuild.
37527 2011-01-22 Nick Clifton <nickc@redhat.com>
37529 * config/rx/rx.md (cstoresf4): Pass comparison operator to
37530 rx_split_fp_compare.
37532 2011-01-22 Nick Clifton <nickc@redhat.com>
37534 * config/rx/rx.md (UNSPEC_CONST): New.
37535 (deallocate_and_return): Wrap the amount popped off the stack in
37536 an UNSPEC_CONST in order to stop it being rejected by
37537 -mmax-constant-size.
37538 (pop_and_return): Add a "(return)" rtx.
37539 (call): Drop the immediate operand.
37540 (call_internal): Likewise.
37541 (call_value): Likewise.
37542 (call_value_internal): Likewise.
37543 (sibcall_internal): Likewise.
37544 (sibcall_value_internal): Likewise.
37545 (sibcall): Likewise. Generate an explicit call using
37547 (sibcall_value): Likewise.
37548 (mov<>): FAIL if a constant operand is not legitimate.
37549 (addsi3_unpsec): New pattern.
37551 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
37552 (ok_for_max_constant): New function.
37553 (gen_safe_add): New function.
37554 (rx_expand_prologue): Use gen_safe_add.
37555 (rx_expand_epilogue): Likewise.
37556 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
37559 2011-01-21 Jeff Law <law@redhat.com>
37561 PR tree-optimization/47053
37562 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
37563 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
37564 statements are deleted.
37565 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
37566 is nonempty, then purge dead edges and cleanup the CFG.
37568 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
37571 Temporarily revert:
37572 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
37574 * tree-dfa.c (create_var_ann): Mark variable as used.
37576 2011-01-21 Jakub Jelinek <jakub@redhat.com>
37578 PR middle-end/45566
37579 * except.c (convert_to_eh_region_ranges): Emit queued no-region
37580 notes from other section in hot/cold partitioning even if
37581 last_action is -3. Increment call_site_base.
37583 PR rtl-optimization/47366
37584 * fwprop.c (forward_propagate_into): Return bool. If
37585 any changes are made, -fnon-call-exceptions is used and
37586 REG_EH_REGION note is present, call purge_dead_edges
37587 and return true if it purged anything.
37588 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
37589 any EH edges were purged.
37591 2011-01-21 Jeff Law <law@redhat.com>
37593 PR rtl-optimization/41619
37594 * caller-save.c (setup_save_areas): Break out code to determine
37595 which hard regs are live across calls by examining the reload chains
37596 so that it is always used.
37597 Eliminate code which checked REG_N_CALLS_CROSSED.
37599 2011-01-21 Jakub Jelinek <jakub@redhat.com>
37601 PR tree-optimization/47355
37602 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
37603 NOP has non-debug uses beyond PHIs in new_bb.
37605 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
37608 * cfgexpand.c (account_used_vars_for_block): Only account vars
37609 that are annotated as used.
37610 (estimated_stack_frame_size): Don't set TREE_USED.
37611 * tree-dfa.c (create_var_ann): Mark variable as used.
37613 2011-01-21 Richard Guenther <rguenther@suse.de>
37615 PR middle-end/47395
37616 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
37618 2011-01-21 Richard Guenther <rguenther@suse.de>
37620 PR tree-optimization/47365
37621 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
37622 (vn_reference_lookup_pieces): Adjust.
37623 (vn_reference_lookup): Likewise.
37624 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
37625 (vn_reference_lookup_3): Only look through kills if in
37626 VN_WALKREWRITE mode.
37627 (vn_reference_lookup_pieces): Adjust.
37628 (vn_reference_lookup): Likewise.
37629 (visit_reference_op_load): Likewise.
37630 (visit_reference_op_store): Likewise.
37631 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
37632 (compute_avail): Likewise.
37633 (eliminate): Likewise.
37635 2011-01-21 Jakub Jelinek <jakub@redhat.com>
37637 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
37638 DECL_IGNORED_P non-reg vars if they are used.
37640 PR tree-optimization/47391
37641 * varpool.c (const_value_known_p): Return false if
37644 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
37647 * config/i386/i386.c (ix86_local_alignment): Handle
37648 case for va_list_type_node is nil.
37649 (ix86_canonical_va_list_type): Likewise.
37651 2011-01-21 Alan Modra <amodra@gmail.com>
37653 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
37654 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
37656 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37658 * config/arm/arm.md (define_attr type): Rename f_load
37659 and f_store to f_fpa_load and f_fpa_store. Update.
37660 (write_conflict): Deal with rename fallout.
37661 (*push_fp_multi): Likewise.
37662 * config/arm/fpa.md (f_load): Use f_fpa_load.
37663 (f_store): Use f_fpa_store.
37664 (*movsf_fpa): Likewise.
37665 (*movdf_fpa): Likewise.
37666 (*movxf_fpa): Likewise.
37667 (*thumb2_movsf_fpa): Likewise.
37668 (*thumb2_movdf_fpa): Likewise.
37669 (*thumb2_movxf_fpa): Likewise.
37670 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
37671 f_loadd and f_stored.
37672 (*thumb2_movdi_vfp): Likewise.
37673 (*thumb2_movsf_vfp): Fix attribute to f_loads.
37674 (*thumb2_movsi_vfp): Likewise.
37675 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
37676 Use f_loads instead of f_load.
37677 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
37679 2011-01-20 Anatoly Sokolov <aesok@post.ru>
37681 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
37682 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
37683 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
37684 (xtensa_mode_dependent_address_p): New function.
37685 (constantpool_address_p): Make static. Change return type to bool.
37686 Change argument type to const_rtx. Use CONST_INT_P predicate.
37688 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
37691 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
37693 2011-01-20 Jakub Jelinek <jakub@redhat.com>
37696 * cfgexpand.c (expand_debug_expr): Instead of generating
37697 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
37700 2011-01-20 Richard Guenther <rguenther@suse.de>
37702 PR middle-end/47370
37703 * tree-inline.c (remap_gimple_op_r): Recurse manually for
37704 the pointer operand of MEM_REFs.
37706 2011-01-20 Jakub Jelinek <jakub@redhat.com>
37708 PR tree-optimization/46130
37709 * ipa-split.c (consider_split): If return_bb contains non-virtual
37710 PHIs other than for retval or if split_function would not adjust it,
37713 2011-01-20 Richard Guenther <rguenther@suse.de>
37715 PR tree-optimization/47167
37716 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
37717 Revert previous change, only avoid enumeral type changes.
37719 2011-01-19 Mike Stump <mikestump@comcast.net>
37721 * doc/tm.texi.in (BRANCH_COST): Englishify.
37722 * doc/tm.texi (BRANCH_COST): Likewise.
37724 2011-01-19 Dodji Seketeli <dodji@redhat.com>
37727 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
37728 (gen_scheduled_generic_parms_dies): New functions.
37729 (gen_struct_or_union_type_die): Schedule template parameters DIEs
37730 generation for the end of CU compilation.
37731 (dwarf2out_finish): Generate template parameters DIEs here.
37733 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
37736 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
37737 debug bind stmt on merge edges.
37739 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
37743 * function.c (instantiate_expr): Instantiate incoming rtl of
37744 implicit arguments, and recurse on VALUE_EXPRs.
37745 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
37746 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
37748 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
37750 * c-parser.c (c_parser_for_statement): Initialize
37751 collection_expression.
37753 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37755 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
37757 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37759 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
37760 (LINK_SHLIB_SPEC): Don't use %(link_path).
37761 (SUBTARGET_EXTRA_SPECS): Remove link_path.
37763 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37765 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
37766 (NO_SHARED_LIB_SUPPORT): Remove.
37767 (LINK_SHLIB_SPEC): Remove one conditional definition.
37769 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37771 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
37773 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
37774 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
37775 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
37776 %{call_shared} and conditionals on these options not being passed.
37777 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
37780 2011-01-19 Jakub Jelinek <jakub@redhat.com>
37782 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
37785 * ipa-split.c: Spelling fixes.
37787 2011-01-19 Richard Henderson <rth@redhat.com>
37789 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
37790 (*mulsi3): Likewise.
37792 * longlong.h [__mn10300__] (count_leading_zeros): New.
37793 [__mn10300__] (umul_ppmm, smul_ppmm): New.
37794 [__mn10300__] (add_ssaaaa, subddmmss): New.
37795 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
37796 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
37798 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37800 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
37802 2011-01-19 Richard Henderson <rth@redhat.com>
37804 * config/mn10300/mn10300.md (addsi3_flags): New.
37805 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
37806 (subsi3_flags, subc_internal, subdi3): New.
37807 (subdi3_internal, *subdi3_degenerate): New.
37808 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
37810 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
37811 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
37812 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
37813 * config/mn10300/mn10300-protos.h: Update.
37814 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
37815 (return_ret): Likewise. Rename from return_internal_regs.
37816 (return_internal): Remove.
37818 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
37819 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
37820 (mn10300_legitimate_constant_p): Likewise.
37821 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
37822 (mn10300_frame_size): New.
37823 (mn10300_expand_prologue): Use it.
37824 (mn10300_expand_epilogue): Likewise.
37825 (mn10300_initial_offset): Likewise.
37826 * config/mn10300/mn10300-protos.h: Update.
37827 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
37828 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
37829 (prologue, epilogue, return_internal): Tidy output code.
37830 (mn10300_store_multiple_operation, return): Likewise.
37831 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
37832 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
37833 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
37834 (load_pic, am33_load_pic): New.
37835 (mn10300_load_pic0, mn10300_load_pic1): New.
37837 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
37838 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
37839 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
37840 (cc_flags_for_mode, cc_flags_for_code): New.
37841 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
37842 overflow flag is not valid. Validate that the flags we need
37843 for the comparison are valid.
37844 (mn10300_output_cmp): Remove.
37845 (mn10300_output_add): New.
37846 (mn10300_select_cc_mode): Use cc_flags_for_code.
37847 (mn10300_split_cbranch): New.
37848 (mn10300_match_ccmode): New.
37849 (mn10300_split_and_operand_count): New.
37850 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
37852 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
37853 (addsi3): ... here. Use mn10300_output_add.
37854 (*addsi3_flags): New.
37855 (*am33_subsi3, *mn10300_subsi3): Merge...
37856 (subsi3): ... here. Use attribute isa.
37857 (*subsi3_flags): New.
37858 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
37860 (*am33_andsi3, *mn10300_andsi3): Merge...
37861 (andsi3): ... here.
37862 (*andsi3_flags): New.
37863 (andsi3 splitters): New.
37864 (*am33_iorsi3, *mn10300_iorsi3): Merge...
37865 (iorsi3): ... here.
37866 (*iorsi3_flags): New.
37867 (*am33_xorsi3, *mn10300_xorsi3): Merge...
37868 (xorsi3): ... here.
37869 (*xorsi3_flags): New.
37870 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
37871 (one_cmplsi2): ... here.
37872 (*one_cmplsi2_flags): New.
37873 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
37874 instead of "dax" in constraints. Use mn10300_split_cbranch.
37875 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
37876 use matching constraints to eliminate a self-comparison.
37877 (*integer_conditional_branch): Rename from integer_conditional_branch.
37878 Use int_mode_flags to match CC_REG.
37879 (*cbranchsi4_btst, *btstsi): New.
37880 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
37881 mn10300_split_cbranch.
37882 (*am33_cmpsf): Rename from am33_cmpsf.
37883 (*float_conditional_branch): Rename from float_conditional_branch.
37884 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
37885 (zero_extendqisi2): ... here.
37886 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
37887 (zero_extendhisi2): ... here.
37888 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
37889 (extendqisi2): ... here.
37890 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
37891 (extendhisi2): ... here.
37892 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
37893 (ashlsi3): ... here.
37894 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
37895 (lshrsi3): ... here.
37896 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
37897 (ashrsi3): ... here.
37898 (consecutive add peephole): Remove.
37899 * config/mn10300/predicates.md (label_ref_operand): New.
37900 (int_mode_flags): New.
37901 (CCZN_comparison_operator): New.
37903 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
37904 (throughput_42_latency_43): New reservation.
37905 (mulsidi3, umulsidi3): New expanders.
37906 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
37907 the MDR register to allocation; separately allocate the low and
37908 high parts of the DImode result.
37909 (umulsidi3_internal): Similarly.
37910 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
37911 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
37912 (udivsi3, umodsi3): Remove.
37913 (udivmodsi4, divmodsi4): New expanders.
37914 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
37915 (*divmodsi4): Simiarly.
37916 (ext_internal): New.
37918 * config/mn10300/constraints.md ("z"): New constraint.
37919 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
37920 (FIXED_REGISTERS): Don't fix MDR.
37921 (CALL_USED_REGSITERS): Reformat nicely.
37922 (REG_ALLOC_ORDER): Add MDR.
37923 (enum regclass): Add MDR_REGS.
37924 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
37925 (IRA_COVER_CLASSES): Add MDR_REGS.
37926 (REGNO_REG_CLASS): Handle MDR_REG.
37927 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
37928 (mn10300_register_move_cost): Likewise.
37929 * config/mn10300/mn10300.md (MDR_REG): New.
37930 (*movsi_internal): Handle moves to/from MDR_REGS.
37932 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
37934 (mn10300_secondary_reload): Tidy combination reload classes.
37935 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
37936 addresses for AM33. Allow symbolic offsets for reg+imm.
37937 (mn10300_regno_in_class_p): New.
37938 (mn10300_legitimize_reload_address): New.
37939 * config/mn10300/mn10300.h (enum reg_class): Remove
37940 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
37941 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
37942 SP_OR_GENERAL_REGS.
37943 (REG_CLASS_NAMES): Update to match.
37944 (REG_CLASS_CONTENTS): Likewise.
37945 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
37946 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
37947 (REGNO_IN_RANGE_P): Remove.
37948 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
37949 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
37950 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
37951 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
37952 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
37953 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
37954 (REGNO_GENERAL_P): New.
37955 (HAVE_POST_MODIFY_DISP): New.
37956 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
37957 (LEGITIMIZE_RELOAD_ADDRESS): New.
37958 * config/mn10300/mn10300-protos.h: Update.
37960 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
37961 DATA_REGS for AM33 stack-pointer destination.
37962 (mn10300_preferred_output_reload_class): Likewise.
37963 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
37964 into a form appropriate for ...
37965 (TARGET_SECONDARY_RELOAD): New.
37966 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
37967 * config/mn10300/mn10300-protos.h: Update.
37968 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
37969 reload_insi; use the "A" constraint for the scratch; handle AM33
37970 moves of sp to non-address registers.
37972 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
37973 (*movqi_internal): ... here.
37974 (*am33_movhi, *mn10300_movhi): Merge into...
37975 (*movhi_internal): ... here.
37976 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
37977 as the source/destination of moves from/to SP.
37978 (movsf): Only allow for AM33-2.
37979 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
37980 any integer constant constraint. Only allow for AM33-2. Tidy
37981 all of the alternative outputs.
37982 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
37983 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
37985 (udivsi3, umodsi3): New patterns for MN103 only.
37987 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
37989 * doc/tm.texi.in: Spell out that a lack of register class unions
37991 * doc/tm.texi: Regenerate.
37993 2011-01-19 Jakub Jelinek <jakub@redhat.com>
37995 PR rtl-optimization/47337
37996 * dce.c (check_argument_store): New function.
37997 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
37999 PR tree-optimization/47290
38000 * tree-eh.c (infinite_empty_loop_p): New function.
38001 (cleanup_empty_eh): Use it.
38003 2011-01-18 Steve Ellcey <sje@cup.hp.com>
38006 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
38007 (a64_expand_widen_sum): Ditto.
38008 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
38009 (vec_extract_evenodd_help): Ditto.
38010 (vec_extract_evenv4hi): Ditto.
38011 (vec_extract_oddv4hi): Ditto.
38012 (vec_extract_evenv2si): Ditto.
38013 (vec_extract_oddv2si): Ditto.
38014 (vec_extract_evenv2sf): Ditto.
38015 (vec_extract_oddv2sf): Ditto.
38016 (vec_pack_trunc_v4hi: Ditto.
38017 (vec_pack_trunc_v2si): Ditto.
38018 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
38019 (vec_interleave_highv8qi): Ditto.
38021 (vec_extract_oddv8qi): Ditto.
38022 (vec_interleave_lowv4hi): Ditto.
38023 (vec_interleave_highv4hi): Ditto.
38024 (vec_interleave_lowv2si): Ditto.
38025 (vec_interleave_highv2si): Ditto.
38027 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38029 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
38030 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
38031 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
38032 (pa_c_mode_for_suffix): New.
38033 (TARGET_EXPAND_BUILTIN): Define.
38034 (TARGET_C_MODE_FOR_SUFFIX): Define.
38035 (pa_builtins): Define.
38036 (pa_init_builtins): Register __float128 type and init new support
38038 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
38039 * config/pa/quadlib.c (_U_Qfcopysign): New.
38041 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
38043 PR middle-end/46894
38044 * explow.c (allocate_dynamic_stack_space): Do not assume more than
38045 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
38048 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38050 PR tree-optimization/47179
38051 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
38052 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
38054 2011-01-18 Richard Guenther <rguenther@suse.de>
38056 PR rtl-optimization/47216
38057 * emit-rtl.c: Include tree-flow.h.
38058 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
38059 of replicating it with different semantics.
38060 * Makefile.in (emit-rtl.o): Adjust.
38062 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38064 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
38065 (cortex_a9_dp): Handle neon types correctly.
38067 2011-01-18 Jakub Jelinek <jakub@redhat.com>
38069 PR rtl-optimization/47299
38070 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38071 subtarget. Use normal multiplication if both operands are constants.
38072 * expmed.c (expand_widening_mult): Don't try to optimize constant
38073 multiplication if op0 has VOIDmode. Convert op1 constant to mode
38076 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38078 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
38079 spacing after 'e.g.', typos, comma, hyphenation.
38081 2011-01-17 Richard Henderson <rth@redhat.com>
38083 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
38084 (rx_restricted_mem_operand): New.
38085 (rx_shift_operand): Use register_operand.
38086 (rx_source_operand, rx_compare_operand): Likewise.
38087 * config/rx/rx.md (addsi3_flags): New expander.
38088 (adddi3): Rewrite as expander.
38089 (adc_internal, *adc_flags, adddi3_internal): New patterns.
38090 (subsi3_flags): New expander.
38091 (subdi3): Rewrite as expander.
38092 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
38094 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
38095 (rx_init_builtins): Remove sat builtin.
38096 (rx_expand_builtin): Likewise.
38097 * config/rx/rx.md (ssaddsi3): New.
38098 (*sat): Rename from sat. Represent the CC_REG input.
38100 * config/rx/predicates.md (rshift_operator): New.
38101 * config/rx/rx.c (rx_expand_insv): Remove.
38102 * config/rx/rx-protos.h: Update.
38103 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
38104 operand to the canonical position.
38105 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
38106 (*bitclr, *bitclr_in_memory): Similarly.
38107 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
38108 (insv): Retain the zero_extract in the expansion.
38110 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
38111 (bswaphi2, bitinvert, revw): Likewise.
38113 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
38114 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
38115 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
38116 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
38117 (bitset, bitset_in_memory): Likewise.
38118 (bitinvert, bitinvert_in_memory): Likewise.
38119 (bitclr, bitclr_in_memory): Likewise.
38120 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
38121 (rx_strend, rx_cmpstrn): Likewise.
38122 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
38123 (bitop peep2 patterns): Remove.
38125 * config/rx/rx.c (rx_match_ccmode): New.
38126 * config/rx/rx-protos.h: Update.
38127 * config/rx/rx.md (abssi2): Clobber, don't set flags.
38128 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
38129 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
38130 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
38131 (fix_truncsfsi2, floatsisf2): Likewise.
38132 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
38133 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
38134 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
38135 (*subsi3_flags, *xorsi3_flags): New.
38137 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
38139 * config/rx/rx.c (rx_print_operand): Remove workaround for
38140 unsplit comparison operations.
38142 * config/rx/rx.md (movsicc): Split after reload.
38143 (*movsicc): Merge *movsieq and *movsine via match_operator.
38144 (*stcc): New pattern.
38146 * config/rx/rx.c (rx_float_compare_mode): Remove.
38147 * config/rx/rx.h (rx_float_compare_mode): Remove.
38148 * config/rx/rx.md (cstoresi4): Split after reload.
38149 (*sccc): New pattern.
38151 * config/rx/predicates.md (label_ref_operand): New.
38152 (rx_z_comparison_operator): New.
38153 (rx_zs_comparison_operator): New.
38154 (rx_fp_comparison_operator): New.
38155 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
38156 Validate that the flags are set properly for the comparison.
38157 (rx_gen_cond_branch_template): Remove.
38158 (rx_cc_modes_compatible): Remove.
38159 (mode_from_flags): New.
38160 (flags_from_code): Rename from flags_needed_for_conditional.
38161 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
38162 (rx_select_cc_mode): Likewise.
38163 (rx_split_fp_compare): New.
38164 (rx_split_cbranch): New.
38165 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
38166 (*cbranchsi4): Use match_operator and rx_split_cbranch.
38167 (*cbranchsf4): Similarly.
38168 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
38169 match_operator and rx_split_cbranch.
38170 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
38171 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
38172 (*cmpsi): Rename from cmpsi.
38173 (*tstsi): Rename from tstsi.
38174 (*cmpsf): Rename from cmpsf; use CC_Fmode.
38175 (*conditional_branch): Rename from conditional_branch.
38176 (*reveresed_conditional_branch): Remove.
38177 (b<code>): Remove expander.
38178 * config/rx/rx-protos.h: Update.
38180 * config/rx/rx.c (rx_compare_redundant): Remove.
38181 * config/rx/rx.md (cmpsi): Don't use it.
38182 * config/rx/rx-protos.h: Update.
38184 * config/rx/rx-modes.def (CC_F): New mode.
38185 * config/rx/rx.c (rx_select_cc_mode): New.
38186 * config/rx/rx.h (SELECT_CC_MODE): Use it.
38187 * config/rx/rx-protos.h: Update.
38189 2011-01-17 Richard Henderson <rth@redhat.com>
38191 * except.c (dump_eh_tree): Fix stray ; after for statement.
38193 2011-01-17 Richard Guenther <rguenther@suse.de>
38195 PR tree-optimization/47313
38196 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
38197 handling before copying the body. Properly deal with
38198 by-reference result in SSA form.
38200 2011-01-17 Ian Lance Taylor <iant@google.com>
38203 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
38204 (struct_value_alias_set): Don't define.
38205 (sparc_option_override): Don't set sparc_sr_alias_set and
38206 struct_value_alias_set.
38207 (save_or_restore_regs): Use gen_frame_mem rather than calling
38209 (sparc_struct_value_rtx): Likewise.
38211 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
38214 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
38215 (_mm_maskstore_pd): Likewise.
38216 (_mm_maskload_ps): Likewise.
38217 (_mm_maskstore_ps): Likewise.
38218 (_mm256_maskload_pd): Change mask to __m256i.
38219 (_mm256_maskstore_pd): Likewise.
38220 (_mm256_maskload_ps): Likewise.
38221 (_mm256_maskstore_ps): Likewise.
38223 * config/i386/i386-builtin-types.def: Updated.
38224 (ix86_expand_special_args_builtin): Likewise.
38226 * config/i386/i386.c (bdesc_special_args): Update
38227 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
38228 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
38229 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
38230 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
38232 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
38233 Use <avxpermvecmode> on mask register.
38234 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
38236 2011-01-17 Olivier Hainque <hainque@adacore.com>
38237 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38238 Eric Botcazou <ebotcazou@adacore.com>
38241 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
38242 if <= USHRT_MAX in 32-bit mode.
38244 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38246 * doc/install.texi (Configuration, Specific): Wrap long
38247 lines in examples. Allow line wrapping in long options
38248 and URLs where beneficial for PDF output.
38250 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
38252 * config/mips/mips.c (mips_classify_symbol): Don't return
38253 SYMBOL_PC_RELATIVE for nonlocal labels.
38255 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
38257 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
38259 2011-01-15 Jan Hubicka <jh@suse.cz>
38261 PR tree-optimization/47276
38262 * ipa.c (function_and_variable_visibility): Do not try to mark alias
38263 declarations as needed.
38265 2011-01-15 Martin Jambor <mjambor@suse.cz>
38267 * common.opt (fdevirtualize): New flag.
38268 * doc/invoke.texi (Option Summary): Document it.
38269 * opts.c (default_options_table): Add devirtualize flag.
38270 * ipa-prop.c (detect_type_change): Return immediately if
38271 devirtualize flag is not set.
38272 (detect_type_change_ssa): Likewise.
38273 (compute_known_type_jump_func): Likewise.
38274 (ipa_analyze_virtual_call_uses): Likewise.
38276 2011-01-14 Martin Jambor <mjambor@suse.cz>
38278 PR tree-optimization/45934
38279 PR tree-optimization/46302
38280 * ipa-prop.c (type_change_info): New type.
38281 (stmt_may_be_vtbl_ptr_store): New function.
38282 (check_stmt_for_type_change): Likewise.
38283 (detect_type_change): Likewise.
38284 (detect_type_change_ssa): Likewise.
38285 (compute_complex_assign_jump_func): Check for dynamic type change.
38286 (compute_complex_ancestor_jump_func): Likewise.
38287 (compute_known_type_jump_func): Likewise.
38288 (compute_scalar_jump_functions): Likewise.
38289 (ipa_analyze_virtual_call_uses): Likewise.
38290 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
38292 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38294 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
38295 * config/i386/i386.opt (msse5): New Alias.
38297 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38299 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
38300 * config/sparc/linux64.h (CC1_SPEC): Likewise.
38301 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
38302 * config/sparc/sparc.h (CC1_SPEC): Likewise.
38304 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38306 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
38308 * config/sparc/linux64.h (CC1_SPEC): Likewise.
38309 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
38310 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
38311 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
38313 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
38315 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38317 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
38319 2011-01-14 Mike Stump <mikestump@comcast.net>
38321 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
38322 * config/fr30/fr30.md: Likweise
38323 (movsi_push): Likewise.
38324 (movsi_pop): Likewise.
38325 (enter_func): Likewise.
38326 * config/moxie/moxie.md (movsi_push): Likewise.
38327 (movsi_pop): Likewise.
38329 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38331 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
38332 %{no_archive} %{exact_version}.
38333 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
38334 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
38335 %{no_archive} %{exact_version}.
38336 * config/mips/openbsd.h (LINK_SPEC): Likewise.
38337 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
38338 * config/mips/vxworks.h: Likewise.
38340 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38342 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
38344 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38346 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
38347 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
38349 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38351 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
38354 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38356 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
38358 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
38359 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
38361 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
38362 Don't handle -shlib.
38364 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38366 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
38367 (CC1_SPEC): Don't handle -profile.
38369 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38371 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
38372 * config/mips/mips.h (CC1_SPEC): Likewise.
38374 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38376 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
38377 * config/mips/mips.h (CC1_SPEC): Likewise.
38379 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38381 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
38382 * config/m32r/linux.h (LINK_SPEC): Likewise.
38383 * config/mips/linux.h (LINK_SPEC): Likewise.
38384 * config/mips/linux64.h (LINK_SPEC): Likewise.
38385 * config/sparc/linux.h (LINK_SPEC): Likewise.
38386 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
38387 LINK_SPEC): Likewise.
38388 * config/xtensa/linux.h (LINK_SPEC): Likewise.
38390 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38392 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
38394 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
38396 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38398 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
38399 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
38401 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38403 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
38405 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38407 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
38408 supports -Bstatic/-Bdynamic.
38409 * configure: Regenerate.
38411 2011-01-14 Jan Hubicka <jh@suse.cz>
38412 Jack Howarth <howarth@bromo.med.uc.edu>
38415 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
38416 when checking debug_info_level. Test write_symbols instead of
38417 debug_hooks->var_location when setting flag_var_tracking_uninit.
38419 2011-01-14 Richard Guenther <rguenther@suse.de>
38421 PR tree-optimization/47179
38422 * target.def (ref_may_alias_errno): New target hook.
38423 * targhooks.h (default_ref_may_alias_errno): Declare.
38424 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
38425 (default_ref_may_alias_errno): New function.
38426 * target.h (struct ao_ref_s): Declare.
38427 * tree-ssa-alias.c: Include target.h.
38428 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
38429 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
38430 (targhooks.o): Likewise.
38431 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
38432 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
38434 2011-01-14 Richard Guenther <rguenther@suse.de>
38436 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
38438 2011-01-14 Richard Guenther <rguenther@suse.de>
38440 PR tree-optimization/47280
38441 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
38442 return CFG changes.
38443 (tree_ssa_forward_propagate_single_use_vars): Deal with
38444 CFG changes from associate_plusminus.
38446 2011-01-14 Richard Guenther <rguenther@suse.de>
38448 PR middle-end/47281
38450 2011-01-11 Richard Guenther <rguenther@suse.de>
38452 PR tree-optimization/46076
38453 * tree-ssa.c (useless_type_conversion_p): Conversions from
38454 unprototyped to empty argument list function types are useless.
38456 2011-01-14 Richard Guenther <rguenther@suse.de>
38458 PR tree-optimization/47286
38459 * tree-ssa-structalias.c (new_var_info): Register variables are global.
38461 2011-01-14 Martin Jambor <mjambor@suse.cz>
38463 PR middle-end/46823
38464 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
38466 2011-01-13 Anatoly Sokolov <aesok@post.ru>
38468 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
38469 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
38470 * config/xtensa/xtensa.c (xtensa_libcall_value,
38471 xtensa_function_value_regno_p): New functions.
38472 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
38474 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
38477 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
38479 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
38480 New function prototype.
38481 * config/i386/winnt.c (i386_pe_assemble_visibility):
38482 Warn only if attribute was specified by user.
38484 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
38487 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
38489 (floatunsdidf2_fcfidu): Ditto.
38491 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38493 * config/s390/s390.c (print_operand_address): Replace 'error' with
38494 'output_operand_lossage'.
38495 (print_operand): Likewise.
38497 2011-01-13 Jeff Law <law@redhat.com>
38499 PR rtl-optimization/39077
38500 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
38501 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
38502 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
38503 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
38504 * gcse.c (prune_insertions_deletions): New function.
38505 (compute_pre_data): Use it.
38507 2011-01-13 Dodji Seketeli <dodji@redhat.com>
38510 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
38512 (prune_unused_types_mark): Use it.
38514 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
38516 PR rtl-optimization/45352
38517 * sel-sched.c: Update copyright years.
38518 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
38519 in the advancing loop when we have issued issue_rate insns.
38521 2011-01-12 Richard Henderson <rth@redhat.com>
38523 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
38524 (TARGET_MD_ASM_CLOBBERS): New.
38526 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
38527 (TARGET_DELEGITIMIZE_ADDRESS): New.
38529 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
38530 (clzsi2, *bsch): New patterns.
38532 * config/mn10300/mn10300.md (INT): New mode iterator.
38533 (*mov<INT>_clr): New pattern, and peep2 to generate it.
38535 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
38536 flag_split_wide_types.
38538 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
38539 (mn10300_trampoline_init): Rewrite without a template, an immediate
38540 load and a direct branch.
38541 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
38543 2011-01-12 Anatoly Sokolov <aesok@post.ru>
38545 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
38546 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
38547 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
38548 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
38550 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
38553 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
38556 2011-01-12 Jan Hubicka <jh@suse.cz>
38559 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
38560 (PLUGIN_COND_CLOSE): New macro.
38561 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
38563 2011-01-12 Richard Guenther <rguenther@suse.de>
38566 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
38567 register variables in a MEM_REF.
38569 2011-01-12 Joseph Myers <joseph@codesourcery.com>
38571 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
38572 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
38573 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
38574 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
38575 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
38576 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
38577 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
38578 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
38579 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
38580 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
38581 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
38582 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
38583 * config/gnu-user.h: New. Copied from linux.h.
38584 (LINUX_TARGET_STARTFILE_SPEC): Rename to
38585 GNU_USER_TARGET_STARTFILE_SPEC.
38586 (LINUX_TARGET_ENDFILE_SPEC): Rename to
38587 GNU_USER_TARGET_ENDFILE_SPEC.
38588 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
38589 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
38590 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
38591 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
38592 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
38593 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
38594 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
38595 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
38596 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
38597 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
38598 * config/arm/linux-eabi.h (CC1_SPEC): Use
38599 GNU_USER_TARGET_CC1_SPEC.
38600 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
38601 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
38602 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
38603 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
38604 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
38605 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
38606 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
38607 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
38609 2011-01-12 Richard Guenther <rguenther@suse.de>
38612 * doc/invoke.texi (ffast-math): Document it is turned on
38615 2011-01-12 Jan Hubicka <jh@suse.cz>
38617 PR tree-optimization/47233
38618 * opts.c (common_handle_option): Disable ipa-reference with profile
38621 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
38623 * c-parser.c (c_parser_objc_at_property_declaration): Improved
38626 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
38628 * c-parser.c (c_lex_one_token): Updated and reindented some
38629 comments. No changes in code.
38631 2011-01-11 Ian Lance Taylor <iant@google.com>
38633 * godump.c (go_output_var): Don't output the variable if there is
38634 already a type with the same name.
38636 2011-01-11 Ian Lance Taylor <iant@google.com>
38638 * godump.c (go_format_type): Don't generate float80.
38640 2011-01-11 Richard Henderson <rth@redhat.com>
38642 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
38643 declaration. Rewrite for both speed and size.
38644 (mn10300_address_cost_1): Remove.
38645 (mn10300_register_move_cost): New.
38646 (mn10300_memory_move_cost): New.
38647 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
38648 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
38649 extensions, shifts, BSWAP, CLZ.
38650 (mn10300_wide_const_load_uses_clr): Remove.
38651 (TARGET_REGISTER_MOVE_COST): New.
38652 (TARGET_MEMORY_MOVE_COST): New.
38653 * config/mn10300/mn10300-protos.h: Update.
38654 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
38656 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
38657 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
38658 * config/mn10300/mn10300-protos.h: Update.
38659 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
38660 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
38661 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
38662 (*test_int_bitfield, *test_byte_bitfield): Remove.
38663 (*bit_test, *subreg_bit_test): Remove.
38664 * config/mn10300/predicates.md (const_8bit_operand): Remove.
38666 * config/mn10300/constraints.md ("c"): Rename from "A".
38667 ("A", "D"): New constraint letters.
38668 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
38669 (fmssf4, fnmasf4, fnmssf4): Likewise.
38671 * config/mn10300/mn10300.md (isa): New attribute.
38672 (enabled): New attribute.
38674 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
38675 (abssf2, negsf2): Define only for hardware fp.
38676 (sqrtsf2): Reformat.
38677 (addsf3, subsf3, mulsf3): Merge expander and insn.
38679 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
38680 (DEBUGGER_AUTO_OFFSET): Remove.
38681 (DEBUGGER_ARG_OFFSET): Remove.
38683 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
38684 Emit register stores with the same offsets as the hardware.
38685 (mn10300_store_multiple_operation): Don't check that the register
38686 save offsets are monotonic.
38687 * config/mn10300/mn10300-protos.h: Update.
38689 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
38691 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
38692 in terms of the value on the stack, not the MDR register.
38694 2011-01-11 Jan Hubicka <jh@suse.cz>
38698 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
38699 (symbol_alias_set_destroy, symbol_alias_set_contains,
38700 propagate_aliases_backward): Declare.
38701 * lto-streamer-out.c (struct sets): New sturcture.
38702 (trivally_defined_alias): New function.
38703 (output_alias_pair_p): Rewrite.
38704 (output_unreferenced_globals): Fix output of alias pairs.
38705 (produce_symtab): Likewise.
38706 * ipa.c (function_and_variable_visibility): Set weak alias destination
38708 * varasm.c (symbol_alias_set_t): Remove.
38709 (symbol_alias_set_destroy): Export.
38710 (propagate_aliases_forward, propagate_aliases_backward): New functions
38712 (compute_visible_aliases): ... this one; remove.
38713 (trivially_visible_alias): New
38714 (trivially_defined_alias): New.
38715 (remove_unreachable_alias_pairs): Rewrite.
38716 (finish_aliases_1): Reorganize code checking if alias is defined.
38717 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
38720 2011-01-11 Richard Guenther <rguenther@suse.de>
38722 PR tree-optimization/46076
38723 * tree-ssa.c (useless_type_conversion_p): Conversions from
38724 unprototyped to empty argument list function types are useless.
38726 2011-01-11 Richard Guenther <rguenther@suse.de>
38728 PR middle-end/45235
38729 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
38730 volatile MEMs as MEM_READONLY_P.
38732 2011-01-11 Richard Guenther <rguenther@suse.de>
38734 PR tree-optimization/47239
38735 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
38737 2011-01-11 Jeff Law <law@redhat.com>
38739 PR tree-optimization/47086
38740 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
38741 IVs from statements that might throw.
38743 2011-01-10 Jan Hubicka <jh@suse.cz>
38746 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
38748 2011-01-10 Jan Hubicka <jh@suse.cz>
38751 * profile.c (read_profile_edge_counts): Ignore profile inconistency
38752 when correcting profile.
38754 2011-01-10 Jan Hubicka <jh@suse.cz>
38757 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
38758 DECL_FINI_PRIORITY.
38759 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
38760 Restore DECL_FINI_PRIORITY.
38762 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38764 * doc/gimple.texi: Fix quoting of multi-word return values in
38765 @deftypefn statements. Ensure presence of return value. Wrap
38766 overlong @deftypefn lines.
38767 (is_gimple_operand, is_gimple_min_invariant_address): Remove
38768 descriptions of removed functions.
38769 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
38770 of multi-word return value in @deftypefn statement.
38772 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38774 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
38775 (Conditional Expressions, Logical Operators)
38776 (Statement and operand traversals): Do not indent smallexample
38777 code. Fix duplicate function argument in example.
38779 2011-01-10 Jeff Law <law@redhat.com>
38781 PR tree-optimization/47141
38782 * ipa-split.c (split_function): Handle case where we are
38783 returning a value and the return block has a virtual operand phi.
38785 2011-01-10 Jan Hubicka <jh@suse.cz>
38787 PR tree-optimization/47234
38788 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
38789 (pass_feedback_split_functions): Declare.
38790 * passes.c (init_optimization_passes): Add ipa-split as subpass of
38792 * ipa-split.c (gate_split_functions): Update comments; disable
38793 split-functions for profile_arc_flag and branch_probabilities.
38794 (gate_feedback_split_functions): New function.
38795 (execute_feedback_split_functions): New function.
38796 (pass_feedback_split_functions): New global var.
38798 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
38801 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
38802 calling gimple_call_set_cannot_inline.
38804 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
38806 * config/darwin-sections.def: Remove unused section.
38808 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
38811 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
38813 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
38816 * c-parser.c (c_parser_declaration_or_fndef): Improved
38819 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
38821 * config/i386/winnt.c (i386_pe_start_function): Make sure
38822 to switch back to function's section.
38824 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
38828 * plugin.c: Move include of dlfcn.h from here...
38829 * system.h: ... to here.
38831 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38833 * doc/cpp.texi (C++ Named Operators): Fix markup for header
38835 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
38836 two extra empty pages in PDF output.
38838 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
38841 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
38842 for error recovery purposes behave as if it was not specified so
38843 that the default type is usd.
38845 2011-01-07 Jan Hubicka <jh@suse.cz>
38847 PR tree-optmization/46469
38848 * ipa.c (function_and_variable_visibility): Clear needed flags on
38849 nodes with external decls; handle weakrefs merging correctly.
38851 2011-01-07 Joseph Myers <joseph@codesourcery.com>
38853 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
38856 2011-01-07 Jan Hubicka <jh@suse.cz>
38858 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
38859 and no longer claim that gold is required for linker plugin.
38860 * configure: Regenerate.
38861 * gcc.c (PLUGIN_COND): New macro.
38862 (LINK_COMMAND_SPEC): Use it.
38863 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
38864 * config.in (HAVE_LTO_PLUGIN): New.
38865 * configure.ac (--with-lto-plugin): New parameter; autodetect
38868 2011-01-07 Jan Hubicka <jh@suse.cz>
38870 PR tree-optimization/46367
38871 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
38872 when we can update original.
38873 (cgraph_mark_inline_edge): Sanity check.
38874 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
38876 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38878 * config/spu/spu.h (ASM_COMMENT_START): Define.
38880 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
38883 * gcc.c (%>S): New.
38884 (SWITCH_KEEP_FOR_GCC): Likewise.
38885 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
38886 (do_spec_1): Handle "%>".
38888 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
38890 2011-01-07 Jakub Jelinek <jakub@redhat.com>
38893 * config/i386/i386.c (ix86_delegitimize_address): If
38894 simplify_gen_subreg fails, return orig_x.
38897 * value-prof.c (gimple_stringop_fixed_value): Handle
38898 lhs of the call properly.
38900 2011-01-07 Jan Hubicka <jh@suse.cz>
38903 * lto-opt.c (lto_reissue_options): Set flag_shlib.
38905 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
38907 * target.def (function_switched_text_sections): New hook.
38908 * doc/tm.texi: Regenerated.
38909 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
38910 * final.c (default_function_switched_text_sections): New.
38911 (final_scan_insn): Call function_switched_text_sections when a
38912 mid-function section change occurs.
38913 * output.h (default_function_switched_text_sections): Declare.
38914 * config/darwin-protos.h (darwin_function_switched_text_sections):
38916 * config/darwin.c (darwin_function_switched_text_sections): New.
38917 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
38919 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
38921 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
38922 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
38923 the secondary code fragment when outputting for DWARF == 2.
38925 2011-01-07 Anatoly Sokolov <aesok@post.ru>
38927 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
38928 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
38930 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
38931 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
38933 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
38936 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
38937 when it is not empty.
38939 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
38942 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
38943 (case ${target}): Add btver1.
38944 * config/i386/driver-i386.c (host_detect_local_cpu): Let
38945 -march=native recognize btver1 processors.
38946 * config/i386/i386-c.c (ix86_target_macros_internal): Add
38947 btver1 def_and_undef
38948 * config/i386/i386.c (struct processor_costs btver1_cost): New
38950 (m_BTVER1): New definition.
38951 (m_AMD_MULTIPLE): Includes m_BTVER1.
38952 (initial_ix86_tune_features): Add btver1 tune.
38953 (processor_target_table): Add btver1 entry.
38954 (static const char *const cpu_names): Add btver1 entry.
38955 (software_prefetching_beneficial_p): Add btver1.
38956 (ix86_option_override_internal): Add btver1 instruction sets.
38957 (ix86_issue_rate): Add btver1.
38958 (ix86_adjust_cost): Add btver1.
38959 * config/i386/i386.h (TARGET_BTVER1): New definition.
38960 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
38961 (enum processor_type): Add PROCESSOR_BTVER1.
38962 * config/i386/i386.md (define_attr "cpu"): Add btver1.
38964 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38967 * config/i386/i386.c (legitimize_tls_address)
38968 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
38969 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
38970 (tls_initial_exec_64_sun): New pattern.
38972 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
38974 * doc/invoke.texi (Overall Options): Improve wording and markup
38975 of the description of -wrapper.
38977 2011-01-06 Joseph Myers <joseph@codesourcery.com>
38979 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
38980 rdynamic, threads): New Driver options.
38982 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38985 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
38986 if coming from .tdata.
38987 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
38989 2011-01-06 Jan Hubicka <jh@suse.cz>
38992 * collect2.c (main): Do not enable LTOmode when plugin is active.
38994 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38997 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
38998 --version output if supported.
38999 * configure: Regenerate.
39001 2011-01-06 Joseph Myers <joseph@codesourcery.com>
39003 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
39006 2011-01-06 Jakub Jelinek <jakub@redhat.com>
39009 * c-convert.c (convert): When converting a complex expression
39010 other than COMPLEX_EXPR to a different complex type, ensure
39011 c_save_expr is called instead of save_expr, unless in_late_binary_op.
39012 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
39013 when converting COMPLEX_TYPE.
39015 2011-01-06 Ira Rosen <irar@il.ibm.com>
39017 PR tree-optimization/47139
39018 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
39019 only the last reduction value is used outside the loop. Update
39022 2011-01-05 Joseph Myers <joseph@codesourcery.com>
39024 * config/rtems.opt: New.
39025 * config.gcc (*-*-rtems*): Use rtems.opt.
39027 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
39029 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
39030 processors do not support 3DNow instructions.
39032 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39034 * config/spu/spu.c (spu_option_override): Set parameter
39035 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
39037 2011-01-05 Jan Hubicka <jh@suse.cz>
39039 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
39040 at the command line.
39042 2011-01-05 Martin Jambor <mjambor@suse.cz>
39045 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
39046 deltas on streamed outgoing edges.
39047 (output_node_opt_summary): Output info for outgoing edges only when
39048 the node is in new parameter set.
39049 (output_cgraph_opt_summary): New parameter set, passed to the two
39050 aforementioned functions. Update its forward declaration and its
39053 2011-01-05 Tom Tromey <tromey@redhat.com>
39055 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
39056 operator to c_finish_omp_atomic.
39057 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
39058 (build_unary_op): Update.
39059 (build_modify_expr): Update.
39060 (build_asm_expr): Update.
39062 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39064 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
39065 newly inserted insns.
39066 (pad_bb): Likewise.
39067 (spu_emit_branch_hint): Likewise.
39068 (insert_hbrp_for_ilb_runout): Likewise.
39069 (spu_machine_dependent_reorg): Call df_finish_pass after
39070 schedule_insns returns.
39072 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39074 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
39076 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
39078 PR tree-optimization/47005
39079 * tree-sra.c (struct access): Add 'non_addressable' bit.
39080 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
39081 (decide_one_param_reduction): Return 0 if the parameter is passed by
39082 reference and one of the accesses in the group is non_addressable.
39084 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
39086 PR tree-optimization/47056
39087 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
39088 (mark_load): Likewise. Handle FUNCTION_DECL specially.
39089 (mark_store): Likewise. Pass STMT to ipa_record_reference.
39091 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
39093 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
39094 initializer. Skip view conversions from aggregate types.
39096 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
39099 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
39101 2011-01-04 Philipp Thomas <pth@suse.de>
39103 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
39106 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39108 * function.c (thread_prologue_and_epilogue_insns): Do not crash
39109 on empty epilogue sequences.
39111 2011-01-04 Joseph Myers <joseph@codesourcery.com>
39113 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
39114 non-static): New Driver options.
39116 2011-01-04 Jie Zhang <jie@codesourcery.com>
39119 * gcc.c (default_compilers[]): Set combinable field to 0
39120 for all assembly languages.
39122 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
39124 * config/mips/loongson3a.md: New file.
39125 * config/mips/mips.md: Include loongson3a.md.
39126 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
39129 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
39131 PR middle-end/47017
39132 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
39133 instead of convert_memory_address_addr_space on the base expression.
39135 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39137 * config/spu/spu.c (spu_option_override): Update error text
39138 for bad -march= / -mtune= values.
39140 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39142 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
39143 if branch-hint optimization will be performed.
39145 2011-01-03 Jakub Jelinek <jakub@redhat.com>
39147 PR tree-optimization/47148
39148 * ipa-split.c (split_function): Convert arguments to
39149 DECL_ARG_TYPE if possible.
39151 PR tree-optimization/47155
39152 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
39153 when computing uns.
39155 PR rtl-optimization/47157
39156 * combine.c (try_combine): If undobuf.other_insn becomes
39157 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
39158 and set *new_direct_jump_p too.
39160 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
39162 PR tree-optimization/47021
39163 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
39165 2011-01-03 Jakub Jelinek <jakub@redhat.com>
39167 * gcc.c (process_command): Update copyright notice dates.
39168 * gcov.c (print_version): Likewise.
39169 * gcov-dump.c (print_version): Likewise.
39170 * mips-tfile.c (main): Likewise.
39171 * mips-tdump.c (main): Likewise.
39173 2011-01-03 Martin Jambor <mjambor@suse.cz>
39175 PR tree-optimization/46801
39176 * tree-sra.c (type_internals_preclude_sra_p): Check whether
39177 aggregate fields start at byte boundary instead of the bit-field flag.
39179 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
39182 * gcc.c (main): Revert revision 168407.
39184 2011-01-03 Martin Jambor <mjambor@suse.cz>
39186 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
39188 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39190 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
39191 vector optab to expand vector/scalar shift, update gimple to vector.
39193 2011-01-03 Martin Jambor <mjambor@suse.cz>
39195 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
39198 2011-01-03 Martin Jambor <mjambor@suse.cz>
39200 PR tree-optimization/46984
39201 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
39203 (cgraph_create_indirect_edge): Fixed line length.
39204 (cgraph_indirect_call_info): Declare.
39205 (cgraph_make_edge_direct) Update declaration.
39206 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
39207 (cgraph_create_indirect_edge): Use it.
39208 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
39210 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
39211 the new thunk_delta representation.
39212 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
39214 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
39215 (ipa_read_indirect_edge_info): Likewise.
39216 * lto-cgraph.c (output_edge_opt_summary): New function.
39217 (output_node_opt_summary): Call it on all outgoing edges.
39218 (input_edge_opt_summary): New function.
39219 (input_node_opt_summary): Call it on all outgoing edges.
39221 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
39224 * gcc.c (main): Don't check have_o when settting combine_inputs.
39226 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
39228 * regrename.c: Add general comment describing the pass.
39229 (struct du_head): Remove 'length' field.
39230 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
39231 (regrename_optimize): Do not sort chains. Rework comments, add others.
39232 Force renaming to the preferred class (if any) in the first pass and do
39233 not consider registers that belong to it in the second pass.
39234 (create_new_chain): Do not set 'length' field.
39235 (scan_rtx_reg): Likewise.
39237 2011-01-02 Jakub Jelinek <jakub@redhat.com>
39239 PR tree-optimization/47140
39240 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
39241 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
39242 to bit_value_binop.
39244 PR rtl-optimization/47028
39245 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
39246 parm_birth_insn instead of at the beginning of first bb.
39248 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
39250 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
39251 Remove the word "see" before "@pxref".
39252 * doc/rtl.texi: Remove the word "see" before "@pxref".
39254 2011-01-01 Jan Hubicka <jh@suse.cz>
39256 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
39259 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
39262 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
39265 Copyright (C) 2011 Free Software Foundation, Inc.
39267 Copying and distribution of this file, with or without modification,
39268 are permitted in any medium without royalty provided the copyright
39269 notice and this notice are preserved.