5dfad7bdb3f72f1aa85449c779df6d4ab364c0f7
[gcc.git] / gcc / ChangeLog
1 2012-12-15 Richard Guenther <rguenther@suse.de>
2
3 Revert
4 PR lto/48437
5 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
6 extern declarations.
7
8 PR lto/48508
9 PR lto/48437
10 * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL
11 VAR_DECLs and FUNCTION_DECLs locally.
12
13 2011-12-14 Richard Henderson <rth@redhat.com>
14
15 * config/arm/arm.md (*addsi3_compare0_scratch): Set predicable.
16 (*compare_negsi_si, *compare_addsi2_op0): Likewise.
17 (*compare_addsi2_op1, *zeroextractsi_compare0_scratch): Likewise.
18 (*compareqi_eq0, *arm_cmpsi_insn, *arm_cmpsi_negshiftsi_si): Likewise.
19
20 2011-12-14 Richard Guenther <rguenther@suse.de>
21
22 * tree-cfg.c (replace_uses_by): Fixup TREE_CONSTANT for
23 propagating all kinds of constants.
24
25 2011-12-14 Richard Guenther <rguenther@suse.de>
26
27 PR lto/51497
28 * lto-streamer-in.c (lto_read_body): Fixup local types
29 TYPE_CANONICAL and variant chain.
30
31 2011-12-14 Richard Guenther <rguenther@suse.de>
32
33 * tree.c (free_lang_data_in_type): Do not clear fields
34 dependent on debuginfo level setting.
35 (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
36 * tree.h (TYPE_STUB_DECL): Properly check that we access a type.
37
38 2011-12-14 Georg-Johann Lay <avr@gjlay.de>
39
40 PR target/50931
41 * config/avr/avr.md (mulpsi3): New expander.
42 (*umulqihipsi3, *umulhiqipsi3): New insns.
43 (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns.
44 (mulsqipsi3, *mulpsi3): New insn-and-splits.
45 (ashlpsi3): Turn to expander. Move insn code to...
46 (*ashlpsi3): ...this new insn.
47
48 2011-12-14 Richard Guenther <rguenther@suse.de>
49
50 * tree-cfg.c (replace_uses_by): Only mark blocks altered
51 that will make a difference. Only recompute ADDR_EXPR
52 invariantness if it could possibly have changed. Do so
53 before folding the statement.
54
55 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
56
57 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
58 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
59 * lto-streamer-in.c (lto_read_body): Likewise.
60 (lto_input_toplevel_asms): Likewise.
61 * lto-section-in.c (lto_create_simple_input_block): Likewise.
62 * ipa-inline-analysis.c (inline_read_section): Likewise.
63 * ipa-prop.c (ipa_prop_read_section): Likewise.
64
65 * df.h (DF_NOTE): Fix typo in comment.
66
67 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
68
69 * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
70 DECL_LANG_SPECIFIC.
71
72 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
73
74 * regmove.c (fixup_match_2): Only access call_used_regs with hard regs.
75
76 2011-12-13 Andrew Pinski <apinski@cavium.com>
77 Adam Nemet <anemet@caviumnetworks.com>
78
79 * config/mips/mips-cpus.def: Add Octeon2.
80 * config/mips/mips-tables.opt: Regenerate.
81 * config/mips/mips.md (define_attr "cpu"): Add Octeon2.
82 * config/mips/driver-native.c (host_detect_local_cpu): Support Octeon2.
83 * config/mips/octeon.md (octeon_arith): Add Octeon2.
84 (octeon_condmove): Likewise.
85 (octeon_load): Rename to ..
86 (octeon_load_o1): this.
87 (octeon_load_o2): New reserve.
88 (octeon_cop_o2): New reserve.
89 (octeon_store): Match Octeon2 also.
90 (octeon_brj): Rename to ..
91 (octeon_brj_o1): this.
92 (octeon_brj_o2): New reserve.
93 (octeon_imul3): Rename to ...
94 (octeon_imul3_o1): this.
95 (octeon_imul3_o2): New reserve.
96 (octeon_imul): Rename to ...
97 (octeon_imul_o1): this.
98 (octeon_imul_o2): New reserve.
99 (octeon_mfhilo): Rename to ...
100 (octeon_mfhilo_o1): This.
101 (octeon_mfhilo_o2): New reserve.
102 (octeon_imadd): Rename to ...
103 (octeon_imadd_o1): this.
104 (octeon_imadd_o2): New reserve.
105 (octeon_idiv): Rename to ..
106 (octeon_idiv_o1): This.
107 (octeon_idiv_o2_si): New reserve.
108 (octeon_idiv_o2_di): Likewise.
109 (octeon_unknown): Match Octeon2 also.
110 * config/mips/mips.c (mips_rtx_cost_data): Add Octeon2 cost data.
111 (mips_issue_rate): Octeon2 can issue 2 at a time.
112 * config/mips/mips.h (TARGET_OCTEON): Match Octeon2 also.
113 (TARGET_OCTEON2): New define.
114 (TUNE_OCTEON): Match Octeon2 also.
115
116 2011-12-13 Richard Henderson <rth@redhat.com>
117
118 * config/sparc/tso.h: New file.
119 * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it.
120 * config/sparc/sparc.c (sparc_option_override): Honor
121 SUBTARGET_DEFAULT_MEMORY_MODEL.
122 * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New.
123
124 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
125
126 PR middle-end/51443
127 * trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
128 (diagnose_tm_1): Same.
129 (ipa_tm_execute): Do not test tm_may_enter_irr before we set it.
130 (ipa_tm_scan_irr_function): Return gracefully when no
131 DECL_STRUCT_FUNCTION.
132 (ipa_tm_scan_irr_block): Believe the user on TM attributes.
133
134 2011-12-13 Martin Jambor <mjambor@suse.cz>
135
136 PR middle-end/50628
137 * tree-sra.c (propagate_subaccesses_across_link): Do not propagate
138 sub-accesses of scalar accesses.
139
140 2011-12-13 Martin Jambor <mjambor@suse.cz>
141
142 PR tree-optimization/51362
143 * ipa-cp.c (estimate_local_effects): When estimated size of a
144 specialized clone is zero, bump it to one.
145
146 2011-12-13 Richard Guenther <rguenther@suse.de>
147
148 PR lto/48354
149 * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE.
150 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
151 Stream DECL_ORIGINAL_TYPE.
152 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers):
153 Likewise.
154
155 2011-12-13 Jakub Jelinek <jakub@redhat.com>
156
157 Revert
158 2011-12-12 Jakub Jelinek <jakub@redhat.com>
159
160 PR tree-optimization/51481
161 * gimple-fold.c (gimple_fold_call): Call
162 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
163 edges, but gimple_fold_builtin result can't throw.
164
165 2011-12-13 Jakub Jelinek <jakub@redhat.com>
166 Michael Matz <matz@suse.de>
167
168 PR tree-optimization/51117
169 * tree-eh.c (sink_clobbers): New function.
170 (execute_lower_eh_dispatch): Call it for BBs ending with
171 internally throwing RESX.
172 * cfgexpand.c (add_scope_conflicts_1): Add all conflicts only
173 at the first real instruction.
174
175 2011-12-13 Tristan Gingold <gingold@adacore.com>
176
177 * final.c (final_scan_insn): Guard the call to begin_epilogue
178 debug hook.
179
180 2011-12-13 Tristan Gingold <gingold@adacore.com>
181
182 * vmsdbgout.c (vmsdbgout_write_source_line): New function.
183 (vmsdbgout_end_prologue): Call vmsdbgout_write_source_line.
184 (vmsdbgout_begin_epilogue): Likewise.
185 (vmsdbgout_end_epilogue): Likewise.
186 (vmsdbgout_source_line): Move code to vmsdbgout_write_source_line.
187
188 2011-12-13 Richard Guenther <rguenther@suse.de>
189
190 PR middle-end/51481
191 * tree-cfg.c (replace_uses_by): Pass proper arguments to
192 maybe_clean_or_replace_eh_stmt.
193
194 2011-12-13 Richard Guenther <rguenther@suse.de>
195
196 PR tree-optimization/51519
197 * ipa-inline.c (edge_badness): Use edge growth in non-guessed
198 branch probability case as well.
199
200 2011-12-13 Revital Eres <revital.eres@linaro.org>
201
202 * modulo-sched.c (mark_loop_unsched): Free bbs.
203
204 2011-12-12 Jakub Jelinek <jakub@redhat.com>
205
206 PR rtl-optimization/51495
207 * function.c (thread_prologue_and_epilogue_insns): Don't add
208 to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
209 from basic blocks not needing prologue.
210
211 PR tree-optimization/51481
212 * gimple-fold.c (gimple_fold_call): Call
213 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
214 edges, but gimple_fold_builtin result can't throw.
215
216 2011-12-12 Vladimir Makarov <vmakarov@redhat.com>
217
218 PR rtl-optimization/21617
219 * ira-color.c (bucket_allocno_compare_func): Don't compare
220 allocno classes. Compare number of hard registers needed.
221
222 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
223
224 PR tree-optimization/50569
225 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
226 in the expression of MODEL instead of just the last one.
227
228 2011-12-12 Jakub Jelinek <jakub@redhat.com>
229
230 PR middle-end/51510
231 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
232 VEC_safe_grow_cleared if idx is smaller than VEC_length.
233
234 2011-12-12 Richard Sandiford <richard.sandiford@linaro.org>
235
236 PR middle-end/50873
237 * optabs.c (maybe_legitimize_operand_same_code): Use copy_to_mode_reg
238 instead of force_reg. Do nothing if the address is already a
239 non-virtual pseudo register.
240
241 2011-12-12 Torvald Riegel <triegel@redhat.com>
242
243 * gimplify.c (voidify_wrapper_expr): Add default handling for
244 outermost wrapper.
245
246 2011-12-12 Torvald Riegel <triegel@redhat.com>
247
248 * tree-ssa-tail-merge.c (gimple_equal_p): Don't treat transaction
249 commits as equal.
250
251 2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
252
253 * config/darwin-sections.def (zobj_const_data_section): Fix over-
254 length section name.
255
256 2011-12-11 Richard Henderson <rth@redhat.com>
257
258 * config/rs6000/rs6000.c (rs6000_expand_interleave): Use
259 BYTES_BIG_ENDIAN, not TARGET_BIG_ENDIAN.
260
261 2011-12-11 Jakub Jelinek <jakub@redhat.com>
262
263 PR tree-optimization/51485
264 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
265 DRs in call stmts.
266
267 2011-12-11 Patrick Marlier <patrick.marlier@gmail.com>
268
269 * trans-mem.c (ipa_tm_transform_calls_redirect): Do not remove edge.
270
271 2011-12-10 Richard Henderson <rth@redhat.com>
272
273 * config/rs6000/altivec.md (altivec_vmrghb): Rewrite pattern as
274 vec_select + vec_concat.
275 (altivec_vmrghh, altivec_vmrghw, altivec_vmrghsf, altivec_vmrglb,
276 altivec_vmrglh, altivec_vmrglw, altivec_vmrglsf): Likewise.
277 (vec_perm_constv16qi): New.
278 (vec_extract_evenv4si, vec_extract_evenv4sf, vpkuhum_nomode,
279 vpkuwum_nomode, vec_extract_oddv8hi, vec_extract_oddv16qi,
280 vec_interleave_high<VI>, vec_interleave_low<VI>): Remove.
281 * config/rs6000/paired.md (paired_merge00): Rewrite pattern as
282 vec_select + vec_concat.
283 (paired_merge10, paired_merge01, paired_merge11): Likewise.
284 (vec_perm_constv2sf): New.
285 (vec_interleave_highv2sf, vec_interleave_lowv2sf,
286 vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
287 * config/rs6000/spe.md (spe_evmergehi): Rewrite pattern as
288 vec_select + vec_concat.
289 (spe_evmergehilo, spe_evmergelo, spe_evmergelohi): New.
290 (vec_perm_constv2si): New.
291 * config/rs6000/vector.md (vec_interleave_highv4sf,
292 vec_interleave_lowv4sf, vec_interleave_high<VEC_64>,
293 vec_interleave_low<VEC_64>): Remove.
294 * config/rs6000/vsx.md (VS_double): New mode attribute.
295 (UNSPEC_VSX_XXPERMDI): Remove.
296 (vsx_xxpermdi_<VSX_L>_1): Rewrite pattern as vec_select + vec_concat.
297 (vsx_xxmrghw_<VSX_W>, vsx_xxmrglw_<VSX_W>): Likewise.
298 (vsx_xxpermdi_<VSX_L>): Change to expander.
299 (vec_perm_const<VSX_D>): New.
300 (vsx_mergel_<VSX_D>, vsx_mergeh_<VSX_D>): New.
301 * config/rs6000/predicates.md (const_0_to_1_operand): New.
302 (const_2_to_3_operand): New.
303 * config/rs6000/rs6000.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
304 (altivec_expand_vec_perm_const): New.
305 (rs6000_expand_vec_perm_const_1, rs6000_expand_vec_perm_const): New.
306 (rs6000_vectorize_vec_perm_const_ok): New.
307 (rs6000_do_expand_vec_perm): New.
308 (rs6000_expand_extract_even, rs6000_expand_interleave): New.
309 * config/rs6000/rs6000-builtin.def (VEC_MERGE*): Update rtx codes.
310 * config/rs6000/rs6000-modes.def: Add double-wide vector modes.
311 * config/rs6000/rs6000-protos.h: Update.
312
313 2011-12-10 Richard Henderson <rth@redhat.com>
314
315 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
316 CONST_INT to expand_vec_perm as the selector.
317 * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.
318
319 2011-12-10 Richard Henderson <rth@redhat.com>
320
321 * genmodes.c (struct mode_data): Remove wider_2x member.
322 (blank_mode): Adjust initializer.
323 (calc_wider_mode): Use XALLOCAVEC.
324 (emit_move_wider): Select double-width same-element vectors for
325 2xwider vectors.
326 * machmode.h (GET_MODE_2XWIDER_MODE): Update documentation.
327 * config/i386/i386.c (doublesize_vector_mode): Remove.
328 (expand_vselect_vconcat): Use GET_MODE_2XWIDER_MODE instead.
329
330 2011-12-10 Joern Rennecke <joern.rennecke@embecosm.com>
331
332 * config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
333 (USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise.
334 (USE_STORE_POST_DECREMENT): Likewise.
335
336 * config/epiphany/epiphany.h (EPIPHANY_RETURN_REGNO): New macro,
337 broken out of ..
338 (INCOMING_RETURN_ADDR_RTX) .. this. Use EPIPHANY_RETURN_REGNO.
339 (DWARF_FRAME_RETURN_COLUMN): New macro.
340
341 * config/epiphany/epiphany-protos.h (epiphany_start_function): Declare.
342 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
343 Split "timer" value into "timer0" and "timer1".
344 Handle page_miss, message and wand. Don't handle static_flag.
345 Adjust warning text.
346 (epiphany_start_function): New function.
347 (epiphany_compute_function_type): Split "timer" value into "timer0"
348 and "timer1". Handle page_miss, message and wand.
349 Don't handle static_flag.
350 (epiphany_expand_epilogue): Don't use frame_insn for status / iret
351 restore.
352 * config/epiphany/epiphany.h: ASM_DECLARE_FUNCTION_NAME: Define.
353 (enum epiphany_function_type):
354 Split EPIPHANY_FUNCTION_TIMER value into EPIPHANY_FUNCTION_TIMER0
355 and EPIPHANY_FUNCTION_TIMER1.
356 Remove EPIPHANY_FUNCTION_ILINK1 and EPIPHANY_FUNCTION_ILINK2 values.
357 Add EPIPHANY_FUNCTION_PAGE_MISS and EPIPHANY_FUNCTION_MESSAGE values.
358 Rename EPIPHANY_FUNCTION_STATIC_FLAG to EPIPHANY_FUNCTION_WAND.
359
360 2011-12-10 Nathan Sidwell <nathan@acm.org>
361
362 PR gcov-profile/51449
363 * coverage.c (coverage_end_function): Always process the coverage
364 variables.
365
366 2011-12-09 Aldy Hernandez <aldyh@redhat.com>
367
368 PR/51291
369 * tree.c (build_common_builtin_nodes): Do not use TM_PURE
370 attribute unless language has support for TM.
371 * config/i386/i386.c (ix86_init_tm_builtins): Exit gracefully in
372 the absence of TM builtins.
373
374 2011-12-09 Eric Botcazou <ebotcazou@adacore.com>
375
376 * gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
377 Also check the TYPE_MODE to recognize useless pointer conversions.
378
379 2011-12-09 Jakub Jelinek <jakub@redhat.com>
380
381 PR tree-optimization/51117
382 * tree-eh.c (optimize_clobbers): Don't remove just one
383 clobber, but all consecutive clobbers before RESX.
384 Use gimple_clobber_p predicate.
385
386 2011-12-09 Michael Meissner <meissner@the-meissners.org>
387
388 * config/rs6000/rs6000.c (altivec_expand_builtin): Call
389 expand_call to return a valid funciton instead of return
390 cosnt0_rtx/NULL_RTX if there was an error with the builtin.
391 (altivec_expand_ld_builtin): Ditto.
392 (rs6000_inner_target_options): If VSX is selected as a target
393 attribute or pragma, enable ALTIVEC also.
394 (rs6000_pragma_target_parse): Call rs6000_option_override_internal
395 to do all of the standard processing when switching options,
396 including redefining appropriate macros.
397
398 PR rtl-optimization/51469
399 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
400 indirect function, mark the symbol as non-local.
401
402 2011-12-09 H.J. Lu <hongjiu.lu@intel.com>
403
404 PR bootstrap/51479
405 * Makefile.in (errors.o): Restored.
406
407 2011-12-09 Richard Guenther <rguenther@suse.de>
408
409 PR lto/48042
410 * tree.c (free_lang_data_in_decl): Remove freeing conditional
411 on debuginfo level.
412
413 2011-12-09 Joern Rennecke <joern.rennecke@embecosm.com>
414
415 PR middle-end/40154
416 * emit-rtl.c (set_dst_reg_note): New function.
417 * rtl.h (set_dst_reg_note): Declare.
418 * optabs.c (expand_binop, expand_absneg_bit): Use set_dst_reg_note.
419 (emit_libcall_block, expand_fix): Likewise.
420 * function.c (assign_parm_setup_reg, expand_function_start): Likewise.
421 * expmed.c (expand_mult_const, expand_divmod): Likewise.
422 * reload1.c (gen_reload): Likewise.
423
424 * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
425 * expmed.c (expand_divmod): Likewise.
426 * combine.c (simplify_if_then_else): Likewise.
427
428 2011-12-09 Kai Tietz <ktietz@redhat.com>
429
430 * ira-color.c (print_hard_regs_subforest): Use
431 HOST_WIDEST_INT_PRINT_DEC instead of %lld.
432 (allocno_hard_regs): Change type of cost member to HOST_WIDEST_INT.
433 (add_allocno_hard_regs): Change type of argument cost
434 to HOST_WIDEST_INT.
435 * ira-conflict.c (build_conflict_bit_table): Replace use
436 of long-long by HOST_WIDEST_INT.
437
438 2011-12-09 Georg-Johann Lay <avr@gjlay.de>
439
440 PR target/51425
441 * config/avr/avr.md (config/avr/avr.md, *sbix_branch_tmp): Use
442 zero_extract:QIHI instead of zero_extract:HI.
443
444 2011-12-09 Jakub Jelinek <jakub@redhat.com>
445 Andrew Pinski <apinski@cavium.com>
446
447 PR tree-optimization/51117
448 * tree-eh.c (optimize_clobbers): New function.
449 (execute_lower_eh_dispatch): Call it.
450
451 2011-12-09 Richard Guenther <rguenther@suse.de>
452
453 PR tree-optimization/51482
454 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
455 Make sure to only create REAL_TYPE and INTEGER_TYPE component vectors.
456
457 2011-12-09 Kai Tietz <ktietz@redhat.com>
458
459 * implicit-zee.c (num_realized): Change type to long.
460 (num_ze_opportunities): Likewise.
461
462 2011-12-08 Andrew Pinski <apinski@cavium.com>
463
464 * config/mips/mips-cpus.def (octeon+): New CPU.
465 * config/mips/mips-tables.opt: Regenerate.
466 * config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
467
468 2011-12-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
469
470 PR middle-end/39976
471 * tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
472 (struct hashable_expr): Add struct phi field.
473 (initialize_hash_element): Handle phis; change to use XCNEWVEC.
474 (hashable_expr_equal_p): Handle phis.
475 (iterative_hash_hashable_expr): Likewise.
476 (print_expr_hash_elt): Likewise.
477 (free_expr_hash_elt): Likewise.
478 (dom_opt_enter_block): Create equivalences from redundant phis.
479 (eliminate_redundant_computations): Handle redundant phis.
480 (lookup_avail_expr): Handle phis.
481
482 2011-12-08 Jakub Jelinek <jakub@redhat.com>
483
484 PR tree-optimization/51466
485 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
486 TREE_SIDE_EFFECTS.
487
488 2011-12-08 Richard Guenther <rguenther@suse.de>
489
490 * tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
491 volatile when processing operands of an ADDR_EXPR.
492 (get_indirect_ref_operands): Likewise.
493 (get_tmr_operands): Likewise.
494 (get_expr_operands): Likewise.
495
496 2011-12-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
497
498 PR target/50395
499 * config/s390/s390.c (s390_mainpool_finish): Emit the jump over
500 the literal pool as jump insn.
501
502 2011-12-08 Richard Guenther <rguenther@suse.de>
503
504 PR tree-optimization/49772
505 * tree-inline.c (optimize_inline_calls): Remove bail out on errors.
506
507 2011-12-08 Richard Guenther <rguenther@suse.de>
508
509 PR lto/50747
510 * lto-streamer-out.c (produce_symtab): Remove asserts.
511
512 2011-12-08 Richard Guenther <rguenther@suse.de>
513
514 PR lto/49945
515 * lto-streamer-out.c (tree_is_indexable): Localize variably
516 modified types and their FIELD_DECLs.
517
518 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
519
520 PR tree-optimization/51315
521 * tree.h (get_object_or_type_alignment): Declare.
522 * expr.c (get_object_or_type_alignment): Move to...
523 * builtins.c (get_object_or_type_alignment): ...here. Add assertion.
524 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
525 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
526 MEM_REFs and use get_object_or_type_alignment for them.
527 (build_accesses_from_assign): Adjust for above change.
528 (access_precludes_ipa_sra_p): Likewise.
529
530 2011-12-08 Richard Guenther <rguenther@suse.de>
531
532 PR lto/48437
533 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
534 extern declarations.
535
536 2011-12-07 Andrew Pinski <apinski@cavium.com>
537
538 PR middle-end/45416
539 * expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
540 SSA-expand.
541
542 2011-12-07 Richard Guenther <rguenther@suse.de>
543
544 PR tree-optimization/50823
545 * ipa-inline.c (edge_badness): Do not account for the number of
546 remaining calls.
547
548 2011-12-07 Martin Jambor <mjambor@suse.cz>
549
550 PR tree-optimization/50744
551 * ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
552 compute evaluation in HOST_WIDEST_INT.
553 (safe_add): New function
554 (propagate_effects): Use safe_add to accumulate effects.
555
556 2011-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
557
558 * config/rs6000/rtems.h: Switch to using global_options_set
559 in SUBSUBTARGET_OVERRIDE_OPTIONS.
560
561 2011-12-06 David S. Miller <davem@davemloft.net>
562
563 * config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
564
565 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
566
567 * config/avr/avr.c (avr_file_start): Fix missing ,
568
569 2011-12-06 Jakub Jelinek <jakub@redhat.com>
570
571 PR target/51354
572 * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
573 unconditionally.
574
575 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
576
577 Forward-port from gcc-4_6-branch r181936 2011-12-02.
578 * config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
579 AT86RF401 have a 16-bit SP (their manual is bogus).
580
581 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
582
583 Forward-port from gcc-4_6-branch r181936 2011-12-02.
584
585 PR target/51002
586 * config/avr/avr.md (movhi_sp_r): Set insn condition to
587 !AVR_HAVE_8BIT_SP.
588 * config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
589 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
590 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
591
592 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
593
594 PR target/51409
595 PR target/49868
596 * config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
597 ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
598 ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
599 (avr_addrspace_t): New typedef.
600 (avr_addrspace): New declaration.
601 * config/avr/avr-c.c (avr_toupper): New static function.
602 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
603 avr_addrspace to get address space information.
604 * config/avr/avr.c (avr_addrspace): New variable.
605 (avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
606 avr_asm_named_section, avr_section_type_flags,
607 avr_asm_select_section, avr_addr_space_address_mode,
608 avr_addr_space_convert, avr_emit_movmemhi): Use it.
609 (avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
610 (avr_pgm_segment): Remove.
611
612 2011-12-06 Richard Guenther <rguenther@suse.de>
613
614 PR middle-end/50601
615 * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
616 quirk adjustjment ...
617 * passes.c (rest_of_decl_compilation): ... here.
618
619 2011-12-06 Richard Guenther <rguenther@suse.de>
620
621 PR middle-end/51436
622 * gimple-fold.c (gimplify_and_update_call_from_tree): Guard vdef check
623 for the fact we do not have virtual operands when not optimizing.
624
625 2011-12-06 Richard Guenther <rguenther@suse.de>
626
627 PR tree-optimization/51245
628 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
629 New function.
630 (vn_reference_lookup_3): Use it. Properly valueize all refs we create.
631
632 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
633
634 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
635 rs6000_current_abi.
636
637 2011-12-06 Richard Guenther <rguenther@suse.de>
638
639 PR tree-optimization/51363
640 * gimple.c (gimple_rhs_has_side_effects): Remove.
641 * gimple.h (gimple_rhs_has_side_effects): Likewise.
642 * tree-ssa-dom.c (optimize_stmt): Simplify conditional.
643
644 2011-12-06 Alan Modra <amodra@gmail.com>
645
646 PR target/50906
647 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
648 Do not mark r11 setup as frame-related. Pass correct offset to
649 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
650 arguments. Correct sp_offset. Remove "offset" fudge from
651 in-line rs6000_frame_related call. Rename misleading variable.
652 Fix comments and whitespace. Tidy some expressions.
653 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
654 to r11 in out-of-line case. Correct sp_offset. Pass correct
655 offset to rs6000_emit_savres_rtx. Rename misleading variable.
656 Fix comments and whitespace. Tidy some expressions.
657 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
658 adjustment when !saving_GPRs_inline. Correct register mode
659 used in address calcs.
660 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
661 !restoring_GPRs_inline.
662
663 2011-12-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
664
665 * config/arm/vfp.md (*combine_vcvt_f64_<FCVTI32typename>): Fix
666 formatting character for vmov.f64 case.
667
668 2011-12-05 Jakub Jelinek <jakub@redhat.com>
669
670 PR tree-optimization/51396
671 * tree-ssa-math-opts.c (convert_mult_to_fma): Don't optimize
672 if MUL_RESULT has zero uses.
673
674 PR debug/51410
675 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
676 for debug info if scope is file_scope.
677
678 PR c/51339
679 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
680 relayout_decl instead of layout_decl.
681
682 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
683
684 * resource.c (init_resource_info): Only consider EXIT_IGNORE_STACK
685 if there is in epilogue.
686
687 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
688
689 * optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
690 to emit_library_call_value.
691 (expand_atomic_compare_and_swap): Likewise.
692
693 2011-12-05 Vladimir Makarov <vmakarov@redhat.com>
694
695 PR other/50775
696 * ira-int.h (struct ira_object): Remove add_data.
697 (OBJECT_ADD_DATA): Remove.
698
699 * ira-build.c (ira_create_object): Remove OBJECT_ADD_DATA
700 initialization.
701
702 * ira-color.c (object_hard_regs_t, object_hard_regs): Rename to
703 allocno_hard_regs_t, allocno_hard_regs.
704 (object_hard_regs_node_t, object_hard_regs_node): Rename to
705 allocno_hard_regs_node_t and allocno_hard_regs_node.
706 (struct allocno_color_data): Add new member last_process. Move
707 profitable_hard_regs, hard_regs_node, and hard_regs_subnodes_start
708 from object_color_data.
709 (object_color_data_t, object_color_data, OBJECT_COLOR_DATA): Remove.
710 (curr_allocno_process): New static variable.
711 (object_hard_regs_eq, object_hard_regs_htab): Rename to
712 allocno_hard_regs_eq and allocno_hard_regs_htab.
713 (init_object_hard_regs, finish_object_hard_regs): Rename to
714 init_allocno_hard_regs and finish_allocno_hard_regs.
715 (object_hard_regs_compare, object_hard_regs_node_t): Rename to
716 allocno_hard_regs_compare and allocno_hard_regs_node_t.
717 (create_new_object_hard_regs_node): Rename to
718 create_new_allocno_hard_regs_node.
719 (add_new_object_hard_regs_node_to_forest): Rename to
720 add_new_allocno_hard_regs_node_to_forest.
721 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
722 Rename to add_allocno_hard_regs_to_forest and
723 collect_allocno_hard_regs_cover.
724 (setup_object_hard_regs_nodes_parent): Rename to
725 setup_allocno_hard_regs_nodes_parent.
726 (remove_unused_object_hard_regs_nodes): Rename to
727 remove_unused_allocno_hard_regs_nodes.
728 (enumerate_object_hard_regs_nodes, object_hard_regs_nodes_num):
729 Rename to enumerate_allocno_hard_regs_nodes and
730 allocno_hard_regs_nodes_num.
731 (object_hard_regs_nodes, object_hard_regs_subnode_t): Rename to
732 allocno_hard_regs_nodes and allocno_hard_regs_subnode_t.
733 (object_hard_regs_subnode, object_hard_regs_subnodes): Rename to
734 allocno_hard_regs_subnode and allocno_hard_regs_subnodes.
735 (object_hard_regs_subnode_index): Rename to
736 allocno_hard_regs_subnode_index.
737 (setup_object_hard_regs_subnode_index): Rename to
738 setup_allocno_hard_regs_subnode_index.
739 (get_object_hard_regs_subnodes_num): Rename to
740 get_allocno_hard_regs_subnodes_num.
741 (form_object_hard_regs_nodes_forest): Rename to
742 form_allocno_hard_regs_nodes_forest.
743 (finish_object_hard_regs_nodes_tree): Rename to
744 form_allocno_hard_regs_nodes_forest
745 (finish_object_hard_regs_nodes_forest): Rename to
746 finish_allocno_hard_regs_nodes_forest.
747 (setup_left_conflict_sizes_p): Use allocno data instead of object ones.
748 Process conflict allocnos once.
749 (update_left_conflict_sizes_p): Use allocno data instead of object
750 ones. Change prototype signature.
751 (empty_profitable_hard_regs): Use allocno data instead of object ones.
752 (setup_profitable_hard_regs): Ditto.
753 (get_conflict_profitable_regs): Rename to
754 get_conflict_and_start_profitable_regs. Use allocno data for
755 profitable regs calculation.
756 (check_hard_reg_p): Change prototype signature. Check profitable
757 regs for allocno not the objects.
758 (assign_hard_reg): Process conflict allocnos only once for
759 updating conflict costs.
760 (setup_allocno_available_regs_num): Use allocno data instead of
761 object ones. Modify debug output.
762 (color_pass): Remove initialization and finalization of object
763 color data.
764
765 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
766
767 PR target/51408
768 * config/arm/arm.md (*minmax_arithsi): Always require the else
769 clause in the MINUS case.
770
771 2011-12-05 Richard Guenther <rguenther@suse.de>
772
773 PR tree-optimization/50904
774 * tree-ssa-loop-im.c (struct mem_ref): Remove vops member.
775 (MEM_ANALYZABLE): New.
776 (memory_references): Remove clobbered_vops and vop_ref_map
777 members, add all_refs_stored_in_loop member.
778 (memref_free): Adjust.
779 (mem_ref_alloc): Likewise.
780 (gather_mem_refs_stmt): Do not record clobbers, instead
781 record refs for unanalyzable stmts.
782 (gather_mem_refs_in_loops): Do not propagate clobbers.
783 (struct vop_to_refs_elt, vtoe_hash, vtoe_eq, vtoe_free,
784 record_vop_access, get_vop_accesses, get_vop_stores,
785 add_vop_ref_mapping): Remove.
786 (create_vop_ref_mapping_loop): Adjust to simply record all stores.
787 (analyze_memory_references): Adjust.
788 (refs_independent_p): Check for not analyzable refs.
789 (can_sm_ref_p): Likewise.
790 (ref_indep_loop_p_1): Simplify.
791 (tree_ssa_lim_finalize): Adjust.
792
793 * tree-ssa-loop-im.c (stmt_cost): Simplify, use LIM_EXPENSIVE
794 rather than magic constants. Assign zero cost to PAREN_EXPR
795 and SSA_NAME copies. Assign cost proportional to the vector
796 size for vector constructors.
797
798 2011-12-05 Richard Guenther <rguenther@suse.de>
799
800 * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
801 * tree-ssa-alias.c (ao_ref_init): Initialize it.
802 (ao_ref_init_from_ptr_and_size): Likewise.
803 (refs_may_alias_p_1): Two volatile accesses conflict.
804 (ref_maybe_used_by_call_p_1): Likewise.
805 (call_may_clobber_ref_p_1): Likewise.
806 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize
807 volatile_p field.
808
809 2011-12-05 Richard Guenther <rguenther@suse.de>
810
811 * tree-ssa.c (verify_ssa): Verify SSA names in the loop over all SSA
812 names. Remove SSA operand checking, call verify_ssa_operands.
813 * tree-ssa-operands.h (verify_ssa_operands): Declare.
814 * tree-ssa-operands.c (verify_ssa_operands): New function.
815
816 2011-12-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
817
818 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Define.
819 * config/arm/arm-protos.h (vfp3_const_double_for_fract_bits): Declare.
820 * config/arm/constraints.md ("Dt"): New constraint.
821 * config/arm/predicates.md
822 (const_double_vcvt_power_of_two_reciprocal): New.
823 * config/arm/vfp.md (FCVTI32typename): New.
824 (FCVT): New iterator.
825 (*combine_vcvt_f32_<FCVTI32typename>): New.
826 (*combine_vcvt_f64_<FCVTI32typename>): New.
827
828 2011-12-05 Richard Guenther <rguenther@suse.de>
829
830 * cgraph.c (cgraph_create_edge_1): Initialize
831 call_stmt_cannot_inline_p from the stmt if possible.
832 (cgraph_make_edge_direct): Likewise.
833 * gimple-streamer-in.c (input_gimple_stmt): Do not
834 call gimple_call_set_cannot_inline.
835 * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values.
836 (gimple_call_set_cannot_inline): Remove.
837 (gimple_call_cannot_inline_p): Likewise.
838 * ipa-inline-analysis.c (initialize_inline_failed): Look
839 at the edge call_stmt_cannot_inline_p flag.
840 * ipa-inline.c (can_inline_edge_p): Likewise.
841 (early_inliner): Only update the edge flag.
842 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
843 (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline.
844 * cgraphunit.c (assemble_thunk): Likewise.
845 * gimple-fold.c (gimple_fold_call): Likewise.
846
847 * tree.h (CALL_CANNOT_INLINE_P): Remove.
848 * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls.
849 * builtins.c (expand_builtin_alloca): With -fmudflap do not expand
850 alloca calls inline.
851 * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P.
852 * gimple.c (gimple_build_call_from_tree): Do not read
853 CALL_CANNOT_INLINE_P.
854 * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P.
855
856 2011-12-05 Jakub Jelinek <jakub@redhat.com>
857 Eric Botcazou <ebotcazou@adacore.com>
858
859 PR middle-end/51323
860 PR middle-end/50074
861 * calls.c (internal_arg_pointer_exp_state): New variable.
862 (internal_arg_pointer_based_exp_1,
863 internal_arg_pointer_exp_scan): New functions.
864 (internal_arg_pointer_based_exp): New function.
865 (mem_overlaps_already_clobbered_arg_p): Use it.
866 (expand_call): Free internal_arg_pointer_exp_state.cache vector
867 and clear internal_arg_pointer_exp_state.scan_start.
868
869 2011-12-04 Kaz Kojima <kkojima@gcc.gnu.org>
870
871 * config/sh/linux.h (TARGET_DEFAULT): Add MASK_SOFT_ATOMIC.
872 * config/sh/sync.md: New file.
873 * config/sh/sh.md: Include sync.md.
874 * config/sh/sh.opt (msoft-atomic): New option.
875 * doc/invoke.texi (SH Options): Document it.
876
877 2011-12-04 Nathan Sidwell <nathan@acm.org>
878
879 * gcov-io.h (struct gcov_info): Replace trailing array with
880 pointer to array.
881 * profile.c (branch_prob): Only call renamed
882 coverage_begin_function once.
883 * coverage.h (coverage_begin_output): Rename to ...
884 (coverage_begin_function): ... here.
885 * coverage.c (struct function_list): Rename to ...
886 (struct coverage_data): ... this. Update all uses.
887 (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals.
888 (bbg_file_opened, bbg_function_announced): Remove.
889 (get_coverage_counts): Adjust message.
890 (coverage_begin_ouput): Rename to ...
891 (coverage_begin_function): ... here. Move file opening to
892 coverage_init. Adjust for being called only once.
893 (coverage_end_function): Remove bbg file and inhibit further
894 output here on error.
895 (build_info_type): Adjust for change to pointer to array.
896 (build_info): Receive array of function pointers and adjust.
897 (create_coverage): Break into ...
898 (coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
899 ... these, and adjust.
900 (coverage_init): Open the notes file here. Tidy.
901 (coverage_finish): Call coverage_obj_init etc.
902
903 2011-12-04 Ira Rosen <ira.rosen@linaro.org>
904
905 PR middle-end/51285
906 * tree-vect-loop.c (vect_create_epilog_for_reduction): Create exit
907 phi nodes for outer loop in case of double reduction.
908
909 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
910
911 PR target/51393
912 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
913 parameter as long long.
914
915 2011-12-04 Richard Sandiford <rdsandiford@googlemail.com>
916
917 PR middle-end/51351
918 * optabs.c (init_sync_libfuncs): Use "or" rather than "ior"
919 in the external names.
920
921 2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
922
923 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for
924 non-PIC code when targeting 10.7 or later.
925
926 2011-12-03 Iain Sandoe <iains@gcc.gnu.org>
927
928 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
929 Darwin >= 10.
930 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
931 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
932
933 2011-12-03 Jakub Jelinek <jakub@redhat.com>
934
935 * fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
936 VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
937 VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
938 (fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
939 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
940 and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.
941
942 PR debug/50317
943 * tree-ssa.c (target_for_debug_bind): Also allow is_gimple_reg_type
944 vars that aren't referenced.
945 (tree-ssa-live.c (remove_unused_locals): Don't clear TREE_ADDRESSABLE
946 of unreferenced local vars.
947 * cfgexpand.c (expand_debug_expr): For DEBUG_IMPLICIT_PTR allow also
948 TREE_ADDRESSABLE vars that satisfy target_for_debug_bind.
949
950 2011-12-03 Anatoly Sokolov <aesok@post.ru>
951
952 * config/arm/arm.h (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove.
953 * config/arm/arm-protos.h (aapcs_libcall_value): Remove.
954 * config/arm/arm.c (TARGET_FUNCTION_VALUE_REGNO_P): Define.
955 (arm_libcall_value_1, arm_function_value_regno_p): New function.
956 (arm_function_value, arm_libcall_value): Use arm_libcall_value_1.
957 (aapcs_libcall_value): Make static.
958 (arm_libcall_value): Add static qualifier.
959
960 2011-12-02 Jakub Jelinek <jakub@redhat.com>
961
962 PR target/51387
963 * config/i386/sse.md (mul<mode>3 with VI1_AVX2 iterator): For
964 V32QImode use { 0,2,..,14,32,34,..,46,16,18,..,30,48,50,..,62 }
965 permutation instead of extract even permutation.
966
967 2011-12-02 Nathan Sidwell <nathan@acm.org>
968
969 * gcov.c (struct arc_info): Add is_throw field.
970 (struct (block_info): Add exceptional field, reduce flags size to
971 account for it.
972 (struct function_info): Add has_catch field.
973 (struct line_info): Add unexceptional field.
974 (process_file): Call find_exception_blocks if necessary.
975 (read_graph_file): Adjust. Note if an exceptional edge is seen.
976 (find_exception_blocks): New.
977 (add_line_counts): Set line's unexceptional flag if not exceptional.
978 (output_branch_count): Note exceptional arcs, lines and blocks.
979 * gcov-dump.c (tag_arcs): Decode arc flags.
980 * doc/gcov.texi: Document '=====' lines.
981
982 2011-12-02 Anatoly Sokolov <aesok@post.ru>
983
984 * config/ia64/ia64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
985 PRINT_OPERAND_PUNCT_VALID_P): Remove macros.
986 * config/ia64/ia64-protos.h (ia64_print_operand,
987 ia64_print_operand_address): Remove.
988 * config/ia64/ia64.c (TARGET_PRINT_OPERAND,
989 TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P):
990 Define.
991 (ia64_print_operand_punct_valid_p): New function.
992 (ia64_print_operand, ia64_print_operand_address): Make static.
993
994 2011-12-02 Michael Meissner <meissner@the-meissners.org>
995
996 PR target/51390
997 * config/rs6000/rs6000.c (def_builtin): Use the correct field to
998 figure out the function's attributes.
999 (struct builtin_description): Mark mask field as const since we no
1000 longer need to modify it for SPE and PAIRED builtins.
1001
1002 2011-12-02 Joseph Myers <joseph@codesourcery.com>
1003
1004 Revert:
1005
1006 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
1007
1008 PR rtl-opt/37451
1009 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
1010 zero extend count after the correction to it is done.
1011 (doloop_optimize): Update call to doloop_modify, don't zero extend
1012 count before call.
1013
1014 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1015
1016 PR rtl-opt/37782
1017 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
1018 mode count is in.
1019 (doloop_optimize): Update call to doloop_modify.
1020
1021 2011-12-02 Richard Guenther <rguenther@suse.de>
1022
1023 PR lto/47259
1024 * ipa.c (varpool_externally_visible_p): Register variables
1025 are always externally visible.
1026
1027 2011-12-02 Sameera Deshpande <sameera.deshpande@arm.com>
1028
1029 * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
1030 non-NULL.
1031
1032 2011-12-02 Martin Jambor <mjambor@suse.cz>
1033
1034 PR tree-optimization/50622
1035 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
1036 if both lacc and racc are grp_partial_lhs.
1037
1038 2011-12-01 Kaz Kojima <kkojima@gcc.gnu.org>
1039
1040 PR target/50814.
1041 * config/sh/sh.c (expand_ashiftrt): Handle TARGET_SH2A same as
1042 TARGET_SH3.
1043 (shl_sext_kind): Likewise.
1044 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Likewise.
1045 * config/sh/sh.md (ashlsi3_sh2a, ashrsi3_sh2a, lshrsi3_sh2a): Remove.
1046 (ashlsi3_std): Handle TARGET_SH2A same as TARGET_SH3.
1047 (ashlsi3): Likewise.
1048 (ashrsi3_d): Likewise.
1049 (lshrsi3_d): Likewise.
1050 (lshrsi3): Likewise.
1051
1052 2011-12-01 Diego Novillo <dnovillo@google.com>
1053
1054 PR bootstrap/51346
1055 * ipa-inline.c (can_inline_edge_p): If the edge E has a statement,
1056 use the statement's inline indicator instead of E's.
1057 Remove consistency check.
1058
1059 2011-12-01 Diego Novillo <dnovillo@google.com>
1060
1061 PR bootstrap/51346
1062 Revert
1063
1064 2011-11-29 Diego Novillo <dnovillo@google.com>
1065
1066 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
1067 Update field call_stmt_cannot_inline_p from call
1068 graph edge, if needed.
1069 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
1070
1071 2011-12-01 Nathan Sidwell <nathan@acm.org>
1072
1073 PR gcov-profile/51113
1074 * coverage.c (build_var): Keep coverage variables static.
1075
1076 2011-12-01 Jakub Jelinek <jakub@redhat.com>
1077
1078 PR tree-optimization/51356
1079 * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
1080 vectype doesn't have VECTOR_MODE_P.
1081
1082 PR debug/50317
1083 * tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
1084 as unnecessary a store to a variable with gimple reg type.
1085 * tree-ssa-live.c (remove_unused_locals): Clear TREE_ADDRESSABLE bit
1086 on local unreferenced variables.
1087 * cfgexpand.c (expand_gimple_basic_block): Don't emit DEBUG_INSNs
1088 for !target_for_debug_bind variables.
1089
1090 2011-12-01 Patrick Marlier <patrick.marlier@gmail.com>
1091
1092 PR middle-end/51273
1093 * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
1094 * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
1095 * cgraphunit.c (cgraph_copy_node_for_versioning): Call it.
1096
1097 2011-12-01 Andrew Pinski <apinski@cavium.com>
1098
1099 PR lto/51198
1100 * tree.c (free_lang_data_in_decl): Clear FIELD_DECL's
1101 DECL_INITIAL also.
1102
1103 2011-12-01 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR tree-optimization/51246
1106 * tree-predcom.c (replace_ref_with): Handle also clobber on the rhs.
1107
1108 PR rtl-optimization/51014
1109 * loop-unroll.c (apply_opt_in_copies): Ignore label DEBUG_INSNs
1110 both from bb and orig_bb.
1111
1112 2011-12-01 Joern Rennecke <joern.rennecke@embecosm.com>
1113
1114 PR tree-optimization/50802
1115 * tree-vrp.c (simplify_conversion_using_ranges): Rewrite test
1116 considering what happens to ranges during sign changes and/or
1117 intermediate narrowing conversions.
1118
1119 2011-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1120
1121 PR middle-end/50283
1122 * config/pa/pa.md (in_branch_delay): Disallow frame related insns.
1123 (in_nullified_branch_delay): Likewise.
1124 (in_call_delay): Likewise.
1125
1126 2011-11-30 Richard Henderson <rth@redhat.com>
1127
1128 * predict.c (expr_expected_value_1): Assume compare-and-swap builtin
1129 boolean return is true.
1130
1131 2011-11-30 Jakub Jelinek <jakub@redhat.com>
1132
1133 PR rtl-optimization/51044
1134 * dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
1135 rather than just insn body.
1136
1137 PR target/50725
1138 * function.c (thread_prologue_and_epilogue_insns): If
1139 stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
1140 regset.
1141
1142 PR middle-end/51089
1143 * tree-eh.c (cleanup_empty_eh_merge_phis): Add check to
1144 avoid creating duplicate edges here.
1145 (cleanup_empty_eh_unsplit): And remove it in the caller.
1146
1147 2011-11-30 Andrew Pinski <apinski@cavium.com>
1148
1149 PR c/51321
1150 * c-parser.c (c_parser_postfix_expression): Check groktypename results
1151 before looking at the main variant.
1152
1153 2011-11-30 Jakub Jelinek <jakub@redhat.com>
1154
1155 PR rtl-optimization/48721
1156 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
1157 reg_pending_barrier to TRUE_BARRIER.
1158
1159 PR rtl-optimization/48721
1160 * sched-ebb.c (begin_move_insn): Insert empty unreachable
1161 block after BARRIER if insn is followed by it.
1162
1163 2011-11-30 Richard Henderson <rth@redhat.com>
1164
1165 * config/sparc/sparc-opts.h (enum sparc_memory_model_type): New.
1166 * config/sparc/sparc.opt (mmemory-model=): New option.
1167 * doc/invoke.texi (Sparc Options): Document it.
1168 * config/sparc/sparc.c (sparc_option_override): Provide default
1169 for sparc_memory_model.
1170 (sparc_emit_membar_for_model): Omit barrier combinations that are
1171 implied by the memory model.
1172
1173 2011-11-30 Richard Henderson <rth@redhat.com>
1174
1175 * config/sparc/sync.md (I124MODE): New mode iterator.
1176 (memory_barrier): Remove.
1177 (atomic_exchangesi): New.
1178 (swapsi): Rename from *swapsi.
1179 (atomic_test_and_set<I124MODE>): New.
1180 (ldstubqi): Rename from *ldstubqi, merge with expander.
1181 (ldstub<I24MODE>): Rename from *ldstub<I24MODE>, merge with expander.
1182 (sync_lock_test_and_setsi): Remove.
1183 (sync_lock_test_and_set<I12MODE>): Remove.
1184
1185 2011-11-30 Richard Henderson <rth@redhat.com>
1186
1187 * config/sparc/constraints.md ("w"): New.
1188 * config/sparc/predicates.md (mem_noofs_operand): New.
1189 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Make static.
1190 Generate the boolean result of the atomic_compare_exchange.
1191 (sparc_expand_compare_and_swap): New.
1192 * config/sparc/sync.md (atomic_compare_and_swap<I>): New.
1193 (atomic_compare_and_swap<I48MODE>_1): Rename from
1194 *sync_compare_and_swap<I48MODE>, use mem_noofs_operand.
1195 (*atomic_compare_and_swapdi_v8plus): Rename from
1196 *sync_compare_and_swapdi_v8plus, use mem_noofs_operand.
1197 (sync_compare_and_swap<I12MODE>): Remove.
1198 (sync_compare_and_swap<I48MODE>): Remove.
1199
1200 2011-11-30 Richard Henderson <rth@redhat.com>
1201
1202 * config/sparc/predicates.md (register_or_v9_zero_operand): New.
1203 * config/sparc/sparc.md (UNSPEC_ATOMIC): New.
1204 * config/sparc/sync.md (atomic_load<I>): New.
1205 (atomic_loaddi_1, atomic_store<I>, atomic_storedi_1): New.
1206
1207 2011-11-30 Richard Henderson <rth@redhat.com>
1208
1209 * config/sparc/predicates.md (zero_or_v7_operand): New.
1210 * config/sparc/sparc.c (sparc_emit_membar_for_model): New.
1211 * config/sparc/sparc-protos.h: Update.
1212 * config/sparc/sync.md (mem_thread_fence): New.
1213 (memory_barrier): Use sparc_emit_membar_for_model.
1214 (membar, *membar_empty, *membar_storestore, *membar_storeload): New.
1215 (*membar_v8): Accept and ignore the membar mask.
1216 (*membar): Accept and print the membar mask.
1217
1218 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1219
1220 * config/arm/arm.c (arm_issue_rate): Cortex-A15 can triple issue.
1221 * config/arm/arm.md (mul64): New attribute.
1222 (generic_sched): Cortex-A15 is not scheduled generically.
1223 (cortex-a15.md): Include.
1224 * config/arm/cortex-a15.md: New machine description.
1225 * config/arm/t-arm (MD_INCLUDES): Add cortex-a15.md.
1226
1227 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1228
1229 * config/arm/t-arm (MD_INCLUDES): Ensure all md files are listed.
1230
1231 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1232
1233 * doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
1234 * doc/tm.texi: Regenerate.
1235 * flags.h (flag_next_runtime): Remove references.
1236 * toplev.c: Likewise.
1237 * defaults.h (NEXT_OBJC_RUNTIME): Provide default.
1238 * gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
1239 * config/darwin.c (darwin_override_options): Provide default
1240 Objective-C abi settings and target conflict checks.
1241 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
1242 code. Adjust indenting.
1243
1244 2011-11-29 Joseph Myers <joseph@codesourcery.com>
1245
1246 * config/sh/sh.h (enum reg_class, REG_CLASS_NAMES)
1247 (REG_CLASS_CONTENTS): Add NON_SP_REGS.
1248 (REGCLASS_HAS_GENERAL_REG): Handle NON_SP_REGS.
1249 * config/sh/constraints.md (u): New constraint.
1250
1251 2011-11-29 Oleg Endo <oleg.endo@t-online.de>
1252
1253 PR target/51337
1254 * config/sh/sh.c (sh_secondary_reload): Add case when FPUL
1255 register is being loaded from a pseudo in memory.
1256
1257 2011-11-29 DJ Delorie <dj@redhat.com>
1258
1259 * config.gcc (rl78-*-elf): New case.
1260 * doc/extend.texi: Add RL78 documentation.
1261 * doc/invoke.texi: Likewise.
1262 * doc/md.texi: Likewise.
1263 * doc/contrib.texi: Add RL78.
1264 * doc/install.texi: Add rl78-*-elf.
1265 * config/rl78: New directory for the Renesas RL78.
1266
1267 2011-11-29 Jakub Jelinek <jakub@redhat.com>
1268
1269 PR tree-optimization/51247
1270 * tree-vrp.c (extract_range_from_assert): For signed 1-bit precision
1271 types instead of adding 1 subtract -1 and instead of subtracting 1
1272 add -1 to avoid overflows.
1273
1274 2011-11-29 Andrew MacLeod <amacleod@redhat.com>
1275
1276 PR target/50123
1277 * optabs.c (maybe_optimize_fetch_op): New. Look for more optimal
1278 instructions for a FECTH_OP or OP_FECTH sequence.
1279 (expand_atomic_fetch_op): Call maybe_optimize_fetch_op.
1280
1281 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
1282
1283 * config/i386/sync.md (UNSPEC_LDA, UNSPEC_STA): New unspecs.
1284 (movdi_via_fpu): Remove.
1285 (loaddi_via_fpu): New insn pattern.
1286 (storedi_via_fpu): Ditto.
1287 (atomic_loaddi_fpu): Use loaddi_via_fpu and storedi_via_fpu.
1288 (atomic_storedi_fpu): Ditto.
1289 * reg-stack.c (get_true_reg): Handle UNSPEC_LDA.
1290 (subst_stack_regs_pat): Handle UNSPEC_STA.
1291
1292 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
1293
1294 * config/i386/i386.md (*floathi<mode>2_i387_with_temp): Do not
1295 allocate scratch memory for alternative 0.
1296
1297 2011-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1298
1299 * config/rs6000/rs6000-builtins.def: Completely rewrite builtin
1300 handling to centralize more of the builtins in this file. Change
1301 some builtin enumerations to be more consistant. Use a new mask
1302 to hold the current builtins, including SPE and PAIRED builtins
1303 which no longer are set via target_flags masks. Add
1304 -mdebug=builtin debug support. For power machines, define all
1305 Altivec and VSX buitins when the compiler starts, but don't allow
1306 the use of a builtin unless the appropriate switch is used, or
1307 #pragma GCC target is used to change the options. If the user
1308 uses #pragma GCC target, update the appropriate hardware macros.
1309 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Ditto.
1310 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Ditto.
1311 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Ditto.
1312 (rs6000_define_or_undefine_macro): Ditto.
1313 (rs6000_target_modify_macros): Ditto.
1314 (rs6000_cpu_cpp_builtins): Ditto.
1315 (altivec_overloaded_builtins): Ditto.
1316 (altivec_build_resolved_builtin): Ditto.
1317 * config/rs6000/rs6000.c (rs6000_target_modify_macros_ptr): Ditto.
1318 (rs6000_builtin_info): Ditto.
1319 (def_builtin): Ditto.
1320 (enable_mask_for_builtins): Ditto.
1321 (DEBUG_FMT_X): Ditto.
1322 (rs6000_debug_reg_global): Ditto.
1323 (rs6000_builtin_mask_calculate): Ditto.
1324 (rs6000_option_override_internal): Ditto.
1325 (rs6000_builtin_conversion): Ditto.
1326 (rs6000_builtin_vectorized_function): Ditto.
1327 (bdesc_3arg): Ditto.
1328 (bdesc_dst): Ditto.
1329 (bdesc_2arg): Ditto.
1330 (builtin_description_predicates): Ditto.
1331 (bdesc_altivec_preds): Ditto.
1332 (bdesc_spe_predicates): Ditto.
1333 (bdesc_spe_evsel): Ditto.
1334 (bdesc_paired_preds): Ditto.
1335 (bdesc_abs): Ditto.
1336 (bdesc_1arg): Ditto.
1337 (rs6000_overloaded_builtin_p): Ditto.
1338 (rs6000_expand_unop_builtin): Ditto.
1339 (bdesc_2arg_spe): Ditto.
1340 (spe_expand_builtin): Ditto.
1341 (rs6000_invalid_builtin): Ditto.
1342 (rs6000_expand_builtin): Ditto.
1343 (rs6000_init_builtins): Ditto.
1344 (spe_init_builtins): Ditto.
1345 (paired_init_builtins): Ditto.
1346 (altivec_init_builtins): Ditto.
1347 (builtin_function_type): Ditto.
1348 (rs6000_common_init_builtins): Ditto.
1349 (rs6000_builtin_reciprocal): Ditto.
1350 (rs6000_builtin_mask_names): Ditto.
1351 (rs6000_pragma_target_parse): Ditto.
1352 (rs6000_function_specific_print): Ditto.
1353 * config/rs6000/rs6000.h (MASK_DEBUG_BUILTIN): Ditto.
1354 (MASK_DEBUG_ALL): Ditto.
1355 (TARGET_DEBUG_BUILTIN): Ditto.
1356 (TARGET_EXTRA_BUILTINS): Ditto.
1357 (REGISTER_TARGET_PRAGMAS): Ditto.
1358 (enum rs6000_btc): Ditto.
1359 (RS6000_BTC_*): Ditto.
1360 (RS6000_BTM_*): Ditto.
1361 (enum rs6000_builtins): Ditto.
1362 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Ditto.
1363 (rs6000_target_modify_macros): Ditto.
1364 (rs6000_target_modify_macros_ptr): Ditto.
1365
1366 * config/rs6000/vector.md (unsfloat<VEC_int><mode>2): Use the
1367 standard name for converting vector unsigned values to floating
1368 point. Delete the TARGET_VECTORIZE_BUILTIN_CONVERSION hook, which
1369 is handled by machine independent code.
1370 * config/rs6000/rs6000.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Ditto.
1371 (rs6000_builtin_conversion): Ditto.
1372
1373 2011-11-29 Dodji Seketeli <dodji@redhat.com>
1374
1375 * tree-diagnostic (struct loc_t): Rename into struct loc_map_pair.
1376 (maybe_unwind_expanded_macro_loc): Adjust.
1377
1378 2011-11-29 David Edelsohn <dje.gcc@gmail.com>
1379 Aldy Hernandez <aldyh@redhat.com>
1380
1381 * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl
1382 if DECL_ONE_ONLY.
1383 (ipa_tm_create_version): Same.
1384
1385 2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
1386
1387 * haifa-sched.c (recompute_todo_spec): Simplify and correct the
1388 code checking for a clobber of a condition register when deciding
1389 whether to predicate.
1390
1391 2011-11-29 Diego Novillo <dnovillo@google.com>
1392
1393 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
1394 Update field call_stmt_cannot_inline_p from call graph edge, if needed.
1395 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
1396
1397 2011-11-29 Sameera Deshpande <sameera.deshpande@arm.com>
1398
1399 * config/arm/arm.md (arm_movdi): Update NEG_POOL_RANGE.
1400 (movdf_soft_insn): Likewise.
1401 * config/arm/fpa.md (thumb2_movdf_fpa): Likewise.
1402 * config/arm/neon.md (neon_mov<mode>): Likewise.
1403 * config/arm/vfp.md (movdi_vfp): Likewise.
1404 (movdi_vfp_cortexa8): Likewise.
1405 (movdf_vfp): Likewise.
1406
1407 2011-11-29 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR middle-end/50074
1410 * expr.c (expand_expr_addr_expr_1): Don't call force_operand for
1411 EXPAND_SUM modifier.
1412
1413 2011-11-29 Ira Rosen <ira.rosen@linaro.org>
1414
1415 PR tree-optimization/51301
1416 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check that
1417 the last statement doesn't convert to a bigger type than the original
1418 type of the computation.
1419
1420 2011-11-28 Richard Henderson <rth@redhat.com>
1421
1422 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1423 Handle overlap between retval and oldval. Always compute boolval
1424 from CR0 EQ value.
1425
1426 2011-11-28 Jakub Jelinek <jakub@redhat.com>
1427
1428 PR debug/50317
1429 * tree-ssa.c (execute_update_addresses_taken): Remove
1430 var ={v} {CLOBBER} stmts instead of rewriting them into
1431 var_N ={v} {CLOBBER}.
1432
1433 PR middle-end/50907
1434 * function.c (convert_jumps_to_returns): When redirecting an edge
1435 succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
1436
1437 PR tree-optimization/50078
1438 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
1439 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
1440
1441 PR tree-optimization/50682
1442 * tree-eh.c (maybe_remove_unreachable_handlers): New function.
1443 * tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
1444 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.
1445
1446 2011-11-28 Georg-Johann Lay <avr@gjlay.de>
1447
1448 * doc/extend.texi (AVR Built-in Functions): Add documentation for
1449 __builtin_avr_map8 and __builtin_avr_map16.
1450
1451 * config/avr/avr.md: Document new %t and %T asm output codes.
1452 (define_c_enum "unspec"): Add UNSPEC_MAP_BITS.
1453 (adjust_len): Add map_bits.
1454 (map_bitsqi, map_bitshi): New insns.
1455 * config/avr/avr-protos.h (avr_out_map_bits): New.
1456 * config/avr/avr-protos.c (print_operand): Implement %t and %T.
1457 (adjust_insn_length): Handle ADJUST_LEN_MAP_BITS.
1458 (avr_double_int_push_digit): New function.
1459 (avr_map, avr_revert_map, avr_swap_map, avr_id_map): New functions.
1460 (avr_sig_map, avr_map_hamming_byte): New functions.
1461 (avr_out_swap_bits, avr_out_revert_bits, avr_move_bits,
1462 avr_out_map_bits): New functions.
1463 (enum avr_builtin_id): Add AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
1464 (avr_init_builtins): Populate __builtin_avr_map8, __builtin_avr_map16.
1465 (bdesc_2arg): Add __builtin_avr_map8, __builtin_avr_map16 ...
1466 (avr_expand_builtin): ...and expand them.
1467 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
1468 __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
1469
1470 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1471
1472 PR target/51278
1473 * config/mips/mips.c (mips_rtx_costs): Handle baddu.
1474
1475 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1476
1477 * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
1478
1479 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1480
1481 * config/mips/mips-protos.h (mips_emit_binary): Declare.
1482 * config/mips/mips.c (mips_emit_binary): Make global.
1483 (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
1484 (mips_conditional_register_usage): Don't treat LO and HI as
1485 register operands in MIPS16 mode.
1486 (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
1487 for MIPS16 code.
1488 * config/mips/predicates.md (muldiv_target_operand): New predicate.
1489 (move_operand): Allow hilo_operand.
1490 * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
1491 target of MIPS16 multiplies, then move it into the target register.
1492 (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
1493 (<u>mulsidi3_32bit_mips16): New expander.
1494 (<u>mulsidi3_32bit): Use muldiv_target_operand.
1495 (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
1496 (<u>mulsidi3_64bit): Require !TARGET_MIPS16. Split into
1497 <u>mulsidi3_64bit_split.
1498 (<u>mulsidi3_64bit_mips16): New expander.
1499 (<u>mulsidi3_64bit_split): Likewise, using expansions from
1500 two previous define_splits.
1501 (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
1502 muldiv_target_operand.
1503 (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
1504 (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
1505 Split into <su>mulsi3_highpart_split.
1506 (<su>mulsi3_highpart_split): New expander.
1507 (<su>muldi3_highpart): Turn into a define_expand.
1508 Use <su>muldi3_highpart_split for MIPS16 code.
1509 (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
1510 Require !TARGET_MIPS16. Split into <su>muldi3_highpart_split.
1511 (<su>muldi3_highpart_split): New expander.
1512 (<u>mulditi3): Explicitly specify LO as the target of MIPS16
1513 multiplies, then move it into the target register.
1514 (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
1515 (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
1516 Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
1517 move LO into operand 0.
1518 (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
1519 from <u>divmod<mode>4. Use muldiv_target_operand.
1520 Require !TARGET_MIPS16. Split into <u>divmod<mode>4_split.
1521 (<u>divmod<mode>4_split): New expander.
1522 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
1523 (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
1524
1525 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
1526
1527 * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
1528 and x_operand_reg_set.
1529 (accessible_reg_set, operand_reg_set): New macros.
1530 * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
1531 operand_reg_set.
1532 (saved_accessible_reg_set, saved_operand_reg_set): New variables.
1533 (save_register_info): Save them.
1534 (restore_register_info): Restore them.
1535 (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
1536 Remove NO_REGS registers from operand_reg_set. Treat members
1537 of operand_reg_set as fixed.
1538 * recog.c (general_operand): Check operand_reg_set rather than NO_REGS.
1539 (register_operand, nonmemory_operand): Likewise.
1540 * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
1541 register variables. Check accessible_reg_set and operand_reg_set.
1542 * config/mips/mips.c (mips_conditional_register_usage): Remove
1543 inaccessible register from accessible_reg_set, rather than just
1544 making them fixed.
1545
1546 2011-11-27 Gerald Pfeifer <gerald@pfeifer.com>
1547
1548 * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
1549
1550 2011-11-26 Richard Henderson <rth@redhat.com>
1551
1552 * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
1553 for Linux.
1554
1555 2011-11-26 Richard Henderson <rth@redhat.com>
1556
1557 * optabs.c (expand_atomic_fetch_op): Always return result.
1558
1559 * optabs.c (init_sync_libfuncs_1): Include max in iteration.
1560
1561 * omp-low.c (expand_omp_atomic): Assume anything aligned to
1562 BIGGEST_ALIGNMENT is aligned.
1563
1564 2011-11-26 Richard Henderson <rth@redhat.com>
1565
1566 * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
1567 (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
1568 (I): New mode iterator.
1569 (xz): New mode attribute.
1570 * config/m68k/sync.md: New file.
1571
1572 * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
1573 * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
1574
1575 2011-11-26 Nathan Sidwell <nathan@acm.org>
1576
1577 PR gcov-profile/51297
1578 * gcov.c (main): Allocate initial names and sources arrays.
1579 (find_source): Don't check for null name or source arrays here.
1580
1581 2011-11-26 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR rtl-optimization/49912
1584 * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
1585 when counting n_branch.
1586
1587 2011-11-26 Uros Bizjak <ubizjak@gmail.com>
1588
1589 * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
1590
1591 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1592
1593 PR middle-end/50074
1594 * calls.c (mem_overlaps_already_clobbered_arg_p):
1595 Return false if no outgoing arguments have been stored so far.
1596
1597 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
1598
1599 * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
1600
1601 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1602
1603 PR other/51011
1604 * tree.h (is_builtin_name): No longer external.
1605 * builtins.c (is_builtin_name): Make static.
1606 * varasm.c (incorporeal_function_p): __sync and __atomic external calls
1607 are not incorporeal and may need asm label processing.
1608
1609 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
1610
1611 PR target/50566
1612 * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
1613 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
1614 Don't bypass TARGET_ALL_DEBUG. Print self-info with ?.
1615 (avr_log_vadump): Support %D and %X to print double_int.
1616 (avr_double_int_pop_digit): New static function.
1617 (avr_dump_double_int_hex): New static function.
1618
1619 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
1620
1621 PR target/51287
1622 * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
1623 attr check.
1624
1625 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1626
1627 * optab.c (maybe_emit_atomic_exchange): New. Try to emit an
1628 atomic_exchange pattern.
1629 (maybe_emit_sync_lock_test_and_set): New. Try to emit an exchange
1630 using __sync_lock_test_and_set.
1631 (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
1632 exchange using a compare_and_swap loop.
1633 (expand_sync_lock_test_and_set): New. Expand sync_lock_test_and_set.
1634 (expand_atomic_test_and_set): New. Expand test_and_set operation.
1635 (expand_atomic_exchange): Use new maybe_emit_* functions.
1636 (expand_atomic_store): Use new maybe_emit_* functions.
1637 * builtins.c (expand_builtin_sync_lock_test_and_set): Call
1638 expand_sync_lock_test_and_set routine.
1639 (expand_builtin_atomic_exchange): Remove parameter from call.
1640 (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
1641 (expand_builtin_atomic_test_and_set): Add target and simply call
1642 expand_atomic_test_and_set.
1643 (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
1644 * expr.h (expand_atomic_exchange): Add parameter.
1645 (expand_sync_lock_test_and_set): New prototype.
1646 (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
1647
1648 2011-11-24 H.J. Lu <hongjiu.lu@intel.com>
1649
1650 PR target/51134
1651 * config/i386/i386.h (processor_costs): Revert revision 181357.
1652 * config/i386/i386.c (cost models): Likewise.
1653 (core_cost): Likewise.
1654 (promote_duplicated_reg): Likewise.
1655 (promote_duplicated_reg_to_size): Likewise.
1656 (processor_target): Likewise.
1657 (expand_set_or_movmem_via_loop_with_iter): Likewise.
1658 (expand_set_or_movmem_via_loop): Likewise.
1659 (emit_strset): Likewise.
1660 (expand_movmem_epilogue): Likewise.
1661 (expand_setmem_epilogue): Likewise.
1662 (expand_movmem_prologue): Likewise.
1663 (expand_setmem_prologue): Likewise.
1664 (expand_constant_movmem_prologue): Likewise.
1665 (expand_constant_setmem_prologue): Likewise.
1666 (decide_alg): Likewise.
1667 (decide_alignment): Likewise.
1668 (ix86_expand_movmem): Likewise.
1669 (ix86_expand_setmem): Likewise.
1670 (ix86_slow_unaligned_access): Likewise.
1671 * config/i386/i386.md (strset): Likewise.
1672 * config/i386/sse.md (vec_dupv4si): Likewise.
1673 (vec_dupv2di): Likewise.
1674
1675 2011-11-24 Georg-Johann Lay <avr@gjlay.de>
1676
1677 * config/avr/avr.md (*rotlhi2.15): Set length to 4.
1678
1679 2011-11-24 Razya Ladelsky <razya@il.ibm.com>
1680
1681 * tree-data-ref.c (initialize_data_dependence_relation): Update
1682 comment for the self dependence case.
1683 (compute_self_dependence): Remove.
1684 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
1685 compute_self_dependenc.
1686
1687 2011-11-24 Alan Modra <amodra@gmail.com>
1688
1689 * c-decl.c (warn_if_shadowing): Don't warn if shadowed
1690 identifier is from system header.
1691
1692 2011-11-23 Jakub Jelinek <jakub@redhat.com>
1693
1694 PR target/51261
1695 * config/i386/i386.c (decide_alg): Initialize *dynamic_check
1696 even if !optimize.
1697
1698 2011-11-23 Vladimir Makarov <vmakarov@redhat.com>
1699
1700 PR rtl-optimization/48455
1701 * doc/invoke.texi (-fira-region): Document default values.
1702
1703 * flags-types.h (enum ira_region): Add new value
1704 IRA_REGION_AUTODETECT.
1705
1706 * common.opt (fira-region): Set up initial value to
1707 IRA_REGION_AUTODETECT.
1708
1709 * toplev.c (process_options): Set up flag_ira_region depending on
1710 -O options.
1711
1712 * ira.c (ira.c): Remove optimize guard for ira_build.
1713
1714 2011-11-23 Chung-Lin Tang <cltang@codesourcery.com>
1715
1716 PR rtl-optimization/50496
1717 * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
1718 only after epilogue is created. Add comments.
1719
1720 2011-11-22 Richard Henderson <rth@redhat.com>
1721
1722 * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
1723 Generate the barrier required for the memory model.
1724 (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
1725 * config/ia64/ia64-protos.h: Update.
1726 * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
1727 (UNSPEC_CMPXCHG_REL): New.
1728 * config/ia64/sync.md (mem_thread_fence): New.
1729 (atomic_load<IMODE>, atomic_store<IMODE>): New.
1730 (atomic_compare_and_swap<IMODE>): New.
1731 (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
1732 (atomic_exchange<IMODE>): New.
1733 (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
1734 (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
1735 (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
1736 (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
1737 (fetchadd_rel_<I48MODE>): New.
1738 (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
1739 (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
1740 (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
1741 (sync_compare_and_swap<IMODE>): Remove.
1742 (sync_lock_release<IMODE>): Remove.
1743
1744 * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
1745 and UNSPECV_* constants.
1746
1747 2011-11-22 Tom de Vries <tom@codesourcery.com>
1748
1749 PR rtl-optimization/50764
1750 * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
1751 not moved past preceding jump.
1752
1753 2011-11-22 Jeff Law <law@redhat.com>
1754
1755 * doc/contrib.texi: Add entry for David Binderman.
1756
1757 2011-11-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1758
1759 * postreload.c (reload_combine): Mark reg_state as invalid at
1760 volatile insns if there has been a use already.
1761
1762 2011-11-21 Aldy Hernandez <aldyh@redhat.com>
1763
1764 * opts.c (finish_options): Do not fail for -fgnu-tm.
1765 * gimple-streamer-out.c (output_gimple_stmt): Handle
1766 GIMPLE_TRANSACTION.
1767 * gimple-streamer-in.c (input_gimple_stmt): Same.
1768 * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
1769 (lto_output_node): Write tm_clone bit.
1770
1771 2011-11-22 Ian Lance Taylor <iant@google.com>
1772
1773 * doc/install.texi (Configuration): Correct doc of
1774 --enable-build-poststage1-with-cxx: it is not experimental.
1775
1776 2011-11-22 Jakub Jelinek <jakub@redhat.com>
1777
1778 PR tree-optimization/51074
1779 * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
1780 handling for BYTES_BIG_ENDIAN.
1781 * optabs.c (can_vec_perm_for_code_p): Likewise.
1782
1783 2011-11-22 Michael Matz <matz@suse.de>
1784
1785 PR other/51125
1786 * trans-mem.c (expand_block_tm): Ignore clobbers.
1787
1788 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1789
1790 * config/darwin.h (ENDFILE_SPEC): New.
1791 (DARWIN_CRT1_SPEC): Add crttms.o.
1792 (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
1793 * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
1794
1795 2011-11-22 Michael Matz <matz@suse.de>
1796
1797 PR c++/51264
1798 * tree.c (iterative_hash_expr): Remove break after return.
1799
1800 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
1801
1802 * target.def (tm_clone_table_section): New hook.
1803 * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
1804 * doc/tm.texi: Regenerate.
1805 * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
1806 * output.h (default_clone_table_section): New prototype.
1807 * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
1808 * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
1809 * config/darwin.c (darwin_tm_clone_table_section): New.
1810
1811 2011-11-21 Torvald Riegel <triegel@redhat.com>
1812
1813 * trans-mem.c (diagnose_tm_1): Print an expression instead of a
1814 declaration in error messages for indirect calls.
1815
1816 2011-11-21 David S. Miller <davem@davemloft.net>
1817
1818 * config/sparc/sparc.c (sparc_regmode_natural_size): New function
1819 implementing REGMODE_NATURAL_SIZE taking into consideration vector
1820 modes.
1821 (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
1822 * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
1823 sparc_modes_tieable_p): Declare.
1824 * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
1825 MODES_TIEABLE_P): Use new helper functions.
1826
1827 Revert
1828 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1829
1830 PR middle-end/50325
1831 * expmed.c (store_bit_field_1): Use extract_bit_field on big
1832 endian targets if the source cannot be exactly covered by word
1833 mode chunks.
1834
1835 2011-11-21 Jakub Jelinek <jakub@redhat.com>
1836
1837 PR debug/50827
1838 * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
1839 macro instead of XEXP.
1840
1841 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1842
1843 * configure: Regenerate.
1844
1845 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
1846
1847 * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
1848 must not affect cc0.
1849 * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
1850 register does not change cc0. Same for any constant to ld-register.
1851
1852 2011-11-21 Uros Bizjak <ubizjak@gmail.com>
1853
1854 * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
1855 UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
1856 Move from config/i386/i386.md
1857 (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
1858 * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
1859 UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
1860 UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
1861 UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
1862 UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
1863 UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
1864 UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
1865 UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
1866 UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
1867 UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
1868 UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
1869 UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
1870 (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
1871 UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
1872 Ditto.
1873 * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
1874 UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
1875 (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
1876 UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
1877 (sse2_lfence): Move from config/i386/sse.md.
1878 (*sse2_lfence): Ditto.
1879 (sse_sfence): Ditto.
1880 (*sse_sfence): Ditto.
1881 (sse2_mfence): Ditto.
1882 (mfence_sse2): Ditto. Rename from *sse2_mfence. Enable also
1883 for TARGET_64BIT.
1884 (mem_thread_fence): Use mfence_sse2.
1885
1886 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
1887
1888 * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
1889 * config/avr/avr-devices.c: Ditto. And initialize it.
1890 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
1891 __AVR_SFR_OFFSET__.
1892 * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
1893 (out_movhi_r_mr, out_movhi_mr_r): Remove.
1894 (out_movsi_r_mr, out_movsi_mr_r): Remove.
1895 * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
1896 (*insv.io, *insv.not.io): Ditto.
1897 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
1898 (print_operand): Implement "%i" to print address as I/O address.
1899 (output_movqi): Clean up call of out_movqi_mr_r.
1900 (output_movhi): Clean up call of out_movhi_mr_r.
1901 (avr_file_start): Use avr_current_arch->sfr_offset instead of
1902 magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
1903 (avr_out_sbxx_branch): Use %i instead of %m-0x20.
1904 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
1905 (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
1906 (out_shift_with_cnt): Clean up code: Use avr_asm_len.
1907 (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
1908 (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
1909 Clean up call of avr_out_store_psi.
1910 (output_reload_in_const): Don't cut symbols longer than 2 bytes.
1911 (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
1912 try if setting pre-cleared register is advantageous.
1913 (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
1914
1915 2011-11-20 Joey Ye <joey.ye@arm.com>
1916
1917 * expr.c (expand_expr_real_1): Correctly handle strict volatile
1918 bitfield loads smaller than mode size.
1919
1920 2011-11-20 Richard Henderson <rth@redhat.com>
1921
1922 * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
1923
1924 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
1925
1926 PR target/51235
1927 * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
1928 patterns for supported mode only.
1929
1930 PR target/51236
1931 * config/i386/i386.c (ix86_expand_builtin)
1932 <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
1933
1934 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
1935
1936 * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
1937 (UNSPEC_MOVNTQ): New unspec.
1938 * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
1939 Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
1940 * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
1941 UNSPEC_MOVNTI.
1942 (STORENT_MODE): Add DI and V4DI modes.
1943
1944 2011-11-20 Nathan Sidwell <nathan@acm.org>
1945
1946 PR gcov-profile/51113
1947 * coverage.c (build_var): Propagate visibility for public
1948 decls. Use make_decl_one_only for PIC correctness.
1949
1950 testsuite/
1951 * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
1952 * gcc.misc-tests/gcov-16.c: New.
1953 * gcc.misc-tests/gcov-17.c: New.
1954 * g++.dg/gcov/gcov-8.C: New.
1955 * g++.dg/gcov/gcov-9.C: New.
1956 * g++.dg/gcov/gcov-10.C: New.
1957
1958 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
1959
1960 PR rtl-optimization/51187
1961 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
1962 is a barrier between the jump and its target label.
1963
1964 2011-11-19 Patrick Marlier <patrick.marlier@gmail.com>
1965
1966 PR middle-end/51211
1967 * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
1968
1969 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
1970
1971 * expmed.c (store_bit_field_1): Revert bogus formatting change.
1972
1973 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
1974
1975 PR target/50493
1976 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
1977 overlap of src and dest operands.
1978
1979 2011-11-19 Iain Sandoe <iains@gcc.gnu.org>
1980
1981 * config/darwin.h (ASM_DEBUG_SPEC): New.
1982 * config/darwin9.h (ASM_DEBUG_SPEC): New.
1983
1984 2011-11-18 Jan Hubicka <jh@suse.cz>
1985
1986 * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
1987 issues are fixed.
1988
1989 2011-11-18 Anatoly Sokolov <aesok@post.ru>
1990
1991 * config/cris/cris.c (cris_function_value_regno_p): Make static.
1992 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1993 * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
1994 * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
1995
1996 2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
1997
1998 PR target/33944
1999 * doc/extend.texi: Document __builtin_ia32_movnti64.
2000
2001 * config/i386/emmintrin.h (_mm_stream_si64): New.
2002
2003 * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
2004
2005 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
2006 (bdesc_special_args): Update __builtin_ia32_movnti. Add
2007 __builtin_ia32_movnti64.
2008 (ix86_expand_special_args_builtin): Handle
2009 VOID_FTYPE_PLONGLONG_LONGLONG.
2010
2011 * config/i386/i386.md (UNSPEC_MOVNTI): New.
2012
2013 * config/i386/sse.md (sse2_movntsi): Renamed to ...
2014 (sse2_movnti<mode>): This.
2015
2016 2011-11-18 Georg-Johann Lay <avr@gjlay.de>
2017
2018 PR target/49868
2019 * config/avr/avr.h (base_arch_s): Add field n_segments.
2020 (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
2021 ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
2022 (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
2023 (INIT_EXPANDERS): New define.
2024 * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
2025 (avr_init_expanders): New.
2026 (avr_emit_movmemhi, avr_out_movmem): New.
2027 (avr_xload_libgcc_p): New.
2028 * config/avr/avr-c.c (avr_register_target_pragmas): Register
2029 address spaces __pgm1, __pgm2, __pgm3, __pgm4 __pgm5, __pgmx.
2030 (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
2031 __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
2032 * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
2033
2034 * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
2035 3 bits instead of just 1.
2036 (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
2037 (progmem_section): Change from section to array of sections.
2038 (progmem_section_prefix): New static variable.
2039 (avr_file_start): Print set for __RAMPZ__
2040 (avr_option_override): Move initialization of RTXes from here...
2041 (avr_init_expanders): ...to this new function.
2042 (avr_pgm_segment): New static function.
2043 (avr_decl_pgm_p): Handle error_mark_node.
2044 (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
2045 (avr_out_xload, avr_find_unused_d_reg): New static functions.
2046 (expand_prologue, expand_epilogue): Use rampz_rtx.
2047 (print_operand): Hande CONST_STRING.
2048 (avr_xload_libgcc_p): New static function.
2049 (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
2050 (avr_progmem_p): Return 2 for 24-bit flash address space.
2051 (avr_out_sbxx_branch): Clean-up code from ASn macros.
2052 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
2053 address and print symbolically.
2054 (avr_asm_named_section, avr_section_type_flags,
2055 avr_encode_section_info, avr_asm_select_section,
2056 avr_addr_space_address_mode, avr_addr_space_pointer_mode,
2057 avr_addr_space_legitimate_address_p, avr_addr_space_convert,
2058 avr_addr_space_legitimize_address): Handle new address spaces.
2059 (avr_output_progmem_section_asm_op): New static function.
2060 (avr_asm_init_sections): Initialize progmem_section[].
2061 (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
2062 (avr_const_address_lo16): New static function.
2063 (avr_assemble_integer): Use it to handle 3-byte integers.
2064 (avr_emit_movmemhi, avr_out_movmem): New functions.
2065
2066 * config/avr/predicates.md (nox_general_operand): Handle new
2067 address spaces.
2068 * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
2069 (adjust_len): Add xload, movmem.
2070 (SP_ADDR): New define_constants.
2071 (isa): Add "lpm", "lpmx", "elpm", "elpmx".
2072 (enabled): Handle them.
2073 (load<mode>_libgcc): New expander.
2074 (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
2075 (xload8_A, xload<mode>_A): New insn-and-splits.
2076 (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
2077 (mov<mode>): Handle new address spaces.
2078 (movmemhi): Rewrite using avr_emit_movmemhi.
2079 (MOVMEM_r_d): New mode attribute.
2080 (movmem_<mode>, movmem_qi_elpm): New insns.
2081 (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
2082 C-code. Use label instead of hard-coded instrunction lengths.
2083
2084 2011-11-18 Martin Jambor <mjambor@suse.cz>
2085
2086 PR tree-optimization/50605
2087 * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
2088 of IPA invariant decls.
2089
2090 2011-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2091
2092 * tree-outof-ssa.c (insert_back_edge_copies): Add call to
2093 mark_dfs_back_edges.
2094
2095 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
2096
2097 PR target/49992
2098 * configure.ac: Remove ranlib special-casing for Darwin.
2099 * configure: Regenerate.
2100
2101 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
2102
2103 PR tree-optimization/51118
2104 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
2105 before using TREE_TYPE accessor on expr.
2106
2107 2011-11-17 Jan Hubicka <jh@suse.cz>
2108
2109 PR bootstrap/51134
2110 * i386.c (atom_cost): Fix 32bit memset description.
2111 (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
2112 for epilogue loops.
2113 (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
2114 byte loop.
2115 (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
2116 when not optimizing always use rep movsb or lincall; do not produce
2117 word sized loops when optimizing memset for size (to avoid need
2118 for large constants).
2119 (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
2120 choose unroll factors better; always do 128bit moves when producing
2121 SSE loops; do not produce loopy epilogue when size is too small.
2122 (promote_duplicated_reg_to_size): Do not look into desired alignments
2123 when doing vector expansion.
2124 (ix86_expand_setmem): Track better when promoted value is available;
2125 choose unroll factors more sanely. Output loopy epilogue only
2126 when needed.
2127
2128 2011-11-17 Steve Ellcey <sje@cup.hp.com>
2129
2130 PR middle-end/51144
2131 * output.h (fprint_w): Remove.
2132 * final.c (fprint_w): Remove.
2133 (output_addr_const): Change fprint_w back to fprintf.
2134
2135 2011-11-17 Andrew Pinski <apinski@cavium.com>
2136
2137 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
2138
2139 2011-11-17 Andrew MacLeod <amacleod@redhat.com>
2140
2141 * builtins.c (expand_builtin): Remove 4th parameter representing
2142 weak/strong mode when __atomic_compare_exchange becomes a library call.
2143
2144 2011-11-17 Richard Henderson <rth@redhat.com>
2145
2146 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
2147 new pseudo for target after convert_modes.
2148 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
2149
2150 2011-11-17 Richard Henderson <rth@redhat.com>
2151
2152 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
2153 new pseudo for target after convert_modes.
2154 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
2155
2156 2011-11-17 Richard Henderson <rth@redhat.com>
2157
2158 * builtins.c (expand_builtin_mem_thread_fence): Remove.
2159 (expand_builtin_mem_signal_fence): Remove.
2160 (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
2161 (expand_builtin_sync_synchronize): Likewise.
2162 (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
2163 * optabs.c (expand_asm_memory_barrier): Split out from
2164 expand_builtin_mem_signal_fence.
2165 (expand_mem_thread_fence): New, a combination of code from
2166 expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
2167 (expand_mem_signal_fence): Moved and renamed from
2168 expand_builtin_mem_signal_fence.
2169 (expand_atomic_exchange): Use expand_mem_thread_fence.
2170 (expand_atomic_load, expand_atomic_store): Likewise.
2171 * expr.h, optabs.h: Update decls.
2172
2173 2011-11-17 Bin Cheng <bin.cheng@arm.com>
2174
2175 PR rtl-optimization/50663
2176 * cprop.c (implicit_set_indexes): New global variable.
2177 (insert_set_in_table): Add additional parameter and record implicit
2178 set information.
2179 (hash_scan_set): Add additional parameter and pass it to above.
2180 (hash_scan_insn): Pass false to hash_scan_set.
2181 (compute_hash_table_work): Pass true to hash_scan_set.
2182 (compute_cprop_data): Add implicit set to AVIN of block which the
2183 implicit set is recorded for.
2184 (one_cprop_pass): Handle implicit_set_indexes array.
2185
2186 2011-11-17 Michael Matz <matz@suse.de>
2187
2188 PR middle-end/50644
2189 PR middle-end/50741
2190 * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
2191 current function.
2192 (remove_unused_locals): Ditto.
2193
2194 2011-11-16 Richard Henderson <rth@redhat.com>
2195
2196 * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
2197 ALIAS_SET_MEMORY_BARRIER when creating a new memory.
2198 (alpha_split_atomic_exchange_12): Likewise.
2199 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
2200
2201 2011-11-16 Joseph Myers <joseph@codesourcery.com>
2202
2203 * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
2204
2205 2011-11-16 David Edelsohn <dje.gcc@gmail.com>
2206
2207 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
2208 Default to minimum alignment if decl is NULL.
2209
2210 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
2211
2212 * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
2213 sequence for AVX.
2214 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
2215
2216 2011-11-16 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2217
2218 * doc/invoke.texi: Document AMD bdver1 and btver1.
2219
2220 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
2221 Bernd Schmidt <bernds@coudesourcery.com>
2222 Sebastian Huber <sebastian.huber@embedded-brains.de>
2223
2224 PR target/49641
2225 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
2226 the base reg is stored iff compiling for Thumb1.
2227
2228 2011-11-16 Razya Ladelsky <razya@il.ibm.com>
2229
2230 PR tree-optimization/49960
2231 * tree-data-ref.c (initialize_data_dependence_relation): Add
2232 initializations.
2233 Remove call to compute_self_dependence.
2234 (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
2235 (compute_self_dependence): Remove old code. Add call to
2236 compute_affine_dependence.
2237 (compute_all_dependences): Remove call to compute_self_dependence.
2238 Add call to compute_affine_dependence.
2239
2240 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2241
2242 PR middle-end/50325
2243 * expmed.c (store_bit_field_1): Use extract_bit_field on big
2244 endian targets if the source cannot be exactly covered by word
2245 mode chunks.
2246
2247 2011-11-15 Joseph Myers <joseph@codesourcery.com>
2248
2249 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
2250 ELF_STRING_LIMIT.
2251
2252 2011-11-15 Richard Henderson <rth@redhat.com>
2253
2254 * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
2255 (alpha_post_atomic_barrier): New.
2256 (alpha_split_atomic_op): New memmodel argument; honor it.
2257 (alpha_split_compare_and_swap): Take array of operands. Honor
2258 memmodel; always set bool output
2259 (alpha_expand_compare_and_swap_12): Similarly.
2260 (alpha_split_compare_and_swap_12): Similarly.
2261 (alpha_split_atomic_exchange): Similarly. Rename from
2262 alpha_split_lock_test_and_set.
2263 (alpha_expand_atomic_exchange_12): Similarly. Rename from
2264 alpha_expand_lock_test_and_set_12.
2265 (alpha_split_atomic_exchange_12): Similarly. Rename from
2266 alpha_split_lock_test_and_set_12.
2267 * config/alpha/alpha-protos.h: Update.
2268 * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
2269 * config/alpha/constraints.md ("w"): New.
2270 * config/alpha/predicates.md (mem_noofs_operand): New.
2271 * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
2272 sync_compare_and_swap<mode>; add the new parameters.
2273 (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
2274 (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
2275 (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
2276 (atomic_<op><mode>): Update from sync_<op><mode>.
2277
2278 2011-11-16 Tom de Vries <tom@codesourcery.com>
2279
2280 * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
2281
2282 2011-11-16 Alan Modra <amodra@gmail.com>
2283
2284 PR rtl-optimization/51051
2285 PR bootstrap/51086
2286 * function.c (thread_prologue_and_epilogue_insns): Guard
2287 emitting return with single_succ_p test.
2288
2289 2011-11-15 Joern Rennecke <joern.rennecke@embecosm.com>
2290
2291 * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
2292 get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
2293
2294 2011-11-15 Uros Bizjak <ubizjak@gmail.com>
2295
2296 * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
2297 (vec_pack_sfix_trunc_v2df): Ditto.
2298 (vec_pack_sfix_v2df): Ditto.
2299 (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
2300 avx_vec_concatv8si patterns.
2301 (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
2302 avx_vec_concatv8si patterns.
2303
2304 2011-11-15 Torvald Riegel <triegel@redhat.com>
2305
2306 * c-parser.c (c_parser_transaction_expression): Require parentheses
2307 when parsing transaction expressions.
2308
2309 2011-11-15 Tristan Gingold <gingold@adacore.com>
2310
2311 * incpath.c (get_added_cpp_dirs): New function.
2312 * incpath.h (get_added_cpp_dirs): Declare.
2313 * config/vms/vms-c.c (vms_c_register_includes): New function.
2314 (vms_std_modules): New variable.
2315 * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
2316 (vms_c_register_includes): Declare.
2317
2318 2011-11-15 Tristan Gingold <gingold@adacore.com>
2319
2320 * c-family/c-pragma.h (pragma_extern_prefix): Declare.
2321 * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
2322 * config/vms/vms-c.c (saved_extern_prefix): New variable.
2323 (vms_pragma_extern_prefix): New function.
2324 (vms_c_register_pragma): Register vms_pragma_extern_prefix.
2325
2326 2011-11-15 Georg-Johann Lay <avr@gjlay.de>
2327
2328 PR target/49868
2329 * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
2330 (REGISTER_TARGET_PRAGMAS): New define.
2331 * config/avr/avr-protos.h (avr_mem_pgm_p): New.
2332 (avr_load_libgcc_p): New.
2333 (avr_register_target_pragmas): New.
2334 (asm_output_external_libcall): Remove.
2335 (avr_log_t): Add field "progmem". Order alphabetically.
2336 * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
2337 * config/avr/avr-c.c (langhooks.h): New include.
2338 (avr_register_target_pragmas): New function. Register address
2339 space __pgm.
2340 (avr_cpu_cpp_builtins): Add built-in define __PGM.
2341
2342 * config/avr/avr.c: Include "c-family/c-common.h".
2343 (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
2344 (TARGET_LEGITIMIZE_ADDRESS): Remove define.
2345 (TARGET_ADDR_SPACE_SUBSET_P): Define to...
2346 (avr_addr_space_subset_p): ...this new static function.
2347 (TARGET_ADDR_SPACE_CONVERT): Define to...
2348 (avr_addr_space_convert): ...this new static function.
2349 (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
2350 (avr_addr_space_address_mode): ...this new static function.
2351 (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
2352 (avr_addr_space_pointer_mode): ...this new static function.
2353 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
2354 (avr_addr_space_legitimate_address_p): ...this new static function.
2355 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
2356 (avr_addr_space_legitimize_address): ...this new static function.
2357 (avr_mode_code_base_reg_class): Handle address spaces.
2358 (avr_regno_mode_code_ok_for_base_p): Ditto.
2359 (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
2360 (avr_option_override): Initialize them.
2361 (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
2362 variables.
2363 (avr_pgm_segment): New static function.
2364 (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
2365 (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
2366 (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
2367 avr_out_lpm to handle loads from progmem.
2368 (avr_load_libgcc_p): New static function.
2369 (avr_progmem_p): Test if decl is in flash.
2370 (avr_pgm_pointer_const_p): New static function.
2371 (avr_nonconst_pointer_addrspace): New static function.
2372 (avr_pgm_check_var_decl): New static function.
2373 (avr_insert_attributes): Use it. Change error message to report
2374 cause (progmem or address space) when code wants to write to flash.
2375 (avr_section_type_flags): Unset section flag SECTION_BSS for
2376 data in progmem.
2377
2378 * config/avr/predicates.md (nop_general_operand): New predicate.
2379 (nox_general_operand): New predicate.
2380 * config/avr/avr.md (LPM_REGNO): New define_constant.
2381 (load<mode>_libgcc): New expander.
2382 (*load.<mode>.libgcc): New insn.
2383 (mov<mode>): Handle loads from non-generic AS.
2384 (movmemhi): Ditto. Propagate address space information to newly
2385 created MEM.
2386 (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
2387 to nox_general_operand.
2388 (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
2389 nop_general_operand.
2390 (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
2391 (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
2392 (split-lpmx): New split.
2393 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
2394 *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
2395
2396 2011-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2397
2398 * ipa-cp.c (ipa_value_from_jfunc): Make global.
2399 (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
2400 (get_indirect_edge_target): Rename, make global.
2401 (devirtualization_time_bonus, estimate_local_effects,)
2402 (ipcp_discover_new_direct_edges): Update.
2403 * ipa-inline-analysis.c (evaluate_conditions_for_edge):
2404 Generalize to also handle types. Rename to ...
2405 (evaluate_properties_for_edge): Use instead of
2406 evaluate_conditions_for_edge.
2407 (estimate_edge_devirt_benefit): New function.
2408 (estimate_calls_size_and_time): Use it.
2409 (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
2410 (inline_merge_summary): Update.
2411 (do_estimate_edge_time, do_estimate_edge_growth): Update. Calculate
2412 parameter information at the call site and pass it on to subroutines.
2413 * tree-inline.c (estimate_num_insns): Distinguish between direct and
2414 indirect calls.
2415 (init_inline_once): Set size and time costs or indirect calls.
2416 * tree-inline.h (eni_weights): Add indirect_call_cost.
2417
2418 2011-11-15 Tom de Vries <tom@codesourcery.com>
2419
2420 PR tree-optimization/51005
2421 * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
2422 mark_basic_block_deleted.
2423 (update_worklist): Inline purge_bbs.
2424 (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
2425 (delete_block_update_dominator_info): Remove.
2426 (replace_block_by): Remove update_vops parameter. Partially evaluate
2427 for update_vops == false.
2428 (apply_clusters): Remove update_vops parameter. Remove update_vops
2429 argument in replace_block_by call.
2430 (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
2431 (tail_merge_optimize): Remove update_vops argument to apply_clusters.
2432 Remove call to purge_bbs. Add calls to calculate_dominance_info and
2433 free_dominance_info. Add MAY_HAVE_DEBUG_STMTS before calling
2434 update_debug_stmts. Mark vop var for renaming, if necessary.
2435
2436 2011-11-15 Bernd Schmidt <bernds@codesourcery.com>
2437
2438 PR rtl-optimization/51051
2439 * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
2440 move would cause fallthrough into the exit block.
2441
2442 2011-11-14 Richard Henderson <rth@redhat.com>
2443
2444 * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
2445 handled.
2446 (emit_store_conditional): Likewise.
2447 (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
2448 (rs6000_adjust_atomic_subword): New.
2449 (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
2450 (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
2451 for pre-reload expansion.
2452 (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
2453 rs6000_expand_compare_and_swapqhi): Merge into ...
2454 (rs6000_expand_atomic_compare_and_swap): ... here. New function.
2455 rs6000_split_lock_test_and_set; expand immediately. Handle
2456 QImode and HImode.
2457 * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
2458 from UNSPECV_LWSYNC.
2459 * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
2460 (mem_thread_fence): New.
2461 (hwsync): Rename from memory_barrier.
2462 (*hwsync): Rename from *sync_internal.
2463 (lwsync, *lwsync): Mirror hwsync implementation.
2464 (isync): Don't reference memory.
2465 (loadsync): New.
2466 (atomic_load<INT>, atomic_store<INT>): New.
2467 (ATOMIC): New mode iterator.
2468 (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
2469 (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
2470 (sync_compare_and_swap<GPR>): Remove.
2471 (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
2472 (sync_compare_and_swapqhi_internal): Remove.
2473 (sync_lock_test_and_set<GPR>): Remove.
2474 (sync_<FETCHOP><INT1>): Remove.
2475 (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
2476 (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
2477 (sync_old_<FETCHOP><GPR>): Remove.
2478 (*sync_old_<FETCHOP>si_internal): Remove.
2479 (*sync_old_<FETCHOP>di_internal): Remove.
2480 (sync_old_nand<INT1>): Remove.
2481 (*sync_old_nand<GPR>_internal): Remove.
2482 (sync_new_<FETCHOP><GPR>): Remove.
2483 (*sync_new_<FETCHOP>si_internal): Remove.
2484 (*sync_new_<FETCHOP>di_internal): Remove.
2485 (sync_new_nand<INT1>): Remove.
2486 (*sync_new_nand<GPR>_internal): Remove.
2487 (*atomic_andsi, *atomic_anddi): Remove.
2488 (*sync_addshort_internal, *sync_subshort_internal): Remove.
2489 (*sync_andsi_internal, *sync_boolsi_internal): Remove.
2490 (*sync_boolcshort_internal): Remove.
2491 (sync_lock_release<INT1>): Remove.
2492 (atomic_compare_and_swap<INT1>): New.
2493 (atomic_exchange<INT1>): New.
2494 (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
2495 (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
2496 (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
2497
2498 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
2499
2500 * config/i386/sse.md (round<mode>2): Use register_operand for
2501 operand 1 predicate.
2502 (round<mode>2_sfix): Ditto.
2503 (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
2504
2505 2011-11-14 Nathan Sidwell <nathan@acm.org>
2506
2507 * gcov.c (canonicalize_name): Protect use of S_ISLNK.
2508
2509 2011-11-14 Jan Hubicka <jh@suse.cz>
2510
2511 PR target/51126
2512 * config/i386/i386.c (core cost model): Correct pasto.
2513
2514 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
2515
2516 * config/i386/sse.md (round<mode>2_sfix): New expander.
2517 (round<mode>2_vec_pack_sfix): Ditto.
2518 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
2519 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
2520 * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
2521 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
2522 V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
2523 * config/i386/i386.c (ix86_builtins): Add
2524 IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
2525 IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
2526 (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
2527 __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
2528 __builtin_ia32_{floorps,ceilps}_sfix{,256}and
2529 __builtin_ia32_roundps_az_sfix{,256} descriptions.
2530 (ix86_expand_sse_round_vec_pack_sfix): New.
2531 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
2532 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
2533 V8SI_FTYPE_V4DF_V4DF_ROUND types. Check last argument of
2534 CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
2535 CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
2536 (ix86_builtin_vectorized_function): Handle
2537 BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
2538 BUILT_IN_{I,L,LL}ROUND{,F}
2539
2540 2011-11-14 Jan Hubicka <jh@suse.cz>
2541
2542 PR middle-end/50598
2543 * cgraph.h (varpool_externally_visible_p): Declare.
2544 (varpool_add_new_variable): Declare.
2545 * tree-emultls.c (get_emutls_init_templ_addr,
2546 new_emutls_decl): Use varpool_add_new_variable.
2547 * ipa.c (varpool_externally_visible_p): Export.
2548 * varpool.c (varpool_add_new_variable): New function.
2549
2550 2011-11-14 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
2551 Jan Hubicka <jh@suse.cz>
2552
2553 * config/i386/i386.h (processor_costs): Add second dimension to
2554 stringop_algs array.
2555 * config/i386/i386.c (cost models): Initialize second dimension of
2556 stringop_algs arrays.
2557 (core_cost): New costs based on generic64 costs with updated stringop
2558 values.
2559 (promote_duplicated_reg): Add support for vector modes, add
2560 declaration.
2561 (promote_duplicated_reg_to_size): Likewise.
2562 (processor_target): Set core costs for core variants.
2563 (expand_set_or_movmem_via_loop_with_iter): New function.
2564 (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
2565 different loops, produced by this function.
2566 (emit_strset): New function.
2567 (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
2568 use SSE-moves where possible.
2569 (expand_setmem_epilogue): Likewise.
2570 (expand_movmem_prologue): Likewise for prologue.
2571 (expand_setmem_prologue): Likewise.
2572 (expand_constant_movmem_prologue): Likewise.
2573 (expand_constant_setmem_prologue): Likewise.
2574 (decide_alg): Add new argument align_unknown. Fix algorithm of
2575 strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
2576 (decide_alignment): Update desired alignment according to chosen move
2577 mode.
2578 (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
2579 (ix86_expand_setmem): Likewise.
2580 (ix86_slow_unaligned_access): Implementation of new hook
2581 slow_unaligned_access.
2582 * config/i386/i386.md (strset): Enable half-SSE moves.
2583 * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
2584 (vec_dupv2di): Add expand for vec_dupv2di.
2585
2586 2011-11-14 Dimitrios Apostolou <jimis@gmx.net>
2587
2588 PR bootstrap/51094
2589 PR middle-end/51116
2590 * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
2591 * varasm.c (default_elf_internal_label): Remove.
2592
2593 2011-11-14 Kai Tietz <ktietz@redhat.com>
2594
2595 * gcov.c (generate_results): Add missing semicolon and correct indent.
2596
2597 2011-11-14 Ira Rosen <ira.rosen@linaro.org>
2598
2599 PR bootstrap/51112
2600 * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
2601
2602 2011-11-14 Mingjie Xing <mingjie.xing@gmail.com>
2603
2604 * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
2605 to @pxref{Function Attributes}.
2606
2607 2011-11-13 Oleg Endo <oleg.endo@t-online.de>
2608
2609 PR target/50694
2610 * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
2611 New macros.
2612 (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
2613 taking the default configuration into account.
2614
2615 2011-11-13 Jonathan Wakely <jwakely.gcc@gmail.com>
2616
2617 * doc/install.texi (Specific): Fix anchor for
2618 x86_64-*-solaris2.1[0-9]*.
2619
2620 2011-11-13 Nathan Sidwell <nathan@acm.org>
2621
2622 * gcov.c (source_prefix, source_length): New globals.
2623 (flag_relative_only): Likewise.
2624 (print_usage, options, process_args): Update.
2625 (generate_results): Use coverage.name, check
2626 flag_relative_only. Adjust messages.
2627 (find_source): Check source_prefix.
2628 (output_lines): Use coverage.name, adjust messages.
2629 * doc/gcov.texi (Invoking Gcov): Document new options.
2630
2631 2011-11-12 Jason Merrill <jason@redhat.com>
2632
2633 PR c++/51060
2634 * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
2635 (gimplify_modify_expr): Don't try to simplify it.
2636
2637 2011-11-12 Dimitrios Apostolou <jimis@gmx.net>
2638
2639 PR bootstrap/51094
2640 * config/elfos.h (STRING_ASM_OP): Define.
2641 * varasm.c (default_elf_asm_output_limited_string): Use it.
2642
2643 PR bootstrap/51094
2644 * gcc/configure.ac: Check for stpcpy declaration.
2645 * system.h: Declare it if not.
2646 * config.in, configure: Regenerate.
2647
2648 2011-11-12 Richard Henderson <rth@redhat.com>
2649
2650 * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
2651 nonimmediate_operand for the destination.
2652 (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
2653
2654 * builtins.c (expand_builtin_compare_and_swap): If target is const0,
2655 don't pass the target to expand_atomic_compare_and_swap.
2656 (expand_builtin_atomic_compare_exchange): Likewise.
2657
2658 * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
2659 * config/sh/sh.c (sh_init_sync_libfuncs): New.
2660
2661 * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
2662 * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
2663 * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
2664
2665 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
2666
2667 PR target/45233
2668 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2669 Only expand a symbol ref. into an access when the entity is defined
2670 in the TU.
2671
2672 2011-11-12 Jan Hubicka <jh@suse.cz>
2673
2674 PR bootstrap/50822
2675 * cgraphunit.c (output_weakrefs): Output really only weakrefs.
2676
2677 2011-11-12 Nathan Sidwell <nathan@acm.org>
2678
2679 * gcov.c (struct name_map): New.
2680 (names, n_names, a_names): New global vars.
2681 (print_usage): Adjust usage.
2682 (generate_results): Canonicalize main file name.
2683 (release_structures): Adjust.
2684 (name_search, name_sort): New callbacks.
2685 (find_source): Look for and create a canonical name.
2686 (canonicalize_name): New.
2687 (make_gcov_file_name): Reimplement and fix mangling.
2688 (mangle_name): New.
2689 * doc/gcov.texi: Update documentation about path preservation.
2690
2691 2011-11-11 David S. Miller <davem@davemloft.net>
2692
2693 * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
2694 * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
2695
2696 2011-11-11 Jakub Jelinek <jakub@redhat.com>
2697
2698 * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
2699 New prototype.
2700 * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
2701 function.
2702 (ix86_expand_epilogue): Use it.
2703 * config/i386/i386.md (return, simple_return): Call it in the
2704 expanders.
2705
2706 PR tree-optimization/51091
2707 * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
2708 rhs also in the va_list_simple_ptr case.
2709
2710 PR tree-optimization/51058
2711 * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
2712 (vect_schedule_slp): Call it.
2713 * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
2714 don't replace scalar calls with setting of their lhs to zero here.
2715
2716 PR tree-optimization/51074
2717 * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
2718 (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
2719 VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
2720 VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
2721 (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
2722 CONSTRUCTOR operands.
2723 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
2724 expressions.
2725 * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
2726 to 0 .. 2 * elements - 1.
2727
2728 2011-11-11 Richard Henderson <rth@redhat.com>
2729
2730 * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
2731 (dump_gimple_omp_atomic_store): Likewise.
2732 * optabs.c (can_atomic_exchange_p): New.
2733 * optabs.h (can_atomic_exchange_p): Declare.
2734 * omp-low.c (expand_omp_atomic_load): Implement.
2735 (expand_omp_atomic_store): Likewise.
2736 (expand_omp_atomic): Update for new arguments to load/store.
2737
2738 2011-11-11 Eric Botcazou <ebotcazou@adacore.com>
2739
2740 * cprop.c: Adjust outdated comments throughout.
2741 (hash_scan_set): Rename PAT parameter into SET.
2742 (cprop_pavloc): Rename into...
2743 (cprop_avloc): ...this.
2744 (cprop_absaltered): Rename into...
2745 (cprop_kill): ...this.
2746 (alloc_cprop_mem): Adjust for above renaming.
2747 (free_cprop_mem): Likewise.
2748 (compute_cprop_data): Likewise.
2749 (compute_local_properties): Rename TRANSP parameter into KILL and
2750 adjust throughout. Rework comments.
2751 (try_replace_reg): Fix long line.
2752 (cprop_jump): Likewise.
2753 (constprop_register): Fix prototype and take INSN last.
2754 (cprop_insn): Adjust calls to above function. Fix long lines.
2755 (bypass_block): Likewise.
2756 (one_cprop_pass): Likewise.
2757
2758 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
2759
2760 * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
2761 (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
2762
2763 2011-11-11 Jason Merrill <jason@redhat.com>
2764
2765 * varasm.c (default_elf_asm_output_limited_string): #ifdef
2766 ELF_ASCII_ESCAPES.
2767 (default_elf_asm_output_ascii): Likewise.
2768
2769 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
2770
2771 PR target/50762
2772 * config/i386/constraints.md (j): New address constraint.
2773 * config/i386/predicates.md (lea_address_operand): Redefine as
2774 special predicate.
2775 * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
2776 (*lea_4_zext): Ditto.
2777
2778 2011-11-11 David S. Miller <davem@davemloft.net>
2779
2780 Revert
2781 2011-11-05 David S. Miller <davem@davemloft.net>
2782
2783 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
2784 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
2785 (*zero_extend_v8qi_<P:mode>_insn,
2786 *zero_extend_v4hi_<P:mode>_insn): New insns.
2787 * config/sparc/sparc.c (vector_init_move_words,
2788 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
2789 sparc_expand_vector_init_vis1): New functions.
2790 (vector_init_bshuffle): Rewrite to handle more cases and make use
2791 of locs[] array prepared by vector_init_prepare_elts.
2792 (vector_init_fpmerge, vector_init_faligndata): Delete.
2793 (sparc_expand_vector_init): Rewrite using new infrastructure.
2794
2795 2011-11-11 Jakub Jelinek <jakub@redhat.com>
2796
2797 * opts-common.c (generate_canonical_option): Free opt_text
2798 it it has been allocated here and not stored anywhere.
2799
2800 * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
2801 vector.
2802 (vect_create_new_slp_node): Don't allocate node before checking stmt
2803 type.
2804 (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
2805 free def_stmts vectors and additionally free oprnd_info.
2806 (vect_build_slp_tree): Adjust callers. Call it even if
2807 stop_recursion. If vect_create_new_slp_node or
2808 vect_build_slp_tree fails, properly handle freeing memory.
2809 If it succeeded, clear def_stmts in oprnd_info.
2810
2811 2011-11-11 Dimitrios Apostolou <jimis@gmx.net>
2812
2813 * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
2814 multiple lines for readability.
2815 * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
2816 (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
2817 * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
2818 dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
2819 dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
2820 * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
2821 fprintf.
2822 * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
2823 serving as fast replacements for fprintf integer to string conversions.
2824 (sprint_ul_rev): Internal helper for the above.
2825 (output_addr_const) <CONST_INT>: Don't use fprintf.
2826 * varasm.c: Fix some whitespace inconsistencies.
2827 (default_elf_asm_output_limited_string): New.
2828 (default_elf_asm_output_ascii): Likewise.
2829 (default_elf_internal_label): Likewise.
2830 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
2831 stpcpy instead of sprintf.
2832 (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
2833 (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
2834 STRING_LIMIT macros.
2835 (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
2836 provide the same functionality.
2837 * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
2838
2839 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
2840
2841 * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
2842
2843 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
2844
2845 PR middle-end/51038
2846 * builtins.c (expand_builtin_atomic_clear): New. Expand atomic_clear.
2847 (expand_builtin_atomic_test_and_set): New. Expand atomic test_and_set.
2848 (expand_builtin): Add cases for test_and_set and clear.
2849 * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
2850 (BUILT_IN_ATOMIC_CLEAR): New.
2851
2852 2011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2853
2854 PR debug/50983
2855 * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
2856 value in the current line table.
2857
2858 2011-11-10 Nathan Sidwell <nathan@acm.org>
2859
2860 * gcov.c (struct function_info): Make src an index, not a pointer.
2861 (struct source_info): Remove index and next source fields.
2862 (fn_end): New static var.
2863 (sources_index): Remove.
2864 (sources): Now a pointer to an array, not a list.
2865 (n_sources, a_sources): New.
2866 (process_file): Adjust for changes to read_graph_file. Insert
2867 functions into source lists and check line numbers here.
2868 (generate_results): Only allocate lines for sources with
2869 contents. Adjust for source array.
2870 (release_structures): Likewise.
2871 (find_source): Return source index, adjust for source array.
2872 (read_graph_file): Return function list. Don't insert into source
2873 lists here.
2874 (read_count_file): Take list of functions.
2875 (solve_flow_graph): Reverse the arc lists here.
2876 (add_line_counts): Adjust for source array.
2877
2878 2011-11-10 Jakub Jelinek <jakub@redhat.com>
2879
2880 PR middle-end/51077
2881 * tree-object-size.c (addr_object_size): Check TREE_CODE of
2882 MEM_REF's operand rather than code of the MEM_REF itself.
2883
2884 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
2885
2886 PR rtl-optimization/51040
2887 * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
2888 be AND followed by NOT.
2889 * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
2890 should be AND followed by NOT.
2891
2892 2011-11-10 Jakub Jelinek <jakub@redhat.com>
2893
2894 * vec.h (VEC_BASE): If base is at offset 0 in the structure,
2895 use &(P)->base even if P is NULL.
2896
2897 PR rtl-optimization/51023
2898 * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
2899 val_signbit_known_clear_p for signed comparison narrowing
2900 optimization. Don't check for non-VOIDmode, use
2901 HWI_COMPUTABLE_MODE_P macro.
2902 <case ZERO_EXTEND>: Don't check for non-VOIDmode.
2903 Optimize even when const_op is equal to GET_MODE_MASK (mode),
2904 don't optimize if const_op is negative.
2905
2906 2011-11-10 Richard Guenther <rguenther@suse.de>
2907
2908 PR tree-optimization/51042
2909 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
2910 self-referential expressions. Refactor code to avoid duplication.
2911
2912 2011-11-10 Richard Guenther <rguenther@suse.de>
2913
2914 PR tree-optimization/51070
2915 * tree-loop-distribution.c (generate_builtin): Do not replace
2916 the loop with a builtin if the partition contains statements which
2917 results are used outside of the loop.
2918 (pass_loop_distribution): Verify and collect.
2919
2920 2011-11-10 Richard Guenther <rguenther@suse.de>
2921
2922 PR tree-optimization/51030
2923 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
2924 (value_replacement): Use it to handle trivial non-empty
2925 intermediate blocks.
2926
2927 2011-11-10 Richard Guenther <rguenther@suse.de>
2928
2929 PR middle-end/51071
2930 * gimple.c (gimple_has_side_effects): Remove checking code
2931 that doesn't belong here.
2932
2933 2011-11-10 Ira Rosen <ira.rosen@linaro.org>
2934
2935 PR tree-optimization/51058
2936 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
2937
2938 2011-11-10 Jakub Jelinek <jakub@redhat.com>
2939
2940 PR tree-optimization/51000
2941 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
2942 a pattern stmt for a bool store, adjust DR_STMT too.
2943 Don't handle bool conversions to single bit precision lhs.
2944 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
2945 stmt, remove its related stmt and free its stmt_vinfo.
2946 (free_stmt_vec_info): Free also pattern stmt's vinfo and
2947 pattern def stmt's vinfo.
2948 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
2949 free pattern stmt's vinfo here.
2950 (vect_transform_loop): When calling vect_remove_stores,
2951 do gsi_next first and don't call gsi_remove. If not strided
2952 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
2953
2954 2011-11-09 Jakub Jelinek <jakub@redhat.com>
2955
2956 PR target/50911
2957 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
2958 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
2959 to V4SFmode.
2960
2961 * function.h (requires_stack_frame_p): New prototype.
2962 * function.c (requires_stack_frame_p): No longer static.
2963 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
2964 stack_realign_fp was just a conservative guess for a function
2965 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
2966 and stack realignment.
2967
2968 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
2969
2970 PR preprocessor/51061
2971 * incpath.c (merge_include_chains): Make sure to not pass null
2972 pointers to free_path.
2973
2974 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
2975
2976 * doc/invoke.texi ([Option Summary, C++ Language Options]):
2977 Add -Wzero-as-null-pointer-constant.
2978
2979 2011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2980
2981 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
2982 * config/arm/arm-tables.opt: Regenerate.
2983 * config/arm/arm-tune.md: Likewise.
2984 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
2985 * doc/invoke.texi: Document -mcpu=cortex-a7.
2986
2987 2011-11-09 Richard Guenther <rguenther@suse.de>
2988
2989 Revert
2990 2011-11-09 Richard Guenther <rguenther@suse.de>
2991
2992 * tree-cfg.c (verify_gimple_call): Verify that
2993 gimple_call_cannot_inline_p is returning a conservative
2994 correct result according to gimple_check_call_matching_types.
2995
2996 2011-11-09 Richard Guenther <rguenther@suse.de>
2997
2998 PR tree-optimization/51039
2999 * tree-cfg.c (verify_gimple_call): Verify that
3000 gimple_call_cannot_inline_p is returning a conservative
3001 correct result according to gimple_check_call_matching_types.
3002 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
3003 code dealing with un-inlinablility.
3004 * gimple-streamer-in.c (input_gimple_stmt): Update the
3005 non-inlinable flag.
3006
3007 2011-11-09 Richard Guenther <rguenther@suse.de>
3008
3009 PR tree-optimization/51039
3010 * tree-inline.c (setup_one_parameter): Always perform a
3011 valid gimple type change.
3012 (declare_return_variable): Likewise.
3013
3014 2011-11-09 Jakub Jelinek <jakub@redhat.com>
3015
3016 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
3017 vconduv4sfv4si): New patterns.
3018 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
3019 different dest_mode from comparison mode.
3020
3021 2011-11-09 Richard Guenther <rguenther@suse.de>
3022
3023 * gimple-fold.c (canonicalize_constructor_val): Mark
3024 address-taken variables addressable.
3025
3026 2011-11-09 Ira Rosen <ira.rosen@linaro.org>
3027
3028 PR tree-optimization/51015
3029 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
3030 vectype to be set for pattern def stmts.
3031
3032 2011-11-09 Alan Modra <amodra@gmail.com>
3033
3034 * function.c (bb_active_p): Delete.
3035 (dup_block_and_redirect, active_insn_between): New functions.
3036 (convert_jumps_to_returns, emit_return_for_exit): New functions,
3037 split out from..
3038 (thread_prologue_and_epilogue_insns): ..here. Delete
3039 shadowing variables. Don't do prologue register clobber tests
3040 when shrink wrapping already failed. Delete all last_bb_active
3041 code. Instead compute tail block candidates for duplicating
3042 exit path. Remove these from antic set. Duplicate tails when
3043 reached from both blocks needing a prologue/epilogue and
3044 blocks not needing such.
3045 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
3046 HAVE_simple_return.
3047 * bb-reorder.c (get_uncond_jump_length): Make global.
3048 * bb-reorder.h (get_uncond_jump_length): Declare.
3049 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
3050 (rtl_split_edge): Likewise. Warning fix.
3051 (rtl_duplicate_bb): New function.
3052 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
3053 * Makefile.in (function.o): Update dependencies.
3054
3055 2011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3056 Georg-Johann Lay <avr@gjlay.de>
3057
3058 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
3059 argument.
3060 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3061 * doc/tm.texi: Regenerate.
3062
3063 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
3064 space argument.
3065 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3066 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
3067 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3068 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
3069 argument.
3070 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
3071 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
3072 (avr_regno_mode_code_ok_for_base_p): Ditto.
3073 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
3074 (avr_regno_mode_code_ok_for_base_p): Ditto.
3075 (avr_reg_ok_for_addr_p): Pass AS down to
3076 avr_regno_mode_code_ok_for_base_p.
3077
3078 * addresses.h (base_reg_class): Add address space argument.
3079 Pass to MODE_CODE_BASE_REG_CLASS.
3080 (ok_for_base_p_1): Add address space argument. Pass to
3081 REGNO_MODE_CODE_OK_FOR_BASE_P.
3082 (regno_ok_for_base_p): Add address space argument. Pass to
3083 ok_for_base_p_1.
3084
3085 * regrename.c (scan_rtx_address): Add address space argument.
3086 Pass address space to regno_ok_for_base_p and base_reg_class.
3087 Update recursive calls.
3088 (scan_rtx): Pass address space to scan_rtx_address.
3089 (build_def_use): Likewise.
3090 * regcprop.c (replace_oldest_value_addr): Add address space
3091 argument. Pass to regno_ok_for_base_p and base_reg_class.
3092 Update recursive calls.
3093 (replace_oldest_value_mem): Pass address space to
3094 replace_oldest_value_addr.
3095 (copyprop_hardreg_forward_1): Likewise.
3096
3097 * reload.c (find_reloads_address_1): Add address space argument.
3098 Pass address space to base_reg_class and regno_ok_for_base_p.
3099 Update recursive calls.
3100 (find_reloads_address): Pass address space to base_reg_class,
3101 regno_ok_for_base_p, and find_reloads_address_1.
3102 (find_reloads): Pass address space to base_reg_class.
3103 (find_reloads_subreg_address): Likewise.
3104
3105 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
3106 (ok_for_base_p_nonstrict): Add address space argument. Pass to
3107 ok_for_base_p_1.
3108 (record_address_regs): Add address space argument. Pass to
3109 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
3110 (record_operand_costs): Pass address space to record_address_regs.
3111 (scan_one_insn): Likewise.
3112
3113 * caller-save.c (init_caller_save): Update call to base_reg_class.
3114 * ira-conflicts.c (ira_build_conflicts): Likewise.
3115 * reload1.c (maybe_fix_stack_asms): Likewise.
3116
3117 2011-11-08 Michael Matz <matz@suse.de>
3118
3119 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
3120
3121 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
3122
3123 * tree.h (TREE_CLOBBER_P): New macro.
3124 * gimple.h (gimple_clobber_p): New inline function.
3125 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
3126 that go out of scope and live in memory.
3127 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
3128 for constructors.
3129 * cfgexpand.c (decl_to_stack_part): New static variable.
3130 (add_stack_var): Allocate it, and remember mapping.
3131 (fini_vars_expansion): Deallocate it.
3132 (stack_var_conflict_p): Add early outs.
3133 (visit_op, visit_conflict, add_scope_conflicts_1,
3134 add_scope_conflicts): New static functions.
3135 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
3136 (expand_used_vars): Add scope conflicts.
3137 (expand_gimple_stmt_1): Expand clobbers to nothing.
3138 (expand_debug_expr): Ditto.
3139
3140 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
3141 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
3142 refer to otherwise unused locals.
3143 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
3144 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
3145 SSA names aren't necessary.
3146 (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
3147 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
3148 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
3149 any known value.
3150 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
3151 don't zero-initialize something.
3152 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
3153 clobber RHS, we don't want PHI nodes with those.
3154
3155 2011-11-08 Jakub Jelinek <jakub@redhat.com>
3156
3157 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
3158 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
3159
3160 2011-11-08 Richard Guenther <rguenther@suse.de>
3161
3162 PR tree-optimization/51012
3163 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
3164 non-inlinable state.
3165 * cgraph.c (cgraph_make_edge_direct): Likewise.
3166
3167 2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
3168
3169 PR rtl-optimization/47698
3170 * ifcvt.c (noce_operand_ok): Move around comment.
3171
3172 2011-11-08 Richard Guenther <rguenther@suse.de>
3173
3174 PR lto/50999
3175 * lto-opts.c (append_to_collect_gcc_options): Split out from...
3176 (lto_write_options): ... here. Prepend frontend specific flags.
3177
3178 2011-11-08 Jakub Jelinek <jakub@redhat.com>
3179
3180 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
3181 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
3182
3183 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
3184 Handle vectorization of SLP calls.
3185 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
3186 (vect_transform_stmt): Adjust vectorizable_call caller, remove
3187 assertion.
3188 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
3189 with op_idx 3.
3190 (vect_build_slp_tree): Allow CALL_EXPR.
3191
3192 2011-11-08 Richard Guenther <rguenther@suse.de>
3193
3194 * gimple-fold.c (canonicalize_constructor_val): Make sure
3195 we have referenced vars setup before adding to them.
3196
3197 2011-11-07 Richard Henderson <rth@redhat.com>
3198 Aldy Hernandez <aldyh@redhat.com>
3199 Andrew MacLeod <amacleod@redhat.com>
3200 Torvald Riegel <triegel@redhat.com>
3201
3202 Merged from transactional-memory.
3203
3204 * gtm-builtins.def: New file.
3205 * trans-mem.c: New file.
3206 * trans-mem.h: New file.
3207
3208 * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
3209
3210 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
3211 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
3212 ix86_builtin_tm_load, ix86_builtin_tm_store,
3213 ix86_init_tm_builtins): New.
3214 (ix86_init_builtins): Initialize TM builtins.
3215 (struct ix86_attribute_table): Add "*tm regparm".
3216 * config/i386/i386-builtin-types.def (PV2SI): Define.
3217 (PCV2SI): Define.
3218 Define V2SI_FTYPE_PCV2SI.
3219 Define V4SF_FTYPE_PCV4SF.
3220 Define V8SF_FTYPE_PCV8SF.
3221 Define VOID_PV2SI_V2SI.
3222
3223 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
3224 tm-max-aggregate-size.
3225 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
3226 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
3227 * doc/tm.texi: Regenerate.
3228
3229 * attribs.c (apply_tm_attr): New.
3230 (init_attributes): Allow '*' prefix for overrides.
3231 (register_attribute): Likewise.
3232 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
3233 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
3234 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
3235 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
3236 ATTR_TMPURE_NOTHROW_LIST): New.
3237 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
3238 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
3239 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
3240 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
3241 * builtins.def: Include gtm-builtins.def. Add comments regarding
3242 transactional memory synchronization.
3243 (DEF_TM_BUILTIN): New.
3244 * c-parser.c (struct c_parser): Add in_transaction.
3245 (c_parser_transaction, c_parser_transaction_expression,
3246 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
3247 (c_parser_attribute_any_word): Split out from c_parser_attributes.
3248 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
3249 (c_parser_unary_expression): Same.
3250 * c-tree.h (c_finish_transaction): Declare.
3251 * c-typeck.c (c_finish_transaction): New.
3252 (build_function_call_vec): Call tm_malloc_replacement.
3253 * calls.c (is_tm_builtin): New.
3254 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
3255 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
3256 * cfgexpand.c (expand_call_stmt): Call
3257 mark_transaction_restart_calls.
3258 (gimple_expand_cfg): Free the tm_restart map.
3259 (mark_transaction_restart_calls): New.
3260 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
3261 * cgraph.c (dump_cgraph_node): Handle tm_clone.
3262 * cgraph.h (struct cgraph_node): Add tm_clone field.
3263 (decl_is_tm_clone): New.
3264 (struct cgraph_local_info): Add tm_may_enter_irr.
3265 (cgraph_copy_node_for_versioning): Declare.
3266 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
3267 copy analyzed from old version.
3268 * combine.c (distribute_notes): Handle REG_TM notes.
3269 * common.opt: Add -fgnu-tm.
3270 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
3271 (__do_global_dtors_aux): Deregister clone table.
3272 (frame_dummy): Register clone table.
3273 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
3274 body.
3275 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
3276 GIMPLE_TRANSACTION.
3277 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
3278 * gimple-pretty-print.c: Include trans-mem.h.
3279 (dump_gimple_fmt): Add %x.
3280 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
3281 (dump_gimple_eh_else, dump_gimple_transaction): New.
3282 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3283 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
3284 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
3285 field.
3286 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
3287 (walk_gimple_stmt): Initialize and honor removed_stmt.
3288 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3289 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3290 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
3291 * gimple.h (struct gimple_statement_eh_else,
3292 gimple_statement_transaction, GTMA_*): New.
3293 (gimple_statement_d): Add gimple_statement_eh_else and
3294 gimple_transaction.
3295 (gimple_build_eh_else, gimple_build_transaction,
3296 gimple_fold_call, diagnose_tm_safe_errors): Declare.
3297 (get_call_expr_in): Remove prototype.
3298 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3299 (gimple_eh_else_n_body, gimple_eh_else_e_body,
3300 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
3301 gimple_transaction_body, gimple_transaction_label,
3302 gimple_transaction_label_ptr, gimple_transaction_subcode,
3303 gimple_transaction_set_body, gimple_transaction_set_label,
3304 gimple_transaction_set_subcode): New.
3305 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
3306 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
3307 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
3308 (gimplify_transaction): New.
3309 (gimplify_expr): Handle TRANSACTION_EXPR.
3310 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
3311 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
3312 TM pure functions.
3313 * Makefile.in: Add trans-mem.o and dependencies.
3314 (BUILTINS_DEF): Add gtm-builtins.def.
3315 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
3316 (GTFILES): Add trans-mem.c.
3317 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
3318 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
3319 get_tm_clone_pair): Declare.
3320 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
3321 * passes.c (init_optimization_passes): Place transactional memory
3322 passes.
3323 * print-tree.c (print_node): Dump tm-clone.
3324 * recog.c (peep2_attempt): Handle REG_TM.
3325 * reg-notes.def (TM): New.
3326 * rtlanal.c (alloc_reg_note): Handle REG_TM.
3327 * target.def (builtin_tm_load, builtin_tm_store): New.
3328 * targhooks.c (default_builtin_tm_load_store): New.
3329 * targhooks.h (default_builtin_tm_load_store): Declare.
3330 * timevar.def (TV_TRANS_MEM): New.
3331 * toplev.c (compile_file): Call finish_tm_clone_pairs.
3332 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
3333 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
3334 writes into the statements to update labels.
3335 (is_ctrl_altering_stmt): Add TM ending statements. Handle
3336 GIMPLE_TRANSACTION.
3337 (verify_gimple_transaction): New.
3338 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
3339 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
3340 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
3341 (dump_function_to_file): Display [tm-clone] if applicable.
3342 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
3343 (struct_ptr_hash): Same.
3344 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
3345 (replace_goto_queue_1): Likewise.
3346 (get_eh_else): New.
3347 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
3348 (lower_try_finally_nofallthru): Likewise.
3349 (lower_try_finally_onedest): Likewise.
3350 (lower_try_finally_copy): Likewise.
3351 (lower_try_finally_switch): Likewise.
3352 (lower_try_finally): Likewise.
3353 (decide_copy_try_finally): Likewise.
3354 (lower_eh_constructs_2): Likewise.
3355 (refactor_eh_r): Likewise.
3356 * tree-flow.h (struct gimple_df): Add tm_restart field.
3357 Define tm_restart_node.
3358 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
3359 (estimate_num_insns): Likewise.
3360 (init_inline_once): Init tm_cost.
3361 * tree-inline.h (struct eni_weights_d): Add tm_cost.
3362 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
3363 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
3364 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
3365 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3366 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
3367 Add support for TM vector loads. Add support for TM logging builtins.
3368 (call_may_clobber_ref_p_1): Add support for vector stores.
3369 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
3370 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
3371 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
3372 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
3373 (local_define_builtin): Handle ECF_TM_PURE.
3374 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
3375 * tree.def (TRANSACTION_EXPR): New.
3376 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
3377 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
3378 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
3379 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
3380 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
3381 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
3382 (struct tree_function_decl): Add tm_clone_flag.
3383 (struct_ptr_eq, struct_ptr_hash): New.
3384 (apply_tm_attr): Declare.
3385 (is_tm_safe_or_pure): New.
3386 (build_tm_abort_call, is_tm_safe, is_tm_pure,
3387 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
3388 tm_malloc_replacement): Declare.
3389 * varasm.c (tm_clone_hash): New.
3390 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
3391 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
3392 (struct tm_alias_pair): New. Declare VEC types for object.
3393
3394 2011-11-07 Richard Henderson <rth@redhat.com>
3395
3396 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
3397 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
3398 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
3399 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
3400 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
3401 rename from the direct_optab_index enum.
3402 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
3403 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
3404 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
3405 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
3406 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
3407 from the optab_table, not the direct_optab_table.
3408 (init_sync_libfuncs): Declare.
3409 (can_compare_and_swap_p): Update parameters.
3410 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
3411 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
3412 test for the legacy compare-and-swap libcall.
3413 (expand_atomic_exchange): Use the legacy test-and-set libcall.
3414 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
3415 (struct atomic_op_functions): Update for optab type changes.
3416 (maybe_emit_op): Likewise.
3417 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
3418 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
3419 to can_compare_and_swap_p.
3420 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
3421 (expand_omp_atomic_pipeline): Likewise.
3422 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
3423 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
3424 optabs.
3425 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
3426
3427 2011-11-07 Jakub Jelinek <jakub@redhat.com>
3428
3429 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
3430 * config/i386/i386.c (enum ix86_builtins): Add
3431 IX86_BUILTIN_VEC_PACK_SFIX256.
3432 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
3433 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
3434 (ix86_builtin_vectorized_function): Also vectorize lrint using
3435 256-bit vectors for -mavx.
3436
3437 2011-11-07 Anatoly Sokolov <aesok@post.ru>
3438
3439 * config/cris/constraints.md: New file.
3440 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3441 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
3442 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
3443 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
3444 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
3445 * config/cris/cris.c: Incule "tm-constrs.h".
3446 (cris_print_operand): Use satisfies_constraint_O.
3447 (cris_normal_notice_update_cc, cris_rtx_costs): Use
3448 satisfies_constraint_I.
3449 (cris_address_cost): Use satisfies_constraint_L.
3450 * config/cris/cris.md: Include "constraints.md".
3451 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
3452 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
3453 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
3454 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
3455 *extop<mode>si_swap_side): Use satisfies_constraint_N and
3456 satisfies_constraint_J.
3457 (moversideqi movemsideqi mover2side peephole2): Use
3458 satisfies_constraint_N and satisfies_constraint_J.
3459 (andu peephole2): Use satisfies_constraint_I and
3460 satisfies_constraint_O.
3461
3462 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
3463
3464 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
3465 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
3466
3467 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
3468
3469 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
3470 SWITCHABLE_TARGET can change the values during compilation.
3471 (expand_atomic_fetch_op): Handle parameter change ripples for
3472 get_atomic_op_for_code call.
3473
3474 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
3475
3476 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
3477 __atomic_store.
3478 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
3479 only when originated from that builtin.
3480 (expand_atomic_store): Expand to __sync_lock_release when originated
3481 from that builtin.
3482 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
3483 expand_atomic_exchange call originated from here.
3484 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
3485 call originated from here.
3486 (expand_builtin_atomic_exchange): Add origination flag.
3487 (expand_builtin_atomic_store): Add origination flag.
3488 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
3489 parameters to indicate implementation fall back options.
3490
3491 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
3492
3493 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
3494 now, not only CONST_INT and CONST_DOUBLE.
3495 (output_movqi): Use output_reload_in_const.
3496 (output_reload_inhi): Ditto.
3497 (output_reload_insisf): Move assertion to output_reload_in_const.
3498 (avr_out_reload_inpsi): Ditto.
3499
3500 2011-11-07 Nathan Sidwell <nathan@acm.org>
3501
3502 * gcov.c (object_summary): Replace with ...
3503 (object_runs): ... this.
3504 (process_file): Remove functions with no data.
3505 (generate_results): Ignore files with no lines.
3506 (release_function): New helper, broken out of ...
3507 (release_structures): ... here. Use it.
3508 (read_count_file): Adjust for new data file format.
3509 (output_lines): Use object_runs.
3510 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
3511 (struct gcov_ctr_info): Move definition.
3512 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
3513 trailing array.
3514 (struct gcov_info): Add merge function array, remove mask and
3515 counts. Trailing array is array of pointers to function info.
3516 * coverage.c (struct function_list): Replace counter numbers with
3517 counter arrays. Add fndecl field. GTYify.
3518 (counts_entry): Remove chain workspace.
3519 (functions_head): GTYify.
3520 (prg_n_ctrs): Remove.
3521 (fn_v_ctrs): New.
3522 (tree_ctr_tables): Remove.
3523 (read_counts_file): Cope with blank entries and expect program
3524 summaries before functions. Don't warn on missing entries.
3525 (coverage_counter_alloc): Allocate individual function arrays.
3526 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
3527 for individual function arrays.
3528 (coverage_end_function): GTYify function list object. Finalize
3529 function's counter arrays.
3530 (build_var): New. Create a counter-related variable with
3531 appropriate linkage.
3532 (build_fn_info_type): Adjust for new runtime structure.
3533 (build_fn_info_value): Rename to ...
3534 (build_fn_info): ... here. Build new format data.
3535 (build_ctr_info_type, build_ctr_info_value): Remove.
3536 (build_info_type): New. Build new format data structure.
3537 (build_info): Adjust for new format data.
3538 (create_coverage): Likewise.
3539 * gcov-dump.c (tag_function): Recognize placeholders.
3540
3541 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
3542
3543 * config/avr/constraints.md (Cm2): New constraint for int -2.
3544 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
3545 (*negqihi2): New insn.
3546
3547 2011-11-07 H.J. Lu <hongjiu.lu@intel.com>
3548
3549 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
3550 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
3551
3552 2011-11-07 Jakub Jelinek <jakub@redhat.com>
3553
3554 * config/i386/i386.c (ix86_expand_builtin): If gather mask
3555 argument is known to have all high bits set, pass pc_rtx as
3556 second argument to the expander instead of op0.
3557 * config/i386/sse.md (*avx2_gathersi<mode>_2,
3558 *avx2_gatherdi<mode>_2): New patterns.
3559 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
3560 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
3561 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
3562 _mm256_set1_pd.
3563
3564 PR tree-optimization/50789
3565 * tree-vect-stmts.c (process_use): Add force argument, avoid
3566 exist_non_indexing_operands_for_use_p check if true.
3567 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
3568 STMT_VINFO_GATHER_P.
3569 (gen_perm_mask): New function.
3570 (perm_mask_for_reverse): Use it.
3571 (reverse_vec_element): Rename to...
3572 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
3573 generalize for any permutations.
3574 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
3575 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
3576 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
3577 * doc/tm.texi: Regenerate.
3578 * tree-data-ref.c (initialize_data_dependence_relation,
3579 compute_self_dependence): No longer static.
3580 * tree-data-ref.h (initialize_data_dependence_relation,
3581 compute_self_dependence): New prototypes.
3582 * tree-vect-data-refs.c (vect_check_gather): New function.
3583 (vect_analyze_data_refs): Detect possible gather load data refs.
3584 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
3585 (STMT_VINFO_GATHER_P): Define.
3586 (vect_check_gather): New prototype.
3587 * config/i386/i386-builtin-types.def: Add types for alternate
3588 gather builtins.
3589 * config/i386/sse.md (AVXMODE48P_DI): Remove.
3590 (VEC_GATHER_MODE): Rename mode_attr to...
3591 (VEC_GATHER_IDXSI): ... this.
3592 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
3593 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
3594 instead of <VEC_GATHER_MODE>.
3595 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
3596 <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
3597 on src and mask operands.
3598 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
3599 instead of AVXMODE48P_DI.
3600 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
3601 * config/i386/i386.c (enum ix86_builtins): Add
3602 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
3603 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
3604 (ix86_init_mmx_sse_builtins): Create those builtins.
3605 (ix86_expand_builtin): Handle those builtins and adjust expansions
3606 of other gather builtins.
3607 (ix86_vectorize_builtin_gather): New function.
3608 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
3609
3610 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
3611
3612 * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
3613
3614 2011-11-07 Tristan Gingold <gingold@adacore.com>
3615
3616 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
3617 * config/vms/t-vms: Add vms-c.o rule.
3618 * config/vms/vms-c.c: New file.
3619 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
3620 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
3621
3622 2011-11-07 Tristan Gingold <gingold@adacore.com>
3623
3624 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
3625 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
3626 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
3627 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
3628 (SUBTARGET_OS_CPP_BUILTINS): Define.
3629 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
3630 (MASK_RETURN_ADDR): Define in 64 bit mode.
3631 * config/ia64/vms.h: Likewise.
3632 * config/vms/vms.h: New file.
3633 * config/vms/vms64.h: New file.
3634 * config/alpha/vms64.h: Removed.
3635 * config/ia64/vms64.h: Removed.
3636 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
3637 Adjust for above change.
3638
3639 2011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
3640
3641 PR target/50962
3642 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
3643 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
3644 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
3645 (movdi_internal_rex64): Likewise.
3646
3647 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
3648
3649 PR rtl-optimization/47698
3650 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
3651
3652 2011-11-07 Tristan Gingold <gingold@adacore.com>
3653
3654 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
3655 New function.
3656 (TARGET_OPTION_INIT_STRUCT): Define.
3657 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
3658 (TARGET_MAX_ANCHOR_OFFSET)
3659 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
3660
3661 2011-11-06 Quentin Neill <quentin.neill@amd.com>
3662
3663 Fix r180999, update ChangeLog
3664 * config.gcc: Add f16cintrin.h.
3665 * config/i386/f16cintrin.h: Add missing endif.
3666
3667 2011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
3668
3669 * config.gcc (arm*-*-rtemseabi*): New target.
3670 * config/arm/rtems-eabi.h: New.
3671 * config/arm/t-rtems-eabi: New.
3672
3673 2011-11-06 David S. Miller <davem@davemloft.net>
3674
3675 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
3676 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
3677 *zero_extend_v8qi_<P:mode>_insn,
3678 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
3679 and vec_duplicate instead of using an UNSPEC.
3680
3681 2011-11-07 Alan Modra <amodra@gmail.com>
3682
3683 PR target/30282
3684 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
3685 blockage for ABI_V4.
3686
3687 2011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
3688
3689 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
3690 libgcj version bump.
3691 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3692
3693 2011-11-06 Eric Botcazou <ebotcazou@adacore.com>
3694
3695 * gcse.c: Adjust outdated comments throughout.
3696 (struct mem_conflict_info): New structure.
3697 (mems_conflict_for_gcse_p): Use it to communicate with caller.
3698 (load_killed_in_block_p): Pass it to note_stores.
3699 (hash_expr): Remove superfluous line break.
3700 (hash_scan_set): Rename PAT parameter into SET.
3701 (hash_scan_insn): Reorder cases.
3702 (canon_list_insert): Fix long line.
3703 (edge_list): Delete.
3704 (prune_expressions): Rename E local variable into EXPR.
3705 (compute_pre_data): Return struct edge_list * object.
3706 (pre_expr_reaches_here_p_work): Fix formatting.
3707 (process_insert_insn): Move around comment.
3708 (pre_edge_insert): Fix long line.
3709 (pre_insert_copies): Likewise.
3710 (gcse_emit_move_after): Swap SRC and DEST parameters.
3711 (pre_delete): Adjust call to gcse_emit_move_after.
3712 (pre_gcse): Take struct edge_list * parameter. Fix long line.
3713 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
3714 Use a local list of edges.
3715 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
3716 (pre_ldst_expr_hash): Fix long line.
3717 (free_ldst_mems): Rename into...
3718 (free_ld_motion_mems): ...this.
3719 (first_ls_expr): Delete.
3720 (next_ls_expr): Likewise.
3721 (print_ldst_list): Do not use above two functions.
3722 (simple_mem): Adjust interface.
3723 (compute_ld_motion_mems): Fix formatting.
3724 (update_ld_motion_stores): Reuse local variable.
3725
3726 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3727
3728 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
3729 specifiers.
3730 (build_null_declspecs): Initialize align_log and alignas_p fields.
3731 (declspecs_add_alignas): New.
3732 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
3733 (c_parser_declspecs): Handle _Alignas specifiers.
3734 (c_parser_alignas_specifier): New.
3735 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
3736 Diagnose _Alignof (expression).
3737 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
3738 (declspecs_add_alignas): Declare.
3739 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
3740 * ginclude/stdalign.h: New.
3741 * Makefile.in (USER_H): Add stdalign.h.
3742
3743 2011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
3744
3745 * regset.h (fixed_reg_set_regset): Declare.
3746 * dse.c: Include regset.h .
3747 (struct insn_info): Add member fixed_regs_live.
3748 (note_add_store_info): New typedef.
3749 (note_add_store): New function.
3750 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
3751 Use gen_add3_insn / gen_move_insn.
3752 Check new insn for unwanted clobbers before emitting it.
3753 (check_for_inc_dec): Rename to...
3754 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
3755 parameter. Changed all callers in file.
3756 (check_for_inc_dec, copy_fixed_regs): New functions.
3757 (scan_insn): Set fixed_regs_live field of insn_info.
3758 * rtl.h (check_for_inc_dec): Update prototype.
3759 * postreload.c (reload_cse_simplify): Take new signature of
3760 check_ind_dec into account.
3761 * reginfo.c (fixed_reg_set_regset): New variable.
3762 (init_reg_sets_1): Initialize it.
3763
3764 2011-11-06 Jakub Jelinek <jakub@redhat.com>
3765
3766 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
3767 any user labels.
3768
3769 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3770
3771 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
3772 Remove dependence of declaration and target define on definition of
3773 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
3774
3775 2011-11-06 Andrew Macleod <amacleod@redhat.com>
3776 Richard Henderson <rth@redhat.com>
3777 Aldy Hernandez <aldyh@redhat.com>
3778
3779 Merged from cxx-mem-model.
3780
3781 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
3782 * coretypes.h (enum memmodel): New. enumerated memory model type.
3783 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
3784 * genopinit,c (optabs): Add atomic direct optab handlers.
3785 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
3786 * builtin-types.def (BT_CONST_VOLATILE_PTR,
3787 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
3788 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
3789 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
3790 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
3791 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
3792 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
3793 * expr.h (expand_atomic_*): Add prototypes.
3794 (expand_{bool,val}_compare_and_swap): Remove prototypes.
3795 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
3796 parameters.
3797 * common.opt (Winvalid-memory-model): New warning flag.
3798 (finline-atomics): New. Flag to disable atomic inlining.
3799 * params.h (ALLOW_LOAD_DATA_RACES): New.
3800 (ALLOW_PACKED_LOAD_DATA_RACES): New.
3801 (ALLOW_PACKED_STORE_DATA_RACES): New.
3802 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
3803 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
3804 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
3805 * builtins.c (is_builtin_name): Handle __atomic.
3806 (get_memmodel): New. Extract memory model.
3807 (expand_expr_force_mode): New. Factor out common code for ensuring an
3808 integer argument is in the proper mode.
3809 (expand_builtin_sync_operation): Remove ignore param. Always call
3810 expand_atomic_fetch_op instead of the old expanders.
3811 (expand_builtin_compare_and_swap,
3812 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
3813 call atomic expanders instead of sync expanders.
3814 (expand_builtin_sync_lock_release): Call atomic_store expander.
3815 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3816 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
3817 (expand_builtin_atomic_exchange): New.
3818 (fold_builtin_atomic_always_lock_free,
3819 expand_builtin_atomic_always_lock_free,
3820 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
3821 New.
3822 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
3823 expand_builtin_atomic_signal_fence): New.
3824 (expand_builtin_mem_signal_fence): New.
3825 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
3826 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
3827 * optabs.h (DOI_atomic_*): Define new atomics.
3828 (atomic_*_optab): Define.
3829 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
3830 prototypes.
3831 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
3832 (expand_sync_lock_test_and_set): Remove.
3833 (expand_atomic_load, expand_atomic_store): New.
3834 (expand_atomic_exchange): New.
3835 (expand_atomic_compare_and_swap): New. Implements
3836 atomic_compare_exchange via compare and swap.
3837 (struct atomic_op_functions): Opcode table struct for fetch ops.
3838 (get_atomic_op_for_code): New. Return an opcode table entry.
3839 (maybe_emit_op): New. Try to emit a fetch op.
3840 (expand_atomic_fetch_op): New.
3841 (expand_val_compare_and_swap_1): Remove.
3842 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
3843 (expand_atomic_compare_and_swap): Rename from
3844 expand_atomic_compare_exchange. Rewrite to return both success and
3845 oldval return values; expand via both atomic and sync optabs.
3846 (can_compare_and_swap_p): New.
3847 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
3848 (maybe_gen_insn): Handle 7 and 8 operands.
3849 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
3850 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
3851 builtins instead of __sync builtins.
3852 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
3853 * doc/extend.texi: Document __atomic built-in functions.
3854 * doc/invoke.texi: Document data race parameters.
3855 * doc/md.texi: Document atomic patterns.
3856 * config/i386/i386.md (UNSPEC_MOVA): New.
3857 (UNSPECV_CMPXCHG): Split into ...
3858 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
3859 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
3860 * config/i386/sync.md (ATOMIC): New mode iterator.
3861 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
3862 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
3863 (mem_thread_fence): Rename from memory_barrier.
3864 Handle the added memory model parameter.
3865 (mfence_nosse): Rename from memory_barrier_nosse.
3866 (sync_compare_and_swap<CASMODE>): Split into ...
3867 (atomic_compare_and_swap<SWI124>): this and ...
3868 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
3869 (atomic_compare_and_swap_single<SWI>): Rename from
3870 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
3871 (atomic_compare_and_swap_double<DCASMODE>): Rename from
3872 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
3873 (*atomic_compare_and_swap_doubledi_pic): Rename from
3874 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
3875 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
3876 model parameter.
3877 (*atomic_fetch_add_cmp<SWI>): Similarly.
3878 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
3879 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
3880 (sync_lock_test_and_set<SWI>): Merge with ...
3881 (atomic_exchange<SWI>): ... this.
3882
3883 2011-11-6 Richard Guenther <rguenther@suse.de>
3884
3885 * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
3886
3887 2011-11-06 Ira Rosen <ira.rosen@linaro.org>
3888
3889 * tree-vectorizer.h (vectorizable_condition): Add argument.
3890 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
3891 in SLP. Update calls to vectorizable_condition.
3892 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
3893 the arguments. Pass it to vect_is_simple_use_1.
3894 (vectorizable_condition): Add slp_node to the arguments. Support
3895 vectorization of basic blocks. Fail for reduction in SLP. Update
3896 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
3897 call vect_get_slp_defs to get vector operands.
3898 (vect_analyze_stmt): Update calls to vectorizable_condition.
3899 (vect_transform_stmt): Likewise.
3900 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
3901 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
3902 def stmts.
3903 (vect_build_slp_tree): Handle COND_EXPR.
3904 (vect_analyze_slp_instance): Push pattern statements to root node.
3905 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
3906
3907 2011-11-05 David S. Miller <davem@davemloft.net>
3908
3909 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
3910 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
3911 (*zero_extend_v8qi_<P:mode>_insn,
3912 *zero_extend_v4hi_<P:mode>_insn): New insns.
3913 * config/sparc/sparc.c (vector_init_move_words,
3914 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
3915 sparc_expand_vector_init_vis1): New functions.
3916 (vector_init_bshuffle): Rewrite to handle more cases and make use
3917 of locs[] array prepared by vector_init_prepare_elts.
3918 (vector_init_fpmerge, vector_init_faligndata): Delete.
3919 (sparc_expand_vector_init): Rewrite using new infrastructure.
3920
3921 2011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
3922
3923 * config.gcc (epiphany-*-*): New architecture.
3924 (epiphany-*-elf): New configuration.
3925 * config/epiphany, common/config/epiphany : New directories.
3926 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
3927 (interrupt attribute): Add Epiphany.
3928 (long_call, short_call attribute): Add Epiphany.
3929 * doc/invoke.texi (Options): Add Epiphany options.
3930 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
3931 * doc/install.texi (Options specification):
3932 Add --with-stack-offset=@var{num} description.
3933 (host/target specific issues): Add epiphany-*-elf.
3934 * doc/contrib.texi (Contributors): Mention Epiphany port.
3935
3936 2011-11-05 Jakub Jelinek <jakub@redhat.com>
3937
3938 PR tree-optimization/50693
3939 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
3940 non-forced user labels.
3941 (gimple_merge_blocks): Turn non-forced user labels into
3942 debug bind stmt with the label as first operand and reset value.
3943 (gimple_duplicate_bb): Don't duplicate label debug stmts.
3944 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
3945 * final.c (final_scan_insn): Likewise.
3946 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
3947 * var-tracking.c (debug_label_num): New variable.
3948 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
3949 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
3950 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
3951 NOTE_INSN_DELETED_DEBUG_LABEL.
3952 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
3953 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
3954 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
3955 * gengtype.c (adjust_field_rtx_def): Likewise.
3956 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
3957 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
3958 if their are at the end of function and nop hasn't been emitted.
3959 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
3960
3961 2011-11-05 Georg-Johann Lay <avr@gjlay.de>
3962
3963 PR rtl-optimization/50448
3964 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
3965 appear in SET_DEST.
3966
3967 2011-11-05 Peter Dufault <dufault@hda.com>,
3968 Sebastian Huber <sebastian.huber@embedded-brains.de>
3969
3970 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3971 Extend rs6000_spe handling.
3972
3973 2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
3974
3975 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
3976 Remove -mcpu=601 multilib.
3977 Remove -Dmpc8260 multilib.
3978 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
3979 on E500 targets.
3980
3981 2011-11-05 Quentin Neill <quentin.neill@amd.com>
3982
3983 Piledriver f16cintrin.h fix.
3984 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
3985 * config/i386/immintrin.h: Include f16cintrin.h.
3986 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
3987
3988
3989 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3990
3991 PR c++/50608
3992 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
3993 to fold_offsetof.
3994 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
3995
3996 2011-11-04 Alan Modra <amodra@gmail.com>
3997
3998 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
3999 * print-rtl.c (print_rtx): Don't segfault on negative regno.
4000
4001 2011-11-04 David S. Miller <davem@davemloft.net>
4002
4003 PR target/49965
4004 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
4005 fact that sparc_emit_float_lib_cmp modifies the comparison in
4006 operands[1].
4007
4008 2011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
4009
4010 * config/lm32/t-rtems: New.
4011 * config.gcc (lm32-*-rtems*): Add t-rtems.
4012
4013 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4014
4015 PR target/50979
4016 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
4017
4018 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
4019
4020 PR rtl-optimization/38644
4021 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
4022 for epilogue having stack adjustment.
4023
4024 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
4025
4026 PR target/50931
4027 * config/avr/avr-modes.def: New file defining PSImode.
4028 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
4029 __UINT24_MAX__): New built-in defines.
4030 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
4031 ashlpsi, ashrpsi, lshrpsi.
4032 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
4033 (MOVMODE): New mode iterator.
4034 (movpsi): New expander.
4035 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
4036 (*reload_inpsi, *movpsi): New insns.
4037 (*reload_inpsi): New RTL peephole.
4038 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
4039 *addpsi3_sign_extend.hi): New insns.
4040 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
4041 *subpsi3_sign_extend.hi): New insns.
4042 (divmodpsi4, udivmodpsi4): New define insn-and-split.
4043 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
4044 (andpsi3, iorpsi3, xorpsi3): New insns.
4045 (*rotlpsi2.1, *rotlpsi2.23): New insns.
4046 (*rotw<mode>): Insn condition only allow even-sized modes.
4047 (*rotb<mode>): Insn condition allows odd-sized modes.
4048 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
4049 (negpsi2, one_cmplpsi2): New insns.
4050 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
4051 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
4052 insn-and-splits.
4053 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
4054 (cbranchpsi4): New expander.
4055 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
4056 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
4057 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
4058 avr_out_reload_inpsi): New prototypes.
4059
4060 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
4061 (avr_scalar_mode_supported_p): ...this new static function.
4062 (avr_asm_len): Always return "".
4063 (avr_out_load_psi, avr_out_store_psi): New static functions.
4064 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
4065 (avr_out_tstpsi): New function.
4066 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
4067 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
4068 (avr_simplify_comparison_p): Ditto.
4069 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
4070 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
4071 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
4072 (avr_rtx_costs_1): Report PSI costs.
4073 (avr_libcall_value): Handle odd-sized parameters.
4074 (avr_init_builtin_int24): New static function to define built-in
4075 24-bit types __int24 and __uint24.
4076 (avr_init_builtins): Use it.
4077
4078 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
4079
4080 PR target/50989
4081 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
4082 support for VFP floating point model.
4083
4084 2011-11-04 Tristan Gingold <gingold@adacore.com>
4085
4086 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
4087
4088 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
4089
4090 Unrevert:
4091 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
4092
4093 PR tree-optimization/50730
4094 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
4095 analysis if encountered unsupported data-ref.
4096
4097 2011-11-04 Jakub Jelinek <jakub@redhat.com>
4098
4099 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
4100 function.
4101 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
4102 New prototype.
4103 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
4104 For floatunsv8siv8sf2 require TARGET_AVX2.
4105
4106 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
4107 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
4108 signalling comparison instead of non-signalling. Store into
4109 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
4110 subtracted and 0 otherwise.
4111 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
4112 Adjust prototype.
4113 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
4114 already for TARGET_SSE2. Xor in vector initialized by
4115 ix86_expand_adjust_ufix_to_sfix_si at the end.
4116 (vec_pack_ufix_trunc_<mode>): Likewise.
4117
4118 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
4119 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
4120 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
4121 vectorizable_type_demotion and vectorizable_type_promotion did.
4122 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
4123 is {,un}signed {char,short}.
4124 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
4125 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
4126 Push vec_dest back to the vec_dsts vector at the end.
4127 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
4128 one step. Removed multi_step_cvt, vec_dsts, slp_node and
4129 prev_stmt_info arguments, add vec_dest argument. Push always
4130 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
4131 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
4132 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
4133 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
4134 vectorizable_type_promotion. Call vectorizable_conversion even
4135 for SLP bb vectorization.
4136 (vect_transform_stmt): Call vectorizable_conversion instead of
4137 vectorizable_type_demotion and vectorizable_type_promotion.
4138 (supportable_widening_operation): Clear *multi_step_cvt first,
4139 simplify c1/c2 computation, free *interm_types vector on failure.
4140 (supportable_narrowing_operation): Clear *multi_step_cvt first,
4141 free *interm_types vector on failure, handle multi-step
4142 FIX_TRUNC_EXPR.
4143
4144 2011-11-04 Tristan Gingold <gingold@adacore.com>
4145
4146 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
4147 argument. Conditionally generate crash debug info. Adjust
4148 for alpha_funcs_tree removal.
4149 (machine_function): Add links field.
4150 (alpha_start_function): Conditionally generate crash debug info.
4151 (alpha_end_function): Adjust call to alpha_write_linkage.
4152 (alpha_funcs): Remove.
4153 (links_kind): Remove.
4154 (alpha_links): Remove num, target and lkind field. Add func field.
4155 (alpha_links_tree): Remove.
4156 (alpha_funcs_tree): Remove.
4157 (alpha_need_linkage): Remove.
4158 (alpha_use_linkage): Change prototype. Adjust.
4159 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
4160 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
4161 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
4162 (alpha_need_linkage): Remove.
4163 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
4164 Adjust calls to alpha_need_linkage.
4165
4166 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
4167
4168 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
4169
4170 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
4171
4172 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
4173 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
4174 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
4175
4176 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4177
4178 PR target/50978
4179 * config/arm/t-bpabi: New file.
4180 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
4181 arm*-*-linux-*eabi.
4182 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
4183 arm*-*-uclinux*eabi.
4184 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
4185 for arm*-*-eabi*.
4186
4187 2011-11-03 Michael Matz <matz@suse.de>
4188
4189 PR bootstrap/50857
4190 * configure.ac: Check for -fno-exceptions -fno-rtti.
4191 * configure: Regenerate.
4192 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
4193 (ALL_CXXFLAGS): Use it.
4194
4195 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
4196
4197 * config/i386/i386.md: Use {} for multi-line preparation statements.
4198
4199 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
4200
4201 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
4202 (movtf_insn_sp32): ...this.
4203 (movtf_insn_sp64_no_fpu): Consolidate into...
4204 (movtf_insn_sp64): ...this.
4205 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
4206 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
4207
4208 2011-11-03 Tristan Gingold <gingold@adacore.com>
4209
4210 * config/vms/vms.c (vms_patch_builtins): Fix typo.
4211
4212 2011-11-03 Richard Guenther <rguenther@suse.de>
4213
4214 PR lto/44965
4215 * lto-opts.c: Re-implement.
4216 * lto-streamer.h (lto_register_user_option): Remove.
4217 (lto_read_file_options): Likewise.
4218 (lto_reissue_options): Likewise.
4219 (lto_clear_user_options): Likewise.
4220 (lto_clear_file_options): Likewise.
4221 * opts-global.c (post_handling_callback): Remove.
4222 (set_default_handlers): Do not set post_handling_callback.
4223 (decode_options): Remove LTO specific code.
4224 * lto-wrapper.c (merge_and_complain): New function.
4225 (run_gcc): Read all input file options and
4226 prepend a merged set before the linker driver options.
4227 * gcc.c (driver_post_handling_callback): Remove.
4228 (set_option_handlers): Do not set post_handling_callback.
4229 * opts-common.c (handle_option): Do not call post_handling_callback.
4230 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
4231
4232 2011-11-03 Richard Guenther <rguenther@suse.de>
4233
4234 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
4235
4236 2011-11-03 Martin Jambor <mjambor@suse.cz>
4237
4238 * ipa-prop.c (type_change_info): New fields offset, object,
4239 known_current_type and multiple_types_encountered.
4240 (extr_type_from_vtbl_ptr_store): New function.
4241 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
4242 the result is different from the previous one.
4243 (detect_type_change): Renamed to detect_type_change_1. New parameter
4244 comp_type. Set up new fields in tci, build known type jump
4245 functions if the new type can be identified.
4246 (detect_type_change): New function.
4247 * tree.h (DECL_CONTEXT): Comment new use.
4248
4249 2011-11-03 Richard Guenther <rguenther@suse.de>
4250
4251 PR lto/48217
4252 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
4253 decode an encoded literal '.
4254
4255 2011-11-03 Tristan Gingold <gingold@adacore.com>
4256
4257 * collect2.c (main): Add support of -f (response file) on AIX.
4258
4259 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
4260
4261 PR tree-optimization/50912
4262 * tree-vectorizer.h (slp_void_p): New.
4263 (struct _slp_tree): Replace left and right with children. Update
4264 documentation.
4265 (struct _slp_oprnd_info): New.
4266 (vect_get_vec_defs): Declare.
4267 (vect_get_slp_defs): Update arguments.
4268 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
4269 vect_get_vec_defs instead of vect_get_slp_defs.
4270 (vectorizable_reduction): Likewise.
4271 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
4272 Update call to vect_get_slp_defs.
4273 (vectorizable_conversion): Update call to vect_get_vec_defs.
4274 (vectorizable_assignment, vectorizable_shift,
4275 vectorizable_operation): Likewise.
4276 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
4277 vect_get_slp_defs.
4278 (vectorizable_type_promotion, vectorizable_store): Likewise.
4279 (vect_analyze_stmt): Fix typo.
4280 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
4281 (vect_print_slp_tree, vect_mark_slp_stmts,
4282 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4283 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4284 vect_schedule_slp_instance): Likewise.
4285 (vect_create_new_slp_node): New.
4286 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
4287 (vect_get_and_check_slp_defs): Pass information about defs using
4288 oprnds_info, allow any number of operands.
4289 (vect_build_slp_tree): Likewise. Update calls to
4290 vect_get_and_check_slp_defs. Fix comments.
4291 (vect_analyze_slp_instance): Move node creation to
4292 vect_create_new_slp_node.
4293 (vect_get_slp_defs): Allow any number of operands.
4294
4295 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
4296 Iain Sandoe <iains@gcc.gnu.org>
4297
4298 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
4299 (get_ppc476_thunk_name): Use it.
4300 (rs6000_code_end): Likewise.
4301 (macho_branch_islands): Fix typo.
4302
4303 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4304 Jason Merrill <jason@redhat.com>
4305
4306 PR c++/50810
4307 * configure.ac: Add -Wno-narrowing to warning options.
4308 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
4309
4310 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
4311
4312 PR target/50945
4313 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
4314 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
4315 (movdf_insn_sp64): Likewise.
4316 (DFmode splitter): Do not test TARGET_FPU.
4317 (movtf_insn_sp32): Reindent constraints.
4318 (movtf_insn_sp32_no_fpu): Likewise.
4319 (movtf_insn_sp64): Likewise.
4320 (movtf_insn_sp64_hq): Likewise.
4321 (movtf_insn_sp64_no_fpu): Likewise.
4322
4323 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4324
4325 PR c++/50956
4326 * builtins.c (fold_builtin_memchr): Fix cast.
4327
4328 2011-11-02 Teresa Johnson <tejohnson@google.com>
4329
4330 * config/i386/predicates.md (promotable_binary_operator): Add minus
4331 to the list of promotable operators.
4332
4333 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4334
4335 * gthr-single.h, gthr.h: Move to ../libgcc.
4336 * gthr-aix.h: Move to ../libgcc/config/rs6000.
4337 * gthr-dce.h: Move to ../libgcc/config/pa.
4338 * gthr-lynx.h: Move to ../libgcc/config.
4339 * gthr-mipssde.h: Move to ../libgcc/config/mips.
4340 * gthr-posix.h: Move to ../libgcc/config.
4341 * gthr-rtems.h: Likewise.
4342 * gthr-tpf.h: Move to ../libgcc/config/s390.
4343 * gthr-vxworks.h: Move to ../libgcc/config.
4344 * gthr-win32.h: Move to ../libgcc/config/i386.
4345 * configure.ac (gthread_flags): Remove
4346 (gthr-default.h): Don't create.
4347 (thread_file): Don't substitute.
4348 * configure: Regenerate.
4349 * Makefile.in (GCC_THREAD_FILE): Remove.
4350 (GTHREAD_FLAGS): Remove.
4351 (libgcc.mvars): Remove GTHREAD_FLAGS.
4352 * config/t-vxworks (EXTRA_HEADERS): Remove.
4353
4354 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4355 Paolo Bonzini <bonzini@gnu.org>
4356
4357 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
4358 * configure: Regenerate.
4359 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
4360 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
4361 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
4362 (clean): Remove libgcc_tm.h
4363 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
4364 * config.gcc (libgcc_tm_file): Remove.
4365 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
4366 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
4367 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
4368 (avr-*-rtems*): Likewise.
4369 (avr-*-*): Likewise.
4370 (frv-*-elf): Likewise.
4371 (frv-*-*linux*): Likewise.
4372 (h8300-*-rtems*): Likewise.
4373 (h8300-*-elf*): Likewise.
4374 (i[34567]86-*-darwin*): Likewise.
4375 (x86_64-*-darwin*): Likewise.
4376 (rx-*-elf*): Likewise.
4377 (tic6x-*-elf): Likewise.
4378 (tic6x-*-uclinux): Likewise.
4379 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
4380
4381 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4382
4383 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
4384 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
4385 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
4386 (INCLUDES_FOR_TARGET): Remove.
4387 (LIBGCC2_CFLAGS): Don't export.
4388 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
4389 Remove.
4390 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
4391 (libgcc.mvars): Likewise.
4392 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
4393 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
4394 TARGET_LIBGCC2_CFLAGS.
4395 Emit GTHREAD_FLAGS.
4396 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
4397 * config/darwin-64.c: Move to ../libgcc/config.
4398 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
4399 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
4400 config/udivmodsi4.c: Move to ../libgcc/config.
4401 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
4402 * config/memcmp.c, config/memcpy.c, config/memmove.c,
4403 config/memset.c: Move to ../libgcc/config.
4404 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
4405 * config/t-freebsd: Remove.
4406 * config/t-freebsd-thread: Move to ../libgcc/config.
4407 * config/t-libgcc-pic: Move to ../libgcc/config.
4408 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
4409 * config/t-linux: Remove.
4410 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
4411 Remove.
4412 * config/t-openbsd-thread: Move to ../libgcc/config.
4413 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
4414 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
4415 * config/t-svr4: Remove.
4416 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
4417 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
4418 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
4419 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
4420 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
4421 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
4422 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
4423 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
4424 config/arm/fp16.c, config/arm/linux-atomic.c,
4425 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
4426 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
4427 (TARGET_LIBGCC2_CFLAGS): Remove.
4428 * config/arm/t-bpabi, config/arm/t-linux: Remove.
4429 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
4430 (LIB2FUNCS_STATIC_EXTRA): Remove.
4431 * config/arm/t-netbsd: Remove.
4432 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
4433 (TARGET_LIBGCC2_CFLAGS): Remove.
4434 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
4435 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
4436 (TARGET_LIBGCC2_CFLAGS): Remove.
4437 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
4438 (LIBGCC, INSTALL_LIBGCC): Remove.
4439 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
4440 * config/bfin/t-bfin-linux: Likewise.
4441 * config/bfin/t-bfin-uclinux: Likewise.
4442 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4443 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4444 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4445 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
4446 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
4447 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
4448 * config/cris/arit.c: Move to ../libgcc/config/cris.
4449 * config/cris/cris_abi_symbol.c: Remove.
4450 * config/cris/cris.h: Remove obsolete comment.
4451 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
4452 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
4453 ($(LIB2FUNCS_EXTRA)): Remove.
4454 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
4455 (LIBGCC): Remove.
4456 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4457 * config/fr30/t-fr30: Remove.
4458 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
4459 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
4460 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
4461 to ../libgcc/config/frv.
4462 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
4463 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
4464 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
4465 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4466 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
4467 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
4468 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
4469 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
4470 (LIBGCC, INSTALL_LIBGCC): Remove.
4471 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
4472 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
4473 * config/i386/t-cygwin: Remove.
4474 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
4475 (LIB2FUNCS_EXCLUDE): Remove.
4476 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
4477 (LIBGCC, INSTALL_LIBGCC): Remove.
4478 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
4479 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
4480 * config/i386/t-mingw-w32: Likewise.
4481 * config/i386/t-mingw-w64: Likewise.
4482 * config/i386/t-openbsd: Likewise.
4483 * config/i386/t-nto: Remove.
4484 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
4485 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
4486 (quadlib.c): Remove.
4487 * config/ia64/t-ia64: Remove comment.
4488 * config/iq2000/lib2extra-funcs.c: Move to
4489 ../libgcc/config/iq2000/lib2funcs.c.
4490 * config/iq2000/t-iq2000: Remove.
4491 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
4492 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
4493 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
4494 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
4495 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4496 (INSTALL_LIBGCC): Remove.
4497 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
4498 * config/m68k/t-floatlib: Remove.
4499 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
4500 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
4501 Fix typo.
4502 (LIBGCC, INSTALL_LIBGCC): Remove.
4503 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
4504 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
4505 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
4506 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4507 (INSTALL_LIBGCC): Remove.
4508 * config/mips/t-isa3264: Likewise.
4509 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
4510 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4511 (INSTALL_LIBGCC): Remove.
4512 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
4513 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
4514 (INSTALL_LIBGCC): Remove.
4515 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
4516 (LIB2FUNCS_STATIC_EXTRA): Remove.
4517 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
4518 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
4519 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
4520 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
4521 ../libgcc/config/pa.
4522 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
4523 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
4524 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
4525 * config/pa/t-linux, config/pa/t-linux64: Remove.
4526 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
4527 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
4528 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
4529 Remove.
4530 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
4531 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
4532 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
4533 * config/rs6000/crtresfpr.asm: Move to
4534 ../libgcc/config/rs6000/crtresfpr.S.
4535 * config/rs6000/crtresgpr.asm: Move to
4536 ../libgcc/config/rs6000/crtresgpr.S.
4537 * config/rs6000/crtresxfpr.asm: Move to
4538 ../libgcc/config/rs6000/crtresxfpr.S.
4539 * config/rs6000/crtresxgpr.asm: Move to
4540 ../libgcc/config/rs6000/crtresxgpr.S.
4541 * config/rs6000/crtsavfpr.asm: Move to
4542 ../libgcc/config/rs6000/crtsavfpr.S.
4543 * config/rs6000/crtsavgpr.asm: Move to
4544 ../libgcc/config/rs6000/crtsavgpr.S.
4545 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
4546 * config/rs6000/darwin-fpsave.asm: Move to
4547 ../libgcc/config/rs6000/darwin-fpsave.S.
4548 * config/rs6000/darwin-gpsave.asm: Move to
4549 ../libgcc/config/rs6000/darwin-gpsave.S.
4550 * config/rs6000/darwin-tramp.asm: Move to
4551 ../libgcc/config/rs6000/darwin-tramp.S.
4552 * config/rs6000/darwin-vecsave.asm: Move to
4553 ../libgcc/config/rs6000/darwin-vecsave.S.
4554 * config/rs6000/darwin-world.asm: Move to
4555 ../libgcc/config/rs6000/darwin-world.S.
4556 * config/rs6000/e500crtres32gpr.asm: Move to
4557 ../libgcc/config/rs6000/e500crtres32gpr.S.
4558 * config/rs6000/e500crtres64gpr.asm: Move to
4559 ../libgcc/config/rs6000/e500crtres64gpr.S.
4560 * config/rs6000/e500crtres64gprctr.asm: Move to
4561 ../libgcc/config/rs6000/e500crtres64gprctr.S.
4562 * config/rs6000/e500crtrest32gpr.asm: Move to
4563 ../libgcc/config/rs6000/e500crtrest32gpr.S.
4564 * config/rs6000/e500crtrest64gpr.asm: Move to
4565 ../libgcc/config/rs6000/e500crtrest64gpr.S.
4566 * config/rs6000/e500crtresx32gpr.asm: Move to
4567 ../libgcc/config/rs6000/e500crtresx32gpr.S.
4568 * config/rs6000/e500crtresx64gpr.asm: Move to
4569 ../libgcc/config/rs6000/e500crtresx64gpr.S.
4570 * config/rs6000/e500crtsav32gpr.asm: Move to
4571 ../libgcc/config/rs6000/e500crtsav32gpr.S.
4572 * config/rs6000/e500crtsav64gpr.asm: Move to
4573 ../libgcc/config/rs6000/e500crtsav64gpr.S.
4574 * config/rs6000/e500crtsav64gprctr.asm: Move to
4575 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
4576 * config/rs6000/e500crtsavg32gpr.asm: Move to
4577 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
4578 * config/rs6000/e500crtsavg64gpr.asm: Move to
4579 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
4580 * config/rs6000/e500crtsavg64gprctr.asm: Move to
4581 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
4582 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
4583 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
4584 (TARGET_LIBGCC2_CFLAGS): Remove.
4585 * config/rs6000/t-aix52: Likewise.
4586 * config/rs6000/t-darwin: Remove.
4587 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
4588 (LIB2FUNCS_EXTRA): Remove.
4589 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
4590 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
4591 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
4592 (INSTALL_LIBGCC): Remove.
4593 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
4594 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
4595 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
4596 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
4597 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
4598 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
4599 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
4600 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
4601 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
4602 * config/rs6000/t-vxworks: Remove comment.
4603 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
4604 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
4605 * config/sh/linux-atomic.asm: Move to
4606 ../libgcc/config/sh/linux-atomic.S.
4607 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
4608 * config/sh/t-netbsd: Remove.
4609 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
4610 Remove.
4611 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
4612 * config/sparc/t-leon: Likewise.
4613 * config/sparc/t-leon3: Likewise.
4614 * config/sparc/t-linux64: Likewise.
4615 * config/sparc/t-netbsd64: Fix typo.
4616 Remove comment.
4617 * config/spu/divmodti4.c, config/spu/divv2df3.c,
4618 config/spu/float_disf.c, config/spu/float_unsdidf.c,
4619 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
4620 config/spu/mfc_multi_tag_release.c,
4621 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
4622 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
4623 config/spu/multi3.c: Move to ../libgcc/config/spu.
4624 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
4625 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
4626 (INSTALL_LIBGCC): Remove.
4627 * config/stormy16/stormy16-lib2.c: Move to
4628 ../libgcc/config/stormy16/lib2.c.
4629 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
4630 ../libgcc/config/stormy16/ashlsi3.c.
4631 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
4632 ../libgcc/config/stormy16/ashrsi3.c.
4633 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
4634 ../libgcc/config/stormy16/clzhi2.c.
4635 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
4636 ../libgcc/config/stormy16/cmpsi2.c.
4637 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
4638 ../libgcc/config/stormy16/ctzhi2.c.
4639 * config/stormy16/stormy16-lib2-divsi3.c: Move to
4640 ../libgcc/config/stormy16/divsi3.c.
4641 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
4642 ../libgcc/config/stormy16/ffshi2.c.
4643 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
4644 ../libgcc/config/stormy16/lshrsi3.c.
4645 * config/stormy16/stormy16-lib2-modsi3.c: Move to
4646 ../libgcc/config/stormy16/modsi3.c.
4647 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
4648 ../libgcc/config/stormy16/parityhi2.c.
4649 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
4650 ../libgcc/config/stormy16/popcounthi2.c.
4651 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
4652 ../libgcc/config/stormy16/ucmpsi2.c.
4653 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
4654 ../libgcc/config/stormy16/udivmodsi4.c.
4655 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
4656 ../libgcc/config/stormy16/udivsi3.c.
4657 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
4658 ../libgcc/config/stormy16/umodsi3.c.
4659 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
4660 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
4661 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
4662 * config/xtensa/t-elf: Remove.
4663 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
4664 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
4665 from tmake_file.
4666 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
4667 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
4668 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
4669 (*-*-openbsd*): Likewise.
4670 Remove t-openbsd-thread for posix threads.
4671 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
4672 (alpha*-*-freebsd*): Likewise.
4673 (alpha*-*-netbsd*): Likewise.
4674 (alpha*-*-openbsd*): Likewise.
4675 (alpha64-dec-*vms*): Likewise.
4676 (alpha*-dec-*vms*): Likewise.
4677 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
4678 (arm*-*-linux*): Remove t-linux from tmake_file.
4679 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
4680 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
4681 arm*-*-uclinux*eabi.
4682 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
4683 tmake_file for arm*-*-eabi*.
4684 (fr30-*-elf): Remove tmake_file.
4685 (hppa*64*-*-linux*): Remove tmake_file.
4686 (hppa*-*-linux*): Likewise.
4687 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
4688 tmake_file.
4689 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
4690 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
4691 tmake_file.
4692 (i[34567]86-*-elf*): Remove tmake_file.
4693 (x86_64-*-elf*): Likewise.
4694 (i[34567]86-*-nto-qnx*): Likewise.
4695 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
4696 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
4697 from tmake_file if using win32 threads.
4698 (iq2000*-*-elf*): Remove tmake-file.
4699 (microblaze*-linux*): Likewise.
4700 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
4701 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
4702 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
4703 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
4704 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
4705 (xtensa*-*-elf*): Remove tmake_file.
4706
4707 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4708
4709 * Makefile.in (LIB1ASMSRC): Don't export.
4710 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
4711 * config/arm/arm.c: Update lib1funcs.asm filename.
4712 * config/arm/linux-eabi.h: Likewise.
4713 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
4714 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
4715 ../libgcc/config/arm.
4716 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
4717 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4718 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
4719 * config/arm/t-bpabi: Likewise.
4720 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4721 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
4722 * config/arm/t-strongarm-elf: Likewise.
4723 * config/arm/t-symbian: Likewise.
4724 * config/arm/t-vxworks: Likewise.
4725 * config/arm/t-wince-pe: Likewise.
4726 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
4727 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4728 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
4729 * config/bfin/t-bfin: Remove.
4730 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4731 * config/bfin/t-bfin-linux: Likewise.
4732 * config/bfin/t-bfin-uclinux: Likewise.
4733 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
4734 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4735 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
4736 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4737 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
4738 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4739 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
4740 * config/h8300/lib1funcs.asm: Move to
4741 ../libgcc/config/h8300/lib1funcs.S.
4742 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4743 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
4744 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4745 * config/i386/t-interix: Likewise.
4746 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
4747 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
4748 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4749 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
4750 * config/m32c/m32c.c: Update m32c-lib1.S filename.
4751 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
4752 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4753 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
4754 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
4755 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
4756 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
4757 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4758 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
4759 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4760 * config/mips/mips16.S: Move to ../libgcc/config/mips.
4761 * config/mips/t-libgcc-mips16: Remove.
4762 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
4763 * config/pa/milli64.S: Move to ../libgcc/config/pa.
4764 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
4765 * config/pa/t-linux64: Likewise.
4766 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
4767 ../libgcc/config/picochip/lib1funcs.S.
4768 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
4769 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
4770 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
4771 * config/sh/sh.h: Update lib1funcs.asm filename.
4772 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
4773 * config/sh/t-netbsd: Likewise.
4774 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
4775 Remove.
4776 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
4777 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
4778 * config/sparc/lb1spl.asm: Remove.
4779 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4780 * config/sparc/t-leon: Likewise.
4781 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
4782 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
4783 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
4784 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
4785 * config/vax/t-linux: Remove.
4786 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
4787 ../libgcc/config/xtensa.
4788 * config/xtensa/lib1funcs.asm: Move to
4789 ../libgcc/config/xtensa/lib1funcs.S.
4790 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
4791 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
4792 (bfin*-*): Likewise.
4793 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
4794 mips/t-libgcc-mips16 from tmake_file.
4795 (mips*-*-linux*): Likewise.
4796 (mips*-sde-elf*): Likewise.
4797 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
4798 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
4799 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
4800 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
4801 (mips-*-elf*, mipsel-*-elf*): Likewise.
4802 (mips64-*-elf*, mips64el-*-elf*): Likewise.
4803 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
4804 (mips*-*-rtems*): Likewise.
4805 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
4806 (vax-*-linux*): Remove vax/t-linux from tmake_file.
4807
4808 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4809
4810 * config.gcc (extra_parts): Remove.
4811 (*-*-freebsd*): Remove extra_parts.
4812 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
4813 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
4814 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
4815 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
4816 *-*-netbsdelf[2-9]*.
4817 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
4818 (alpha*-*-linux*): Remove extra_parts.
4819 (alpha*-*-freebsd*): Likewise.
4820 (bfin*-linux-uclibc*): Likewise.
4821 (fr30-*-elf): Likewise.
4822 (moxie-*-elf): Likewise.
4823 (moxie-*-uclinux*): Likewise.
4824 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
4825 (h8300-*-elf*): Likewise.
4826 (hppa*64*-*-hpux11*): Remove extra_parts.
4827 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
4828 tmake_file.
4829 (x86_64-*-elf*): Likewise.
4830 (i[34567]86-*-freebsd*): Remove tmake_file.
4831 (x86_64-*-freebsd*): Likewise.
4832 (x86_64-*-netbsd*): Likewise.
4833 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
4834 t-libc-ok from tmake_file.
4835 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4836 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4837 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
4838 tmake_file.
4839 Remove extra_parts.
4840 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
4841 Remove i386/t-crtstuff from tmake_file.
4842 (i[34567]86-*-lynxos*): Likewise.
4843 Remove extra_parts.
4844 (ia64*-*-elf*): Remove extra_parts.
4845 (ia64*-*-freebsd*): Likewise.
4846 (ia64*-*-linux*): Likewise.
4847 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
4848 (m32r-*-elf*): Remove extra_parts.
4849 (m32rle-*-elf*): Likewise.
4850 (m32r-*-rtems*): Likewise.
4851 (m68k-*-elf*, fido-*-elf*): Likewise.
4852 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
4853 (m68k-*-rtems*): Remove extra_parts.
4854 (mep-*-*): Likewise.
4855 (microblaze*-linux*): Likewise.
4856 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
4857 (mips*-*-linux*): Likewise.
4858 (powerpc-*-lynxos*): Likewise.
4859 (s390x-ibm-tpf*): Likewise.
4860 (score-*-elf): Likewise.
4861 Remove tmake_file.
4862 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
4863 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
4864 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
4865 Remove sh/t-superh from tmake_file for sh*-superh-elf.
4866 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
4867 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
4868 (sh-wrs-vxworks): Likewise.
4869 (sparc-*-linux*): Remove extra_parts.
4870 (sparc64-*-linux*): Likewise.
4871 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
4872 (xstormy16-*-elf): Likewise.
4873 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
4874 (am33_2.0-*-linux*): Remove extra_parts.
4875 * configure.ac (extra_parts): Don't substitute.
4876 * configure: Regenerate.
4877 * crtstuff.c: Move to ../libgcc.
4878 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
4879 (EXTRA_PARTS): Remove.
4880 (CRTSTUFF_T_CFLAGS): Remove.
4881 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
4882 (GCC_EXTRA_PARTS): Remove.
4883 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
4884 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
4885 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
4886 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
4887 ($(T)crtbeginT.o): Remove.
4888 * config/alpha/t-vms (EXTRA_PARTS): Remove.
4889 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
4890 * config/alpha/vms-dwarf2.asm: Move to
4891 ../libgcc/config/alpha/vms-dwarf2.S.
4892 * config/alpha/vms-dwarf2eh.asm: Move to
4893 ../libgcc/config/alpha/vms-dwarf2eh.S.
4894 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
4895 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
4896 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
4897 ($(T)crti.o, $(T)crtn.o): Remove.
4898 * config/arm/t-linux: Remove comment.
4899 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
4900 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
4901 ($(T)crti.o, $(T)crtn.o): Remove.
4902 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
4903 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
4904 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
4905 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
4906 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
4907 ($(T)crti.o, $(T)crtn.o): Remove.
4908 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
4909 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
4910 (EXTRA_MULTILIB_PARTS): Remove.
4911 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
4912 EXTRA_MULTILIB_PARTS): Remove.
4913 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
4914 ($(T)crtlibid.o): Remove.
4915 (EXTRA_MULTILIB_PARTS): Remove.
4916 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
4917 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
4918 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
4919 (EXTRA_MULTILIB_PARTS): Remove.
4920 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
4921 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
4922 CRTSTUFF_T_CFLAGS_S): Remove.
4923 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
4924 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
4925 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
4926 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
4927 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
4928 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
4929 ../libgcc/config/frv.
4930 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
4931 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
4932 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
4933 (CRTSTUFF_T_CFLAGS): Remove.
4934 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
4935 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
4936 * config/h8300/t-elf: Remove.
4937 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
4938 Move to ../libgcc/config/i386.
4939 * config/i386/t-crtstuff: Remove.
4940 * config/i386/t-i386elf: Remove.
4941 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
4942 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
4943 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
4944 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
4945 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
4946 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
4947 * config/ia64/t-vms: Remove.
4948 * config/ia64/vms-crtinit.asm: Move to
4949 ../libgcc/config/ia64/vms-crtinit.S.
4950 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
4951 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
4952 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
4953 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
4954 ($(T)crtinit.o, $(T)crtfini.o): Remove.
4955 (m32rx, m32r2): Remove.
4956 (EXTRA_MULTILIB_PARTS): Remove.
4957 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
4958 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
4959 * config/m68k/t-crtstuff: Remove.
4960 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
4961 * config/m68k/t-m68kelf: Remove.
4962 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
4963 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
4964 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
4965 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
4966 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
4967 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
4968 (EXTRA_MULTILIB_PARTS): Remove.
4969 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
4970 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
4971 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
4972 EXTRA_PARTS): Remove.
4973 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
4974 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
4975 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
4976 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
4977 ($(T)crti.o, $(T)crtn.o): Remove.
4978 (EXTRA_MULTILIB_PARTS): Remove.
4979 * config/mips/t-isa3264: Likewise.
4980 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
4981 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
4982 (CRTSTUFF_T_CFLAGS): Remove.
4983 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
4984 ($(T)crti.o, $(T)crtn.o): Remove.
4985 (EXTRA_MULTILIB_PARTS): Remove.
4986 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
4987 Remove.
4988 ($(T)crti.o, $(T)crtn.o): Remove.
4989 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
4990 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
4991 (EXTRA_MULTILIB_PARTS): Remove.
4992 ($(T)crti.o, $(T)crtn.o): Remove.
4993 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
4994 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
4995 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
4996 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
4997 * config/pa/stublib.c: Move to libgcc/config/pa.
4998 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
4999 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
5000 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
5001 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
5002 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
5003 ($(T)libgcc_stub.a): Remove.
5004 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
5005 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
5006 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
5007 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
5008 ($(T)libgcc_stub.a): Remove.
5009 * config/rs6000/eabi-cn.asm: Move to
5010 ../../../libgcc/config/rs6000/eabi-cn.S.
5011 * config/rs6000/eabi-ci.asm: Move to
5012 ../../../libgcc/config/rs6000/eabi-ci.S.
5013 * config/rs6000/sol-ci.asm: Move to
5014 ../../../libgcc/config/rs6000/sol-ci.S.
5015 * config/rs6000/sol-cn.asm: Move to
5016 ../../../libgcc/config/rs6000/sol-cn.S.
5017 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
5018 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5019 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
5020 Remove.
5021 (EXTRA_MULTILIB_PARTS): Remove.
5022 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
5023 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
5024 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
5025 ($(T)ncrtn$(objext)): Remove.
5026 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5027 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5028 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
5029 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
5030 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
5031 * config/score/t-score-elf: Remove.
5032 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
5033 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
5034 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
5035 * config/sh/lib1funcs-4-300.asm: Move to
5036 ../../../libgcc/config/sh/lib1funcs-4-300.S.
5037 * config/sh/lib1funcs-Os-4-200.asm: Move to
5038 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
5039 * config/sh/t-elf: Remove.
5040 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5041 * config/sh/t-linux64: Remove.
5042 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
5043 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
5044 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
5045 ($(T)ic_invalidate_array_4-100.o)
5046 ($(T)libic_invalidate_array_4-100.a)
5047 ($(T)ic_invalidate_array_4-200.o)
5048 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
5049 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
5050 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
5051 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
5052 ($(T)libgcc-4-300.a): Remove.
5053 * config/sh/t-superh: Remove.
5054 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5055 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
5056 * config/spu/cache.S: Move to ../libgcc/config/spu.
5057 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
5058 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
5059 (EXTRA_MULTILIB_PARTS): Remove.
5060 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
5061 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
5062 ($(T)cache64k.o, $(T)cache128k.o): Remove.
5063 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
5064 * config/t-libc-ok: Remove.
5065 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5066 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
5067 * config/t-netbsd: Remove.
5068 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
5069 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
5070 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
5071 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
5072 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
5073 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
5074 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
5075 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5076 (EXTRA_MULTILIB_PARTS): Remove.
5077 * config/xtensa/t-linux: Remove.
5078 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
5079
5080 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
5081
5082 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
5083 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
5084
5085 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5086
5087 PR translation/45116
5088 * Makefile.in (slibdir): Remove, don't export.
5089 (SHLIB_NM_FLAGS): Remove.
5090 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
5091 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
5092 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
5093 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
5094 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
5095 (gccspec.o): Likewise.
5096 (installdirs): Don't create $(DESTDIR)$(slibdir).
5097 * configure.ac (slibdir): Remove.
5098 * configure: Regenerate.
5099 * libgcc-libsystem.ver: Move to ../libgcc/config.
5100 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
5101 * config/libgcc-glibc.ver: Move to ../libgcc/config.
5102 * config/t-libunwind (SHLIB_LC): Remove.
5103 * config/t-linux (SHLIB_MAPFILES): Remove.
5104 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
5105 * config/t-slibgcc-elf-ver: Remove.
5106 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
5107 ../libgcc/config.
5108 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
5109 to ../libgcc/config/alpha.
5110 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
5111 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
5112 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
5113 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
5114 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
5115 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
5116 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
5117 * config/arm/t-symbian (SHLIB_LC): Remove.
5118 * config/bfin/libgcc-bfin.ver: Move to
5119 ../libgcc/config/bfin/libgcc-glibc.ver.
5120 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
5121 * config/c6x/libgcc-c6xeabi.ver: Move to
5122 ../libgcc/config/c6x/libgcc-eabi.ver.
5123 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
5124 * config/cris/libgcc.ver: Move to
5125 ../libgcc/config/cris/libgcc-glibc.ver.
5126 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5127 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
5128 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
5129 * config/i386/darwin-libgcc.10.4.ver: Move to
5130 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
5131 * config/i386/darwin-libgcc.10.5.ver: Move to
5132 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
5133 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
5134 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
5135 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
5136 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
5137 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
5138 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
5139 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
5140 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
5141 ../libgcc/config/i386.
5142 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
5143 ../libgcc/config/i386.
5144 * config/i386/t-linux: Move to ../libgcc/config/i386.
5145 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
5146 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
5147 * config/i386/t-mingw-w64: Likewise.
5148 * config/i386/t-mingw32: Remove.
5149 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
5150 to ../libgcc/config/ia64.
5151 * config/ia64/t-glibc: Remove.
5152 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
5153 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
5154 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
5155 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
5156 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
5157 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
5158 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
5159 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
5160 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
5161 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
5162 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
5163 Move to ../libgcc/config/pa.
5164 * config/rs6000/darwin-libgcc.10.4.ver: Move to
5165 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
5166 * config/rs6000/darwin-libgcc.10.5.ver: Move to
5167 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
5168 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
5169 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
5170 * config/rs6000/t-aix52: Likewise.
5171 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
5172 ../libgcc/config/sh.
5173 * config/sparc/libgcc-sparc-glibc.ver: Move to
5174 ../libgcc/config/sparc/libgcc-glibc.ver.
5175 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
5176 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
5177 * config/xtensa/libgcc-xtensa.ver: Move to
5178 ../libgcc/config/xtensa/libgcc-glibc.ver.
5179 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
5180 t-slibgcc in tmake_file.
5181 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
5182 *-*-freebsd[34].* with pthreads.
5183 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
5184 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
5185 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
5186 (*-*-netbsd*): Likewise.
5187 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
5188 (*-*-*vms*): Add t-slibgcc to tmake_file.
5189 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
5190 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
5191 tmake_file.
5192 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
5193 arm*-*-linux-*eabi.
5194 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
5195 tmake_file.
5196 (crisv32-*-linux*, cris-*-linux*): Likewise.
5197 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
5198 pa/t-slibgcc-dwarf-ver from tmake_file.
5199 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
5200 tmake_file.
5201 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
5202 (hppa*64*-*-hpux11*): Likewise.
5203 (hppa[12]*-*-hpux11*): Likewise.
5204 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
5205 tmake_file.
5206 (x86_64-*-darwin*): Likewise.
5207 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
5208 Add t-slibgcc to tmake_file.
5209 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5210 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
5211 i[34567]86-w64-*.
5212 Remove i386/t-mingw-pthread from tmake_file.
5213 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
5214 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
5215 (ia64-hp-*vms*): Likewise.
5216 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
5217 tmake_file.
5218 (m32rle-*-linux*): Likewise.
5219 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
5220 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
5221 t-slibgcc-nolc-override from tmake_file.
5222 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
5223 tmake_file.
5224 (powerpc-*-darwin*): Likewise.
5225 (powerpc64-*-darwin*): Likewise.
5226 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
5227 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5228 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
5229 t-slibgcc to tmake_file.
5230 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
5231 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
5232 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
5233 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
5234 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
5235 (sparc64-*-linux*): Likewise.
5236 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
5237 tmake_file.
5238 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5239 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
5240 from tmake_file.
5241
5242 2011-11-02 Richard Guenther <rguenther@suse.de>
5243
5244 PR tree-optimization/50902
5245 * tree-vect-stmts.c (vectorizable_load): Properly convert
5246 an invariant initializer element.
5247
5248 2010-11-02 Richard Guenther <rguenther@suse.de>
5249
5250 PR tree-optimization/50890
5251 * gimple.h (gimple_fold_call): Remove.
5252 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
5253 (gimple_fold_call): ... here. Make static. Update the
5254 cannot-inline flag on direct calls.
5255 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
5256 from the statements to the edges.
5257
5258 2011-11-01 Ian Lance Taylor <iant@google.com>
5259
5260 * godump.c (struct macro_hash_value): Define.
5261 (macro_hash_hashval): New static function.
5262 (macro_hash_eq, macro_hash_del): New static functions.
5263 (go_define): Use macro_hash_value to store values in macro_hash.
5264 Replace an old value on a redefinition. Don't print anything to
5265 go_dump_file.
5266 (go_undef): Delete the entry from the hash table.
5267 (go_output_typedef): For an enum, use macro_hash_value, and don't
5268 print anything to go_dump_file.
5269 (go_print_macro): New static function.
5270 (go_finish): Traverse macro_hash with go_print_macro.
5271 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
5272
5273 2011-11-02 Alan Modra <amodra@gmail.com>
5274
5275 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
5276
5277 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5278
5279 PR c++/44277
5280 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
5281
5282 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
5283
5284 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
5285
5286 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
5287
5288 * config/i386/i386.md (splitters for int-float conversion): Use
5289 SUBREG_REG on SUBREGs in splitter constraints.
5290
5291 2011-11-01 Jakub Jelinek <jakub@redhat.com>
5292
5293 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
5294 prototype.
5295 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
5296 function.
5297 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
5298 (ssepackfltmode): New mode attr.
5299 (vec_pack_ufix_trunc_<mode>): New expander.
5300
5301 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
5302
5303 PR target/50940
5304 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
5305 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
5306
5307 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
5308
5309 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
5310 * config/rs6000/476.h: New file.
5311 * config/rs6000/476.opt: Likewise.
5312 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
5313 (SET_TARGET_LINK_STACK): Likewise.
5314 (TARGET_ASM_CODE_END): Define.
5315 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
5316 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
5317 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
5318 code if TARGET_LINK_STACK.
5319 (rs6000_emit_load_toc_table): Likewise.
5320 (output_function_profiler): Likewise
5321 (macho_branch_islands): Likewise
5322 (machopic_output_stub): Likewise
5323 (get_ppc476_thunk_name): New function.
5324 (rs6000_code_end): Likewise.
5325 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
5326 Convert to a define_expand.
5327 (load_toc_v4_PIC_1_normal): New define_insn.
5328 (load_toc_v4_PIC_1_476): Likewise.
5329 (load_toc_v4_PIC_1b_normal): Likewise.
5330 (load_toc_v4_PIC_1b_476): Likewise.
5331
5332 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
5333
5334 PR target/50910
5335 * config/avr/avr.opt (-mbranch-cost=): New option.
5336 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
5337 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
5338 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
5339 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
5340 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
5341
5342 2011-11-01 Tom de Vries <tom@codesourcery.com>
5343
5344 PR tree-optimization/50908
5345 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
5346 before update_vuses, test for 1 predecessor rather than two.
5347 (delete_block_update_dominator_info): New function, part of it factored
5348 out of ...
5349 (replace_block_by): Use delete_block_update_dominator_info. Call
5350 update_vuses after deleting bb1 and updating dominator info, instead of
5351 before.
5352
5353 2011-11-01 David S. Miller <davem@davemloft.net>
5354
5355 * config/sparc/sparc.c (vector_init_faligndata): New function.
5356 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
5357
5358 * config/sparc/sparc.c (sparc_expand_vcond): New function.
5359 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
5360 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
5361 (vconduv8qiv8qi): Likewise.
5362
5363 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
5364
5365 PR debug/50869
5366 * cselib.c (cfa_base_preserved_regno): Initialize.
5367 (cselib_expand_value_rtx_1): Don't expand it.
5368 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
5369 Check it's only zero if result is NULL.
5370
5371 2011-11-01 Jakub Jelinek <jakub@redhat.com>
5372
5373 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
5374 expander.
5375
5376 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
5377 (sseintvecmodelower): New mode iterator.
5378 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
5379 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
5380 (floatunsv4siv4sf2): Macroize into...
5381 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
5382
5383 2011-10-31 David S. Miller <davem@davemloft.net>
5384
5385 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
5386
5387 * dwarf2out.c (cached_next_real_insn): New.
5388 (dwarf2out_end_epilogue): Set it to NULL_RTX.
5389 (dwarf2out_var_location): Remove cached_next_real_insn local static.
5390
5391 2011-10-31 Richard Henderson <rth@redhat.com>
5392
5393 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
5394 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
5395 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
5396 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
5397 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
5398 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
5399 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
5400 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
5401 * config/i386/i386.md (splitters for int-float conversion): Likewise.
5402 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
5403 (bdesc_args): Likewise.
5404 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
5405 (ix86_vectorize_builtin_conversion): Remove.
5406 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
5407
5408 2011-10-31 Martin Jambor <mjambor@suse.cz>
5409
5410 * ipa-prop.c (mark_modified): Moved up in the file.
5411 (is_parm_modified_before_call): Renamed to
5412 is_parm_modified_before_stmt, moved up in the file.
5413 (load_from_unmodified_param): New function.
5414 (compute_complex_assign_jump_func): Also attempt to create pass
5415 through jump functions for values loaded from (addressable)
5416 parameters.
5417
5418 2011-10-31 Jakub Jelinek <jakub@redhat.com>
5419
5420 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
5421 in a loop and has different type from op0, cast it to op0's type
5422 before the loop first. For slp give up. Don't crash if op1_vectype
5423 is NULL.
5424
5425 2011-10-31 Paul Brook <paul@codesourcery.com>
5426
5427 * cgraphunit.c: Don't mark clones as static constructors.
5428
5429 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
5430
5431 * gcc-ar: Do not include stdio.h.
5432
5433 2011-10-31 Diego Novillo <dnovillo@google.com>
5434
5435 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
5436 TYPE_ADDR_SPACE.
5437 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
5438 TYPE_ADDR_SPACE.
5439
5440 2011-10-30 David S. Miller <davem@davemloft.net>
5441
5442 * config/sparc/sparc.c (vector_init_bshuffle): New function.
5443 (vector_init_fpmerge): New function.
5444 (sparc_expand_vector_init): Use them to improve non-const cases.
5445
5446 * dwarf2out.c (dwarf2out_var_location): When processing several
5447 consecutive location notes, cache the result of next_real_insn().
5448
5449 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
5450
5451 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
5452 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
5453 (vec_dupv4sf): Remove expander.
5454 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
5455 (vec_dupv2df): Remove expander.
5456 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
5457 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
5458 (*vec_dupv4si): Merge *vec_dupv4si_avx.
5459 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
5460
5461 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
5462
5463 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
5464 * optabs.c (supportable_convert_operation): New function.
5465 * optabs.h (supportable_convert_operation): New prototype.
5466 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
5467 behavior for NONE modifier case.
5468 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
5469
5470 2011-10-30 Jakub Jelinek <jakub@redhat.com>
5471
5472 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
5473 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
5474 function.
5475 (vect_vect_recog_func_ptrs): Add it.
5476
5477 2011-10-30 David S. Miller <davem@davemloft.net>
5478
5479 * reorg.c (label_before_next_insn): New function.
5480 (relax_delay_slots): Use it instead of prev_label.
5481 * rtl.h (prev_label): Delete declaration.
5482 * emit-rtl.c (prev_label): Remove.
5483
5484 2011-10-30 Revital Eres <revital.eres@linaro.org>
5485
5486 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
5487 as BB_DISABLE_SCHEDULE.
5488 (mark_loop_unsched): New function.
5489 (sms_schedule): Call it.
5490
5491 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5492
5493 PR target/50617
5494 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
5495 (cmpib_comparison_operator): Likewise.
5496 (following_cal, output_and, output_ior, output_move_double,
5497 output_fp_move_double, output_block_move, output_block_clear,
5498 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
5499 output_movb, output_parallel_movb, output_parallel_addb, output_call,
5500 output_indirect_call, output_millicode_call, output_mul_insn,
5501 output_div_insn, output_mod_insn, singlemove_string,
5502 output_arg_descriptor, output_global_address, print_operand,
5503 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
5504 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
5505 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
5506 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
5507 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
5508 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
5509 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
5510 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
5511 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
5512 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
5513 exported functions and variables with "pa_".
5514 * config/pa/predicates.md: Likewise.
5515 * config/pa/pa64-hpux.h: likewise.
5516 * config/pa/som.h: Likewise.
5517 * config/pa/elf.h: Likewise.
5518 * config/pa/pa64-linux.h: Likewise.
5519 * config/pa/pa.md: Likewise.
5520 * config/pa/pa.c: Likewise.
5521 * config/pa/pa-linux.h: Likewise.
5522 * config/pa/pa.h: Likewise.
5523 * config/pa/constraints.md: Likewise.
5524
5525 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
5526
5527 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
5528 Update all uses.
5529 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
5530 * config/i386/i386.c: Update all uses.
5531
5532 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
5533
5534 * config/i386/i386.md (lshlv16qi3): Remove expander.
5535 (lshrv16qi3): New expander.
5536 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
5537 using any_shiftrt code iterator. Cleanup.
5538 (ashlv16qi3): Cleanup.
5539 (ashrv2di3): Ditto.
5540
5541 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5542
5543 PR target/50691
5544 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
5545 references.
5546 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
5547 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
5548
5549 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
5550
5551 PR target/50887
5552 * config/avr/avr.opt (-maccumulate-args): New option.
5553 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
5554 avr_starting_frame_offset.
5555 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
5556 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
5557 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
5558 (UNSPECV_WRITE_SP): New constant.
5559 (*addhi3_sp_R): Rewrite to...
5560 (*addhi3_sp): ...this new insn.
5561 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
5562 (movhi_sp_r): ...this new insn.
5563 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
5564 (avr_starting_frame_offset): New.
5565 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
5566 (avr_starting_frame_offset): New function.
5567 (avr_outgoing_args_size): New static function.
5568 (avr_initial_elimination_offset): Use it.
5569 (avr_simple_epilogue): Use it.
5570 (avr_asm_function_end_prologue): Use it.
5571 (expand_epilogue): Use it.
5572 (expand_prologue): Use it. Break out code to...
5573 (avr_prologue_setup_frame): ...this new static function.
5574 (avr_can_eliminate): Allow eliminating to frame pointer if there
5575 is one.
5576 (avr_frame_pointer_required_p): Use frame pointer if target has a
5577 nonlocal label.
5578 * config/avr/constraints.md (R): Remove.
5579 (Csp): New constraint.
5580 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
5581
5582 2011-10-29 Andi Kleen <ak@linux.intel.com>
5583
5584 * gcc-ar.c (target_machine): Add.
5585
5586 2011-10-29 Anatoly Sokolov <aesok@post.ru>
5587
5588 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
5589 cris_constant_index_p, cris_base_p, cris_index_p,
5590 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
5591 cris_legitimate_address_p): New functions.
5592 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5593 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
5594 from rtx to const_rtx.
5595 (cris_print_operand_address, cris_address_cost,
5596 cris_side_effect_mode_ok): Use
5597 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
5598 cris_biap_index_p and cris_bdap_index_p.
5599 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
5600 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
5601 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5602 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
5603 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
5604 cris_biap_index_p and cris_bdap_index_p.
5605 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
5606 cris_base_p.
5607 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
5608 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
5609 prototype.
5610 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
5611
5612 2011-10-21 Andi Kleen <ak@linux.intel.com>
5613
5614 * ggc-page (PAGE_ALIGN): Add.
5615 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
5616 Replace ROUND_UP with PAGE_ALIGN.
5617
5618 2011-10-20 Andi Kleen <ak@linux.intel.com>
5619
5620 * ggc-page (alloc_anon): Add check argument.
5621 (alloc_page): Add fallback to 1 page allocation.
5622 Adjust alloc_anon calls to new argument.
5623
5624 2011-10-18 Andi Kleen <ak@linux.intel.com>
5625
5626 * ggc-page (release_pages): First free large continuous
5627 chunks in the madvise path.
5628
5629 2011-10-18 Andi Kleen <ak@linux.intel.com>
5630
5631 * ggc-page.c (alloc_pages): Always round up entry_size.
5632
5633 2011-10-19 Andi Kleen <ak@linux.intel.com>
5634
5635 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
5636 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
5637 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
5638 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
5639 (install): Depend on install-gcc-ar.
5640 (install-gcc-ar): Add.
5641 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
5642 * gcc-ar.c: Add new file.
5643
5644 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
5645
5646 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
5647 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
5648 type for V2DF.
5649 (VStype_div): Use vector types for V2DF/V4SF.
5650 (VStype_sqrt): Use *sqrt types.
5651 (VS_spdp_type): Change type to vecdouble.
5652 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
5653 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
5654 vsx_xvcvspuxds): Likewise.
5655 (*vsx_fms<mode>4): Set type via <VStype_mul>.
5656 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
5657 <VStype_simple>.
5658 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
5659 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
5660 power7-dsqrt): Correct insn latency.
5661 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
5662 (power7-veccmp): Delete.
5663 (power7-vecfloat): Correct latency/dispatch/VSU values.
5664 (define_bypass "power7-vecfloat"): Correct latency and types.
5665 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
5666 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
5667
5668 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
5669
5670 * config/i386/i386.md (shift_insn): Rename code attribute from
5671 shiftrt_insn. Also handle ashift RTX.
5672 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
5673 (vshift): New code attribute.
5674 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
5675 (any_lshift): Move and rename code iterator from ...
5676 * config/i386/sse.md (lshift): ... here.
5677 (lshift_insn): Remove code attribute.
5678 (lshift): Remove code attribute.
5679 (vlshr<mode>3): Use lshiftrt RTX.
5680 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
5681 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
5682 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
5683 any_lshift code iterator. Update asm template.
5684 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
5685 usign any_lshift code iterator.
5686 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
5687 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
5688 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
5689
5690 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
5691
5692 PR target/49313
5693 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
5694 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
5695 to the libgcc insn.
5696 (*parityqihi2): Same for 8-bit parity.
5697
5698 2011-10-28 Julian Brown <julian@codesourcery.com>
5699
5700 PR rtl-optimization/47918
5701 * reload1.c (set_initial_label_offsets): Use initial offsets
5702 for labels on the nonlocal_goto_handler_labels chain.
5703
5704 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
5705
5706 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
5707 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
5708 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
5709 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
5710 config/t-darwin.
5711 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
5712 (GP_SAVE_INLINE): Likewise.
5713 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5714 RESTORE_FP_SUFFIX): Set to empty strings.
5715 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
5716 (debug_stack_info): Print savres_strategy.
5717 (rs6000_savres_routine_name): Implement for Darwin.
5718 (rs6000_make_savres_rtx): Adjust used register for Darwin.
5719 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
5720 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
5721 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
5722 * config/rs6000/darwin-gpsave.asm: New file.
5723
5724 2011-10-28 Jakub Jelinek <jakub@redhat.com>
5725
5726 * config/i386/sse.md (VI4SD_AVX2): Removed.
5727 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
5728 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
5729 Add another expander using VI48_128 iterator for
5730 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
5731 for TARGET_AVX2.
5732 (vlshr<mode>3): Likewise. Change register_operand predicate to
5733 nonimmediate_operand on last operand in the VI12_128 expander.
5734 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
5735 (vashrv4si3, vashrv8si3): New expanders.
5736 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
5737 avx2_<lshift>vv2di): Removed.
5738 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
5739 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
5740 iterator. Simplify pattern.
5741
5742 2010-10-28 Richard Guenther <rguenther@suse.de>
5743
5744 PR driver/50876
5745 * lto-wrapper.c (get_options_from_collect_gcc_options):
5746 Properly count arguments.
5747 (run_gcc): Use an obstack to collect argv, properly separate
5748 switches and their arguments.
5749
5750 2011-10-28 Jakub Jelinek <jakub@redhat.com>
5751
5752 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
5753 vector mode from vectype's mode.
5754
5755 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
5756
5757 PR rtl-optimization/49720
5758 * simplify-rtx.c (simplify_relational_operation_1): Detect
5759 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
5760 simplifies to (eq/ne x (cst2 - cst1))" case.
5761
5762 2011-10-27 David S. Miller <davem@davemloft.net>
5763
5764 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
5765 (*snedi_zero): Likewise.
5766 (*snedi_zero_trunc): Likewise.
5767 (snedi_special_vis3): New expander.
5768 (*snedi_zero_vis3): New insn.
5769 (*snedi_zero_trunc_vis3): Likewise.
5770 (*sltu_insn_vis3): Likewise.
5771 (*sltu_insn_vis3_trunc): Likewise.
5772 (addxc): Likewise.
5773 (*addxc_trunc_sp64_vis3): Likewise.
5774 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
5775 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
5776 sequences on DImode values.
5777
5778 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
5779 constraint.
5780
5781 * regcprop.c (copyprop_hardreg_forward_1): Reject the
5782 transformation when we narrow the mode on big endian.
5783
5784 2011-10-27 Jakub Jelinek <jakub@redhat.com>
5785
5786 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
5787 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
5788 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
5789
5790 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
5791 overrides for -masm=intel memory.
5792 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
5793 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
5794 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
5795 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
5796 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
5797 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
5798 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
5799
5800 2011-10-27 Martin Jambor <mjambor@suse.cz>
5801
5802 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
5803 to parm_ainfo.
5804 (ipa_compute_jump_functions_for_edge): Likewise.
5805 (ipa_compute_jump_functions): Likewise.
5806 (ipa_analyze_indirect_call_uses): Likewise.
5807 (ipa_analyze_call_uses): Likewise.
5808 (ipa_analyze_params_uses): Likewise.
5809 (ipa_analyze_node): Likewise.
5810
5811 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
5812
5813 PR target/50875
5814 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
5815 constraints. Change alternative 1 to "x,m,1".
5816
5817 2011-10-27 Jakub Jelinek <jakub@redhat.com>
5818
5819 * Makefile.in (build/gencheck.o): Depend on tree.def and
5820 c-family/c-common.def.
5821
5822 * tree-ssa-strlen.c: Include expr.h.
5823 (get_stridx): Don't use c_strlen, instead use string_constant
5824 and compute string length from it.
5825 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
5826
5827 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
5828
5829 PR rtl-optimization/46603
5830 PR bootstrap/50879
5831 * reload.c (push_reload): In the out case, restore previous behavior
5832 for subregs that don't have word mode.
5833
5834 2011-10-27 Ian Lance Taylor <iant@google.com>
5835
5836 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
5837 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
5838 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
5839 defined.
5840
5841 2011-10-27 Richard Henderson <rth@redhat.com>
5842
5843 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
5844 selector. Save the qimode constant selector for later use by the
5845 qimode vec_perm pattern.
5846
5847 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
5848
5849 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
5850 to unit_req_factor to the right enum type.
5851 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
5852 hwloop_optimize): Remove unused variables.
5853
5854 2010-10-27 Richard Guenther <rguenther@suse.de>
5855
5856 PR middle-end/50731
5857 * tree-vect-generic.c (do_binop): Handle scalar operands.
5858
5859 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5860
5861 PR target/37191
5862 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
5863 from different units in a single alternative.
5864
5865 2011-10-26 David S. Miller <davem@davemloft.net>
5866
5867 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
5868 if we're comparing DImode and comparison is other than EQ or NE.
5869
5870 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
5871 LEU/LTU/GEU/GTU is attempted.
5872 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
5873 and split.
5874 (*neg_seqsi_sign_extend): Likewise.
5875 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
5876 *neg_sgeu_extend_sp64): New insns.
5877
5878 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
5879 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
5880 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
5881 (*mov<I:mode>_cc_reg_sp64): Likewise.
5882 (*movsf_cc_v9): Likewise.
5883 (*movsf_cc_reg_sp64): Likewise.
5884 (*movdf_cc_v9): Likewise.
5885 (*movdf_cc_reg_sp64): Likewise.
5886 (*movtf_cc_hq_v9): Likewise.
5887 (*movtf_cc_reg_hq_sp64): Likewise.
5888 (*movtf_cc_v9): Likewise.
5889 (*movtf_cc_reg_sp64): Likewise.
5890 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
5891 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
5892
5893 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
5894
5895 * reload.c (reload_inner_reg_of_subreg): Change type of return value
5896 and type of OUTPUT parameter to bool and adjust. Document MODE and
5897 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
5898 and improve associated comment.
5899 (push_reload): Clarify and update comments about reloading of subregs.
5900 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
5901 for the reloading of subregs in the out case as well.
5902
5903 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
5904
5905 PR debug/50826
5906 * var-tracking.c (rtx_debug_expr_p): New.
5907 (use_type): Don't use debug exprs to track non-VTA variables.
5908
5909 2011-10-26 Jeff Law <law@redhat.com>
5910
5911 * doc/invoke.texi (sink-frequency-threshold): Document.
5912 * tree-ssa-sink.c: Include params.h.
5913 (select_best_block): New function.
5914 (statement_sink_location): Use it.
5915 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
5916
5917 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
5918
5919 PR target/48108
5920 * config/darwin.c (top level): Amend comments concerning LTO output.
5921 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
5922 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
5923 (LTO_NAMES_SECTION): Rename.
5924 (darwin_asm_named_section): Record LTO section counts and switches
5925 in a vec of darwin_lto_section_e.
5926 (darwin_file_start): Remove unused code.
5927 (darwin_file_end): Put an LTO section termination label. Handle
5928 output of the wrapped LTO sections, index and names table.
5929
5930 2011-10-26 Alan Modra <amodra@gmail.com>
5931
5932 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
5933 declaration.
5934 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
5935 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
5936 simple_return in pattern, emit instruction, and set jump_label.
5937 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
5938 simple_return rather than return.
5939 (emit_cfa_restores): New function.
5940 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
5941 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
5942 when using out-of-line gpr restore. Add missing LR and FP regs
5943 cfa_restores for out-of-line fpr restore. Consolidate code setting
5944 up cfa_restores. Formatting. Use LR_REGNO define.
5945 (rs6000_output_mi_thunk): Use simple_return rather than return.
5946 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
5947 (return_internal*): Likewise.
5948 (any_return, return_pred, return_str): New iterators.
5949 (return, conditional return insns): Provide both return and
5950 simple_return variants.
5951 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
5952 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
5953 Move r11 and r0 later to suit shrink-wrapping.
5954
5955 2011-10-26 Richard Guenther <rguenther@suse.de>
5956
5957 * lto-wrapper.c (run_gcc): Properly init/free obstack.
5958
5959 2011-10-26 Jakub Jelinek <jakub@redhat.com>
5960
5961 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
5962 * config/i386/predicates.md (vsib_address_operand,
5963 vsib_mem_operator): New predicates.
5964 * config/i386/i386.c (ix86_print_operand_address): Handle
5965 UNSPEC_VSIBADDR addresses.
5966 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
5967 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
5968 UNSPEC_VSIBADDR address.
5969 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
5970 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
5971
5972 2011-10-26 Tom de Vries <tom@codesourcery.com>
5973
5974 PR tree-optimization/50763
5975 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
5976 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
5977
5978 2011-10-26 Richard Guenther <rguenther@suse.de>
5979
5980 PR lto/41844
5981 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
5982 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
5983 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
5984 (run_gcc): Use it. Filter out language specific options.
5985
5986 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
5987
5988 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
5989 32-bit target does.
5990
5991 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
5992
5993 PR driver/46617
5994 * gcc.c (main): Fix fatal_error string for translation.
5995
5996 2011-10-25 Ian Lance Taylor <iant@google.com>
5997
5998 * tree-eh.c (do_return_redirection): Remove return_value_p
5999 parameter. Change all callers.
6000 (lower_try_finally_nofallthru): Remove local return_val.
6001 (lower_try_finally_onedest): Likewise.
6002 (lower_try_finally_copy): Likewise.
6003 (lower_try_finally_switch): Likewise.
6004
6005 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
6006
6007 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
6008 remove "&& !TARGET_64BIT"
6009 (*mmx_maskmovq_rex): Removed.
6010
6011 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
6012
6013 PR rtl-optimization/46603
6014 * reload.c (push_reload): In the out case, reload the subreg as well
6015 as the reg if it has word mode.
6016
6017 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
6018
6019 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
6020 suppress debug info for the parent type.
6021
6022 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
6023
6024 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
6025
6026 2011-10-25 Richard Henderson <rth@redhat.com>
6027
6028 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
6029 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
6030
6031 * config/rs6000/altivec.md (vec_extract_evenv8hi,
6032 vec_extract_evenv16qi, vec_extract_oddv4si,
6033 vec_extract_oddv4sf): Remove.
6034
6035 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
6036 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
6037 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
6038 vec_interleave_highv4sf, vec_interleave_lowv4sf,
6039 vec_interleave_highv4si, vec_interleave_lowv4si,
6040 vec_interleave_highv8hi, vec_interleave_lowv8hi,
6041 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
6042
6043 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
6044 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
6045 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
6046 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
6047 vec_interleave_low_optab, vec_extract_even_optab,
6048 vec_extract_odd_optab with expand_vec_perm.
6049 (can_vec_perm_for_code_p): New.
6050 * optabs.h: Update.
6051 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
6052 fallback via can_vec_perm_for_code_p.
6053 (vect_strided_load_supported): Likewise.
6054 * tree-vect-generic.c (expand_vector_operations_1): Never lower
6055 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
6056 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
6057
6058 * target.def (vec_perm_const_ok): Change parameters to mode and
6059 array of indicies.
6060 * doc/tm.texi: Rebuild.
6061 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
6062 parameters to mode and array of indicies.
6063 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
6064 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
6065 Change parameters to mode and array of indicies.
6066 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
6067 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
6068 parameters to mode and rtx inputs. Try lowering to QImode
6069 vec_perm_const before trying fully variable permutation.
6070 * optabs.h: Update decls.
6071 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
6072 VECTOR_CST to pass to can_vec_perm_p.
6073 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
6074 from int pointer to unsigned char pointer.
6075 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
6076 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
6077
6078 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
6079 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6080 VEC_INTERLEAVE_LOW_EXPR): Likewise.
6081
6082 2011-10-25 Mike Stump <mikestump@comcast.net>
6083
6084 * reload.c (regno_clobbered_p): Fix typo.
6085
6086 2011-10-25 Dodji Seketeli <dodji@redhat.com>
6087
6088 * input.c (expand_location): Rewrite using linemap_resolve_location
6089 and linemap_expand_location. Add a comment.
6090
6091 2011-10-25 Jakub Jelinek <jakub@redhat.com>
6092
6093 PR tree-optimization/50596
6094 * tree-vect-stmts.c (vect_mark_relevant): Only use
6095 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
6096 (vectorizable_store): If is_pattern_stmt_p look through
6097 VIEW_CONVERT_EXPR on lhs.
6098 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
6099 Use unsigned type instead of signed.
6100 (vect_recog_bool_pattern): Optimize also stores into bool memory in
6101 addition to casts from bool to integral types.
6102 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
6103 created, don't create it again.
6104
6105 2011-10-25 Kai Tietz <ktietz@redhat.com>
6106
6107 * config/i386/i386.c (ix86_frame_pointer_required): Require
6108 frame-pointer, if setjmp is used for 32-bit ms-abi.
6109
6110 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6111
6112 * builtins.c (set_builtin_user_assembler_name): Remove extra
6113 newline added in October 11th, 2011 change.
6114
6115 2011-10-24 David S. Miller <davem@davemloft.net>
6116
6117 * config/sparc/little-endian.opt: Delete.
6118 * config.gcc: Remove references to config/sparc/little-endian.opt
6119 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
6120 * config/sparc/linux64.h: Delete references to -mlittle-endian.
6121 * config/sparc/netbsd-elf.h: Likewise.
6122 * config/sparc/openbsd64.h: Likewise.
6123 * config/sparc/sparc.h: Likewise.
6124 * config/sparc/sp64-elf.h: Likewise and delete overrides for
6125 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6126 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
6127 to MASK_LITTLE_ENDIAN.
6128 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
6129
6130 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
6131 Only use D, Y, and Z constraints in vector insns.
6132
6133 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
6134 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
6135 called *movsi_insn.
6136 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
6137 into *movdi_insn_sp32.
6138 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
6139 one pattern called *movdi_insn_sp64.
6140 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
6141 Consolidate into one pattern called *movsf_insn.
6142 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
6143 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
6144 into *movdf_insn_sp32.
6145 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
6146 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
6147 *movdf_insn_sp64.
6148 (*zero_extendsidi2_insn_sp64_novis3,
6149 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
6150 called *zero_extendsidi2_insn_sp64.
6151 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
6152 Consolidate into one pattern named *sign_extendsidi2_insn.
6153 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
6154 Consolidate into one pattern named *mov<VM32:mode>_insn.
6155 (*mov<VM64:mode>_insn_sp64_novis3,
6156 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
6157 named *mov<VM64:mode>_insn_sp64.
6158 (*mov<VM64:mode>_insn_sp32_novis3,
6159 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
6160 named *mov<VM64:mode>_insn_sp32.
6161
6162 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6163
6164 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
6165 (zero_length_string): Change assertion to accept strinfo without
6166 length but with stmt instead.
6167 Set the endptr pointer also if starting a new chain.
6168 (adjust_related_strinfos): Ignore strinfos marked for delayed
6169 length computation.
6170 (handle_builtin_strcpy): Mark earlier strinfo elements also for
6171 delayed length computation.
6172
6173 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
6174
6175 PR target/50820
6176 Port from 4.6 branch r180379
6177 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
6178 handling and indirect jump/calls on devices > 128k.
6179
6180 2011-10-24 Anatoly Sokolov <aesok@post.ru>
6181 Georg-Johann Lay <avr@gjlay.de>
6182
6183 PR target/49824
6184 * doc/extend.texi (Declaring Attributes of Functions):
6185 Document OS_main and OS_task attributes.
6186 (Specifying Attributes of Variables): Move up
6187 subsection "AVR Variable Attributes" as of alphabetical order.
6188
6189 2011-10-24 Richard Guenther <rguenther@suse.de>
6190
6191 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
6192 to vector element type.
6193 (vectorizable_assignment): Bail out for non-mode-precision operations.
6194 (vectorizable_shift): Likewise.
6195 (vectorizable_operation): Likewise.
6196 (vectorizable_type_demotion): Likewise.
6197 (vectorizable_type_promotion): Likewise.
6198 (vectorizable_store): Handle non-mode-precision stores.
6199 (vectorizable_load): Handle non-mode-precision loads.
6200 (get_vectype_for_scalar_type_and_size): Return a vector type
6201 for non-mode-precision integers.
6202 * tree-vect-loop.c (vectorizable_reduction): Bail out for
6203 non-mode-precision reductions.
6204
6205 2011-10-24 Julian Brown <julian@codesourcery.com>
6206
6207 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
6208 setting CC_REVERSED for FP comparisons.
6209
6210 2011-10-24 Richard Guenther <rguenther@suse.de>
6211
6212 PR tree-optimization/50838
6213 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
6214 a MEM_REF base if we change it.
6215
6216 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
6217
6218 PR bootstrap/50836
6219 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
6220
6221 PR rtl-optimization/50833
6222 * function.c (thread_prologue_and_epilogue_insns): Expect the
6223 return insn optimization only if optimize.
6224
6225 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
6226
6227 * config/avr/avr.c: Break long lines.
6228 Define target hooks on the fly if applicable.
6229 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
6230 overridden later.
6231 (targetm): Move definition to end of file.
6232 (avr_can_eliminate): Make static on the fly.
6233 (avr_frame_pointer_required_p): Ditto.
6234 (avr_hard_regno_scratch_ok): Ditto.
6235 (avr_builtin_setjmp_frame_value): Make static on the fly.
6236 Indent according to coding rules.
6237 (avr_case_values_threshold): Ditto.
6238 (avr_attribute_table): Move down.
6239
6240 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
6241
6242 PR tree-optimization/50730
6243 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
6244 analysis if encountered unsupported data-ref.
6245
6246 2011-10-23 David S. Miller <davem@davemloft.net>
6247
6248 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
6249 cpu adjustment.
6250 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
6251 append -mcpu=v9 when -mv8plus is given.
6252
6253 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
6254 between float and non-float regs when VIS3.
6255 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
6256 use a restore when the source is a float register.
6257 (sparc_split_regreg_legitimate): When VIS3 allow moves between
6258 float and integer regs.
6259 (sparc_register_move_cost): Adjust to account for VIS3 moves.
6260 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
6261 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
6262 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
6263 float and integer regs we sometimes need a FP_REGS class
6264 intermediate move to satisfy the reload. When this happens
6265 specify an extra cost of 2.
6266 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
6267 (*movdi_insn_sp32_v9): Likewise.
6268 (*movdi_insn_sp64): Likewise.
6269 (*movsf_insn): Likewise.
6270 (*movdf_insn_sp32_v9): Likewise.
6271 (*movdf_insn_sp64): Likewise.
6272 (*zero_extendsidi2_insn_sp64): Likewise.
6273 (*sign_extendsidi2_insn): Likewise.
6274 (*movsi_insn_vis3): New insn.
6275 (*movdi_insn_sp32_v9_vis3): New insn.
6276 (*movdi_insn_sp64_vis3): New insn.
6277 (*movsf_insn_vis3): New insn.
6278 (*movdf_insn_sp32_v9_vis3): New insn.
6279 (*movdf_insn_sp64_vis3): New insn.
6280 (*zero_extendsidi2_insn_sp64_vis3): New insn.
6281 (*sign_extendsidi2_insn_vis3): New insn.
6282 (TFmode reg/reg split): Make sure both REG operands are float.
6283 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
6284 easy constant to integer reg alternatives.
6285 (*mov<VM64:mode>_insn_sp64): Likewise.
6286 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
6287 (*mov<VM32:mode>_insn_vis3): New insn.
6288 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
6289 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
6290 (VM64 reg<-->reg split): New splitter for 32-bit.
6291
6292 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
6293 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
6294 Declare it.
6295 * config/sparc/sparc.md (DImode reg/reg split): Use it.
6296 (DFmode reg/reg split): Likewise.
6297
6298 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
6299 generating fzero and fone instructions.
6300 (DImode const_int --> reg splitter): Only trigger for integer regs.
6301
6302 * config/sparc/predicates.md (input_operand): Disallow vector
6303 constants other than 0 and -1.
6304 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
6305 NO_REGS for vector constants other than 0 and -1.
6306
6307 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
6308 SPARC_INT_REG_P): Define.
6309 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
6310 (REGNO_OK_FOR_INDEX_P): Likewise.
6311 * config/sparc/sparc.c (gen_df_reg): Likewise.
6312 (eligible_for_return_delay): Likewise.
6313 (eligible_for_sibcall_delay): Likewise.
6314 (sparc_legitimate_address_p): Likewise.
6315 (emit_save_or_restore_regs): Likewise.
6316 (registers_ok_for_ldd_peep): Likewise.
6317 * config/spac/sparc.md (DI mode splitters): Likewise.
6318 (SF mode const splitters): Likewise.
6319 (DF mode splitters): Likewise.
6320 (32-bit DI mode logical op splitters): Likewise.
6321
6322 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6323
6324 PR c++/50841
6325 Revert:
6326 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6327
6328 PR c++/50810
6329 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
6330
6331 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
6332
6333 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
6334 (VI248_256): Remove mode iterator.
6335 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
6336 instead of gen_avx2_lshlv4di3.
6337 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
6338 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
6339
6340 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
6341
6342 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
6343 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
6344 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
6345 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
6346 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
6347 iterator. Use sseintprefix mode attribute.
6348 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
6349 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
6350 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
6351 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
6352 iterator. Use sseintprefix mode attribute.
6353 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
6354 attributes.
6355 (*avx2_gatherdi<mode>): Ditto.
6356 (*avx2_gatherdi<mode>256): Ditto.
6357 (VI48_AVX2): Remove mode iterator.
6358 (gthrlastfp): Remove mode attribute.
6359
6360 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
6361
6362 PR c++/50810
6363 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
6364
6365 2011-10-23 Tom de Vries <tom@codesourcery.com>
6366
6367 PR tree-optimization/50763
6368 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
6369 out of ...
6370 (same_succ_flush_bbs): Use same_succ_flush_bb.
6371 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
6372 release_last_vdef and delete_basic_block.
6373 (unlink_virtual_phi): New function.
6374 (update_vuses): Add and use vuse1_phi_args argument. Set var to
6375 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
6376 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
6377 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
6378 to limit replacement of uses. Propagate phi argument for phis with a
6379 single argument.
6380 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
6381 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
6382 vuse1_phi_args as argument to call to update_vuses. Call
6383 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
6384 CDI_DOMINATORS info.
6385 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
6386 call to free_dominance_info. Only call calculate_dominance_info once.
6387
6388 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
6389
6390 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
6391
6392 PR tree-optimization/44683
6393 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
6394 we can be sure that there are no signed zeros involved.
6395
6396 2011-10-23 Jan Hubicka <jh@suse.cz>
6397
6398 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
6399
6400 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
6401
6402 PR target/50788
6403 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
6404 Remove (match_dup 0).
6405 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
6406 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
6407 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
6408 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
6409 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
6410 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
6411
6412 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
6413
6414 PR tree-optimization/50819
6415 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
6416 the last argument.
6417 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
6418 vect_analyze_data_ref_dependences.
6419 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
6420 the last argument. Check load-after-store dependence for unknown
6421 dependencies in basic blocks.
6422 (vect_analyze_data_ref_dependences): Update call to
6423 vect_analyze_data_ref_dependences.
6424 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
6425 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
6426 (vect_slp_analyze_bb_1): Update call to
6427 vect_analyze_data_ref_dependences. Don't call
6428 vect_bb_vectorizable_with_dependencies.
6429
6430 2011-10-22 David S. Miller <davem@davemloft.net>
6431
6432 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
6433 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
6434 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
6435 (sparc_secondary_reload): New function.
6436
6437 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
6438 (struct processor_costs): Move from here..
6439 * config/sparc/sparc.c (struct processor_costs): To here.
6440 (sparc_costs): Mark static.
6441
6442 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
6443 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
6444 Get rid of declarations.
6445
6446 2011-10-21 Paul Brook <paul@codesourcery.com>
6447
6448 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
6449 c6x_asm_init_sections): New functions.
6450 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
6451
6452 2011-10-21 Jakub Jelinek <jakub@redhat.com>
6453
6454 PR target/50813
6455 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
6456 V4DImode and V8SImode for !TARGET_AVX2.
6457
6458 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
6459
6460 PR bootstrap/50825
6461 * sched-deps.c (add_dependence): If not doing predication, promote
6462 REG_DEP_CONTROL to REG_DEP_ANTI.
6463
6464 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
6465
6466 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
6467 instead of X to avr_legitimize_reload_address.
6468 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
6469 first argument's type from rtx to rtx*.
6470 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
6471 Pass PX to push_reload instead of &X. Change log messages for
6472 better distinction.
6473
6474 2011-10-21 Roland Stigge <stigge@antcom.de>
6475
6476 PR translation/47064
6477 * params.def: Fix typo "compilatoin" -> "compilation".
6478
6479 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
6480 Kirill Yukhin <kirill.yukhin@intel.com>
6481
6482 PR target/50740
6483 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
6484 if max_level allows that.
6485
6486 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
6487
6488 * reg-notes.def (DEP_CONTROL): New.
6489 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
6490 not doing speculation.
6491 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
6492 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
6493 * function.c (record_hard_reg_sets, record_hard_reg_uses,
6494 record_hard_reg_uses_1): Remove; move to rtlanal.c.
6495 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
6496 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
6497 (MUST_RECOMPUTE_SPEC_P): New macro.
6498 (real_insn_for_shadow): New function.
6499 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
6500 toggle_cancelled_flags): New static functions.
6501 (schedule_insn): Relax an assert to only check for empty hard back
6502 dependencies. Skip cancelled dependencies. Call
6503 check_clobbered_conditions.
6504 (copy_insn_list): Remove function, renamed moved to lists.c.
6505 (save_backtrack_point): Use new spelling copy_INSN_LIST.
6506 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
6507 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
6508 (estimate_insn_tick): Ignore cancelled dependencies.
6509 (haifa_speculate_insn): Move declaration.
6510 (try_ready): Move code into recompute_todo_spec and call it. Tweak
6511 some asserts. Ensure predicated patterns are restored if necessary.
6512 Dump DEP_CONTROL flag.
6513 (haifa_change_pattern): Merge with sched_change_pattern.
6514 (sched_change_pattern): Remove function.
6515 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
6516 uses changed to simply not test NON_FLUSH_JUMP_P.
6517 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
6518 REG_DEP_CONTROL.
6519 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
6520 (reg_pending_control_uses, control_dependency_cache): New static
6521 variables.
6522 (sched_get_reverse_condition_uncached): New function.
6523 (sd_find_dep_between): Remove pointless assert. Look in
6524 control_dependency_cache.
6525 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
6526 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
6527 and control_dependency_cache.
6528 (sd_unresolve_dep): Use dep_spec_p.
6529 (add_dependence): Now a wrapper around add_dependence_1, handling
6530 REG_DEP_CONTROL specially.
6531 (flush_pending_lists): Clear pending_jump_insns.
6532 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
6533 (sched_analyze_2): Unconditionally add to pending memory flushes,
6534 keep previous behaviour but apply it to pending_jump_insns instead.
6535 (sched_analyze_insn): Defer adding jump reg dependencies using
6536 reg_pending_control_uses; add them to the control_uses list. Handle
6537 pending_jump_insns and control_uses when adding dependence lists.
6538 (deps_analyze_insn): Update INSN_COND_DEPS.
6539 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
6540 last_pending_memory_flush.
6541 (init_deps): Initialize pending_jump_insns.
6542 (free_deps): Free control_uses.
6543 (remove_from_deps): Remove from pending_jump_insns.
6544 (init_deps_global): Allocate reg_pending_control_uses).
6545 (finish_deps_global): Free it.
6546 (add_dependence_1): Renamed from add_dependence. Handle
6547 REG_DEP_CONTROL.
6548 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
6549 (copy_INSN_LIST, concat_INSN_LIST): Declare.
6550 * sched-int.h (struct deps_reg): Add control_uses.
6551 (struct deps_desc): Add pending_jump_insns.
6552 (struct _haifa_deps_insn_data): Add cond_deps.
6553 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
6554 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
6555 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
6556 (DEP_CONTROL): New macro.
6557 (DEP_TYPES): Include it.
6558 (HARD_DEP): Adjust definition.
6559 (DEP_CANCELLED): New macro.
6560 (enum SCHED_FLAGS): Add DO_PREDICATION.
6561 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
6562 * sched-rgn.c (concat_INSN_LIST): Remove function.
6563 (deps_join): Handle pending_jump_insns.
6564 (free_pending_lists): Likewise.
6565 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
6566 schedule.
6567
6568 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
6569
6570 PR target/50820
6571 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
6572 (__tablejump__): Consistently use EIND for indirect jump/call.
6573 (__tablejump_elpm__): Ditto.
6574
6575 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
6576
6577 * config/c6x/c6x.md (attr "op_pattern"): New.
6578 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
6579 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
6580 Likewise.
6581 * config/c6x/c6x-mult.md: Regenerate.
6582 * config/c6x/c6x.c: Include "regrename.h".
6583 (unit_req_table): New typedef.
6584 (unit_reqs): Use it for the declaration.
6585 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
6586 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
6587 static functions.
6588 (count_unit_reqs): New arg reqs. All callers changed. Use
6589 get_unit_reqs, and don't merge here.
6590 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
6591 using unit_req_factor.
6592 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
6593 count_unit_reqs.
6594 (c6x_reorg): Add reg notes problem, and call df_analyze.
6595 * Makefile.in ($(out_object_file)): Depend on regrename.h.
6596
6597 2011-10-21 Kai Tietz <ktietz@redhat.com>
6598
6599 * fold-const.c (simple_operand_p_2): Handle integral
6600 casts from boolean-operands.
6601
6602 2011-10-21 Jan Hubicka <jh@suse.cz>
6603
6604 * cgraph.c (dump_cgraph_node): Dump alias flag.
6605 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
6606 no destination.
6607 (get_alias_symbol): New function.
6608 (output_weakrefs): Output also weakrefs with no destinatoin.
6609 (lto_output_node): Output weakref alias flag when at function boundary.
6610
6611 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
6612
6613 PR target/50809
6614 * config/arm/driver-arm.c (vendors): Make static.
6615
6616 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
6617
6618 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
6619 (ix86_emit_swsqrtsf): Force a into register.
6620
6621 2011-10-20 Mike Stump <mikestump@comcast.net>
6622
6623 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
6624 after validate_change wipes it out.
6625
6626 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6627
6628 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
6629 before using the shufb instruction.
6630
6631 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
6632
6633 PR target/50766
6634 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
6635 memory operand order.
6636 (bmi2_bzhi_<mode>3): Ditto.
6637 (bmi2_pdep_<mode>3): Ditto.
6638 (bmi2_pext_<mode>3): Ditto.
6639
6640 2011-10-20 Richard Henderson <rth@redhat.com>
6641
6642 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
6643 * optabs.c (can_vec_perm_expr_p): Update to match.
6644 (expand_vec_perm_expr): Likewise.
6645 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
6646 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
6647 * doc/tm.texi.in: Likewise.
6648
6649 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
6650
6651 PR target/50572
6652 * config/i386/i386.c (processor_target_table): Change Atom
6653 align_loops_max_skip to 15.
6654
6655 2011-10-20 Richard Henderson <rth@redhat.com>
6656
6657 * target.def (builtin_vec_perm): Remove.
6658 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6659
6660 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
6661 (IX86_BUILTIN_VEC_PERM_*): Remove.
6662 (bdesc_args): Remove vec_perm builtins
6663 (ix86_expand_builtin): Likewise.
6664 (ix86_expand_vec_perm_const_1): Rename from
6665 ix86_expand_vec_perm_builtin_1.
6666 (extract_vec_perm_cst): Merge into...
6667 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
6668 ix86_vectorize_builtin_vec_perm_ok.
6669 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6670
6671 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
6672 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6673
6674 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
6675 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
6676
6677 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
6678
6679 PR target/47989
6680 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
6681 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
6682 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
6683 implements vectorized single float division and vectorized sqrtf(x)
6684 with reciprocal sequence with additional Newton-Raphson step with
6685 -ffast-math.
6686
6687 2011-10-20 Dodji Seketeli <dodji@redhat.com>
6688
6689 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
6690 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
6691 it was done in ggc-page.c.
6692
6693 PR other/50659
6694 * doc/cppopts.texi: Use @smallexample/@end smallexample in
6695 documentation for -fdebug-cpp instead of @quotation/@end quotation
6696 that is not supported by contrib/texi2pod.pl.
6697
6698 2011-10-19 Jan Hubicka <jh@suse.cz>
6699
6700 * ipa-inline.c (inline_small_functions): Always update all calles after
6701 inlining.
6702
6703 2011-10-19 Jan Hubicka <jh@suse.cz>
6704
6705 PR bootstrap/50709
6706 * ipa-inline.c (inline_small_functions): Fix checking code to not make
6707 effect on fibheap stability.
6708
6709 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
6710
6711 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
6712
6713 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6714
6715 PR target/50106
6716 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
6717 reg size from 1-3.
6718
6719 2011-10-20 Richard Guenther <rguenther@suse.de>
6720
6721 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
6722 and rotates to the set of expensive operations.
6723
6724 2011-10-19 David S. Miller <davem@davemloft.net>
6725
6726 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
6727 (sparc_emit_set_const32): Likewise.
6728 (sparc_emit_set_const64_longway): Likewise.
6729 (sparc_emit_set_const64): Likewise.
6730 (sparc_legitimize_pic_address): Likewise.
6731 (memory_ok_for_ldd): Likewise.
6732
6733 2011-10-20 Dehao Chen <dehao@google.com>
6734
6735 * profile.c (compute_branch_probabilities): Compute and dump the
6736 overlap between the static estimation and the instrumentation profile.
6737 (OVERLAP_BASE): New macro.
6738 (compute_frequency_overlap): New function
6739
6740 2011-10-19 Jakub Jelinek <jakub@redhat.com>
6741
6742 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
6743 d->op1 instead of d->op0 for the second vpshufb.
6744 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
6745 (ix86_expand_vec_perm_const): If mask indicates two operands are
6746 needed, but both are the same and expanding them as d.op0 == d.op1
6747 failed, retry with d.op0 != d.op1.
6748 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
6749 also for d.nelt == 32.
6750
6751 PR middle-end/50754
6752 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
6753 VEC_PERM_EXPR.
6754
6755 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
6756
6757 * regrename.h: New file.
6758 * regrename.c: Include it. Also include "emit-rtl.h".
6759 (struct du_head, struct du_chain, du_head_p DEF_VEC and
6760 DEF_VEC_ALLOC_P): Move to regrename.h.
6761 (do_replace): Remove declaration.
6762 (insn_rr): New variable.
6763 (cur_operand): New static variable.
6764 (regrename_chain_from_id): Renamed from chain_from_id and no longer
6765 static. All callers changed.
6766 (record_operand_use): New static function.
6767 (scan_rtx_reg): Use it.
6768 (find_best_rename_reg): New function, broken out of rename_chains.
6769 (rename_chains): Use it. Don't update chain regno and nregs here, ...
6770 (regrename_do_replace): ... do it here instead. Renamed from
6771 do_replace, and no longer static. All callers changed.
6772 (regrename_analyze): No longer static. New arg bb_mask.
6773 All callers changed. If bb_mask is nonzero, use it to limit the
6774 number of basic blocks we analyze. If we failed to analyze a block,
6775 clear insn operand data.
6776 (record_out_operands): New arg insn_info. Update cur_operand if it is
6777 nonnull.
6778 (build_def_use): If insn_rr is nonnull, pass an insn_info to
6779 record_out_operands, and update cur_operand here as well.
6780 (regrename_init, regrename_finish): New functions.
6781 (regrename_optimize): Use them.
6782 * Makefile.in (regrename.o): Adjust dependencies.
6783
6784 2011-10-19 Tom de Vries <tom@codesourcery.com>
6785
6786 PR tree-optimization/50769
6787 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
6788 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
6789 dummy argument .MEM to phi when increasing number of arguments of phi by
6790 redirecting edges to the block with phi.
6791
6792 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6793
6794 PR bootstrap/50777
6795 * configure.ac: Save and restore CXXFLAGS around
6796 gcc_AC_CHECK_DECLS uses.
6797 Check for madvise() declaration with g++ if --enable-build-with-cxx.
6798 * configure: Regenerate.
6799 * config.in: Regenerate.
6800 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
6801
6802 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
6803
6804 PR debug/49310
6805 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
6806 (variable_part): Replace offset with union.
6807 (enum onepart_enum, onepart_enum_t): New.
6808 (variable_def): Drop cur_loc_changed, add onepart.
6809 (value_chain_def, const_value_chain): Remove.
6810 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
6811 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
6812 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
6813 (value_chain_pool, value_chains): Remove.
6814 (dropped_values): New.
6815 (struct parm_reg): Only if HAVE_window_save.
6816 (vt_stack_adjustments): Don't record register arguments.
6817 (dv_as_rtx): New.
6818 (dv_onepart_p): Return a onepart_enum_t.
6819 (onepart_pool): New.
6820 (dv_pool): Remove.
6821 (dv_from_rtx): New.
6822 (variable_htab_free): Release onepart aux data. Reset flags.
6823 (value_chain_htab_hash, value_chain_htab_eq): Remove.
6824 (unshare_variable): Use onepart field. Propagate onepart aux
6825 data or offset. Drop cur_loc_changed.
6826 (val_store): Cope with NULL insn. Rephrase dump output. Check
6827 for unsuitable locs. Add FIXME on using cselib locs.
6828 (val_reset): Remove FIXME of unfounded concerns.
6829 (val_resolve): Check for unsuitable locs. Add FIXME on using
6830 cselib locs.
6831 (variable_union): Use onepart field, adjust access to offset.
6832 (NO_LOC_P): New.
6833 (VALUE_CHANGED, DECL_CHANGED): Update doc.
6834 (set_dv_changed): Clear NO_LOC_P when changed.
6835 (find_loc_in_1pdv): Use onepart field.
6836 (intersect_loc_chains): Likewise.
6837 (unsuitable_loc): New.
6838 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
6839 (add_value_chain, add_value_chains): Remove.
6840 (add_cselib_value_chains, remove_value_chain): Likewise.
6841 (remove_value_chains, remove_cselib_value_chains): Likewise.
6842 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
6843 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
6844 (variable_merge_over_cur): Likewise. Adjust access to offset.
6845 Drop cur_loc_changed.
6846 (variable_merge_over_src): Use onepart field.
6847 (remove_duplicate_values): Likewise.
6848 (variable_post_merge_new_vals): Likewise.
6849 (find_mem_expr_in_1pdv): Likewise.
6850 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
6851 and value chains.
6852 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
6853 (variable_different_p): Use onepart field. Move onepart test out
6854 of the loop.
6855 (argument_reg_set): Drop.
6856 (add_uses, add_stores): Preserve but do not record in dynamic
6857 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
6858 Avoid unsuitable address expressions.
6859 (EXPR_DEPTH): Unlimit.
6860 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
6861 (prepare_call_arguments): Use DECL_RTL_IF_SET.
6862 (dump_var): Adjust access to offset.
6863 (variable_from_dropped, recover_dropped_1paux): New.
6864 (variable_was_changed): Drop cur_loc_changed. Use onepart.
6865 Preserve onepart aux in empty_var. Recover empty_var and onepart
6866 aux from dropped_values.
6867 (find_variable_location_part): Special-case onepart. Adjust
6868 access to offset.
6869 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
6870 access to offset. Initialize onepaux. Drop value chains.
6871 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
6872 (VEC (variable, heap), VEC (rtx, stack)): Define.
6873 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
6874 ignore_cur_loc. Add expanding, pending, depth.
6875 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
6876 (loc_exp_dep_insert, loc_exp_dep_set): New.
6877 (notify_dependents_of_resolved_value): New.
6878 (update_depth, vt_expand_var_loc_chain): New.
6879 (vt_expand_loc_callback): Revamped.
6880 (resolve_expansions_pending_recursion): New.
6881 (INIT_ELCD, FINI_ELCD): New.
6882 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
6883 parameter, adjust all callers.
6884 (vt_expand_loc_dummy): Drop.
6885 (vt_expand_1pvar): New.
6886 (emit_note_insn_var_location): Operate on non-debug decls only.
6887 Revamp multi-part cur_loc recomputation and one-part expansion.
6888 Drop cur_loc_changed. Adjust access to offset.
6889 (VEC (variable, heap)): Drop.
6890 (changed_variables_stack, changed_values_stack): Drop.
6891 (check_changed_vars_0, check_changed_vars_1): Remove.
6892 (check_changed_vars_2, check_changed_vars_3): Remove.
6893 (values_to_stack, remove_value_from_changed_variables): New.
6894 (notify_dependents_of_changed_value, process_changed_values): New.
6895 (emit_notes_for_changes): Revamp onepart updates.
6896 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
6897 and value chains. Propagate onepaux. Recover empty_var and onepaux
6898 from dropped_values.
6899 (emit_notes_for_differences_2): Drop value chains.
6900 (emit_notes_in_bb): Adjust.
6901 (vt_emit_notes): Drop value chains, changed_variables_stack.
6902 Initialize and release dropped_values.
6903 (create_entry_value): Revamp.
6904 (vt_add_function_parameter): Use new interface.
6905 (note_register_arguments): Remove.
6906 (vt_initialize): Drop value chains and register arguments.
6907 (vt_finalize): Drop value chains. Release windowed_parm_regs only
6908 if HAVE_window_save.
6909 * rtl.h: Document various pass-local uses of RTL flags.
6910 * tree.h (DECL_RTL_KNOWN_SET): New.
6911 * doc/invoke.texi (param max-vartrack-expr-depth): Update
6912 description and default.
6913
6914 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
6915
6916 PR target/50447
6917 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
6918 (adjust_len): Ditto.
6919 (addhi3): Don't pipe through short; use gen_int_mode instead.
6920 Prior to reload, expand to gen_addhi3_clobber.
6921 (*addhi3): Use avr_out_plus_noclobber if applicable, use
6922 out_plus_noclobber in cc and adjust_len attribute.
6923 (addhi3_clobber): 2 new RTL peepholes.
6924 (addhi3_clobber): New insn.
6925 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
6926 * config/avr/avr.c (avr_out_plus_noclobber): New function.
6927 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
6928 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
6929 Set cc0 to set_zn for adiw on 16-bit values.
6930 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
6931 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
6932
6933 2011-10-19 Richard Guenther <rguenther@suse.de>
6934
6935 PR middle-end/50780
6936 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
6937 the condition is properly gimple before using it.
6938 * tree-eh (stmt_could_throw_1_p): Properly extract the
6939 operation type from comparisons.
6940
6941 2011-10-19 Roland Stigge <stigge@antcom.de>
6942
6943 PR translation/48638
6944 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
6945
6946 2011-10-19 Roland Stigge <stigge@antcom.de>
6947
6948 PR translation/49517
6949 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
6950
6951 2011-10-19 Richard Guenther <rguenther@suse.de>
6952
6953 PR middle-end/50768
6954 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
6955
6956 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
6957
6958 PR rtl-optimization/50340
6959 * sel-sched-ir.c (update_target_availability): LHS register
6960 availability is not known if the unavailable LHS of the other
6961 expression is a different register.
6962
6963 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6964
6965 PR target/50310
6966 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
6967 floating-point comparisons.
6968
6969 2011-10-19 Jan Hubicka <jh@suse.cz>
6970
6971 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
6972 destination declared.
6973 (output_weakrefs): New function.
6974 * varpool.c (varpool_create_variable_alias): Handle external aliases.
6975
6976 2011-10-19 Jakub Jelinek <jakub@redhat.com>
6977
6978 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
6979 second argument instead of mode.
6980
6981 2011-10-18 Jakub Jelinek <jakub@redhat.com>
6982
6983 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
6984 mode SUBREG of operands[0] as target.
6985 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
6986 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
6987 (expand_vec_perm_1): Handle identity and some broadcast
6988 permutations.
6989 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
6990 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
6991 For d->testing_p return true earlier to avoid creating more GC
6992 garbage.
6993 (expand_vec_perm_vpermq_perm_1): New function.
6994 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
6995 earlier to avoid creating more GC garbage. Fix handling of
6996 V16HImode. Avoid some SUBREGs in SET_DEST.
6997 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
6998 vector modes.
6999 (expand_vec_perm_vpshufb4_vpermq2): New function.
7000 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
7001 and expand_vec_perm_vpshufb4_vpermq2.
7002
7003 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
7004
7005 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
7006 before exiting.
7007
7008 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
7009
7010 PR tree-optimization/50717
7011 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
7012 parameter. Calculate 'type' from stmt.
7013 (convert_mult_to_widen): Update call the is_widening_mult_p.
7014 (convert_plusminus_to_widen): Likewise.
7015
7016 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7017
7018 * config/spu/spu.c (struct machine_function): New data structure.
7019 (spu_init_machine_status): New function.
7020 (spu_option_override): Install it.
7021 (get_pic_reg): Set and use cfun->machine->pic_reg.
7022 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
7023 (need_to_save_reg): Use cfun->machine->pic_reg instead of
7024 checking crtl->uses_pic_offset_table.
7025 (spu_expand_prologue): Likewise.
7026
7027 2011-10-18 Jakub Jelinek <jakub@redhat.com>
7028
7029 PR tree-optimization/50735
7030 * function.c (gimplify_parameters): Use create_tmp_var instead of
7031 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
7032 or vector type, set DECL_GIMPLE_REG_P.
7033
7034 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
7035
7036 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
7037 * config/arm/arm.opt: Add 'native' processor_type and
7038 arm_arch enum values.
7039 * config/arm/arm.h (host_detect_local_cpu): New prototype.
7040 (EXTRA_SPEC_FUNCTIONS): New define.
7041 (MCPU_MTUNE_NATIVE_SPECS): New define.
7042 (DRIVER_SELF_SPECS): New define.
7043 * config/arm/driver-arm.c: New file.
7044 * config/arm/x-arm: New file.
7045 * doc/invoke.texi (ARM Options): Document -mcpu=native,
7046 -mtune=native and -march=native.
7047
7048 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
7049
7050 PR rtl-optimization/50205
7051 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
7052 p->x is a register. Forbid substitution when the same register is
7053 found in a different mode.
7054 (count_occurrences_equiv): Assert that 'what' is a register.
7055
7056 2011-10-18 Richard Guenther <rguenther@suse.de>
7057
7058 PR tree-optimization/50767
7059 * tree-ssa-pre.c (create_expression_by_pieces): Update the
7060 folded statement.
7061
7062 2011-10-18 Julian Brown <julian@codesourcery.com>
7063
7064 * config/arm/arm.c (arm_block_move_unaligned_straight)
7065 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
7066 (arm_movmemqi_unaligned): New.
7067 (arm_gen_movmemqi): Support unaligned block copies.
7068
7069 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
7070
7071 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
7072 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
7073 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
7074 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7075 (op_code_prio): Likewise.
7076 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
7077 * optabs.c (optab_for_tree_code): Handle
7078 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7079 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
7080 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
7081 * genopinit.c (optabs): Initialize the new optabs.
7082 * expr.c (expand_expr_real_2): Handle
7083 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
7084 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
7085 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
7086 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
7087 VEC_WIDEN_LSHIFT_LO_EXPR): New.
7088 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
7089 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
7090 vect_recog_widen_shift_pattern.
7091 (vect_handle_widen_mult_by_const): Rename...
7092 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
7093 Add a new argument, update documentation.
7094 (vect_recog_widen_mult_pattern): Assume that only second
7095 operand can be constant. Update call to
7096 vect_handle_widen_op_by_const.
7097 (vect_recog_over_widening_pattern): Fix typo.
7098 (vect_recog_widen_shift_pattern): New.
7099 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
7100 widening shifts.
7101 (supportable_widening_operation): Likewise.
7102 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
7103 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7104 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7105 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
7106 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
7107 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
7108 Likewise.
7109 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
7110 New.
7111 * config/arm/iterators.md (V_innermode): New.
7112 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
7113 for widening shift.
7114
7115 2011-10-18 Richard Guenther <rguenther@suse.de>
7116
7117 * tree-ssa-alias.h (struct pt_solution): Remove
7118 vars_contains_restrict member.
7119 (pt_solutions_same_restrict_base): Remove.
7120 (pt_solution_set): Adjust.
7121 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
7122 vars_contains_restrict handling.
7123 (dump_points_to_solution): Likewise.
7124 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
7125 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
7126 field.
7127 (new_var_info): Do not initialize it.
7128 (ipa_escaped_pt): Adjust.
7129 (make_constraint_from_restrict): Make the tag global.
7130 (make_constraint_from_global_restrict): New function.
7131 (make_constraint_from_heapvar): Remove.
7132 (create_variable_info_for): Do not make restrict vars point
7133 to NONLOCAL.
7134 (intra_create_variable_infos): Likewise.
7135 (find_what_var_points_to): Remove vars_contains_restrict handling.
7136 (pt_solution_set): Adjust.
7137 (pt_solution_ior_into): Likewise.
7138 (pt_solutions_same_restrict_base): Remove.
7139 (compute_points_to_sets): Do not test is_restrict_var.
7140 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
7141 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7142
7143 2011-10-18 Tom de Vries <tom@codesourcery.com>
7144
7145 PR tree-optimization/50672
7146 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
7147 factored out of ...
7148 (mark_virtual_phi_result_for_renaming): Use
7149 mark_virtual_operand_for_renaming.
7150 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
7151 * tree-ssa-tail-merge.c (release_last_vdef): New function.
7152 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
7153 deleted basic block.
7154 (tail_merge_optimize): Add argument to call to purge_bbs.
7155
7156 2011-10-18 Richard Guenther <rguenther@suse.de>
7157
7158 PR middle-end/50716
7159 * expr.c (get_object_or_type_alignment): New function.
7160 (expand_assignment): Use it.
7161 (expand_expr_real_1): Likewise.
7162
7163 2011-10-18 Dodji Seketeli <dodji@redhat.com>
7164
7165 PR bootstrap/50760
7166 * input.c (dump_line_table_statistics): Use long, not size_t.
7167
7168 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
7169
7170 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
7171
7172 2011-10-17 Simon Baldwin <simonb@google.com>
7173 Ian Lance Taylor <iant@google.com>
7174
7175 * configure.ac: Add --with-native-system-header-dir. Set and
7176 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
7177 when setting target_header_dir.
7178 * config.gcc: Always set native_system_header_dir.
7179 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
7180 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
7181 use i386/t-djgpp.
7182 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
7183 native_system_header_dir.
7184 (spu-*-elf*): Set native_system_header_dir.
7185 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
7186 @NATIVE_SYSTEM_HEADER_DIR@.
7187 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
7188 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
7189 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
7190 STANDARD_INCLUDE_COMPONENT.
7191 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
7192 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
7193 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
7194 STANDARD_INCLUDE_COMPONENT.
7195 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
7196 * config/i386/t-mingw-w32: Likewise.
7197 * config/i386/t-mingw-w64: Likewise.
7198 * config/spu/t-spu-elf: Likewise.
7199 * config/i386/t-djgpp: Remove.
7200 * config/t-gnu: Remove.
7201 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
7202 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
7203 STANDARD_INCLUDE_COMPONENT.
7204 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
7205 * config/spu/spu-elf.h: Likewise.
7206 * config/vms/xm-vms.h: Likewise.
7207 * config/gnu.h: Likewise.
7208 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
7209 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
7210 NATIVE_SYSTME_HEADER_COMPONENT.
7211 * doc/install.texi (Configuration): Document
7212 --with-native-system-header-dir. Mention it in the documentation
7213 for --with-sysroot and --with-build-sysroot.
7214 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
7215 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
7216 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
7217 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
7218 * doc/fragments.texi (Target Fragment): Don't document
7219 NATIVE_SYSTEM_HEADER_DIR.
7220 * configure, doc/tm.texi: Rebuild.
7221
7222 2011-10-17 Richard Henderson <rth@redhat.com>
7223
7224 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
7225 is the constraint.
7226
7227 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
7228 patterns.
7229 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
7230 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
7231
7232 2011-10-17 David S. Miller <davem@davemloft.net>
7233
7234 * config/sparc/sparc-modes.def: Add single entry vector modes for
7235 DImode and SImode.
7236 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
7237 mode iterators.
7238 (mov<V32:mode>): Revert back to plain SFmode pattern.
7239 (*movsf_insn): Likewise.
7240 (mov<V64:mode>): Revert back to plain DFmode pattern.
7241 (*movdf_insn_sp32): Likewise.
7242 (*movdf_insn_sp32_v9): Likewise.
7243 (*movdf_insn_sp64): Likewise.
7244 (V64 mode splitters) Likewise.
7245 (addsi3): Remove VIS alternatives.
7246 (subsi3): Likewise.
7247 (and<V64I:mode>3): Revert to DImode only pattern.
7248 (and<V64I:mode>3_sp32): Likewise.
7249 (*and<V64I:mode>3_sp64): Likewise.
7250 (and<V32I:mode>3): Likewise.
7251 (*and_not_<V64I:mode>_sp32): Likewise.
7252 (*and_not_<V64I:mode>_sp64): Likewise.
7253 (*and_not_<V32I:mode>): Likewise.
7254 (ior<V64I:mode>3): Likewise.
7255 (*ior<V64I:mode>3_sp32): Likewise.
7256 (*ior<V64I:mode>3_sp64): Likewise.
7257 (ior<V32I:mode>3): Likewise.
7258 (*or_not_<V64I:mode>_sp32): Likewise.
7259 (*or_not_<V64I:mode>_sp64): Likewise.
7260 (*or_not_<V32I:mode>): Likewise.
7261 (xor<V64I:mode>3): Likewise.
7262 (*xor<V64I:mode>3_sp32): Likewise.
7263 (*xor<V64I:mode>3_sp64): Likewise.
7264 (xor<V32I:mode>3): Likewise.
7265 (V64I mode splitters): Likewise.
7266 (*xor_not_<V64I:mode>_sp32): Likewise.
7267 (*xor_not_<V64I:mode>_sp64): Likewise.
7268 (*xor_not_<V32I:mode>): Likewise.
7269 (one_cmpl<V64I:mode>2): Likewise.
7270 (*one_cmpl<V64I:mode>2_sp32): Likewise.
7271 (*one_cmpl<V64I:mode>2_sp64): Likewise.
7272 (one_cmpl<V32I:mode>2): Likewise.
7273 (VM32, VM64, VMALL): New mode iterators.
7274 (vbits, vconstr, vfptype): New mode attributes.
7275 (mov<VMALL:mode>): New expander.
7276 (*mov<VM32:mode>_insn): New insn.
7277 (*mov<VM64:mode>_insn_sp64): New insn.
7278 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
7279 specifically for the register to memory case.
7280 (vec_init<mode>): New expander.
7281 (VADDSUB): New mode iterator.
7282 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
7283 with...
7284 (<plusminus_insn><mode>3): New consolidated pattern.
7285 (VL): New mode iterator for logical operations.
7286 (vlsuf): New more attribute.
7287 (vlop): New code iterator.
7288 (vlinsn, vlninsn): New code attributes.
7289 (<code><mode>3): New insn to non-negated vector logical ops.
7290 (*not_<code><mode>3): Likewise for negated variants.
7291 (*nand<mode>_vis): New insn.
7292 (vlnotop): New code iterator.
7293 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
7294 (one_cmpl<mode>2): New insn.
7295 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
7296 (bshuffle<VM64:mode>_vis): Likewise.
7297 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
7298 (fp<plusminus_insn>64_vis): Use V1DI mode.
7299 (VASS mode iterator): Use V1SI not SI mode.
7300 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
7301 single-entry vector mode changes.
7302 (sparc_expand_builtin): Likewise.
7303 (sparc_expand_vector_init): New function.
7304 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
7305
7306 2011-10-17 Kai Tietz <ktietz@redhat.com>
7307
7308 * fold-const.c (simple_operand_p_2): New function.
7309 (fold_truthop): Rename to
7310 (fold_truth_andor_1): function name.
7311 Additionally remove branching creation for logical and/or.
7312 (fold_truth_andor): Handle branching creation for logical and/or here.
7313
7314 2011-10-17 Andi Kleen <ak@linux.intel.com>
7315
7316 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
7317
7318 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
7319
7320 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
7321 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
7322 (adjust_len): Add alternative "call".
7323 (isa, enabled): New insn attributes.
7324 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
7325 mcu_mega attribute.
7326 (*sbrx_branch<mode>): Ditto.
7327 (*sbrx_and_branch<mode>): Ditto.
7328 (*sbix_branch): Ditto.
7329 (*sbix_branch_bit7): Ditto.
7330 (*sbix_branch_tmp): Ditto.
7331 (*sbix_branch_tmp_bit7): Ditto.
7332 (jump): Ditto.
7333 (negsi2): Use attribute "isa" instead of assembler dialect.
7334 (extendhisi2): Ditto.
7335 (call_insn, call_value_insn): Set adjust_len attribute.
7336 (indirect_jump): Indent to coding rules.
7337 (call_prologue_saves): Use isa attribute instead of mcu_mega.
7338 (epilogue_restores): Ditto. Fix setting of SP as described in the
7339 RTX pattern.
7340 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
7341 and *indirect_jump_avr6.
7342 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
7343 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
7344 (*tablejump_rjmp, *tablejump_lib): Remove.
7345 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
7346
7347 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7348
7349 PR c++/50757
7350 * doc/invoke.texi ([Wnonnull]): Update.
7351
7352 2011-10-17 Richard Henderson <rth@redhat.com>
7353
7354 PR 50746
7355 * optabs.c (expand_vec_perm_expr): Fix indexing error.
7356
7357 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
7358
7359 * configure.ac: Display `yes' if the SystemTap header has been found.
7360 * configure: Regenerate.
7361
7362 2011-10-08 Andi Kleen <ak@linux.intel.com>
7363
7364 PR other/50636
7365 * config.in, configure: Regenerate.
7366 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
7367 * ggc-page.c (USING_MADVISE): Add.
7368 (page_entry): Add discarded field.
7369 (alloc_page): Check for discarded pages.
7370 (release_pages): Add USING_MADVISE branch.
7371
7372 2011-10-17 Richard Guenther <rguenther@suse.de>
7373
7374 PR tree-optimization/50729
7375 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
7376 (simplify_conversion_using_ranges): Properly test the
7377 intermediate result.
7378
7379 2011-10-15 Tom Tromey <tromey@redhat.com>
7380 Dodji Seketeli <dodji@redhat.com>
7381
7382 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
7383 * ggc-none.c (ggc_round_alloc_size): New public stub function.
7384 * ggc-page.c (ggc_alloced_size_order_for_request): New static
7385 function. Factorized from ggc_internal_alloc_stat.
7386 (ggc_round_alloc_size): New public function. Uses
7387 ggc_alloced_size_order_for_request.
7388 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
7389 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
7390 from ggc_internal_alloc_zone_stat.
7391 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
7392 * toplev.c (general_init): Initialize
7393 line_table->alloced_size_for_request.
7394
7395 2011-10-15 Tom Tromey <tromey@redhat.com>
7396 Dodji Seketeli <dodji@redhat.com>
7397
7398 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
7399 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
7400 new counters.
7401 (dump_line_table_statistics): Define new function.
7402 * input.h (dump_line_table_statistics): Declare new function.
7403 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
7404
7405 2011-10-15 Tom Tromey <tromey@redhat.com>
7406 Dodji Seketeli <dodji@redhat.com>
7407
7408 * doc/cppopts.texi: Document -fdebug-cpp.
7409 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
7410
7411 2011-10-15 Tom Tromey <tromey@redhat.com>
7412 Dodji Seketeli <dodji@redhat.com>
7413
7414 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
7415 location parameter.
7416 * diagnostic.c (diagnostic_report_current_module): Add a location
7417 parameter to the function definition. Use it instead of
7418 input_location. Resolve the virtual location rather than just
7419 looking up its map and risking to touch a resulting macro map.
7420 (default_diagnostic_starter): Pass the relevant diagnostic
7421 location to diagnostic_report_current_module.
7422 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
7423 (virt_loc_aware_diagnostic_finalizer): Likewise.
7424 (diagnostic_report_current_function): Pass the
7425 relevant location to diagnostic_report_current_module.
7426 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
7427 new function.
7428 * toplev.c (general_init): By default, use the new
7429 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
7430 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
7431
7432 2011-10-15 Tom Tromey <tromey@redhat.com>
7433 Dodji Seketeli <dodji@redhat.com>
7434
7435 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
7436 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
7437 preprocessor related options.
7438
7439 2011-10-15 Tom Tromey <tromey@redhat>
7440 Dodji Seketeli <dodji@redhat.com>
7441
7442 * input.h (struct expanded_location): Move to libcpp/line-map.h.
7443 (LOCATION_COLUMN): New accessor
7444 (in_system_header_at): Use linemap_location_in_system_header_p.
7445 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
7446 touching the internals of struct line_map. Use the public API instead.
7447 (diagnostic_report_diagnostic): Don't use relational operator '<'
7448 on virtual locations. Use linemap_location_before_p instead.
7449 * input.c (expand_location): Adjust to expand to the tokens'
7450 spelling location when macro location tracking is on.
7451
7452
7453 2011-10-08 Andi Kleen <ak@linux.intel.com>
7454
7455 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
7456
7457 2011-10-13 Andi Kleen <ak@linux.intel.com>
7458
7459 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
7460
7461 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
7462
7463 PR tree-optimization/50727
7464 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
7465 DEF_STMT to the list of statements to be replaced by the
7466 pattern statements.
7467
7468 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
7469
7470 PR rtl-optimization/50615
7471 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
7472
7473 2011-10-16 Jakub Jelinek <jakub@redhat.com>
7474
7475 PR tree-optimization/50596
7476 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
7477 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
7478 vect_recog_bool_pattern.
7479 (check_bool_pattern, adjust_bool_pattern_cast,
7480 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
7481
7482 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
7483
7484 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
7485 treat the first load of the node as the first element in its
7486 interleaving chain.
7487 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
7488 necessary and possible.
7489 (vect_build_slp_tree): Add new argument. Allow load groups of any size
7490 in basic blocks. Keep all the loads for further permutation check.
7491 Use the new argument to determine if there is a permutation. Update
7492 the recursive calls.
7493 (vect_supported_load_permutation_p): Allow subchains of interleaving
7494 chains in basic block vectorization.
7495 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
7496 Check load permutation based on the new parameter.
7497 (vect_schedule_slp_instance): Don't start from the first element in
7498 interleaving chain unless the loads are permuted.
7499
7500 2011-10-15 Jan Hubicka <jh@suse.cz>
7501
7502 PR target/48668
7503 PR target/50689
7504 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
7505 after function body.
7506
7507 2011-10-15 Richard Henderson <rth@redhat.com>
7508
7509 * tree-vect-slp.c: Include langhooks.h.
7510 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
7511 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
7512 mask creation for VEC_PERM_EXPR.
7513 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
7514 not the builtin.
7515 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
7516 * Makefile.in (tree-vect-slp.o): Update dependency.
7517 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
7518
7519 2011-10-15 Alan Modra <amodra@gmail.com>
7520
7521 PR bootstrap/50738
7522 * ifcvt.c (dead_or_predicable): Revert accidental commit with
7523 HAVE_simple_return test.
7524
7525 2011-10-15 Alan Modra <amodra@gmail.com>
7526
7527 * ifcvt.c (dead_or_predicable): Disable if-conversion when
7528 doing so is likely to kill a shrink-wrapping opportunity.
7529
7530 PR rtl-optimization/49941
7531 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
7532
7533 * rtl.h (set_return_jump_label): Declare.
7534 * function.c (set_return_jump_label): New function, extracted..
7535 (thread_prologue_and_epilogue_insns): ..from here. Use it in
7536 another instance to set return jump_label.
7537 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
7538 * reorg.c (find_end_label): Likewise.
7539
7540 2011-10-14 David S. Miller <davem@davemloft.net>
7541
7542 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
7543 with a more complete cpp test.
7544 * config/sparc/linux64.h: Likewise.
7545 * config/sparc/linux.h: Likewise.
7546 * config/sparc/sparc.opt (sparc_debug): New target variable.
7547 (mdebug): New target option.
7548 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
7549 TARGET_DEBUG_OPTIONS): New defines.
7550 * config/sparc/sparc.c (debug_target_flag_bits,
7551 debug_target_flags): New functions.
7552 (sparc_option_override): Add name strings back to cpu_table[].
7553 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
7554 out the target flags before and after override processing as well
7555 as the selected cpu. If MASK_V8PLUS, make sure that the selected
7556 cpu is at least v9.
7557
7558 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
7559
7560 PR target/49263
7561 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
7562 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
7563 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
7564 and instruction commutative.
7565 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
7566 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
7567 tstsi_t_zero_extract_subreg_xor_little,
7568 tstsi_t_zero_extract_subreg_xor_big): New insns.
7569 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
7570 asm output.
7571 (*andsi_compact): Reorder alternatives so that K08 is considered first.
7572
7573 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
7574
7575 PR target/50354
7576 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
7577 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
7578
7579 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
7580
7581 * invoke.texi (AVR Options): Avoid \leq{}.
7582
7583 2011-10-14 Kai Tietz <ktietz@redhat.com>
7584
7585 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
7586 transformation the operands have compatible types.
7587
7588 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7589
7590 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
7591 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
7592 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
7593 mode iterator and any_extend code iterator.
7594 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
7595 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
7596 also for TARGET_SSE4_1 using pmuldq insn.
7597 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
7598 (sse2_sse4_1): New code attr.
7599 (udot_prodv4si): Macroize using any_extend code iterator.
7600 (<s>dot_prodv8si): New expander.
7601
7602 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
7603
7604 * config/i386/i386.c (atom_cost): Changed cost for loading
7605 QImode using movzbl.
7606
7607 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7608
7609 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
7610 change on October 11th, 2011.
7611
7612 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7613
7614 * config/i386/sse.md (vec_interleave_high<mode>,
7615 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
7616 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
7617 (ix86_expand_vec_perm_builtin_1): Call it.
7618
7619 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
7620
7621 Fix thinko from r179765
7622 * config/avr/avr.c (avr_option_override): Don't override
7623 flag_omit_frame_pointer if not actually needed.
7624
7625 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
7626
7627 PR target/46278
7628 * doc/invoke.texi (AVR Options): Document -mstrict-X.
7629
7630 * config/avr/avr.opt (-mstrict-X): New option.
7631 (avr_strict_X): New variable reflecting -mstrict-X.
7632 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
7633 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
7634 (avr_legitimate_address_p): Pass outer_code to
7635 avr_reg_ok_for_addr_p and use that function in case PLUS.
7636 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
7637 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
7638 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
7639
7640 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7641
7642 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
7643 of VI_128.
7644
7645 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
7646 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
7647 Use <sseinsnmode> instead of TI in mode attr.
7648
7649 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7650
7651 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
7652 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
7653 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
7654 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
7655
7656 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7657
7658 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
7659 (arm_output_strex): Support strexd.
7660 (arm_output_it): New helper to output it in Thumb2 mode only.
7661 (arm_output_sync_loop): Support DI mode. Change comment to
7662 not support const_int.
7663 (arm_expand_sync): Support DI mode.
7664 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
7665 and LDREXD.
7666 * config/arm/iterators.md (NARROW): move from sync.md.
7667 (QHSD): New iterator for all current ARM integer modes.
7668 (SIDI): New iterator for SI and DI modes only.
7669 * config/arm/sync.md (sync_predtab): New mode_attr.
7670 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
7671 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
7672 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
7673 (sync_nandsi): Fold into sync_nand<mode>.
7674 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
7675 (sync_new_nandsi): Fold into sync_new_nand<mode>.
7676 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
7677 (sync_old_nandsi): Fold into sync_old_nand<mode>.
7678 (sync_compare_and_swap<mode>): Support SI & DI.
7679 (sync_lock_test_and_set<mode>): Likewise.
7680 (sync_<sync_optab><mode>): Likewise.
7681 (sync_nand<mode>): Likewise.
7682 (sync_new_<sync_optab><mode>): Likewise.
7683 (sync_new_nand<mode>): Likewise.
7684 (sync_old_<sync_optab><mode>): Likewise.
7685 (sync_old_nand<mode>): Likewise.
7686 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
7687 (arm_sync_lock_test_and_setsi): Likewise.
7688 (arm_sync_new_<sync_optab>si): Likewise.
7689 (arm_sync_new_nandsi): Likewise.
7690 (arm_sync_old_<sync_optab>si): Likewise.
7691 (arm_sync_old_nandsi): Likewise.
7692 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
7693 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
7694 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
7695 (arm_sync_new_nand<mode> NARROW): Likewise.
7696 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
7697 (arm_sync_old_nand<mode> NARROW): Likewise.
7698
7699 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7700
7701 PR target/48126
7702 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
7703
7704 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
7705
7706 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
7707
7708 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7709
7710 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
7711
7712 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7713
7714 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
7715 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
7716
7717 2011-10-14 Richard Guenther <rguenther@suse.de>
7718
7719 PR tree-optimization/50723
7720 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
7721
7722 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
7723
7724 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
7725 objc/objc-map.c.
7726
7727 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7728
7729 PR c++/17212
7730 * doc/invoke.texi ([Wformat-zero-length]): Update.
7731
7732 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
7733
7734 PR bootstrap/50699
7735 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
7736 build for powerpc targets. (darwin_patch_builtins): Only build for
7737 powerpc targets.
7738
7739 2011-10-14 Jakub Jelinek <jakub@redhat.com>
7740
7741 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
7742 (avx_cvtdq2pd256_2): ... this.
7743 (sseunpackfltmode): New mode attr.
7744 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
7745 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
7746 using VI2_AVX2 iterator.
7747 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
7748
7749 2011-10-13 David S. Miller <davem@davemloft.net>
7750
7751 * config/sparc/sparc.md (plusminus): New code iterator.
7752 (plusminus_insn): New code attr.
7753 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
7754 using plusminus and plusminus_insn.
7755 (fpadd64_vis, fpsub64_vis): Likewise.
7756
7757 2011-10-13 Richard Henderson <rth@redhat.com>
7758
7759 * doc/md.texi (vec_perm): Document fallback to byte permutation.
7760 * genopinit.c (optabs): Add vec_perm_const.
7761 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
7762 Reject non-vector modes. Allow fallback to byte permutation.
7763 (expand_vec_perm_expr_1): Split out from ...
7764 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
7765 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
7766 * tree-vect-generic.c (lower_vec_perm): Update for name change.
7767
7768 2011-10-13 Richard Henderson <rth@redhat.com>
7769
7770 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
7771
7772 * config/rs6000/spu.md (vec_permv16qi): New pattern.
7773
7774 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
7775 * config/i386/i386-protos.h: Update.
7776 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
7777 (vec_perm_const<VEC_PERM_CONST>): New expander.
7778
7779 * optabs.c (expand_vector_broadcast): New.
7780 (expand_binop): Expand scalar shifts of vectors to vector shifts
7781 of vectors, if the former isn't supported.
7782 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
7783 here; always simplify to scalar shift of vector if possible.
7784
7785 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
7786 test for vector splat.
7787
7788 2011-10-13 Jakub Jelinek <jakub@redhat.com>
7789
7790 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
7791
7792 2011-10-13 Jakub Jelinek <jakub@redhat.com>
7793 Richard Guenther <rguenther@suse.de>
7794
7795 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
7796 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
7797
7798 2011-10-13 Jakub Jelinek <jakub@redhat.com>
7799
7800 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
7801 * config/i386/i386.c (ix86_build_const_vector): Handle
7802 also V32QI, V16QI, V16HI and V8HI modes.
7803 (emit_reduc_half): New function.
7804 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
7805 Use emit_reduc_half helper function.
7806
7807 2011-10-13 Lawrence Crowl <crowl@google.com>
7808 Diego Novillo <dnovillo@google.com>
7809
7810 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
7811 (input_function): ... here.
7812 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
7813 (output_function): ... here.
7814
7815 2011-10-13 Gabriel Charette <gchare@google.com>
7816 Diego Novillo <dnovillo@google.com>
7817
7818 * streamer-hooks.h (struct streamer_hooks): Add hooks
7819 input_location and output_location.
7820 * lto-streamer-in.c (lto_input_location): Use
7821 streamer_hooks.input_location, if set.
7822 * lto-streamer-out.c (lto_output_location): Use
7823 streamer_hooks.output_location, if set.
7824
7825 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
7826
7827 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
7828 * config/sparc/sparc.opt (mfix-at697f): New option.
7829 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7830 (sparc_reorg): New function.
7831
7832 2011-10-13 Richard Guenther <rguenther@suse.de>
7833
7834 PR tree-optimization/50712
7835 * ipa-split.c (split_function): Always re-gimplify parameters
7836 when they are not gimple vals before passing them. Properly
7837 check for type compatibility.
7838
7839 2011-10-13 Tom de Vries <tom@codesourcery.com>
7840
7841 * function.c (gimplify_parameters): Set number of arguments of call to
7842 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
7843
7844 2011-10-13 Tom de Vries <tom@codesourcery.com>
7845
7846 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
7847 for static const strings.
7848 * varasm.c (build_constant_desc): Generate the memory location of the
7849 constant using gen_const_mem.
7850
7851 2011-10-13 Richard Guenther <rguenther@suse.de>
7852
7853 PR tree-optimization/50698
7854 * tree-data-ref.c (split_constant_offset_1): Also process
7855 offsets of &MEM.
7856
7857 2011-10-12 David S. Miller <davem@davemloft.net>
7858
7859 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
7860 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
7861 unspecs.
7862 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
7863 of a vec_concat.
7864 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
7865 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
7866 Reimplement as unspecs and remove inaccurate comments.
7867 (vis3_shift_patname): New code attr.
7868 (<vis3_shift_insn><vbits>_vis): Rename to
7869 "v<vis3_shift_patname><mode>3".
7870 (vis3_addsub_ss_patname): New code attr.
7871 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
7872 "<vis3_addsub_ss_patname><mode>3".
7873 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
7874 accommodate pattern name changes.
7875
7876 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
7877 to zero when assembler lacks support for such instructions.
7878 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
7879 and MASK_FMAF in defaults when assembler lacks necessary support.
7880
7881 2011-10-12 Jakub Jelinek <jakub@redhat.com>
7882
7883 * config/i386/sse.md (vec_unpacks_lo_<mode>,
7884 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
7885 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
7886 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
7887 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
7888
7889 * config/i386/sse.md (vec_avx2): New mode_attr.
7890 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
7891 (mul<mode>3): ... this.
7892
7893 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
7894 * config/i386/i386.c (ix86_expand_vec_perm): Handle
7895 V16QImode and V32QImode for TARGET_AVX2.
7896 (MAX_VECT_LEN): Increase to 32.
7897 (expand_vec_perm_blend): Add support for 32-byte integer
7898 vectors with TARGET_AVX2.
7899 (valid_perm_using_mode_p): New function.
7900 (expand_vec_perm_pshufb): Add support for 32-byte integer
7901 vectors with TARGET_AVX2.
7902 (expand_vec_perm_vpshufb2_vpermq): New function.
7903 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
7904 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
7905 with TARGET_AVX2.
7906 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
7907 and expand_vec_perm_vpshufb2_vpermq_even_odd.
7908 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
7909 32-byte integer vector modes.
7910 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
7911 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
7912 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
7913 4 new operands.
7914 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
7915 match_dup, instead add 4 new operands and require they have
7916 right cross-lane values.
7917 (avx2_permv4di): Change into define_expand.
7918 (avx2_permv4di_1): New instruction.
7919 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
7920 for "xm" constrained operand.
7921 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
7922
7923 * config/i386/sse.md (avx2_gathersi<mode>,
7924 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
7925 match_scratch, change memory_operand to register_operand,
7926 add (mem:BLK (scratch)) use.
7927 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
7928 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
7929 add earlyclobber to the output operand and match_scratch,
7930 add (mem:BLK (scratch)) use, change the other mem to match_operand.
7931 Use %p6 instead of %c6 in the pattern.
7932 * config/i386/i386.c (ix86_expand_builtin): Adjust for
7933 operand 2 being a Pmode register_operand instead of memory_operand.
7934
7935 2011-10-12 Kai Tietz <ktietz@redhat.com>
7936
7937 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
7938
7939 2011-10-12 Steve Ellcey <sje@cup.hp.com>
7940
7941 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
7942
7943 2011-10-12 Richard Guenther <rguenther@suse.de>
7944
7945 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
7946 of the first store we visit in a basic-block.
7947 (get_continuation_for_phi): Search for a candidate VUSE that
7948 might dominates all others. Do pairwise disambiguation against
7949 that candidate.
7950
7951 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
7952
7953 PR tree-optimization/50189
7954 * tree-vrp.c (extract_range_from_assert): Use the type of
7955 the variable, not the limit.
7956
7957 2011-10-12 Richard Guenther <rguenther@suse.de>
7958
7959 PR tree-optimization/50700
7960 * tree-object-size.c (addr_object_size): Simplify and treat
7961 MEM_REF bases consistently.
7962
7963 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
7964
7965 * function.c (prepare_shrink_wrap, bb_active_p): New function.
7966 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
7967 prepare_shrink_wrap, then recompute bb_active_p for the last block.
7968
7969 2011-10-12 Joseph Myers <joseph@codesourcery.com>
7970
7971 PR c/50565
7972 * convert.c (convert_to_integer): Do not narrow operands of
7973 pointer subtraction.
7974
7975 2011-10-12 Nick Clifton <nickc@redhat.com>
7976
7977 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
7978 emit a .eabi_attribute assembler directive, possibly with a
7979 comment attached.
7980 * config/arm/arm.c (arm_file_start): Use the new macro.
7981 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
7982
7983 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
7984
7985 PR target/49939
7986 * config/avr/avr.md (*movqi): Rename to movqi_insn.
7987 (*call_insn): Rename to call_insn.
7988 (*call_value_insn): Rename to call_value_insn.
7989 * config/avr/avr.c (avr_2word_insn_p): New static function.
7990 (jump_over_one_insn_p): Use it.
7991
7992 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
7993
7994 * expr.h (copy_blkmode_to_reg): Declare.
7995 * expr.c (copy_blkmode_to_reg): New function.
7996 (expand_assignment): Don't expand register RESULT_DECLs before
7997 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
7998 RESULT_DECL register.
7999 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
8000 * stmt.c (expand_return): Move BLKmode-to-register code into
8001 copy_blkmode_to_reg.
8002
8003 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
8004
8005 PR target/49965
8006 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
8007 (mov<F:mode>cc): Likewise.
8008
8009 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8010
8011 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
8012
8013 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8014
8015 * tree.h (built_in_decls): Delete old interface with two parallel
8016 arrays to hold standard builtin declarations, and replace it with
8017 a function based interface that can support creating builtins on
8018 the fly in the future. Change all uses, and poison the old
8019 names. Make sure 0 is not a legitimate builtin index.
8020 (implicit_built_in_decls): Ditto.
8021 (built_in_info): Ditto.
8022 (BUILTIN_VALID_P): Ditto.
8023 (builtin_decl_explicit): Ditto.
8024 (builtin_decl_implicit): Ditto.
8025 (set_builtin_decl): Ditto.
8026 (set_builtin_decl_implicit_p): Ditto.
8027 (builtin_decl_explicit_p): Ditto.
8028 (builtin_decl_implicit_p): Ditto.
8029 * tree-complex.c (expand_complex_libcall): Ditto.
8030 * tree-loop-distribution.c (generate_memset_zero): Ditto.
8031 * tree-ssa-strlen.c (get_string_length): Ditto.
8032 (handle_builtin_strcpy): Ditto.
8033 (handle_builtin_strcat): Ditto.
8034 * tree.c (iterative_hash_expr): Ditto.
8035 (local_define_builtin): Ditto.
8036 (build_common_builtin_nodes): Ditto.
8037 * builtins.c (built_in_decls): Ditto.
8038 (implicit_built_in_decls): Ditto.
8039 (built_in_info): Ditto
8040 (expand_builtin_classify_type): Ditto.
8041 (mathfn_built_in_1): Ditto.
8042 (expand_builtin_cexpi): Ditto.
8043 (expand_builtin_mempcpy_args): Ditto.
8044 (expand_builtin_stpcpy): Ditto.
8045 (gimplify_va_arg_expr): Ditto.
8046 (expand_builtin_sync_operation): Ditto.
8047 (build_builtin_expect_predicate): Ditto.
8048 (fold_builtin_memory_op): Ditto.
8049 (fold_builtin_strcpy): Ditto.
8050 (fold_builtin_stpcpy): Ditto.
8051 (fold_builtin_strncpy): Ditto.
8052 (fold_builtin_interclass_mathfn): Ditto.
8053 (fold_builtin_classify): Ditto.
8054 (fold_builtin_2): Ditto.
8055 (fold_builtin_strstr): Ditto.
8056 (fold_builtin_strrchr): Ditto.
8057 (fold_builtin_strpbrk): Ditto.
8058 (fold_builtin_strcat): Ditto.
8059 (fold_builtin_strncat): Ditto.
8060 (fold_builtin_strcspn): Ditto.
8061 (fold_builtin_fputs): Ditto.
8062 (fold_builtin_sprintf): Ditto.
8063 (fold_builtin_snprintf): Ditto.
8064 (expand_builtin_memory_chk): Ditto.
8065 (fold_builtin_memory_chk): Ditto.
8066 (fold_builtin_stxcpy_chk): Ditto.
8067 (fold_builtin_strncpy_chk): Ditto.
8068 (fold_builtin_strcat_chk): Ditto.
8069 (fold_builtin_strncat_chk): Ditto.
8070 (fold_builtin_sprintf_chk_1): Ditto.
8071 (fold_builtin_snprintf_chk_1): Ditto.
8072 (fold_builtin_printf): Ditto.
8073 (fold_builtin_fprintf): Ditto.
8074 (fold_call_stmt): Ditto.
8075 (set_builtin_user_assembler_name): Ditto.
8076 * tree-emutls.c (emutls_common_1): Ditto.
8077 * omp-low.c (scan_omp): Ditto.
8078 (lower_rec_input_clauses): Ditto.
8079 (lower_reduction_clauses): Ditto.
8080 (expand_parallel_call): Ditto.
8081 (expand_task_call): Ditto.
8082 (maybe_catch_exception): Ditto.
8083 (optimize_omp_library_calls): Ditto.
8084 (expand_omp_for_generic): Ditto.
8085 (expand_omp_for_static_nochunk): Ditto.
8086 (expand_omp_for_static_chunk): Ditto.
8087 (expand_omp_sections): Ditto.
8088 (expand_omp_atomic_fetch_op): Ditto.
8089 (expand_omp_atomic_pipeline): Ditto.
8090 (expand_omp_atomic_mutex): Ditto.
8091 (lower_omp_single_simple): Ditto.
8092 (lower_omp_single_copy): Ditto.
8093 (lower_omp_master): Ditto.
8094 (lower_omp_ordered): Ditto.
8095 (lower_omp_critical): Ditto.
8096 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
8097 * builtins.c (DEF_BUILTIN_STUB): Ditto.
8098 (BUILT_IN_NONE): Ditto.
8099 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
8100 * gimple-low.c (lower_function_body): Ditto.
8101 (lower_builtin_setjmp): Ditto.
8102 * c-decl.c (merge_decls): Ditto.
8103 * tree-eh.c (lower_resx): Ditto.
8104 (lower_resx): Ditto.
8105 (lower_eh_dispatch): Ditto.
8106 * function (gimplify_parameters): Ditto.
8107 * c-typeck.c (build_function_call_vec): Ditto.
8108 * gimplify.c (build_stack_save_restore): Ditto.
8109 (gimplify_vla_decl): Ditto.
8110 (gimplify_modify_expr_to_memcpy): Ditto.
8111 (gimplify_modify_expr_to_memset): Ditto.
8112 (gimplify_variable_sized_compare): Ditto.
8113 (gimplify_function_tree): Ditto.
8114 * calls.c (emit_call_1): Ditto.
8115 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
8116 * tree-nested.c (convert_nl_goto_reference): Ditto.
8117 (convert_tramp_reference_op): Ditto.
8118 (finalize_nesting_tree_1): Ditto.
8119 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8120 (tree_ssa_prefetch_arrays): Ditto.
8121 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
8122 * system.h (built_in_decls): Ditto.
8123 (implicit_built_in_decls): Ditto.
8124 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8125 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
8126 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
8127 (ix86_veclibabi_svml): Ditto.
8128 (ix86_veclibabi_acml): Ditto.
8129 * config/vms/vms.c (vms_patch_builtins): Ditto.
8130 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
8131 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
8132 (rs6000_builtin_vectorized_libmass): Ditto.
8133 (rs6000_init_builtins): Ditto.
8134 * config/darwin.c (darwin_override_options): Ditto.
8135 (darwin_patch_builtin): Ditto.
8136 (darwin_rename_builtins): Ditto.
8137 * config/pa/pa.c (pa_init_builtins): Ditto.
8138
8139 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8140
8141 * tree.h (copy_ref_info): Expose existing function.
8142 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
8143 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
8144
8145 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
8146
8147 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
8148 prototype.
8149 (avr_regno_mode_code_ok_for_base_p): New prototype.
8150 * config/avr/avr.h (BASE_REG_CLASS): Remove.
8151 (REGNO_OK_FOR_BASE_P): Remove.
8152 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
8153 (REG_OK_FOR_BASE_STRICT_P): Remove.
8154 (MODE_CODE_BASE_REG_CLASS): New define.
8155 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
8156 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
8157 (avr_regno_mode_code_ok_for_base_p): New function.
8158 (avr_reg_ok_for_addr_p): New static function.
8159 (avr_legitimate_address_p): Use it. Beautify.
8160
8161 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
8162
8163 PR target/50447
8164 * config/avr/avr.md (cc): Add out_plus attribute alternative.
8165 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
8166 avr_out_plus for all CONST_INT addends.
8167 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
8168 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
8169 CC_OUT_PLUS.
8170 (avr_out_plus_1): Change prototype and report effect on cc0.
8171 (avr_out_plus): Ditto.
8172 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
8173
8174 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
8175
8176 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
8177 the extra break.
8178
8179 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
8180
8181 * doc/invoke.texi: Document new warning.
8182 * common.opt (Wvector-operation-performance): Define new warning.
8183 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
8184 vector operation.
8185 (exapnd_vector_parallel): Warn about expanded vector operation.
8186 (lower_vec_shuffle): Warn about expanded vector operation.
8187 * c-typeck.c (c_build_vec_perm_expr): Store correct location
8188 when creating VEC_PERM_EXPR.
8189
8190 2011-10-11 Richard Guenther <rguenther@suse.de>
8191
8192 PR tree-optimization/50204
8193 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
8194 two argument handling from ...
8195 (get_continuation_for_phi): ... here. Handle arbitrary number
8196 of PHI args.
8197
8198 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
8199
8200 * modulo-sched.c: Fix comment typo. Mention the possibility
8201 of using scheduling windows of II+1 cycles.
8202
8203 2011-10-11 Tristan Gingold <gingold@adacore.com>
8204
8205 * doc/invoke.texi (C Dialect Options): Document
8206 -fallow-parameterless-variadic-functions.
8207 * c-parser.c (c_parser_parms_list_declarator): Handle it.
8208
8209 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8210
8211 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
8212 to 0 if frame pointer is needed for unwinding.
8213
8214 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
8215
8216 PR bootstrap/50665
8217 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
8218 optab_index to enum direct_optab_index.
8219 (vec_perm_optab): Update.
8220
8221 2011-10-10 Anatoly Sokolov <aesok@post.ru>
8222
8223 * config/cris/cris.c (cris_preferred_reload_class): New function.
8224 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8225 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
8226
8227 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8228
8229 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
8230 !AVR_HAVE_JMP_CALL.
8231 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
8232 (*tablejump_enh, *tablejump): Remove insns.
8233 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
8234 EIJMP for indirect jump. Use LPM Z+ where available.
8235
8236 2011-10-10 Richard Henderson <rth@redhat.com>
8237
8238 * doc/md.texi (vec_perm_const): Fix typo in cindex.
8239
8240 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
8241 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
8242
8243 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
8244
8245 2011-10-10 Richard Guenther <rguenther@suse.de>
8246
8247 PR middle-end/50389
8248 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
8249 mark symbols for renaming. Append the VUSE to all statements
8250 that possibly can have one.
8251
8252 2011-10-10 Richard Guenther <rguenther@suse.de>
8253
8254 * ipa-split.c (pass_split_functions): Add verification TODOs.
8255 (pass_feedback_split_functions): Likewise.
8256
8257 2011-10-10 Richard Guenther <rguenther@suse.de>
8258
8259 PR middle-end/50195
8260 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
8261 only when optimizing.
8262
8263 2011-10-10 Nick Clifton <nickc@redhat.com>
8264
8265 PR middle-end/49801
8266 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
8267 df_get_live_out instead of accessing the bitmaps directly.
8268 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
8269 df_live_add_problem and df_analyze.
8270
8271 2011-10-10 Michael Matz <matz@suse.de>
8272
8273 PR middle-end/50638
8274 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
8275
8276 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8277
8278 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
8279 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
8280 (node_sched_params): Remove first_reg_move and nreg_moves.
8281 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
8282 (update_node_sched_params): Move up file.
8283 (print_node_sched_params): Print the stage. Don't dump info related
8284 to first_reg_move and nreg_moves.
8285 (set_columns_for_row): New function.
8286 (set_columns_for_ps): Move up file and use set_columns_for_row.
8287 (schedule_reg_move): New function.
8288 (schedule_reg_moves): Call extend_node_sched_params and
8289 schedule_reg_move. Extend size of uses bitmap. Initialize
8290 num_consecutive_stages. Return false if a move could not be
8291 scheduled.
8292 (apply_reg_moves): Don't emit moves here.
8293 (permute_partial_schedule): Handle register moves.
8294 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
8295 to the same stage-count test as ddg nodes.
8296 (generate_prolog_epilog): Update calls accordingly.
8297 (sms_schedule): Allow move-scheduling to add a new first stage.
8298
8299 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8300
8301 * modulo-sched.c (ps_insn): Adjust comment.
8302 (ps_reg_move_info): New structure.
8303 (partial_schedule): Add reg_moves field.
8304 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
8305 (node_sched_params): Turn first_reg_move into an identifier.
8306 (ps_reg_move): New function.
8307 (ps_rtl_insn): Cope with register moves.
8308 (ps_first_note): Adjust comment and assert that the instruction
8309 isn't a register move.
8310 (node_sched_params): Replace with...
8311 (node_sched_param_vec): ...this vector.
8312 (set_node_sched_params): Adjust accordingly.
8313 (print_node_sched_params): Take a partial schedule instead of a ddg.
8314 Use ps_rtl_insn and ps_reg_move.
8315 (generate_reg_moves): Rename to...
8316 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
8317 move in the partial schedule, but don't emit it here. Don't perform
8318 register substitutions here either.
8319 (apply_reg_moves): New function.
8320 (duplicate_insns_of_cycles): Use register indices directly,
8321 rather than finding instructions using PREV_INSN. Use ps_reg_move.
8322 (sms_schedule): Call schedule_reg_moves before committing to
8323 a partial schedule. Try the next ii if the schedule fails.
8324 Use apply_reg_moves instead of generate_reg_moves. Adjust
8325 call to print_node_sched_params. Free node_sched_param_vec
8326 instead of node_sched_params.
8327 (create_partial_schedule): Initialize reg_moves.
8328 (free_partial_schedule): Free reg_moves.
8329
8330 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8331
8332 * modulo-sched.c (ps_insn): Replace node field with an identifier.
8333 (SCHED_ASAP): Replace with..
8334 (NODE_ASAP): ...this macro.
8335 (SCHED_PARAMS): New macro.
8336 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
8337 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
8338 (node_sched_params): Remove asap.
8339 (ps_rtl_insn, ps_first_note): New functions.
8340 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
8341 asap values.
8342 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
8343 (generate_reg_moves): Pass ids to the SCHED_* macros.
8344 (update_node_sched_params): Take a ps insn identifier rather than
8345 a node as parameter. Use ps_rtl_insn.
8346 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
8347 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
8348 (optimize_sc): Update for above field and SCHED_* macro changes.
8349 Update calls to try_scheduling_node_in_cycle and
8350 update_node_sched_params.
8351 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
8352 macro changes. Use ps_rtl_insn and ps_first_note.
8353 (sms_schedule): Pass ids to the SCHED_* macros.
8354 (get_sched_window): Adjust for above field and SCHED_* macro changes.
8355 Use NODE_ASAP instead of SCHED_ASAP.
8356 (try_scheduling_node_in_cycle): Remove node parameter. Update
8357 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
8358 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
8359 (ps_insert_empty_row): Adjust for above field changes.
8360 (compute_split_row): Use ids rather than nodes.
8361 (verify_partial_schedule): Adjust for above field changes.
8362 (print_partial_schedule): Use ps_rtl_insn.
8363 (create_ps_insn): Take an id rather than a node.
8364 (ps_insn_find_column): Adjust for above field changes.
8365 Use ps_rtl_insn.
8366 (ps_insn_advance_column): Adjust for above field changes.
8367 (add_node_to_ps): Remove node parameter. Update call to
8368 create_ps_insn.
8369 (ps_has_conflicts): Use ps_rtl_insn.
8370 (ps_add_node_check_conflicts): Replace node parameter than an id.
8371
8372 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
8373
8374 * modulo-sched.c (undo_replace_buff_elem): Delete.
8375 (generate_reg_moves): Don't build and return an undo list.
8376 (free_undo_replace_buff): Delete.
8377 (sms_schedule): Adjust call to generate_reg_moves.
8378 Don't call free_undo_replace_buff.
8379
8380 2011-10-10 Matthias Klose <doko@ubuntu.com>
8381
8382 * common/config/m32c: Remove empty directory.
8383
8384 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8385
8386 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
8387
8388 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
8389
8390 PR target/50652
8391 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
8392 atmega164a to 0x100.
8393
8394 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
8395
8396 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
8397 the replacement if the conversion to the LHS type is not useless.
8398
8399 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
8400
8401 PR tree-optimization/50635
8402 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
8403 DEF_STMT to the list of statements to be replaced by the
8404 pattern statements.
8405 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
8406
8407 2011-10-09 Anatoly Sokolov <aesok@post.ru>
8408
8409 * system.h: Commit forgotten hunk in previous patch.
8410 (OUTPUT_ADDR_CONST_EXTRA): Poison.
8411
8412 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
8413
8414 PR libobjc/50428
8415 * doc/objc.texi (Garbage Collection): Updated example to protect
8416 +initialize against execution in subclasses.
8417
8418 2011-10-07 Richard Henderson <rth@redhat.com>
8419
8420 * doc/extend.texi (__builtin_shuffle): Improve the description to
8421 include the modulus of the selector. Mention OpenCL.
8422 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
8423
8424 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
8425 * genopinit.c (optabs): Rename vshuffle to vec_perm.
8426 * c-typeck.c (c_build_vec_perm_expr): Rename from
8427 c_build_vec_shuffle_expr. Update for name changes.
8428 * optabs.c (expand_vec_perm_expr_p): Rename from
8429 expand_vec_shuffle_expr_p.
8430 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
8431 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
8432 (vec_perm_optab): Rename from vshuffle_optab.
8433 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
8434 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
8435 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
8436
8437 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
8438 ix86_expand_vshuffle.
8439 * config/i386/i386-protos.h: Update.
8440 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
8441 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
8442
8443 2011-10-07 Richard Henderson <rth@redhat.com>
8444
8445 * config/i386/predicates.md (avx2_pblendw_operand): New.
8446 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
8447 (avx2_pblendw, *avx2_pblendw): New expander and insn.
8448
8449 2011-10-07 Richard Henderson <rth@redhat.com>
8450
8451 * config/i386/i386.c (bdesc_args): Update code for
8452 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
8453 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
8454 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
8455 * config/i386/sse.md (mode iterator V16): Add V2TI.
8456 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
8457 (mode attr ssse3_avx2): Add V2TI.
8458 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
8459
8460 2011-10-07 David S. Miller <davem@davemloft.net>
8461
8462 PR 50655
8463 * configure.ac: Add .register directives to VIS3 test.
8464 * configure: Regenerate.
8465
8466 2011-10-07 Richard Henderson <rth@redhat.com>
8467
8468 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
8469
8470 2011-10-07 Richard Henderson <rth@redhat.com>
8471
8472 PR 49752
8473 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
8474
8475 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
8476
8477 * config/arm/predicates.md (shift_amount_operand): Remove constant
8478 range check.
8479 (shift_operator): Check range of constants for all shift operators.
8480
8481 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8482
8483 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
8484 Load GOT pointer for non-pic builds.
8485 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
8486 (s390_emit_call): Likewise.
8487
8488 2011-10-07 Tom de Vries <tom@codesourcery.com>
8489
8490 PR middle-end/50527
8491 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
8492 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
8493 throw.
8494 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
8495 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
8496 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8497 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8498 * tree-ssa-ccp.c (evaluate_stmt): Set align for
8499 BUILT_IN_ALLOCA_WITH_ALIGN.
8500 (fold_builtin_alloca_for_var): Rename to ...
8501 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
8502 BUILT_IN_ALLOCA_WITH_ALIGN argument.
8503 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
8504 fold_builtin_alloca_with_align.
8505 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8506 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
8507 DEF_BUILTIN_STUB.
8508 * ipa-pure-const.c (special_builtin_state): Handle
8509 BUILT_IN_ALLOCA_WITH_ALIGN.
8510 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
8511 (call_may_clobber_ref_p_1): Same.
8512 * function.c (gimplify_parameters): Lower vla to
8513 BUILT_IN_ALLOCA_WITH_ALIGN.
8514 * gimplify.c (gimplify_vla_decl): Same.
8515 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
8516 * tree-mudflap.c (mf_xform_statements): Same.
8517 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
8518 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
8519 * varasm.c (incorporeal_function_p): Same.
8520 * tree-object-size.c (alloc_object_size): Same.
8521 * gimple.c (gimple_build_call_from_tree): Same.
8522
8523 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
8524
8525 * function.c (frame_required_for_rtx): Remove function.
8526 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
8527 changed. Compute a set of mentioned registers and compare against
8528 the new arg rather than calling frame_required_for_rtx.
8529 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
8530 reg set. Convert the unconverted_simple_returns mechanism to store
8531 jump insns rather than their basic blocks. Also check the
8532 orig_entry_edge destination for new blocks.
8533
8534 2011-10-07 Jakub Jelinek <jakub@redhat.com>
8535
8536 PR tree-optimization/50650
8537 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
8538 call vect_is_simple_cond here, instead fail if cond_expr isn't
8539 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
8540 for cond_expr's first operand.
8541 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
8542 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
8543
8544 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8545
8546 * config/s390/s390.md (DWH, dwh): New mode macros.
8547 ("umulsidi3"): Extend to support "umulditi3" as well.
8548
8549 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
8550 H.J. Lu <hongjiu.lu@intel.com>
8551
8552 PR target/50603
8553 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
8554 integer PLUS RTX to a register to improve address combine.
8555
8556 2011-10-06 Richard Henderson <rth@redhat.com>
8557
8558 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
8559 parameter; use it to decide whether to merge two notes.
8560 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
8561 for the deallocation case as well.
8562
8563 2011-10-06 Anatoly Sokolov <aesok@post.ru>
8564
8565 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
8566 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
8567 * doc/tm.texi: Regenerate.
8568 * target.def (output_addr_const_extra): Use
8569 hook_bool_FILEptr_rtx_false.
8570 * targhooks.c (default_asm_output_addr_const_extra): Remove.
8571 * targhooks.h (default_asm_output_addr_const_extra): Remove.
8572 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
8573 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
8574
8575 2011-10-06 David S. Miller <davem@davemloft.net>
8576
8577 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
8578 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
8579 SI mode 64-bit code gen case explicitly zero-extend and truncate.
8580 (*popcount<mode>_sp64): Split up into...
8581 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
8582 SImode case use truncate.
8583 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
8584 subtract so the compiler can optimize it.
8585 (SIDI): Remove unused mode iterator.
8586
8587 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
8588
8589 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
8590 on the orig_entry_edge. Don't account for it in prologue_clobbered.
8591
8592 2011-10-06 Jakub Jelinek <jakub@redhat.com>
8593
8594 PR tree-optimization/50596
8595 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
8596 (NUM_PATTERNS): Change to 6.
8597 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
8598 function.
8599 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
8600 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
8601 if it already has one, and don't set STMT_VINFO_VECTYPE in it
8602 if it is already set.
8603 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
8604 COND_EXPR in pattern stmts.
8605 (vect_is_simple_cond): No longer static.
8606
8607 2001-10-06 Richard Henderson <rth@redhat.com>
8608
8609 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
8610 * config/i386/sse.md (sseshuffint): Remove.
8611 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
8612 (VSHUFFLE_AVX2): New mode iterator.
8613 (vshuffle<mode>): Use it.
8614 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
8615
8616 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
8617 for vector_all_ones_operand.
8618 (ix86_expand_int_vcond): Distinguish between comparison mode
8619 and data mode. Allow them to differ.
8620 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
8621
8622 2001-10-06 Richard Henderson <rth@redhat.com>
8623
8624 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
8625 mask operand. Tidy the code.
8626
8627 2011-10-06 Jakub Jelinek <jakub@redhat.com>
8628
8629 * tree-vect-patterns.c (vect_pattern_recog_1): Use
8630 vect_recog_func_ptr typedef for the first argument.
8631 (vect_pattern_recog): Rename vect_recog_func_ptr variable
8632 to vect_recog_func, use vect_recog_func_ptr typedef for it.
8633
8634 PR tree-optimization/49279
8635 * tree-ssa-structalias.c (find_func_aliases): Don't handle
8636 CAST_RESTRICT.
8637 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
8638 restrict propagation.
8639 * tree-ssa.c (useless_type_conversion_p): Don't return false
8640 if TYPE_RESTRICT differs.
8641
8642 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
8643
8644 * function.c (thread_prologue_and_epilogue_insns): Build a vector
8645 of unconverted simple return blocks rather than trying to
8646 recompute them later based on bb_flags bitmap tests.
8647
8648 2011-10-06 Michael Matz <matz@suse.de>
8649
8650 * tree-flow.h (get_var_ann): Don't declare.
8651 * tree-flow-inline.h (get_var_ann): Remove.
8652 (set_is_used): Use var_ann, not get_var_ann.
8653 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
8654 * tree-profile.c (gimple_gen_edge_profiler): Call
8655 find_referenced_var_in.
8656 (gimple_gen_interval_profiler): Ditto.
8657 (gimple_gen_pow2_profiler): Ditto.
8658 (gimple_gen_one_value_profiler): Ditto.
8659 (gimple_gen_average_profiler): Ditto.
8660 (gimple_gen_ior_profiler): Ditto.
8661 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
8662 (gimple_gen_ic_func_profiler): Call add_referenced_var.
8663 * tree-mudflap.c (execute_mudflap_function_ops): Call
8664 add_referenced_var.
8665
8666 2011-10-06 Jakub Jelinek <jakub@redhat.com>
8667
8668 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
8669 don't set SSA_NAME_DEF_STMT that has been already set by
8670 gimple_build_assign_with_ops.
8671 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
8672 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
8673 Likewise.
8674
8675 * tree.h (avoid_folding_inline_builtin): New prototype.
8676 * builtins.c (avoid_folding_inline_builtin): No longer static.
8677 * gimple-fold.c (gimple_fold_builtin): Give up if
8678 avoid_folding_inline_builtin returns true.
8679
8680 2011-10-06 Richard Guenther <rguenther@suse.de>
8681
8682 * tree-vect-generic.c (vector_element): Look at previous
8683 generated results.
8684
8685 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
8686
8687 PR target/39950
8688 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
8689 __powerpc__, __PPC__, __unix__.
8690
8691 2011-10-06 Michael Matz <matz@suse.de>
8692
8693 * i386/i386.opt (recip_mask, recip_mask_explicit,
8694 x_recip_mask_explicit): New variables and cl_target member.
8695 (mrecip=): New option.
8696 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
8697 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
8698 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
8699 TARGET_RECIP_VEC_SQRT): New tests.
8700 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
8701 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
8702 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
8703 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
8704 * i386/i386.c (ix86_option_override_internal): Set recip_mask
8705 for -mrecip and -mrecip=options.
8706 (ix86_function_specific_save): Save recip_mask_explicit.
8707 (ix86_function_specific_restore): Restore recip_mask_explicit.
8708
8709 * doc/invoke.texi (ix86 Options): Document the new option.
8710
8711 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
8712
8713 PR target/49049
8714 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
8715
8716 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
8717
8718 PR target/50305
8719 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
8720 output of a previous pass through legitimize_reload_address.
8721 Do not attempt to optimize addresses if the base register is
8722 equivalent to a constant.
8723
8724 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8725
8726 * function.c (thread_prologue_and_epilogue_insns): Mark
8727 last_bb_active as possibly unused. It is unused for targets which
8728 do neither have "return" nor "simple_return" expanders.
8729
8730 2011-10-06 Richard Guenther <rguenther@suse.de>
8731
8732 * fold-const.c (fold_ternary_loc): Also fold non-constant
8733 vector CONSTRUCTORs. Make more efficient.
8734 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
8735 (cprop_into_stmt): Don't propagate into virtual operands.
8736 (optimize_stmt): Really dump original statement.
8737
8738 2011-10-06 Nick Clifton <nickc@redhat.com>
8739
8740 * config/rx/rx.md (smin3): Revert previous delta.
8741
8742 2011-10-06 Richard Guenther <rguenther@suse.de>
8743
8744 PR tree-optimization/38884
8745 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
8746 reads from aggregate SSA names.
8747
8748 2011-10-05 Jakub Jelinek <jakub@redhat.com>
8749
8750 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
8751 argument, truncate it at the beginning instead of allocating there
8752 and freeing at the end.
8753 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
8754 pass its address to vect_pattern_recog_1.
8755
8756 2011-10-05 David S. Miller <davem@davemloft.net>
8757
8758 * config/sparc/sparc.opt (POPC): New option.
8759 * doc/invoke.texi: Document it.
8760 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
8761 default on Niagara-2 and later.
8762 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
8763 * config/sparc/sparc.md (SIDI): New mode iterator.
8764 (ffsdi2): Delete commented out pattern and comments.
8765 (popcount<mode>2, clz<mode>2): New expanders.
8766 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
8767 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
8768
8769 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
8770
8771 PR middle-end/50607
8772 * c-tree.h (c_expr_t): New typedef for struct c_expr.
8773 (C_EXPR_APPEND): New macro.
8774 * c-parser.c (c_parser_get_builtin_args): Preserve
8775 original_tree_code of c_expr structure.
8776 (c_parser_postfix_expression): Adjust to the new function.
8777
8778 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
8779
8780 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
8781 if profiling after the prologue.
8782
8783 2011-10-05 Jakub Jelinek <jakub@redhat.com>
8784
8785 PR tree-optimization/50613
8786 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
8787 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
8788 and if it is neither that not SSA_NAME, give up.
8789
8790 2011-10-05 Richard Henderson <rth@redhat.com>
8791
8792 * tree-vect-generic.c (vector_element): Never fail. Use
8793 build_zero_cst. Tidy up type references.
8794 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
8795 code duplication. Do update_stmt here ...
8796 (expand_vector_operations_1): ... not here.
8797
8798 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
8799 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
8800 duplication. Handle V2DI without SSE4.1.
8801 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
8802 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
8803
8804 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
8805
8806 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
8807 of "found". Simplify return value calculation.
8808 (distance_agu_use): Ditto.
8809
8810 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
8811
8812 PR bootstrap/50621
8813 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
8814 if the function was not shrink-wrapped.
8815 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
8816 to an insn.
8817 * function.c (thread_prologue_and_epilogue_insns): Make sure the
8818 shrink_wrapped flag is set even if there is no dump file.
8819
8820 2011-10-05 DJ Delorie <dj@redhat.com>
8821 Nick Clifton <nickc@redhat.com>
8822
8823 * config/rx/rx.opt (mpid): Define.
8824 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
8825 (MULTILIB_DIRNAMES): Add pid.
8826 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
8827 (rx_num_interrupt_regs): New variable.
8828 (rx_gp_base_regnum): New function. Returns the number of the
8829 small data area register.
8830 (rx_pid_base_regnum): New function. Returns the number of the pid
8831 base register.
8832 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
8833 (rx_pid_data_operand): New function. Returns whether an object is
8834 in the position independent data area.
8835 (rx_legitimize_address): New function. Puts undecided PID
8836 objects in the PID data area.
8837 (rx_is_legitimate_address): Add support for PID operands.
8838 (rx_print_operand_address): Likewise.
8839 (rx_print_operand): Likewise.
8840 (rx_maybe_pidify_operand): New function. Determine if an operand
8841 is suitable for PID addressing.
8842 (rx_gen_move_template): Add PID support.
8843 (rx_conditional_register_usage): Likewise.
8844 (rx_option_override): Initialise rx_num_interrupt_regs.
8845 (rx_is_legitimate_constant): Add support for PID constants.
8846 (TARGET_LEGITIMIZE_ADDRESS): Define.
8847 * config/rx/constraints.md (Rpid): Define.
8848 (Rpda): Define.
8849 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
8850 (tablejump): Add PID support.
8851 (mov<>): Likewise.
8852 (mov<>_internal): Likewise.
8853 (addsi3): Convert to an expander. Add PID support.
8854 (pid_addr): New pattern.
8855 * config/rx/rx.h (CPP_SPEC): Define.
8856 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
8857 (CASE_VECTOR_PC_RELATIVE): Define.
8858 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
8859 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
8860 * doc/invoke.texi (RX Options): Document -mpid command line option.
8861
8862 2011-10-05 Richard Guenther <rguenther@suse.de>
8863
8864 PR tree-optimization/38885
8865 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
8866 from constants.
8867
8868 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
8869
8870 * doc/invoke.texi (-fshrink-wrap): Document.
8871 * opts.c (default_options_table): Add it.
8872 * common.opt (fshrink-wrap): Add.
8873 * function.c (emit_return_into_block): Remove useless declaration.
8874 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
8875 requires_stack_frame_p, gen_return_pattern): New static functions.
8876 (emit_return_into_block): New arg simple_p. All callers changed.
8877 Use gen_return_pattern.
8878 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
8879 * config/i386/i386.md (return): Expand into a simple_return.
8880 (simple_return): New expander):
8881 (simple_return_internal, simple_return_internal_long,
8882 simple_return_pop_internal_long, simple_return_indirect_internal):
8883 Renamed from return_internal, return_internal_long,
8884 return_pop_internal_long and return_indirect_internal; changed to use
8885 simple_return.
8886 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
8887 simple returns.
8888 (ix86_pad_returns): Likewise.
8889 * function.h (struct rtl_data): Add member shrink_wrapped.
8890 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
8891 are not jumps or sibcalls can't be compared.
8892
8893 2011-10-05 Richard Guenther <rguenther@suse.de>
8894
8895 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
8896 vector type.
8897 (simplify_unary_expression): Handle BIT_FIELD_REFs.
8898 (try_to_simplify): Handle BIT_FIELD_REFs.
8899
8900 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
8901
8902 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
8903 * config/avr/avr.c (avr_out_addto_sp): New function.
8904 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
8905 * config/avr/avr.md (adjust_len): Add "addto_sp".
8906 (*movhi_sp): Remove insn.
8907 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
8908
8909 2011-10-05 Richard Guenther <rguenther@suse.de>
8910
8911 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
8912 with an embedded expression valueize and fold that as well.
8913 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
8914 results from gimple_fold_stmt_to_constant_1.
8915
8916 2011-10-05 Nick Clifton <nickc@redhat.com>
8917
8918 * config/rx/rx.md (tablejump): Add missing label.
8919 (adddi3_internal): Mark operand 0 as early-clobbered.
8920 (smaxsi3): Revert previous delta.
8921 (adc_internal): Fix whitespace in generated asm.
8922 (adc_flags): Likewise.
8923
8924 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8925
8926 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
8927 with the new widening_optab_handler.
8928
8929 2011-10-05 Richard Guenther <rguenther@suse.de>
8930
8931 PR tree-optimization/50609
8932 * gimple-fold.c (fold_array_ctor_reference): Also handle
8933 vector typed constructors.
8934 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
8935 for vector typed constructors.
8936
8937 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
8938
8939 * config/i386/i386.c (ix86_emit_binop): New static function.
8940 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
8941 instructions.
8942 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
8943
8944 2011-10-04 David S. Miller <davem@davemloft.net>
8945
8946 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
8947 UNSPEC_XMUL): New unspecs.
8948 (muldi3_v8plus): Use output_v8plus_mult.
8949 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
8950 New VIS 3.0 combiner patterns.
8951 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
8952 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
8953 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
8954 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
8955 builtins patterns.
8956 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
8957 (output_v8plus_mult): New function.
8958 * config/sparc/sparc-protos.h: Declare it.
8959 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
8960 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
8961 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
8962 * doc/extend.texi: Document new builtins.
8963
8964 2011-10-04 Richard Henderson <rth@redhat.com>
8965
8966 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
8967 Avoid save_expr unless two_arguments.
8968
8969 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
8970
8971 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
8972 * config/i386/mingw32.h (CPP_SPEC): Likewise.
8973
8974 2011-10-04 David S. Miller <davem@davemloft.net>
8975
8976 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
8977 under Linux.
8978
8979 2011-10-04 Jakub Jelinek <jakub@redhat.com>
8980
8981 PR tree-optimization/50604
8982 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
8983 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
8984 last argument to memcpy has size_type_node type instead of ssizetype.
8985 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
8986 instead of TREE_TYPE (len) as type for newlen.
8987
8988 PR tree-optimization/50522
8989 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
8990 TYPE_RESTRICT.
8991 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
8992 unconditionally.
8993
8994 * fold-const.c (fold_unary_loc): Don't optimize
8995 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
8996 casting the inner pointer if it isn't TYPE_RESTRICT.
8997 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
8998 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
8999
9000 2011-10-04 Joseph Myers <joseph@codesourcery.com>
9001
9002 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
9003
9004 2011-10-04 Jan Hubicka <jh@suse.cz>
9005
9006 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
9007 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
9008 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
9009 * lto-cgraph.c (order_base): New static var.
9010 (lto_output_node): Stream in order.
9011 (lto_output_varpool_node): Stream out order.
9012 (input_node): Stream in order.
9013 (input_varpool_node): Stream out order.
9014 (input_cgraph_1): Initialize order base; update call of
9015 lto_input_toplevel_asms.
9016
9017 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
9018
9019 PR target/50566
9020 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
9021 prototype.
9022 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
9023 from here...
9024 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
9025 function. Log if avr_log.legitimize_reload_address.
9026
9027 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
9028
9029 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
9030
9031 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9032
9033 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
9034 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
9035
9036 2011-10-03 David S. Miller <davem@davemloft.net>
9037
9038 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
9039 GSR_REG an input operand to UNSPEC instead of a parallel USE.
9040 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
9041 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
9042 Reference GSR_REG in DI mode, simplify convoluted expressions by using
9043 zero_extract.
9044 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
9045
9046 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
9047
9048 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
9049
9050 2011-10-03 Jakub Jelinek <jakub@redhat.com>
9051 Ian Lance Taylor <iant@google.com>
9052
9053 * godump.c (go_output_typedef): Support printing enum values that
9054 don't fit in a signed HOST_WIDE_INT.
9055
9056 2011-10-03 Anatoly Sokolov <aesok@post.ru>
9057
9058 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
9059 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9060 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9061 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
9062
9063 2011-10-03 Anatoly Sokolov <aesok@post.ru>
9064
9065 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
9066 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9067 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9068 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
9069
9070 2011-10-03 Steve Ellcey <sje@cup.hp.com>
9071
9072 PR target/49967
9073 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
9074 (gcc_cv_ld_static_option): Ditto.
9075 (gcc_cv_ld_dynamic_option): Ditto.
9076 * configure: Regenerate.
9077
9078 2011-10-03 David S. Miller <davem@davemloft.net>
9079
9080 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
9081 and 'si' patterns which describe the GSR changes explicitly in the
9082 RTL using zero_extract.
9083 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
9084
9085 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
9086 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
9087
9088 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9089
9090 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
9091 if given expression can be expanded by the target.
9092 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
9093 using target vector instructions.
9094 * optabs.h: New optab vshuffle.
9095 (expand_vec_shuffle_expr_p): New prototype.
9096 (expand_vec_shuffle_expr): New prototype.
9097 (vshuffle_optab): New optab.
9098 * genopinit.c: Adjust to support vecshuffle.
9099 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
9100 * expr.c (expand_expr_real_2): Adjust.
9101 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
9102 recognizing the cases of two and three arguments.
9103 (convert_arguments) (build_binary_op)
9104 (scalar_to_vector) (build_array_ref): Spurious whitespace.
9105 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
9106 * tree.def: New tree code VEC_SHUFFLE_EXPR.
9107 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
9108 * tree-vect-generic.c (vector_element): New function. Returns an
9109 element of the vector at the given position.
9110 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
9111 by the backend or expand an expression piecewise.
9112 (expand_vector_operations_1): Adjusted.
9113 (gate_expand_vector_operations_noop): New gate function.
9114 * Makefile.in (tree-vect-generic.o): New include.
9115 * gimple.c (get_gimple_rhs_num_ops): Adjust.
9116 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
9117 * passes.c: Move veclower down.
9118 * tree-pretty-print.c (dump_generic_node): Recognize
9119 VEC_SHUFFLE_EXPR as valid expression.
9120 * c-parser.c (c_parser_get_builtin_args): Helper function for the
9121 builtins with variable number of arguments.
9122 (c_parser_postfix_expression): Use a new helper function for
9123 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
9124 * tree-ssa-operands: Adjust.
9125 * c-family/c-common.c: New __builtin_shuffle keyword.
9126 * c-family/c-common.h: New __builtin_shuffle keyword.
9127 * gcc/doc/extend.texi: Adjust.
9128
9129 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
9130 between the vector and the type of the mask when shuffling.
9131 (vecshuffle<mode>): New expansion.
9132 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
9133 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
9134 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
9135
9136 2011-10-03 Jakub Jelinek <jakub@redhat.com>
9137
9138 PR tree-optimization/50587
9139 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
9140 arg0 is not a SSA_NAME.
9141
9142 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
9143
9144 * ipa-inline-analysis.c (MAX_TIME): Update comment.
9145
9146 2011-10-02 Richard Henderson <rth@redhat.com>
9147 David S. Miller <davem@davemloft.net>
9148
9149 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
9150 conditional insn type setting, we always emit a shift.
9151 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
9152 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
9153 * config/sparc/predicates.md (const_one_operand): Delete.
9154
9155 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
9156
9157 * invoke.texi (SPARC Options): Refer to GNU/Linux.
9158
9159 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9160
9161 * config/mips/mips.c (mips_frame_barrier): New function.
9162 (mips_expand_prologue): Call it after allocating stack space.
9163 (mips_deallocate_stack): New function.
9164 (mips_expand_epilogue): Call mips_frame_barrier and
9165 mips_deallocate_stack.
9166
9167 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
9168
9169 PR target/49696
9170 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
9171 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
9172 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
9173
9174 2011-10-02 Jan Hubicka <jh@suse.cz>
9175
9176 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
9177
9178 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
9179 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
9180 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
9181 functions are reachable when address is taken.
9182 * tree-sra.c (modify_function): Free dominance info.
9183
9184 2011-10-02 Jan Hubicka <jh@suse.cz>
9185
9186 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
9187
9188 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
9189 (reset_inline_summary): New function.
9190 (compute_inline_parameters, inline_node_removal_hook,
9191 inline_edge_removal_hook): Use it.
9192 (inline_free_summary): Reset holders correctly.
9193 (inline_generate_summary): Free summary before computing it.
9194
9195 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
9196
9197 PR preprocessor/36819
9198 * incpath.c (merge_include_chains): Call free_path on
9199 heads[QUOTE] and tails[QUOTE].
9200
9201 2011-10-02 Jan Hubicka <jh@suse.cz>
9202
9203 PR lto/47247
9204 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
9205 when resolution is already availbale from plugin.
9206 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
9207 * cgraph.c (ld_plugin_symbol_resolution): Add
9208 prevailing_def_ironly_exp.
9209 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
9210 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
9211 externally visible.
9212 * varasm.c (resolution_to_local_definition_p): Add
9213 LDPR_PREVAILING_DEF_IRONLY_EXP.
9214 (resolution_local_p): Likewise.
9215
9216 2011-10-01 David S. Miller <davem@davemloft.net>
9217
9218 * config/sparc/sparc.opt (VIS3): New option.
9219 * doc/invoke.texi: Document it.
9220 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
9221 not capable of such instructions.
9222 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
9223 to 0x300 when TARGET_VIS3.
9224 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
9225 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
9226 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
9227 (V64N8, VASS): New mode iterators.
9228 (vis3_shift, vis3_addsub_ss): New code iterators.
9229 (vbits, vconstr): New mode attributes.
9230 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
9231 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
9232 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
9233 fmean16_vis, fpadd64_vis, fpsub64_vis,
9234 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
9235 VIS 3.0 instruction patterns.
9236 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
9237 default when targetting capable cpus. TARGET_VIS3 implies
9238 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
9239 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
9240 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
9241 is ignored.
9242 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
9243 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
9244 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
9245 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
9246 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
9247 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
9248 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
9249 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
9250 * doc/extend.texi: Document new VIS 3.0 builtins.
9251
9252 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
9253
9254 * ira-color.c (assign_hard_reg): Fix typo.
9255
9256 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
9257
9258 * doc/extend.texi: Add missing ','.
9259
9260 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
9261
9262 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
9263 Enable -fmodulo-sched at -O2 and above.
9264 * config/c6x/c6x.md (doloop_end): New expander.
9265 (mvilc, sploop, spkernel, loop_end): New patterns.
9266 (loop_end with memory destination splitter): New.
9267 * config/c6x/c6x.c: Include "hw-doloop.h".
9268 (enum unitreqs): New.
9269 (unit_req_table): New typedef.
9270 (unit_reqs): New static variable.
9271 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
9272 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
9273 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
9274 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
9275 (struct c6x_sched_context): New member last_scheduled_iter0.
9276 (init_sched_state): Initialize it.
9277 (c6x_variable_issue): Update it.
9278 (sploop_max_uid_iter0): New static variable.
9279 (c6x_sched_reorder_1): Be careful about issuing sploop.
9280 (c6x_reorg): Call c6x_hwlooops before the final schedule.
9281
9282 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
9283
9284 PR target/50566
9285 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
9286 * config/avr/avr.c (avr_address_cost): Use it.
9287 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
9288 (avr_log_vadump): Unknown %-codes finish printing.
9289
9290 2011-09-30 Jakub Jelinek <jakub@redhat.com>
9291
9292 PR inline-asm/50571
9293 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
9294 input constraints allow mem and not reg, pass true instead of
9295 false as second argument to maybe_fold_reference.
9296
9297 PR tree-optimization/46309
9298 * fold-const.c (make_range, merge_ranges): Remove prototypes.
9299 (make_range_step): New function.
9300 (make_range): Use it.
9301 * tree.h (make_range_step): New prototypes.
9302 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
9303 * tree-ssa-reassoc.c: Include diagnostic-core.h.
9304 (struct range_entry): New type.
9305 (init_range_entry, range_entry_cmp, update_range_test,
9306 optimize_range_tests): New functions.
9307 (reassociate_bb): Call optimize_range_tests.
9308
9309 2011-09-30 Jakub Jelinek <jakub@redhat.com>
9310 Richard Guenther <rguenther@suse.de>
9311
9312 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
9313 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
9314 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
9315 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
9316 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
9317 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
9318
9319 2011-09-30 Jan Beulich <jbeulich@suse.com>
9320
9321 * lto-cgraph.c (output_cgraph): Remove processing of
9322 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
9323 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
9324 lto_input_toplevel_asms() instead.
9325 * lto-section-in.c (lto_section_name): Add "asm" entry.
9326 * lto-streamer-in.c (lto_input_toplevel_asms): New.
9327 * lto-streamer-out.c (lto_output_toplevel_asms): New.
9328 * lto-streamer.h (LTO_minor_version): Bump.
9329 (enum lto_section_type): Add LTO_section_asm.
9330 (struct lto_asm_header): New.
9331 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
9332 * tree-streamer.h (streamer_write_string_cst): Declare.
9333 * tree-streamer-out.c (write_string_cst): Rename to
9334 streamer_write_string_cst and make global. Handle incoming string
9335 being NULL.
9336 (streamer_write_tree_header): Adjust call to renamed function.
9337
9338 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
9339
9340 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
9341 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
9342 modulo_last_stage): New static variables.
9343 (set_modulo_params, discard_delay_pairs_above): New functions.
9344 (struct delay_pair): New member stages.
9345 (htab_i2_traverse, htab_i1_traverse): New static functions.
9346 (record_delay_slot_pair): New arg stages. All callers changed.
9347 Record it.
9348 (pair_delay): Take stages into account.
9349 (add_delay_dependencies): Don't do so for stage pairs.
9350 (struct sched_block_state): New member modulo_epilogue.
9351 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
9352 (unschedule_insns_until): Decrease modulo_insns_scheduled.
9353 Set HARD_DEP without using or.
9354 (resolve_dependencies): New static function.
9355 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
9356 If it is true, allow only insns with INSN_EXACT_TICK set.
9357 (schedule_block): Return bool, always true for normal scheduling,
9358 true or false depending on modulo scheduling success otherwise.
9359 Add bookkeeping for modulo scheduling, and call resolve_dependencies
9360 on everything left over after a modulo schedule.
9361 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
9362 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
9363 declarations.
9364 (set_modulo_params, discard_delay_pairs_above): Declare.
9365 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
9366 * doc/invoke.texi (--param): Document it.
9367
9368 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
9369 New arg modulo_scheduling. All callers changed. Move note handling
9370 code here from schedule_ebbs.
9371 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
9372 out of schedule_ebbs.
9373 (schedule_ebbs): Call them. Remove note handling code moved to
9374 schedule_ebb.
9375 * sched-int.h (schedule_ebb, schedule_ebbs_init,
9376 schedule_ebbs_finish): Declare.
9377
9378 2011-09-30 Richard Guenther <rguenther@suse.de>
9379
9380 PR middle-end/50574
9381 * tree-cfg.c (verify_gimple_comparison): Compare component
9382 mode sizes for vector comparisons.
9383
9384 2011-09-30 Revital Eres <revital.eres@linaro.org>
9385
9386 * ddg.c (autoinc_var_is_used_p): New function.
9387 (create_ddg_dep_from_intra_loop_link,
9388 add_cross_iteration_register_deps): Call it.
9389 * ddg.h (autoinc_var_is_used_p): Declare.
9390 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
9391 (sms_schedule): Handle instructions with REG_INC.
9392
9393 2011-09-30 Revital Eres <revital.eres@linaro.org>
9394
9395 * modulo-sched.c (generate_reg_moves): Skip instructions that
9396 do not set a register and verify no regmoves are created for
9397 !single_set instructions.
9398
9399 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
9400
9401 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
9402 insns.
9403
9404 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9405
9406 PR target/50099
9407 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
9408 (qhs_zextenddi_op): New.
9409 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
9410 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
9411 Distinguish between ARM and Thumb2 states.
9412
9413 2011-09-30 David S. Miller <davem@davemloft.net>
9414
9415 * config/sparc/sparc.opt (VIS2): New option.
9416 * doc/invoke.texi: Document it.
9417 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
9418 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
9419 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
9420 (define_attr type): New insn type 'edgen'.
9421 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
9422 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
9423 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
9424 patterns.
9425 * niagara.md: Handle edgen.
9426 * niagara2.md: Likewise.
9427 * ultra1_2.md: Likewise.
9428 * ultra3.md: Likewise.
9429 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
9430 to 0x200 when TARGET_VIS2.
9431 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
9432 default when targetting capable cpus. TARGET_VIS2 implies
9433 TARGET_VIS, clear and it when TARGET_FPU is disabled.
9434 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
9435 (sparc_expand_builtin): Fix predicate indexing when builtin returns
9436 void.
9437 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
9438 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
9439 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
9440 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
9441 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
9442 * doc/extend.texi: Document new VIS 2.0 builtins.
9443
9444 2011-09-29 Nick Clifton <nickc@redhat.com>
9445 Bernd Schmidt <bernds@codesourcery.com>
9446
9447 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
9448 * config/frv/frvend.c: Likewise.
9449 * config/frv/frv.c (frv_function_prologue): Move misplaced
9450 CALL_ARG_LOCATION notes back to their proper locations.
9451
9452 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
9453
9454 PR target/50566
9455 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
9456 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
9457 from avr_rtx_costs.
9458 (avr_legitimate_address_p): Use avr_edump to print log information
9459 filtered by avr_log.
9460 (extra_constraint_Q): Ditto.
9461 (avr_legitimize_address): Ditto.
9462 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
9463 (final_prescan_insn): Use avr_log.rtx_costs as filter.
9464
9465 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
9466
9467 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
9468 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
9469 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
9470 NEON vector and structure modes to be tied.
9471
9472 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9473
9474 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
9475 forward declaration.
9476 (remove_duplicate_close_phi): Detect and repair creation of
9477 duplicate close-phis for a containing loop.
9478
9479 2011-09-27 Andi Kleen <ak@linux.intel.com>
9480
9481 * gcc.c (get_local_tick). Rename to get_random_number. Read from
9482 /dev/urandom. Add getpid call.
9483 (compare_debug_dump_opt_spec_function): Drop getpid call.
9484
9485 2011-09-26 Andi Kleen <ak@linux.intel.com>
9486
9487 * toplev.c (init_local_tick): Try reading random seed
9488 from /dev/urandom.
9489
9490 2011-09-26 Andi Kleen <ak@linux.intel.com>
9491
9492 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
9493 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
9494 Handle numerical random seed.
9495 * lto-streamer.h (lto_file_decl_data): Change id to
9496 unsigned HOST_WIDE_INT.
9497 * toplev.c (random_seed): Add.
9498 (init_random_seed): Change for numerical random seed.
9499 (get_random_seed): Return as HOST_WIDE_INT.
9500 (set_random_seed): Crc32 existing string.
9501 * toplev.h (get_random_seed): Change to numercal return.
9502 * tree.c (get_file_function_name): Remove CRC. Handle
9503 numerical random seed.
9504
9505 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
9506
9507 PR target/50566
9508 * config.gcc (extra_objs): Add avr-log.o for $target in:
9509 avr-*-rtems*, avr-*-*.
9510 * config/avr/t-avr (avr-log.o): New rule to compile...
9511 * config/avr/avr-log.c: ...this new file.
9512 * config/avr/avr.opt (mlog=): New option.
9513 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
9514 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
9515 (avr_log_set_avr_log): New prototype.
9516 (avr_log_t): New typedef.
9517 (avr_log): New declaration.
9518 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
9519
9520 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9521
9522 * expr.c (do_store_flag): Expand vector comparison by
9523 building an appropriate VEC_COND_EXPR.
9524 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
9525 (c_objc_common_truthvalue_conversion): Adjust.
9526 * tree-vect-generic.c (do_compare): Helper function.
9527 (expand_vector_comparison): Check if hardware supports
9528 vector comparison of the given type or expand vector piecewise.
9529 (expand_vector_operation): Treat comparison as binary
9530 operation of vector type.
9531 (expand_vector_operations_1): Adjust.
9532
9533 2011-09-29 Richard Guenther <rguenther@suse.de>
9534
9535 * tree.c (build_opaque_vector_type): Make opaque vectors
9536 variant types of the corresponding non-opaque type. Make
9537 sure to share opaque vector types properly.
9538
9539 2011-09-29 David S. Miller <davem@davemloft.net>
9540
9541 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
9542 UNSPEC_ARRAY32): New unspec.
9543 (define_attr type): New type 'array'.
9544 (array{8,16,32}<P:mode>_vis): New patterns.
9545 * config/sparc/ultra1_2.md: Add reservations for 'array'.
9546 * config/sparc/ultra3.md: Likewise.
9547 * config/sparc/niagara.md: Likewise.
9548 * config/sparc/niagara2.md: Likewise.
9549 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
9550 array builtins.
9551 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
9552 __vis_array32): New.
9553 * doc/extend.texi: Document new VIS builtins.
9554
9555 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
9556 (VIS pixel-compare insn): Just use <gcond:name>.
9557
9558 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
9559 code iterator used, so just use <code>. There are two mode iterators
9560 so explicitly use <GCM:gcm_name>.
9561
9562 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
9563
9564 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
9565 Darwin >= 9.
9566
9567 2011-09-28 David S. Miller <davem@davemloft.net>
9568
9569 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
9570 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
9571 (UNSPEC_FCMP): New unspec.
9572 (gcond): New code iterator.
9573 (gcond_name): New code attr.
9574 (GCM): New mode iterator.
9575 (gcm_name): New mode attr.
9576 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
9577
9578 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
9579
9580 PR target/49486
9581 * config/sh/sh.md (negdi2): Move expansion into split to
9582 allow more combination options. Add T_REG clobber.
9583 (abssi2): New expander.
9584 (*negdi2, *abssi2, *negabssi2): New insns.
9585 (cneg): Change from insn to insn_and_split. Rename to
9586 negsi_cond. Add alternative for non-SH4.
9587
9588 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
9589
9590 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
9591 (neon_move_hi_quad_<mode>): Likewise.
9592 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
9593
9594 2011-09-28 Nick Clifton <nickc@redhat.com>
9595
9596 * config/rx/predicates.md (rx_minmax_operand): New predicate.
9597 Accepts immediates and a restricted subset of MEMs.
9598 * config/rx/rx.md (int_modes): New iterator.
9599 (smaxsi3, sminsi3): Delete and replace with...
9600 (smax<int_mode>3, smin<int_mode>3): New patterns.
9601 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
9602
9603 2011-09-28 Richard Guenther <rguenther@suse.de>
9604
9605 PR middle-end/50460
9606 * fold-const.c (try_move_mult_to_index): Handle &a.array the
9607 same as &a.array[0].
9608
9609 2011-09-28 Kai Tietz <ktietz@redhat.com>
9610
9611 * configure.ac: Add test for new section attribute
9612 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
9613 * config.in: Regenerated.
9614 * configure: Regenerated.
9615 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
9616 new section flag "e" for excluded sections, if supported.
9617 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
9618
9619 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
9620
9621 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
9622 throughout file.
9623
9624 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
9625
9626 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
9627 throughout file.
9628
9629 2011-09-27 Sriraman Tallam <tmsriram@google.com>
9630
9631 * output.h (SECTION_EXCLUDE): New macro.
9632 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
9633
9634 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
9635
9636 * fwprop.c (forward_propagate_and_simplify): After checking
9637 reg/subreg combinations, check whether the modes are the same.
9638
9639 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
9640 Richard Sandiford <rdsandiford@googlemail.com>
9641
9642 * config/mips/mips.c (mips_add_cfa_restore): New function.
9643 (mips16e_save_restore_reg): Use it.
9644 (mips_restore_reg): Likewise. Split double FPRs for
9645 REG_CFA_RESTORE notes.
9646
9647 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
9648
9649 PR middle-end/50386
9650 PR middle-end/50326
9651 * tree-sra.c (build_ref_for_model): Use the type of the field as
9652 the type of the COMPONENT_REF.
9653
9654 2011-09-27 Jeff Law <law@redhat.com>
9655
9656 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
9657 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
9658 (find_if_case_1): Use the probability of the THEN clause when
9659 determining if speculation is profitable.
9660 (find_if_case_2): Similarly for the ELSE clause.
9661
9662 2011-09-27 Jakub Jelinek <jakub@redhat.com>
9663
9664 * common.opt: Add -foptimize-strlen option.
9665 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
9666 (tree-sssa-strlen.o): Add dependencies.
9667 * opts.c (default_options_table): Enable -foptimize-strlen
9668 by default at -O2 if not -Os.
9669 * passes.c (init_optimization_passes): Add pass_strlen
9670 after pass_object_sizes.
9671 * timevar.def (TV_TREE_STRLEN): New timevar.
9672 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
9673 * tree-pass.h (pass_strlen): Declare.
9674 * tree-ssa-strlen.c: New file.
9675 * c-decl.c (merge_decls): If compatible stpcpy prototype
9676 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
9677
9678 2011-09-27 Tom de Vries <tom@codesourcery.com>
9679
9680 PR middle-end/43864
9681 * tree-ssa-tail-merge.c: New file.
9682 (struct same_succ_def): Define.
9683 (same_succ, const_same_succ): New typedef.
9684 (struct bb_cluster_def): Define.
9685 (bb_cluster, const_bb_cluster): New typedef.
9686 (struct aux_bb_info): Define.
9687 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
9688 (gvn_uses_equal): New function.
9689 (same_succ_print, same_succ_print_traverse, update_dep_bb)
9690 (stmt_update_dep_bb, local_def, same_succ_hash)
9691 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
9692 (same_succ_reset): New function.
9693 (same_succ_htab, same_succ_edge_flags)
9694 (deleted_bbs, deleted_bb_preds): New var.
9695 (debug_same_succ): New function.
9696 (worklist): New var.
9697 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
9698 (init_worklist, delete_worklist, delete_basic_block_same_succ)
9699 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
9700 (print_cluster, debug_cluster, update_rep_bb)
9701 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
9702 (all_clusters): New var.
9703 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
9704 (merge_clusters, set_cluster): New function.
9705 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
9706 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
9707 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
9708 (find_clusters_1, find_clusters): New function.
9709 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
9710 (update_bbs): New var.
9711 (apply_clusters): New function.
9712 (update_debug_stmt, update_debug_stmts): New function.
9713 (tail_merge_optimize): New function.
9714 tree-pass.h (tail_merge_optimize): Declare.
9715 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
9716 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
9717 (tree-ssa-tail-merge.o): New rule.
9718 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
9719 default at OPT_LEVELS_2_PLUS.
9720 * tree-ssa-sccvn.c (vn_valueize): Move to ...
9721 * tree-ssa-sccvn.h (vn_valueize): Here.
9722 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
9723 * common.opt (ftree-tail-merge): New switch.
9724 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
9725 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
9726 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
9727 (-ftree-tail-merge, max-tail-merge-comparisons)
9728 (max-tail-merge-iterations): New item.
9729
9730 2011-09-27 Jan Hubicka <jh@suse.cz>
9731
9732 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
9733
9734 2011-09-27 Jan Hubicka <jh@suse.cz>
9735
9736 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
9737 parameters passed by reference; handle loads from non-SSA scalars
9738 and update comments.
9739
9740 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
9741
9742 PR rtl-optimization/50249
9743 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
9744 instead of opnum and type. All callers changed. Remove useless
9745 declaration.
9746 Search forward for other reloads of the same type for the same operand
9747 using the same register; if any are found, return false.
9748 (reload_regs_reach_end_p): Same argument changes; all callers changed.
9749
9750 2011-09-27 Andi Kleen <ak@linux.intel.com>
9751 Jan Hubicka <jh@suse.cz>
9752
9753 * doc/invoke.texi (ffat-lto-objects): Document.
9754 * toplev.c (compile_file): Do not output assembly when doing slim lto;
9755 Output __gnu_slim_lto when doing slim lto.
9756 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
9757 (cgraph_optimize): Return early when doing slim lto.
9758 * opts.c (finish_options): Complain about lack of linker plugin
9759 when doing slim lto.
9760 * common.opt (ffat-lto-objects): New.
9761
9762 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
9763
9764 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
9765 between signed and unsigned.
9766
9767 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
9768
9769 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
9770 vectorization.
9771 (vectorizable_type_promotion): Likewise.
9772 (vect_analyze_stmt): Call vectorizable_type_demotion and
9773 vectorizable_type_promotion for basic blocks.
9774 (supportable_widening_operation): Don't assume loop vectorization.
9775 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
9776 basic blocks. Update vectorization factor for basic block
9777 vectorization.
9778 (vect_analyze_slp_instance): Allow multiple types for basic block
9779 vectorization. Recheck unrolling factor after construction of SLP
9780 instance.
9781
9782 2011-09-27 Richard Guenther <rguenther@suse.de>
9783
9784 * tree-object-size.c (compute_object_sizes): Fix dumping of
9785 folded statement.
9786
9787 2011-09-27 Richard Guenther <rguenther@suse.de>
9788
9789 PR tree-optimization/50363
9790 * tree-ssa-pre.c (create_expression_by_pieces): Handle
9791 pointer conversions in POINTER_PLUS_EXPRs properly.
9792
9793 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
9794
9795 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
9796 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
9797 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
9798 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
9799 that produce subreg moves. Define using VQX iterators.
9800
9801 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
9802
9803 * config/avr/avr.md (ashrqi3): Split alternative "n"
9804 into its remaining parts C03, C04, C05, C06, C07 and describe
9805 impact in CC by attribute "cc" appropriately.
9806 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
9807 by digging RTX.
9808
9809 2011-09-27 Jakub Jelinek <jakub@redhat.com>
9810
9811 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
9812 from 3 x MAX_MACHINE_MODE.
9813 (CONSTM1_RTX): Define.
9814 * emit-rtl.c (const_tiny_rtx): Change into array of
9815 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
9816 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
9817 CONSTM1_RTX.
9818 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
9819 MODE_VECTOR_INT modes.
9820 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
9821 Optimize if one operand is CONSTM1_RTX.
9822 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
9823 into mask | x.
9824
9825 2011-09-26 David S. Miller <davem@davemloft.net>
9826
9827 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
9828 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
9829 * config/sparc/visintrin.h: Update edge and pixel-compare
9830 intrinsics to return 'long' instead of 'int'.
9831 * doc/extend.texi: Update documentation to match.
9832 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
9833 flat, allow any instruction. Otherwise, when V9 allow parallels
9834 which consist only of sets to registers outside of %o0 to %o5.
9835 (sparc_vis_init_builtins): Update VIS builtin types for edge
9836 and pixel-compare.
9837
9838 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
9839 is enabled, mark %gsr as global.
9840 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
9841 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
9842
9843 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
9844 which will now define __VIS and __VIS__ when -mvis is enabled.
9845 * config/sparc/t-sparc: Likewise.
9846 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
9847 and add t-sparc to tmake_file for all sparc targets.
9848 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
9849 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
9850
9851 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
9852 builtins for VIS vector addition and subtraction.
9853 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
9854 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
9855 __vis_fpsub32, __vis_fpsub32s): New.
9856 * doc/extend.texi: Document new VIS intrinsics.
9857
9858 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
9859
9860 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
9861 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
9862 EQ/NE comparisons against +/-1 in the case of unused-after,
9863 non-ld-regs target.
9864
9865 2011-09-26 Jakub Jelinek <jakub@redhat.com>
9866
9867 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
9868 gctx.into_ssa after push_gimplify_context.
9869
9870 * gimple.c (gimple_build_call_valist): New function.
9871 * gimple.h (gimple_build_call_valist): New prototype.
9872 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
9873 (update_gimple_call): Likewise.
9874 (update_call_from_tree): Use finish_update_gimple_call.
9875 * tree-ssa-propagate.h (update_gimple_call): New prototype.
9876
9877 2011-09-26 Richard Guenther <rguenther@suse.de>
9878
9879 PR tree-optimization/50472
9880 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
9881 volatile references.
9882
9883 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
9884
9885 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
9886 * target.def: (addr_space_subset_p): Likewise.
9887
9888 2011-09-26 Tom de Vries <tom@codesourcery.com>
9889
9890 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
9891 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
9892 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
9893 of new var.
9894
9895 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
9896
9897 PR target/50465
9898 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
9899 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
9900 output_reload_insisf.
9901 (adjust_len): Set default to "no".
9902 Remove alternative "yes". Add alternatives: "mov8", "mov16",
9903 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
9904 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
9905 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
9906 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
9907 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
9908 *lshrsi3_const): Set attribute "adjust_len".
9909 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
9910 (output_movsisf): Don't pass insn to output_reload_insisf.
9911 (adjust_insn_length): Handle new alternatives to adjust_len.
9912 Remove handling of ADJUST_LEN_YES. Clean-up code.
9913
9914 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
9915
9916 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
9917 may_trap_p to detect loads that may trap of fault.
9918
9919 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
9920
9921 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
9922 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
9923 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
9924 prototype.
9925 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
9926 * config/avr/avr.c: Rename output_reload_insisf_1 to
9927 output_reload_in_const.
9928 (avr_popcount_each_byte): Handle SFmode, too.
9929 (output_reload_in_const): Change so it can handle HI loads, too.
9930 Use avr_popcount_each_byte to work out if scratch register must be
9931 created on the fly.
9932 (output_reload_inhi): Rewrite using output_reload_in_const and...
9933 (output_movhi): ...use it to print constants' loads.
9934 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
9935
9936 2011-09-25 David S. Miller <davem@davemloft.net>
9937
9938 * config/sparc/constraints.md (C, P, Z): New constraints for
9939 const_doube, const_int, and const_vector "all ones" values.
9940 Make unused constraint letters comment match reality.
9941 * config/sparc/predicates.md (const_all_ones_operand,
9942 register_or_zero_or_all_ones_operand): New predicates.
9943 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
9944 as well as zero constants when VIS.
9945 (sparc_legitimate_constant_p): Likewise.
9946 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
9947 (movsf_insn): Likewise
9948 (movdi_insn_sp64): Add fone alternative.
9949 (movdf_insn_sp32_v9): Likewise.
9950 (movdf_insn_sp64): Likewise.
9951
9952 * configure.ac: Add feature check to make sure the assembler
9953 supports the FMAF, HPC, and VIS 3.0 instructions found on
9954 Niagara-3 and later cpus.
9955 * configure: Rebuild.
9956 * config.in: Likewise.
9957 * config/sparc/sparc.opt: New option '-mfmaf'.
9958 * config/sparc/sparc.md: Add float fused multiply-add patterns.
9959 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
9960 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
9961 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
9962 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
9963 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
9964 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
9965 disabled.
9966 (sparc_rtx_costs): Handle 'FMA'.
9967 * doc/invoke.texi: Document -mfmaf.
9968
9969 2011-09-25 Jakub Jelinek <jakub@redhat.com>
9970
9971 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
9972 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
9973 DECL_BY_REFERENCE parameters.
9974
9975 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
9976
9977 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
9978 if there is no outgoing edge.
9979
9980 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
9981 integral types.
9982
9983 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
9984
9985 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
9986 of vect_analyze_bb here.
9987 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
9988
9989 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
9990
9991 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
9992 Allow not simple iv if analyzing basic block.
9993 (create_data_ref): Update call to dr_analyze_innermost.
9994 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
9995 * tree-loop-distribution.c (generate_memset_zero): Likewise.
9996 * tree-predcom.c (find_looparound_phi): Likewise.
9997 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
9998
9999 2011-09-24 David S. Miller <davem@davemloft.net>
10000
10001 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
10002 (SPARC_GSR_REG): Define.
10003 (FIXED_REGISTERS): Mark GSR as fixed.
10004 (CALL_USED_REGISTERS): Mark GSR as call used.
10005 (HARD_REGNO_NREGS): GSR is always 1 register.
10006 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
10007 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
10008 (REGISTER_NAMES): Add "%gsr".
10009 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
10010 (UNSPEC_WRGSR): New unspec.
10011 (GSR_REG): New constant.
10012 (type): Add new insn type 'gsr'.
10013 (fpack16_vis, fpackfix_vis, fpack32_vis,
10014 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
10015 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
10016 rdgsr_v8plus): New expanders and insns.
10017 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
10018 using patterns which show that this is a plus in addition to a
10019 modification of GSR_REG, instead of an unspec.
10020 * config/sparc/ultra1_2.md: Handle 'gsr'.
10021 * config/sparc/ultra3.md: Likewise.
10022 * config/sparc/niagara.md: Likewise.
10023 * config/sparc/niagara2.md: Likewise.
10024 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
10025 end of table.
10026 (sparc_option_override): Make -mvis imply -mv8plus.
10027 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
10028 for %gsr.
10029 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
10030 __builtin_vis_read_gsr.
10031 (sparc_expand_buildin): Handle builtins that take one argument and
10032 return void.
10033 (sparc_fold_builtin): Never fold writes to %gsr.
10034 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
10035 * doc/extend.texi: Document new VIS intrinsics.
10036
10037 2011-09-23 Jan Hubicka <jh@suse.cz>
10038
10039 * ipa-inline-transform.c (inline_call): Add comment.
10040 * ipa-inline.h (inline_param_summary): New structure and vector.
10041 (struct inline_edge_summary): Add param field.
10042 * ipa-inline-analysis.c (CHANGED): New constant.
10043 (add_clause): Handle CHANGED and NOT_CONSTANT.
10044 (predicate_probability): New function.
10045 (dump_condition): Dump CHANGED predicate.
10046 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
10047 of unknown function wide invariant.
10048 (evaluate_conditions_for_edge): Handle change probabilities.
10049 (inline_edge_duplication_hook): Copy param summaries.
10050 (inline_edge_removal_hook): Free param summaries.
10051 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
10052 sizes; dump param summaries.
10053 (will_be_nonconstant_predicate): Use CHANGED predicate.
10054 (record_modified_bb_info): New structure.
10055 (record_modified): New function.
10056 (param_change_prob): New function.
10057 (estimate_function_body_sizes): Compute param summaries.
10058 (estimate_edge_size_and_time): Add probability argument.
10059 (estimate_node_size_and_time): Add inline_param_summary argument;
10060 handle predicate probabilities.
10061 (remap_predicate): Fix formating.
10062 (remap_edge_change_prob): New function.
10063 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
10064 (remap_edge_predicates): ... this one.
10065 (inline_merge_summary): Remap edge summaries; handle predicate
10066 probabilities; remove param summaries after we are done.
10067 (do_estimate_edge_time): Update.
10068 (do_estimate_edge_growth): Update.
10069 (read_inline_edge_summary): Read param info.
10070 (inline_read_summary): Fix formating.
10071 (write_inline_edge_summary): Write param summaries.
10072
10073 2011-09-23 Jakub Jelinek <jakub@redhat.com>
10074
10075 * config/i386/i386.c (ix86_print_operand): Handle %~.
10076 (ix86_print_operand_punct_valid_p): Return true also for '~'.
10077 * config/i386/sse.md (i128): New mode_attr.
10078 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
10079 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
10080 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
10081 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
10082 patterns, use "<sseinsnmode>" for "mode" attribute.
10083 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
10084 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
10085 %~128 in the patterns, use "OI" for "mode" attribute.
10086
10087 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
10088
10089 PR target/50447
10090 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
10091 "tstsi", "compare".
10092 (*cmpqi_sign_extend): Use s8_operand.
10093 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
10094 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
10095 prototypes.
10096 (out_tsthi, out_tstsi): Remove prototypes.
10097 (avr_out_tsthi, avr_out_tstsi): New prototypes.
10098 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
10099 (avr_asm_len): Negative length now sets *plen to -length.
10100 (compare_sign_p): Return bool instead of int.
10101 (compare_diff_p, compare_eq_p): Ditto and make static.
10102 (avr_out_tsthi): New function.
10103 (avr_out_tstsi): New function.
10104 (avr_out_compare): New function.
10105 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
10106 ADJUST_LEN_COMPARE.
10107
10108 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
10109
10110 PR target/50447
10111 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
10112 (addsi3): Rewrite using QI scratch register. Adjust text
10113 peepholes using plus:SI.
10114 (*addsi3_zero_extend.hi): New insn.
10115 (*subsi3_zero_extend.hi): New insn.
10116 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
10117 (*subsi3_zero_extend): Ditto.
10118 (subsi3): Change predicate #2 to register_operand.
10119 * config/avr/avr-protos.h (avr_out_plus): New prototype.
10120 (avr_out_plus_1): New static function.
10121 (avr_out_plus): New function.
10122 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
10123
10124 2011-09-23 Jakub Jelinek <jakub@redhat.com>
10125
10126 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
10127 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
10128
10129 2011-09-23 Ian Lance Taylor <iant@google.com>
10130
10131 * godump.c (go_define): Treat a single character in single quotes,
10132 or a string, as an operand.
10133
10134 2011-09-23 Martin Jambor <mjambor@suse.cz>
10135
10136 * ipa-prop.h (jump_func_type): Updated comments.
10137 (ipa_known_type_data): New type.
10138 (ipa_jump_func): Use it to describe known type jump functions.
10139 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
10140 reflect the new known type jump function contents.
10141 (compute_known_type_jump_func): Likewise.
10142 (combine_known_type_and_ancestor_jfs): Likewise.
10143 (try_make_edge_direct_virtual_call): Likewise.
10144 (ipa_write_jump_function): Likewise.
10145 (ipa_read_jump_function): Likewise.
10146 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
10147 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
10148 (propagate_accross_jump_function): Likewise.
10149
10150 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
10151
10152 PR target/50446
10153 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
10154 (rotlqi3_4): Turn insn into expander.
10155 (*rotlqi3): New insn.
10156 (rotlhi3, rotlsi3): Support rotate left/right by 1.
10157 (*rotlhi2.1, *rotlhi2.15): New insns.
10158 (*rotlsi2.1, *rotlsi2.31): New insns.
10159 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
10160
10161 2011-09-23 Bin Cheng <bin.cheng@arm.com>
10162
10163 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
10164
10165 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10166
10167 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
10168
10169 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10170
10171 * reload.c (find_reloads): Set operand_mode to Pmode for address
10172 operands consisting of just a CONST_INT.
10173
10174 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
10175
10176 PR target/50482
10177 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
10178 blendv, force op_true to register if it doesn't satisfy
10179 nonimmediate_operand predicate.
10180
10181 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
10182
10183 PR middle-end/50113
10184 PR middle-end/50061
10185 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
10186 get the locate.where_pad value for register-only arguments.
10187 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
10188 (arm_pad_reg_upward): Handle null types.
10189
10190 2011-09-22 Jan Hubicka <jh@suse.cz>
10191
10192 * ipa-inline-analysis.c: Fix overly long lines.
10193
10194 2011-09-22 Jan Hubicka <jh@suse.cz>
10195
10196 * ipa-inline-transform.c (inline_call): Always update jump functions
10197 after inlining.
10198 * ipa-inline.c (ipa_inline): Likewise; do not call
10199 ipa_create_all_structures_for_iinln.
10200 (ipa_inline): Always free jump functions.
10201 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
10202 (remap_edge_predicates): Fix pasto.
10203 (inline_merge_summary): Remove nlined edge predicate; remove hack.
10204 (inline_analyze_function): Always initialize jump functions.
10205 (inline_generate_summary): Likewise.
10206 (inline_write_summary): Always write jump functions when ipa-cp
10207 is not doing that.
10208 (inline_read_summary): Always read jump functions when ipa-cp
10209 is not doing that.
10210 * ipa-prop.c (iinlining_processed_edges): Remove.
10211 (update_indirect_edges_after_inlining): Do not use
10212 iinlining_processed_edges; instead set param_index to -1.
10213 (propagate_info_to_inlined_callees): Only try to indirect inlining
10214 when asked to do so; update jump functions of indirect calls, too;
10215 remove jump functions of the inlined edge.
10216 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
10217 (ipa_create_all_structures_for_iinln): Remove.
10218 (ipa_free_all_structures_after_iinln): Do not free
10219 iinlining_processed_edges.
10220 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
10221
10222 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
10223
10224 * config/arm/predicates.md (expandable_comparison_operator): New
10225 predicate, extracted from...
10226 (arm_comparison_operator): ...here.
10227 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
10228 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
10229 (movdfcc): Use expandable_comparison_operator.
10230
10231 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
10232
10233 PR target/50447
10234 PR target/50465
10235 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
10236 (avr_popcount_each_byte): New prototype.
10237 * config/avr/avr.c (avr_popcount): New static function.
10238 (avr_popcount_each_byte): New function.
10239 (avr_out_bitop): New function.
10240 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
10241 avr_out_bitop. Cleanup code.
10242 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
10243 (Ca4, Co4, Cx4): New constraints.
10244 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
10245 alternative.
10246 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
10247 (andsi3, iorsi3, xorsi3): Ditto.
10248 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
10249
10250 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
10251
10252 PR tree-optimization/50451
10253 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
10254 constant operands in reduction.
10255 (vect_get_slp_defs): Don't create vector operand for NULL scalar
10256 operand.
10257
10258 2011-09-22 David S. Miller <davem@davemloft.net>
10259
10260 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
10261 fpack16, fpack32, fpackfix as const.
10262
10263 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
10264 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
10265 constants. Use them everywhere.
10266
10267 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
10268
10269 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
10270 Added AND special case. Adapted comments.
10271 (sh_rtx_costs): Added XOR and IOR case.
10272
10273 2011-09-21 Jan Hubicka <jh@suse.cz>
10274
10275 * ipa-inline-analsis.c (compute_inline_parameters): Set
10276 cfun and current_function_decl.
10277
10278 2011-09-21 Jan Hubicka <jh@suse.cz>
10279
10280 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
10281 handled components in parameter of builtin_constant_p.
10282 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
10283
10284 2011-09-21 Jan Hubicka <jh@suse.cz>
10285
10286 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
10287 * ipa-inline.h (estimate_edge_time): Fix pasto.
10288 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
10289
10290 2011-09-21 Jakub Jelinek <jakub@redhat.com>
10291
10292 * config/i386/i386.c (ix86_expand_sse_movcc): Use
10293 blendvps, blendvpd and pblendvb if possible.
10294
10295 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
10296
10297 PR target/50464
10298 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
10299 operand 1 predicate to register_operand and operand 2 predicate
10300 to nonimmediate_operand.
10301 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
10302 xop_pcmov, force op_true to register. Also, force op_false to
10303 register if it doesn't satisfy nonimmediate_operand predicate.
10304
10305 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
10306
10307 * config/i386/bmi2intrin.h (_mulx_u64): New.
10308 (_mulx_u32): Ditto.
10309
10310 2011-09-21 Jan Hubicka <jh@suse.cz>
10311
10312 PR tree-optimization/50433
10313 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
10314 Use get_base_address.
10315
10316 2011-09-21 Jakub Jelinek <jakub@redhat.com>
10317
10318 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
10319 nonimmediate_operand instead of register_operand predicate for operands
10320 1 and 2, force them into registers if expanding them as comparison.
10321 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
10322 V8HImode force into register just operand 1.
10323
10324 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
10325
10326 PR target/45099
10327 * config/avr/avr.c (avr_function_arg_advance): Change error to
10328 warning if a fixed register is needed as function argument.
10329
10330 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
10331
10332 PR target/50449
10333 PR target/50465
10334 * config/avr/avr.md (adjust_len): New insn attribute.
10335 (*reload_insi, *reload_insf): Use it.
10336 (*movsi, *movsf): Use new interface of output_movsisf.
10337 * config/avr/avr-protos.h (output_movsisf): Change prototype.
10338 * config/avr/avr.c (output_movsisf): Ditto.
10339 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
10340 lengths of insns *reload_insi, *reload_insf.
10341 (output_reload_insisf_1): New static function.
10342 (output_reload_insisf): Use it.
10343
10344 2011-09-21 David S. Miller <davem@davemloft.net>
10345
10346 * config/sparc/sparc.c (def_builtin): Change from macro into function.
10347 (def_builtin_const): New.
10348 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
10349 other than alignaddr and falignaddr.
10350
10351 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
10352 UNSPEC_FCMPEQ): New unspec codes.
10353 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
10354 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
10355 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
10356 new pixel compare VIS patterns.
10357 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
10358 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
10359 __vis_fcmpeq16, __vis_fcmpeq32): New.
10360 * doc/extend.texi: Document new pixel compare VIS intrinsics.
10361
10362 2011-09-21 Tom de Vries <tom@codesourcery.com>
10363
10364 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
10365
10366 2011-09-20 David S. Miller <davem@davemloft.net>
10367
10368 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
10369 (aligneddrl<P:mode>_vis): New pattern.
10370 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
10371 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
10372 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
10373 alignaddrl insn, and adjust edge operations for updated types.
10374 * config/sparc/visintrin.h: Likewise.
10375 * doc/extend.texi: Make typing in VIS documentation match reality.
10376
10377 2011-09-20 Terry Guo <terry.guo@arm.com>
10378
10379 * config/arm/arm-arches.def: Add armv6s-m.
10380 * config/arm/arm-tables.opt: Regenerate.
10381
10382 2011-09-20 Wei Guozhi <carrot@google.com>
10383
10384 PR rtl-optimization/49452
10385 * postreload.c (reload_combine): Invalidate use information when across
10386 volatile insn.
10387
10388 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
10389
10390 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
10391 Remove maintenance overhead.
10392 (haifa_sched_init, sched_finish): Update.
10393
10394 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
10395
10396 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
10397 to calculate unit, prefix_rep and prefix_data16 attributes.
10398 (*mov<mode>_internal): Ditto for unit attribute.
10399 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
10400 (*movv2sf_internal): Ditto.
10401 * config/i386/sse.md (VI1248_256): Remove mode iterator.
10402 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
10403 (*avx2_eq<mode>3): Ditto.
10404 (avx2_gt<mode>3): Ditto.
10405
10406 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
10407
10408 * config/i386/i386.md (maxmin): New code iterator.
10409 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
10410 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
10411 code iterator.
10412 (*avx2_<maxmin:code><mode>3): Macroize isn from
10413 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
10414 maxmin code iterator.
10415 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
10416 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
10417 <umaxmin:code>v16qi3.
10418
10419 2011-09-19 Alan Modra <amodra@gmail.com>
10420 Michael Meissner <meissner@linux.vnet.ibm.com>
10421
10422 PR target/50341
10423 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
10424 split the load of the indirect function's TOC from the call to
10425 prevent the compiler from moving the load of the new TOC above
10426 code that references the current function's TOC.
10427 (call_indirect_aix<ptrsize>_internal): Ditto.
10428 (call_indirect_aix<ptrsize>_nor11): Ditto.
10429 (call_indirect_aix<ptrsize>_internal2): Ditto.
10430 (call_value_indirect_aix<ptrsize>): Ditto.
10431 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10432 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10433 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10434
10435 2011-09-19 Jakub Jelinek <jakub@redhat.com>
10436
10437 * config/i386/sse.md (*sse4_1_extractps): Change into
10438 define_insn_and_split, add =x 0 n and =x x n alternatives
10439 and split them after reload.
10440
10441 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
10442
10443 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
10444
10445 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
10446
10447 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
10448
10449 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
10450
10451 PR tree-optimization/50413
10452 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
10453 a basic block if one of its data-refs can't be analyzed.
10454
10455 2011-09-19 Paul Brook <paul@codesourcery.com>
10456
10457 * config/arm/predicates.md (shift_amount_operand): Check constant
10458 shift count is in range.
10459 (const_shift_operand): Remove.
10460
10461 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
10462 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10463
10464 PR target/50091
10465 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
10466 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
10467
10468 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
10469
10470 * config/i386/bmiintrin.h: Remove tmp.
10471 * config/i386/tbmintrin.h: Likewise.
10472
10473 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
10474
10475 PR tree-optimization/50414
10476 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
10477 MIN_EXPR.
10478
10479 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
10480
10481 PR tree-optimization/50412
10482 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
10483 acceses that require epilogue loop if vectorizing outer loop.
10484
10485 2011-09-17 David S. Miller <davem@davemloft.net>
10486
10487 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
10488 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
10489 New unspecs.
10490 (define_attr type): New type 'edge'.
10491 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
10492 edge32l_vis): New patterns.
10493 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
10494 * config/sparc/ultra3.md: Likewise.
10495 * config/sparc/niagara.md: Likewise.
10496 * config/sparc/niagara2.md: Likewise.
10497 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
10498 builtins for VIS edge instructions.
10499 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
10500 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
10501 intrinsics.
10502 (__v8qi, __v4qi): Make unsigned.
10503 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
10504 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
10505 __vis_fpack32): Fix types.
10506 * doc/extend.texi: Document new 'edge' VIS intrinsics.
10507
10508 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
10509 divide costs.
10510 (niagara3_costs): New.
10511 (sparc_option_override): Use it.
10512 * gcc/config/sparc/niagara2.md: Adjust with more accurate
10513 Niagara-3 reservations.
10514
10515 2011-09-17 Jakub Jelinek <jakub@redhat.com>
10516
10517 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
10518 (sse2_avx, sseinsnmode): Add V2TI.
10519 (REDUC_SMINMAX_MODE): New mode iterator.
10520 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
10521 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
10522 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
10523 (sse2_lshrv1ti3): Rename to...
10524 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
10525 iterator. Move before umaxmin expanders.
10526 * config/i386/i386.h (VALID_AVX256_REG_MODE,
10527 SSE_REG_MODE_P): Accept V2TImode.
10528 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
10529 V16HImode, V8SImode and V4DImode.
10530
10531 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
10532 and V4DImode.
10533 (ix86_build_signbit_mask): Likewise.
10534 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
10535 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
10536 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
10537 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
10538 (<code><mode>3) ... this.
10539 (avx2_<code><mode>3 smaxmin expand): Rename to...
10540 (<code><mode>3) ... this.
10541 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
10542 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
10543 VI8_AVX2 mode iterator.
10544 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
10545 VI8_AVX2 mode iterator.
10546 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
10547 New expanders.
10548
10549 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
10550
10551 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
10552 throughout file.
10553
10554 2011-09-16 David S. Miller <davem@davemloft.net>
10555
10556 * config/sparc/visintrin.h: New file.
10557 * config.gcc: Add it to extra_headers on sparc.
10558
10559 2011-09-16 Jakub Jelinek <jakub@redhat.com>
10560
10561 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
10562 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
10563 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
10564 reduc_smin_v4sf): Adjust callers.
10565 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
10566 New expanders.
10567
10568 * config/i386/sse.md (vec_extract_hi_<mode>,
10569 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
10570 vextracti128 instead of vextractf128 for -mavx2 and
10571 integer vectors. For V4DFmode fix up mode attribute.
10572 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
10573 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
10574 instead of V8SF mode attribute.
10575 (avx2_extracti128): Change into define_expand.
10576 * config/i386/i386.c (ix86_expand_vector_extract): Handle
10577 32-byte vector modes if TARGET_AVX.
10578
10579 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
10580
10581 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
10582 (umulqi3_highpart, smulqi3_highpart): Ditto.
10583 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
10584 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
10585 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
10586
10587 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
10588
10589 PR target/50358
10590 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
10591 (*maddqi4, *maddqi4.const): New insns.
10592 (*msubqi4, *msubqi4.const): New insns.
10593 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
10594 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
10595 HImode by 1 in the case of multiplying with a CONST_INT.
10596 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
10597
10598 2011-09-15 Jan Hubicka <jh@suse.cz>
10599
10600 PR lto/50430
10601 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
10602 error_mark_node in the DECL_INITIAL of vtable.
10603
10604 2011-09-15 Diego Novillo <dnovillo@google.com>
10605
10606 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
10607 @SYSROOT_CFLAGS_FOR_TARGET@.
10608 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
10609 * configure: Regenerate.
10610 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
10611 Remove setting of GCC_UNDER_TEST.
10612
10613 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
10614
10615 * config/i386/i386.c (output_fp_compare): Return %v prefixed
10616 instruction mnemonics for TARGET_AVX.
10617
10618 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
10619 "type" attribute calculation.
10620 (*movdf_internal): Ditto.
10621 (*movsf_internal): Ditto.
10622
10623 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
10624
10625 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
10626
10627 2011-09-15 Jason Merrill <jason@redhat.com>
10628
10629 PR c++/50361
10630 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
10631
10632 2011-09-15 Jan Hubicka <jh@suse.cz>
10633
10634 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
10635 simplify obviously true clauses.
10636 (and_predicates, or_predicates): Add conditions parameter.
10637 (inline_duplication_hoook): Update.
10638 (mark_modified): New function.
10639 (unmodified_parm): New function.
10640 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
10641 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
10642 Use unmodified_parm.
10643 (estimate_function_body_sizes): Update.
10644 (remap_predicate): Update.
10645
10646 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
10647
10648 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
10649 read-after-read dependencies in basic block SLP.
10650
10651 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10652
10653 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
10654 throughout file.
10655
10656 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10657
10658 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
10659 throughout file.
10660
10661 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10662
10663 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
10664 throughout file.
10665
10666 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10667
10668 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
10669 throughout file.
10670 * config/rs6000/constraints.md: Likewise.
10671
10672 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10673
10674 * config/microblaze/microblaze.md: Use match_test rather than
10675 eq/ne symbol_ref throughout file.
10676
10677 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
10678
10679 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
10680 throughout file.
10681
10682 2011-09-14 Tom de Vries <tom@codesourcery.com>
10683
10684 PR middle-end/50251
10685 * explow.c (emit_stack_restore): Set crtl->need_drap if
10686 stack_restore is emitted.
10687
10688 2011-09-14 Julian Brown <julian@codesourcery.com>
10689
10690 * config/arm/arm.c (arm_override_options): Add unaligned_access
10691 support.
10692 (arm_file_start): Emit attribute for unaligned access as appropriate.
10693 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
10694 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
10695 (insv, extzv): Add unaligned-access support.
10696 (extv): Change to expander. Likewise.
10697 (extzv_t1, extv_regsi): Add helpers.
10698 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
10699 (unaligned_storesi, unaligned_storehi): New.
10700 (*extv_reg): New (previous extv implementation).
10701 * config/arm/arm.opt (munaligned_access): Add option.
10702 * config/arm/constraints.md (Uw): New constraint.
10703 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
10704 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
10705 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
10706 volatile accesses when -fstrict-volatile-bitfields is in effect.
10707 (extract_bit_field_1): Likewise.
10708
10709 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
10710
10711 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
10712 a scalar integer before applying integer-only optimisations to
10713 inner arithmetic.
10714
10715 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
10716
10717 * config/mips/mips.c (mips_expand_epilogue): Generate a
10718 simple_return only if the return address is in r31.
10719
10720 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
10721
10722 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
10723 NULL for a jump that is a cc0 insn, pick the previous insn for
10724 move_before.
10725
10726 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10727
10728 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
10729 throughout file.
10730
10731 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10732
10733 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
10734 throughout file.
10735
10736 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10737
10738 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
10739 symbol_ref throughout file.
10740
10741 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10742
10743 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
10744 throughout file.
10745
10746 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10747
10748 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
10749 throughout file.
10750
10751 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
10752
10753 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
10754 throughout file.
10755 * config/arm/neon.md: Likewise.
10756 * config/arm/vfp.md: Likewise.
10757 * config/arm/thumb2.md: Likewise.
10758 * config/arm/cortex-m4.md: Likewise.
10759
10760 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
10761
10762 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
10763 define_insn patterns for combine.
10764
10765 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
10766
10767 * reorg.c: Always define make_return_insns.
10768
10769 2011-09-13 Jan Hubicka <jh@suse.cz>
10770
10771 PR other/49533
10772 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
10773
10774 2011-09-13 Jan Hubicka <jh@suse.cz>
10775
10776 PR other/49533
10777 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
10778
10779 2011-09-13 Paul Brook <paul@codesourcery.com>
10780
10781 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10782 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
10783 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
10784 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
10785 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
10786 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
10787 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
10788 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
10789 enabling unwind tables.
10790 (c6x_debug_unwind_info): New function.
10791 (TARGET_ARM_EABI_UNWINDER): Define.
10792 (TARGET_DEBUG_UNWIND_INFO): Define.
10793 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
10794 (TARGET_EXTRA_CFI_SECTION): Remove.
10795 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
10796 * ginclude/unwind-arm-common.h: New file.
10797
10798 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
10799
10800 PR target/50358
10801 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
10802 * config/avr/avr.md: (extend_s): New code attribute.
10803 (mul_r_d): New code attribute.
10804 (*maddqihi4, *umaddqihi4): New insns.
10805 (*msubqihi4, *umsubqihi4): New insns.
10806 (*usmaddqihi4, *sumaddqihi4): New insns.
10807 (*usmsubqihi4, *susubdqihi4): New insns.
10808 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
10809 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
10810 (*umsubqihi4.uconst.ashift): New insn-and-split.
10811 (*msubqihi4.sconst.ashift): New insn-and-split.
10812 (*sumaddqihi4.uconst): New insn-and-split.
10813 (*sumsubqihi4.uconst): New insn-and-split.
10814 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
10815 PLUS:HI and MINUS:HI.
10816
10817 2011-09-13 Revital Eres <revital.eres@linaro.org>
10818
10819 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
10820 (optimize_sc): Adjust call to remove_node_from_ps.
10821 (sms_schedule): Add print info.
10822
10823 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
10824
10825 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
10826 flags specially.
10827
10828 2011-09-12 Jakub Jelinek <jakub@redhat.com>
10829
10830 PR bootstrap/50010
10831 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
10832 NOTE_INSN_CFI notes, with the exception of
10833 NOTE_INSN_SWITCH_TEXT_SECTIONS.
10834
10835 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
10836 Richard Sandiford <rdsandiford@googlemail.com>
10837
10838 * config/mips/mips.c (mips_epilogue): New structure.
10839 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
10840 restoring registers.
10841 (mips_epilogue_emit_cfa_restores): New function.
10842 (mips_epilogue_set_cfa): Likewise.
10843 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
10844 the current CFA register from the stack, redefine the CFA in terms
10845 of the stack pointer.
10846 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
10847 to the epilogue instructions.
10848
10849 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
10850
10851 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
10852 argument.
10853 (mips16e_build_save_restore): Update accordingly.
10854
10855 2011-09-12 Jakub Jelinek <jakub@redhat.com>
10856
10857 PR rtl-optimization/50212
10858 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10859 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
10860
10861 PR debug/50299
10862 * calls.c (load_register_parameters): Use use_reg_mode instead
10863 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
10864 entry.
10865 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
10866 for stack CALL_INSN_FUNCTION_USAGE uses.
10867 * expr.h (use_reg_mode): New prototype.
10868 (use_reg): Changed into inline around use_reg_mode.
10869 * expr.c (use_reg): Renamed to...
10870 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
10871 mode to that mode instead of VOIDmode.
10872 * var-tracking.c (prepare_call_arguments): Don't track parameters
10873 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
10874 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
10875 EXPR_LIST mode.
10876
10877 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
10878
10879 PR target/43746
10880 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
10881 (progmem_section): New Variable.
10882 (avr_asm_init_sections): Initialize it.
10883 (TARGET_ASM_SELECT_SECTION): Define to...
10884 (avr_asm_select_section): ... this new Function.
10885 (avr_replace_prefix): New Function.
10886 (avr_asm_function_rodata_section): Use it.
10887 (avr_insert_attributes): Don't add section attribute for PROGMEM.
10888 (avr_section_type_flags): Use avr_progmem_p instead of section
10889 name to detect if object is in PROGMEM.
10890 (avr_asm_named_section): Set section name prefix for objects in
10891 PROGMEM.
10892
10893 2011-09-12 Jakub Jelinek <jakub@redhat.com>
10894
10895 PR bootstrap/50352
10896 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
10897 sprintf format string.
10898
10899 2011-09-12 Richard Guenther <rguenther@suse.de>
10900
10901 PR tree-optimization/50343
10902 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
10903 that the reduction is over an SSA name before checking its definition.
10904
10905 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
10906
10907 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
10908 throughout file.
10909
10910 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
10911
10912 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
10913 throughout file.
10914 * config/mips/sb1.md: Likewise.
10915 * config/mips/predicates.md: Replace (match_test "!...")
10916 with (not (match_test "..."))
10917 * config/mips/constraints.md: Likewise.
10918
10919 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
10920
10921 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
10922 * config/arm/arm-tables.opt: Regenerate.
10923 * config/arm/arm-tune.md: Regenerate.
10924 * config/arm/arm.c (arm_file_start): Output .arch directive when
10925 user passes -mcpu=generic-*.
10926 (arm_issue_rate): Add genericv7a support.
10927 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
10928 (ASM_CPU_SPEC): New define.
10929 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
10930 * config/arm/semi.h (ASM_SPEC): Likewise.
10931 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
10932 and -mtune=generic-*.
10933
10934 2011-09-09 Richard Guenther <rguenther@suse.de>
10935
10936 PR tree-optimization/50328
10937 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
10938 constant or default-def operand.
10939
10940 2011-09-09 Richard Guenther <rguenther@suse.de>
10941
10942 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
10943 last statement.
10944
10945 2011-09-09 Richard Guenther <rguenther@suse.de>
10946
10947 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
10948 instead of a statement.
10949 * gimple-fold.c (fold_stmt_inplace): Likewise.
10950 * sese.c (graphite_copy_stmts_from_block): Adjust.
10951 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10952 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
10953 fold_stmt.
10954 (forward_propagate_addr_into_variable_array_index): Likewise.
10955 (forward_propagate_addr_expr_1): adjust.
10956 (associate_plusminus): Likewise.
10957 (ssa_forward_propagate_and_combine): Likewise.
10958 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
10959 (execute_cse_reciprocals): Likewise.
10960 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
10961
10962 2011-09-09 Nick Clifton <nickc@redhat.com>
10963
10964 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
10965 Return a positive value to indicate that the bits at the
10966 bottom of the register should be cleared.
10967
10968 2011-09-09 Richard Guenther <rguenther@suse.de>
10969
10970 * tree-ssa-operands.c (swap_tree_operands): Always adjust
10971 existing operand positions.
10972
10973 2011-09-09 Richard Guenther <rguenther@suse.de>
10974
10975 PR middle-end/50333
10976 * tree-data-ref.c (split_constant_offset): Do not try to handle
10977 ternary ops.
10978
10979 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
10980
10981 PR tree-optimization/50318
10982 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
10983 typo in use of mult_rhs1 and mult_rhs2.
10984
10985 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
10986
10987 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
10988 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
10989
10990 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
10991
10992 * config/arm/arm.md (push_multi): Emit predicates.
10993 (push_fp_multi): Likewise.
10994 * config/arm/arm.c (vfp_output_fstmd): Likewise.
10995
10996 2011-09-08 Dodji Seketeli <dodji@redhat.com>
10997
10998 PR c++/33255 - Support -Wunused-local-typedefs warning
10999 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
11000 (pushdecl): Use the new record_locally_defined_typedef.
11001 (store_parm_decls): Allocate cfun->language.
11002 (finish_function): Use the new maybe_warn_unused_local_typedefs,
11003 and free cfun->language.
11004 (c_push_function_context): Allocate cfun->language here only if needed.
11005 (c_pop_function_context): Likewise, mark cfun->language
11006 for collection only when it should be done.
11007 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
11008 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
11009 maybe_record_local_typedef_use.
11010 * doc/invoke.texi: Update documentation for
11011 -Wunused-local-typedefs.
11012
11013 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
11014
11015 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
11016 (ix86_avoid_lea_for_add): Likewise.
11017 (ix86_avoid_lea_for_addr): Likewise.
11018 (ix86_split_lea_for_addr): Likewise.
11019
11020 * config/i386/i386.c (LEA_MAX_STALL): New.
11021 (increase_distance): Likewise.
11022 (insn_defines_reg): Likewise.
11023 (insn_uses_reg_mem): Likewise.
11024 (distance_non_agu_define_in_bb): Likewise.
11025 (distance_agu_use_in_bb): Likewise.
11026 (ix86_lea_outperforms): Likewise.
11027 (ix86_ok_to_clobber_flags): Likewise.
11028 (ix86_avoid_lea_for_add): Likewise.
11029 (ix86_avoid_lea_for_addr): Likewise.
11030 (ix86_split_lea_for_addr): Likewise.
11031 (distance_non_agu_define): Search in pred BBs added.
11032 (distance_agu_use): Search in succ BBs added.
11033 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
11034 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
11035 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
11036
11037 * config/i386/i386.md: Split added to transform non destructive
11038 add into move and add.
11039 (lea_1): transformed into insn_and_split to avoid AGU stalls.
11040 (lea<mode>_2): Likewise.
11041
11042 2011-09-08 Martin Jambor <mjambor@suse.cz>
11043
11044 PR tree-optimization/50287
11045 * ipa-split.c (split_function): Do not create SSA names for
11046 non-gimple-registers.
11047
11048 2011-09-08 Richard Guenther <rguenther@suse.de>
11049
11050 PR tree-optimization/19831
11051 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
11052 skip builtins with vdefs that do not really store something.
11053 (propagate_necessity): For calls to free that we can associate
11054 with an allocation function do not mark the freed pointer
11055 definition necessary.
11056 (eliminate_unnecessary_stmts): Remove a call to free if
11057 the associated call to an allocation function is not necessary.
11058
11059 2011-09-08 Richard Guenther <rguenther@suse.de>
11060
11061 PR tree-optimization/19831
11062 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
11063 allocation functions as necessary.
11064
11065 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
11066
11067 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
11068 cut from ...
11069 (darwin_default_min_version): Amended to provide defaults
11070 for the cross directory case.
11071 (darwin_driver_init): call darwin_default_min_version unconditionally.
11072 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
11073 * config/darwin9.h: Likewise.
11074 * config/darwin10.h: Likewise.
11075 * config/rs6000/darwin7.h: Likewise.
11076
11077 2011-09-08 Jakub Jelinek <jakub@redhat.com>
11078
11079 PR target/50310
11080 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
11081 code early if TARGET_AVX.
11082 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
11083
11084 2011-09-07 Jakub Jelinek <jakub@redhat.com>
11085
11086 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
11087 duplicates.
11088
11089 PR target/50310
11090 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
11091 "mode" attribute computation.
11092
11093 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
11094
11095 * regrename.c (struct du_head): Make nregs signed.
11096 (closed_chains): Remove.
11097 (create_new_chain): Return the new chain.
11098 (chain_from_id): New static function.
11099 (dump_def_use_chain): Change argument to be an int, indicating
11100 the first ID to print. All callers changed.
11101 (merge_overlapping_regs): Use chain_from_id. Assert that
11102 chains don't conflict with themselves.
11103 (rename_chains): Take no argument. Iterate over id_to_chain
11104 rather to find chains to rename. Clear tick before the main loop.
11105 (struct incoming_reg_info): New struct.
11106 (struct bb_rename_info): New struct.
11107 (init_rename_info, set_incoming_from_chain, merge_chains): New
11108 static functions.
11109 (regrename_analyze): New static function, broken out of
11110 regrename_optimize. Record and make use of open chain information
11111 at basic block boundaries, and merge chains where possible.
11112 (scan_rtx_reg): Make this_nregs signed. Don't update
11113 closed_chains.
11114 (build_def_use): Return a bool to indicate success. All callers
11115 changed. Don't initialize global data here.
11116 (regrename_optimize): Move most code out of here into
11117 regrename_analyze.
11118 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
11119 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
11120 static inline functions.
11121 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
11122
11123 * bb-reorder.c (insert_section_boundary_note): Don't check
11124 optimize_function_for_speed_p.
11125 (gate_handle_partition_blocks): Do it here instead.
11126 (gate_handle_reorder_blocks): Move preliminary checks here ...
11127 (rest_of_handle_reorder_blocks): ... from here.
11128
11129 2011-09-07 Martin Jambor <mjambor@suse.cz>
11130
11131 PR middle-end/50301
11132 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
11133 function index bounds.
11134 (perhaps_add_new_callers): Likewise.
11135
11136 2011-09-07 Martin Jambor <mjambor@suse.cz>
11137
11138 PR tree-optimization/49911
11139 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
11140 enumerations to the corresponding plain integer type.
11141
11142 2011-09-07 Richard Guenther <rguenther@suse.de>
11143
11144 PR tree-optimization/50319
11145 * tree-if-conv.c (set_bb_predicate): Assert we only set
11146 canonical predicates.
11147 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
11148 around canonical predicates.
11149 (predicate_bbs): Do not re-gimplify already canonical
11150 predicates. Properly unshare them though.
11151 (find_phi_replacement_condition): Simplify.
11152
11153 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
11154
11155 PR target/49030
11156 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
11157 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
11158 reusing the old code from get_arm_condition_code. Return ARM_NV
11159 for invalid comparison codes.
11160 (get_arm_condition_code): Redefine in terms of
11161 maybe_get_arm_condition_code.
11162 * config/arm/predicates.md (arm_comparison_operator): Use
11163 maybe_get_arm_condition_code.
11164
11165 2011-09-07 Richard Guenther <rguenther@suse.de>
11166
11167 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11168 Canonicalize negated predicates by swapping edges.
11169 (forward_propagate_into_cond): Likewise.
11170
11171 2011-09-07 Richard Guenther <rguenther@suse.de>
11172
11173 PR tree-optimization/50213
11174 * tree-flow.h (simple_iv_increment_p): Declare.
11175 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
11176 POINTER_PLUS_EXPR.
11177 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
11178 not propagate simple IV counter increments.
11179
11180 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
11181 Iain Sandoe <iains@gcc.gnu.org>
11182
11183 * config/rs6000/rs6000.c (compute_save_world_info): Test
11184 cfun->has_nonlocal_label to determine if the out-of-line save
11185 world call may be used.
11186
11187 2011-09-07 Nick Clifton <nickc@redhat.com>
11188
11189 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
11190 label on the parallel part of the insn.
11191
11192 2011-09-07 Jakub Jelinek <jakub@redhat.com>
11193
11194 PR debug/50191
11195 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
11196 avoid_constant_pool_reference first instead of last.
11197
11198 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11199
11200 * doc/configfiles.texi (Configuration Files): Update documentation
11201 about tm_p.h and remove FIXME comment.
11202
11203 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
11204
11205 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
11206 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
11207
11208 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
11209
11210 * config/darwin10.h Remove duplicate LIB_SPEC.
11211
11212 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
11213
11214 PR middle-end/44382
11215 * target.def (reassociation_width): New hook.
11216
11217 * doc/tm.texi.in (reassociation_width): Likewise.
11218
11219 * doc/tm.texi (reassociation_width): Likewise.
11220
11221 * doc/invoke.texi (tree-reassoc-width): New param documented.
11222
11223 * hooks.h (hook_int_uint_mode_1): New default hook.
11224
11225 * hooks.c (hook_int_uint_mode_1): Likewise.
11226
11227 * config/i386/i386.h (ix86_tune_indices): Add
11228 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
11229
11230 (TARGET_REASSOC_INT_TO_PARALLEL): New.
11231 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
11232
11233 * config/i386/i386.c (initial_ix86_tune_features): Add
11234 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
11235
11236 (ix86_reassociation_width): New function.
11237
11238 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
11239
11240 * tree-ssa-reassoc.c (get_required_cycles): New function.
11241 (get_reassociation_width): Likewise.
11242 (swap_ops_for_binary_stmt): Likewise.
11243 (rewrite_expr_tree_parallel): Likewise.
11244
11245 (rewrite_expr_tree): Refactored. Part of code moved into
11246 swap_ops_for_binary_stmt.
11247
11248 (reassociate_bb): Now checks reassociation width to be used and
11249 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
11250
11251 2011-09-06 Richard Guenther <rguenther@suse.de>
11252
11253 PR tree-optimization/47025
11254 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
11255 uses nothing.
11256 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
11257 BUILT_IN_FREE.
11258 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
11259 definitely points to.
11260 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11261 BUILT_IN_VA_START doesn't let its va_list argument escape.
11262 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
11263 not make any previous stores necessary.
11264
11265 2011-09-06 Martin Jambor <mjambor@suse.cz>
11266
11267 * ipa-inline.h (struct inline_summary): Move versionable flag...
11268 * cgraph.h (struct cgraph_local_info): ...here
11269 * ipa-cp.c (determine_versionability): Use the new versionable flag.
11270 (determine_versionability): Likewise.
11271 (ipcp_versionable_function_p): Likewise.
11272 (ipcp_generate_summary): Likewise.
11273 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
11274 versionable flag.
11275 (compute_inline_parameters): Do not clear the versionable flag.
11276 (inline_read_section): Do not stream the versionable flag.
11277 (inline_write_summary): Likewise.
11278 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
11279 (input_overwrite_node): Likewise.
11280
11281 2011-09-06 Richard Guenther <rguenther@suse.de>
11282
11283 PR tree-optimization/48149
11284 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
11285 (vn_valueize): Move earlier.
11286 (valueize_expr): Use vn_valueize.
11287 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
11288 operands.
11289 (simplify_unary_expression): Simplify.
11290
11291 2011-09-06 Richard Guenther <rguenther@suse.de>
11292
11293 PR tree-optimization/48317
11294 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
11295 trailing array.
11296 (sizeof_vn_nary_op): New inline function.
11297 (vn_nary_op_lookup_pieces): Adjust.
11298 (vn_nary_op_insert_pieces): Likewise.
11299 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
11300 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
11301 any number of operands.
11302 (vn_nary_length_from_stmt): New function.
11303 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
11304 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
11305 sized temporary.
11306 (vn_nary_op_lookup): Likewise.
11307 (vn_nary_op_lookup_stmt): Likewise.
11308 (vn_nary_op_insert_into): Likewise.
11309 (vn_nary_op_insert_stmt): Likewise.
11310 (visit_use): Handle CONSTRUCTOR as nary.
11311 * tree-ssa-pre.c (phi_translate_1): Adjust.
11312 (create_expression_by_pieces): Likewise.
11313 (compute_avail): Likewise.
11314
11315 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
11316
11317 * config/arm/arm.c (arm_preferred_simd_mode): Check
11318 TARGET_NEON_VECTORIZE_DOUBLE instead of
11319 TARGET_NEON_VECTORIZE_QUAD.
11320 (arm_autovectorize_vector_sizes): Likewise.
11321 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
11322 mask of mvectorize-with-neon-double. Add RejectNegative.
11323 (mvectorize-with-neon-double): New.
11324
11325 2011-09-06 Richard Guenther <rguenther@suse.de>
11326
11327 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
11328
11329 2011-09-06 Tom de Vries <tom@codesourcery.com>
11330
11331 * recog.c (asm_labels_ok): New function.
11332 (check_asm_operands): Use asm_labels_ok.
11333
11334 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
11335
11336 PR target/49606
11337 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
11338 (PMODE_INSN): New macro.
11339 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
11340 (mips_got_load, mips_expand_synci_loop): Likewise.
11341 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
11342 cprestore patterns.
11343 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
11344 copygp_mips16 patterns.
11345 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
11346 and use_cprestore patterns.
11347 (mips_override_options): Check for incompatible -mabi and -mlong
11348 combinations.
11349 * config/mips/mips.md (unspec_got<mode>): Rename to...
11350 (unspec_got_<mode>): ...this.
11351 (copygp_mips16): Use the Pmode iterator.
11352 (potential_cprestore, cprestore, use_cprestore): Likewise.
11353 (clear_cache, indirect_jump): Use PMODE_INSN.
11354 (indirect_jump<mode>): Rename to...
11355 (indirect_jump_<mode>): ...this.
11356 (tablejump): Use PMODE_INSN.
11357 (tablejump<mode>): Rename to...
11358 (tablejump_<mode>): ...this.
11359 (exception_receiver): Handle restore_gp_si and restore_gp_di.
11360 (restore_gp): Use the Pmode iterator.
11361 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
11362 PMODE_INSN.
11363
11364 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
11365
11366 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
11367 Fix the type of the BIT_AND_EXPR.
11368
11369 2011-09-05 David S. Miller <davem@davemloft.net>
11370
11371 * config.host: Add driver-sparc.o and sparc/x-sparc on
11372 native sparc*-*-linux* builds.
11373 * config/sparc/driver-sparc.c: Correct Linux strings.
11374 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
11375 * config/sparc/linux64.h: Likewise.
11376 * doc/invoke.texi: Document that Linux also supports
11377 -mcpu=native and -mtune=native on sparc.
11378
11379 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
11380 PROCESSOR_NIAGARA4): New.
11381 * config/sparc/sparc.opt: Handle new processor types.
11382 * config/sparc/sparc.md: Add to "cpu" attribute.
11383 * config/sparc/sparc.h (TARGET_CPU_niagara3,
11384 TARGET_CPU_niagara4): New, treat as niagara2.
11385 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
11386 * config/sparc/sol2.h: Likewise.
11387 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
11388 * config/sparc/sparc.c (sparc_option_override): Add
11389 niagara3 and niagara4 handling.
11390 (sparc32_initialize_trampoline): Likewise.
11391 (sparc64_initialize_trampoline): Likewise.
11392 (sparc_use_sched_lookahead): Likewise.
11393 (sparc_issue_rate): Likewise.
11394 (sparc_register_move_cost): Likewise.
11395 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
11396 and niagara4 as appropriate.
11397 * doc/invoke.texi: Document new processor types.
11398 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
11399 and --with-tune options.
11400
11401 * config/sparc/sol2-64.h: Move ...
11402 * config/sparc/default-64.h: ... to here. Update comment.
11403 * config.gcc: Update Solaris sparc to use default-64.h, also
11404 prefix this header into the list on sparc64-*-linux.
11405 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
11406 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
11407 to MASK_HARD_QUAD.
11408
11409 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
11410
11411 PR target/50289
11412 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
11413 that contain global register variable.
11414
11415 2011-09-05 Richard Guenther <rguenther@suse.de>
11416
11417 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
11418
11419 2011-09-05 Richard Guenther <rguenther@suse.de>
11420
11421 * stor-layout.c (layout_type): Use size_binop for array size
11422 calculations.
11423
11424 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
11425
11426 * config/avr/avr.h (progmem_section): Remove Declaration.
11427 * config/avr/avr.c (progmem_section): Make static and rename to
11428 progmem_swtable_section.
11429 (avr_output_addr_vec_elt): No need to switch sections.
11430 (avr_asm_init_sections): Use output_section_asm_op as section
11431 callback for progmem_swtable_section.
11432 (avr_output_progmem_section_asm_op): Remove Function.
11433 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
11434 (avr_asm_function_rodata_section): New static Function.
11435 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
11436 alignment 2**1 for jump tables.
11437
11438 2011-09-04 Jan Hubicka <jh@suse.cz>
11439
11440 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
11441 parameter is SSA name.
11442
11443 2011-09-04 Richard Guenther <rguenther@suse.de>
11444
11445 Revert
11446 2011-08-31 Richard Guenther <rguenther@suse.de>
11447
11448 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
11449 special-casing.
11450
11451 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
11452
11453 PR debug/49901
11454 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
11455
11456 2011-09-04 Jakub Jelinek <jakub@redhat.com>
11457 Ira Rosen <ira.rosen@linaro.org>
11458
11459 PR tree-optimization/50208
11460 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
11461 argument. Check that def_stmt is inside the loop.
11462 (vect_recog_widen_mult_pattern): Update calls to
11463 vect_handle_widen_mult_by_cons.
11464 (vect_operation_fits_smaller_type): Check that def_stmt is
11465 inside the loop.
11466
11467 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
11468
11469 * tree-vectorizer.c (vect_print_dump_info): Print line
11470 number when dumping to a file.
11471 (vectorize_loops): Add new messages to dump file.
11472
11473 2011-09-03 Martin Jambor <mjambor@suse.cz>
11474
11475 * ipa-prop.h (ipa_jump_func_t): New typedef.
11476 (struct ipa_edge_args): Removed field argument_count, field
11477 jump_functions turned into a vector.
11478 (ipa_set_cs_argument_count): Removed.
11479 (ipa_get_cs_argument_count): Updated to work on vectors.
11480 (ipa_get_ith_jump_func): Likewise.
11481 * ipa-prop.c (ipa_count_arguments): Removed.
11482 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
11483 jump functions. Update caller.
11484 (compute_pass_through_member_ptrs): Likewise.
11485 (compute_cst_member_ptr_arguments): Likewise.
11486 (ipa_compute_jump_functions_for_edge): Get number of arguments from
11487 the statement, allocate vector.
11488 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
11489 (duplicate_ipa_jump_func_array): Removed.
11490 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
11491 (ipa_read_node_info): Allocate vector.
11492
11493 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11494
11495 PR middle-end/50232
11496 * config/pa/pa.md (return): Define "return" insn pattern.
11497 (epilogue): Use it when no epilogue is needed.
11498 * config/pa/pa.c (pa_can_use_return_insn): New function.
11499 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
11500
11501 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
11502
11503 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
11504 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
11505 Force at least BITS_PER_UNIT alignment on the new variable.
11506
11507 2011-09-02 Gary Funck <gary@intrepid.com>
11508
11509 * opts.c (print_specific_help): Fix off-by-one compare in
11510 assertion check.
11511 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11512 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
11513 Increase by +5 to allow for more languages.
11514 * optc-gen.awk: Generate #if that ensures that the number of
11515 languages is within the implementation-defined limit.
11516
11517 2011-09-02 Michael Matz <matz@suse.de>
11518
11519 PR middle-end/50260
11520 * ipa-split.c (split_function): Call add_referenced_var.
11521
11522 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
11523 (cond_if_else_store_replacement_1): Ditto.
11524 * tree-ssa-pre.c (get_representative_for): Ditto.
11525 (create_expression_by_pieces): Ditto.
11526 (insert_into_preds_of_block): Ditto.
11527 * tree-sra.c (create_access_replacement): Ditto.
11528 (get_replaced_param_substitute): Ditto.
11529
11530 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
11531
11532 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
11533 automata_options.
11534 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
11535 (l1w, s1w, l2w, s2w): Define in the main automaton.
11536 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
11537 units.
11538 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
11539 (c6x_unit_names): Add the new units.
11540 (c6x_unit_codes): New static array.
11541 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
11542 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
11543 UNIT_QID_SIDE_OFFSET): New macros.
11544 (RESERVATION_S2): Adjust value.
11545 (c6x_option_override): Compute c6x_unit_codes.
11546 (assign_reservations): Take the unit_mask of the last instruction
11547 into account. Detect floating point reservations by looking for
11548 the new units. Don't assign reservations if the field is already
11549 nonzero.
11550 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
11551 (init_sched_state): Initialize it.
11552 (c6x_clear_sched_context): Free it.
11553 (insn_set_clock): Clear reservation.
11554 (prev_cycle_state): New static variable.
11555 (c6x_init_sched_context): Save it.
11556 (c6x_sched_init): Allocate space for it and clear it.
11557 (c6x_sched_dfa_pre_cycle_insn): New static function.
11558 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
11559 (c6x_variable_issue): Only record units in the unit_mask that
11560 were not set at the start of the cycle.
11561 (c6x_variable_issue): Compute and store the unit_mask from the
11562 current state.
11563 (reorg_split_calls): Ensure the new information remains correct.
11564 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
11565 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
11566 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
11567 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
11568 Add special reservations.
11569 * config/c6x/c6x-sched.md: Regenerate.
11570
11571 2011-09-02 Martin Jambor <mjambor@suse.cz>
11572
11573 * ipa-prop.h (ipa_node_params): Removed fields
11574 called_with_var_arguments and node_versionable.
11575 (ipa_set_called_with_variable_arg): Removed.
11576 (ipa_is_called_with_var_arguments): Likewise.
11577 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
11578 (determine_versionability): Do not check for type attributes and va
11579 builtins. Record versionability into inline summary.
11580 (initialize_node_lattices): Do not check
11581 ipa_is_called_with_var_arguments.
11582 (propagate_constants_accross_call): Likewise, ignore arguments we do
11583 not have PARM_DECLs for, set variable flag for parameters that were
11584 not passed a value.
11585 (create_specialized_node): Dump info that we cannot change signature.
11586 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
11587 number of arguments.
11588 (ipa_make_edge_direct_to_target): Likewise.
11589 (ipa_update_after_lto_read): Likewise.
11590 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
11591 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
11592 they were remapped.
11593
11594 2011-09-02 Richard Guenther <rguenther@suse.de>
11595
11596 PR tree-optimization/27460
11597 PR middle-end/29269
11598 * doc/md.texi (vcond): Document.
11599 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
11600 optab with two modes.
11601 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
11602 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
11603 (vcond_optab): Adjust.
11604 (vcondu_optab): Likewise.
11605 (expand_vec_cond_expr_p): Adjust prototype.
11606 * optabs.c (get_vcond_icode): Adjust.
11607 (expand_vec_cond_expr_p): Likewise.
11608 (expand_vec_cond_expr): Likewise.
11609 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
11610 vector type.
11611 (vectorizable_condition): Allow differing types for comparison
11612 and result.
11613 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
11614 for the comparison.
11615 * config/i386/sse.md (vcond<mode>): Split to
11616 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
11617 vcond<V_128:mode><VI124_128:mode> and
11618 vcondu<V_128:mode><VI124_128:mode>.
11619 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
11620 (vconduv2di): Likewise.
11621 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
11622 (vcondu<mode>): Likewise.
11623 * config/ia64/vect.md (vcond<mode>): Likewise.
11624 (vcondu<mode>): Likewise.
11625 (vcondv2sf): Likewise.
11626 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
11627 * config/rs6000/paired.md (vcondv2sf): Likewise.
11628 * config/rs6000/vector.md (vcond<mode>): Likewise.
11629 (vcondu<mode>): Likewise.
11630 * config/spu/spu.md (vcond<mode>): Likewise.
11631 (vcondu<mode>): Likewise.
11632
11633 2011-09-02 Richard Guenther <rguenther@suse.de>
11634
11635 * pretty-print.h (pp_unsigned_wide_integer): New.
11636 * tree-pretty-print.c (dump_generic_node): Print unsigned
11637 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
11638
11639 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
11640
11641 PR target/49987
11642 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
11643 valid CONST_VECTOR operands.
11644 (rs6000_expand_vector_init): Likewise.
11645
11646 2011-09-02 Martin Jambor <mjambor@suse.cz>
11647
11648 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
11649 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
11650 BINFO_VTABLE. Parameter delta removed, all callers updated.
11651 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
11652 BINFO_VTABLE.
11653 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
11654 all calls.
11655 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
11656 handling of thunk_delta.
11657 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
11658 (devirtualization_time_bonus): Do not handle thunk deltas.
11659 (ipcp_discover_new_direct_edges): Likewise.
11660 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11661 (try_make_edge_direct_simple_call): Likewise.
11662 (try_make_edge_direct_virtual_call): Likewise.
11663 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
11664 parameter set as unused.
11665 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
11666 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
11667 parameter set as unused.
11668 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
11669 (input_edge_opt_summary): Likewise.
11670 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
11671 BINFO_VIRTUALS at all.
11672 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
11673
11674 2011-09-02 Richard Guenther <rguenther@suse.de>
11675
11676 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
11677 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
11678
11679 2011-08-31 Richard Guenther <rguenther@suse.de>
11680
11681 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
11682 handling here, from ...
11683 (expand_expr_real_1): ... here.
11684 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
11685 and VEC_COND_EXPR.
11686 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
11687 a GIMPLE_TERNARY_RHS.
11688 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
11689 and VEC_COND_EXPR here ...
11690 (verify_gimple_assign_single): ... not here.
11691 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
11692 * tree-object-size.c (cond_expr_object_size): Adjust.
11693 (collect_object_sizes_for): Likewise.
11694 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
11695 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
11696 (ssa_forward_propagate_and_combine): Adjust.
11697 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
11698 as ternary.
11699 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
11700 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
11701 * tree-vect-stmt.c (vectorizable_condition): Likewise.
11702 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
11703 (extract_range_from_assignment): Likewise.
11704
11705 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
11706
11707 * config/i386/i386.md: Use (match_test ...) for attribute tests.
11708 * config/i386/mmx.md: Likewise.
11709 * config/i386/sse.md: Likewise.
11710 * config/i386/predicates.md (call_insn_operand): Use
11711 (not (match_test "...")) instead of (match_test "!...")
11712 * config/i386/constraints.md (w): Likewise.
11713
11714 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
11715
11716 * doc/md.texi: Describe the use of match_tests in attribute tests.
11717 * rtl.def (MATCH_TEST): Update commentary.
11718 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
11719 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
11720
11721 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
11722
11723 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
11724 (attr_string): Use copy_md_ptr_loc.
11725
11726 2011-08-31 Martin Jambor <mjambor@suse.cz>
11727
11728 PR middle-end/49886
11729 * ipa-inline-analysis.c (compute_inline_parameters): Set
11730 can_change_signature of noes with typde attributes.
11731 * ipa-split.c (split_function): Do not skip any arguments if
11732 can_change_signature is set.
11733
11734 2011-08-31 Martin Jambor <mjambor@suse.cz>
11735
11736 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
11737 check removed.
11738
11739 2011-08-31 Richard Guenther <rguenther@suse.de>
11740
11741 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
11742 special-casing.
11743
11744 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
11745
11746 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
11747
11748 2011-08-31 Tom de Vries <tom@codesourcery.com>
11749
11750 PR middle-end/43513
11751 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
11752 * tree-ssa-ccp.c (params.h): Include.
11753 (fold_builtin_alloca_for_var): New function.
11754 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
11755
11756 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
11757
11758 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11759 Handle FMA option.
11760
11761 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
11762
11763 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
11764 b3 and b4 unsigned.
11765
11766 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
11767
11768 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
11769 when code is SET.
11770
11771 2011-08-30 Richard Guenther <rguenther@suse.de>
11772
11773 PR middle-end/48571
11774 * gimple.h (maybe_fold_offset_to_address): Remove.
11775 (maybe_fold_offset_to_reference): Likewise.
11776 (maybe_fold_stmt_addition): Likewise.
11777 (may_propagate_address_into_dereference): Likewise.
11778 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
11779 array references.
11780 * gimple-fold.c (canonicalize_constructor_val): Likewise.
11781 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
11782 addresses instead.
11783 (may_propagate_address_into_dereference): Remove.
11784 (maybe_fold_offset_to_array_ref): Likewise.
11785 (maybe_fold_offset_to_reference): Likewise.
11786 (maybe_fold_offset_to_address): Likewise.
11787 (maybe_fold_stmt_addition): Likewise.
11788 (fold_gimple_assign): Do not reconstruct array references but
11789 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
11790 MEM_REF addresses.
11791 (gimple_fold_stmt_to_constant_1): Likewise.
11792 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11793 * gimplify.c (gimplify_conversion): Likewise.
11794 (gimplify_expr): Likewise.
11795
11796 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
11797
11798 * config/i386/fmaintrin.h: New.
11799 * config.gcc: Add fmaintrin.h.
11800 * config/i386/i386.c
11801 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
11802 <IX86_BUILTIN_VFMADDSD3>: Likewise.
11803 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
11804 (*fmai_fmadd_<mode>): Likewise.
11805 (*fmai_fmsub_<mode>): Likewise.
11806 (*fmai_fnmadd_<mode>): Likewise.
11807 (*fmai_fnmsub_<mode>): Likewise.
11808 * config/i386/immintrin.h: Add fmaintrin.h.
11809
11810 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
11811
11812 * genautomata.c (NO_COMB_OPTION): New macro.
11813 (no_comb_flag): New static variable.
11814 (gen_automata_option): Handle NO_COMB_OPTION.
11815 (comb_vect_p): False if no_comb_flag.
11816 (add_vect): Move computation of min/max values. Return early if
11817 no_comb_flag.
11818 * doc/md.texi (automata_option): Document no-comb-vect.
11819
11820 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
11821 "__x86.get_pc_thunk".
11822
11823 * bb-reorder.c (insert_section_boundary_note): Only do it if
11824 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
11825
11826 2011-08-30 Christian Bruel <christian.bruel@st.com>
11827
11828 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
11829 flag_profile_use.
11830
11831 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
11832
11833 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
11834 to off. Document switch.
11835 * doc/invoke.texi (-msave-toc-indirect): Ditto.
11836
11837 2011-08-29 Jakub Jelinek <jakub@redhat.com>
11838
11839 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
11840 conditionals and comments inside macro arguments.
11841
11842 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
11843 Richard Guenther <rguenther@suse.de>
11844
11845 * tree.h (constant_boolean_node): Adjust prototype.
11846 * fold-const.c (fold_convert_loc): Move aggregate conversion
11847 leeway down.
11848 (constant_boolean_node): Make value parameter boolean, add
11849 vector type handling.
11850 (fold_unary_loc): Use constant_boolean_node.
11851 (fold_binary_loc): Preserve types properly when folding
11852 COMPLEX_EXPR <__real x, __imag x>.
11853 * gimplify.c (gimplify_expr): Handle vector comparison.
11854 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
11855 comparison.
11856 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
11857 comparisons.
11858
11859 2011-08-29 Jakub Jelinek <jakub@redhat.com>
11860
11861 PR middle-end/48722
11862 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
11863 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
11864 (verify_rtl_sharing): Likewise and verify_rtx_sharing
11865 in there too.
11866 (unshare_all_rtl_in_chain): For CALL_INSNs
11867 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
11868
11869 2011-08-29 Richard Guenther <rguenther@suse.de>
11870
11871 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
11872 on the built ADDR_EXPR.
11873
11874 2011-08-29 Jakub Jelinek <jakub@redhat.com>
11875
11876 PR debug/50215
11877 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
11878 before adding ENTRY_VALUE to val->locs.
11879
11880 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
11881
11882 PR bootstrap/50218
11883 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
11884 comp.
11885
11886 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
11887
11888 * doc/rtl.texi (simple_return): Document.
11889 (parallel, PATTERN): Here too.
11890 * doc/md.texi (return): Mention it's allowed to expand to simple_return
11891 in some cases.
11892 (simple_return): Document standard pattern.
11893 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
11894 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
11895 * reorg.c (function_return_label, function_simple_return_label):
11896 New static variables, replacing...
11897 (end_of_function_label): ... this.
11898 (simplejump_or_return_p): New static function.
11899 (optimize_skip, steal_delay_list_from_fallthrough,
11900 fill_slots_from_thread): Use it.
11901 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
11902 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
11903 (find_end_label): Take a new arg which is one of the two return
11904 rtxs. Depending on which, set either function_return_label or
11905 function_simple_return_label. All callers changed.
11906 (make_return_insns): Make both kinds.
11907 (dbr_schedule): Adjust for two kinds of end labels.
11908 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
11909 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
11910 (gen_expand, gen_split): Use ANY_RETURN_P.
11911 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
11912 * rtl.def (SIMPLE_RETURN): New code.
11913 * ifcvt.c (find_if_case_1): Be more careful about
11914 redirecting jumps to the EXIT_BLOCK.
11915 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
11916 returnjump_p_1): Handle SIMPLE_RETURNs.
11917 * print-rtl.c (print_rtx): Likewise.
11918 * rtl.c (copy_rtx): Likewise.
11919 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
11920 * combine.c (simplify_set): Likewise.
11921 * resource.c (find_dead_or_set_registers, mark_set_resources):
11922 Likewise.
11923 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
11924 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
11925 (init_emit_regs): Initialize simple_return_rtx.
11926 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
11927 force_nonfallthru_and_redirect.
11928 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
11929 (GR_SIMPLE_RETURN): New enum value.
11930 (simple_return_rtx): New macro.
11931 * basic-block.h (force_nonfallthru_and_redirect): Adjust
11932 declaration.
11933 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
11934 argument. All callers changed. Be careful about what kinds of
11935 returnjumps to generate.
11936 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
11937 ix86_pad_short_function): Likewise.
11938 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
11939 of return.
11940 * config/mips/mips.md (any_return): New code_iterator.
11941 (optab): Add cases for return and simple_return.
11942 (return): Expand to a simple_return.
11943 (simple_return): New pattern.
11944 (*<optab>, *<optab>_internal for any_return): New patterns.
11945 (return_internal): Remove.
11946 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
11947 a simple_return_internal.
11948
11949 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
11950
11951 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
11952 (vec_extract_lo_<mode>): Prevent both operands in memory.
11953 (vec_extract_lo_v16hi): Ditto.
11954 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
11955
11956 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
11957
11958 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
11959 (*sse2_mulv4si3): Ditto.
11960 (mulv2di3): Ditto.
11961 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
11962 notes to REG_EQUAL.
11963
11964 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
11965
11966 PR target/50202
11967 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
11968 when all outputs are unused.
11969 (sse4_2_pcmpistr): Ditto.
11970
11971 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
11972
11973 * config/i386/i386.md (round<mode>2): New expander.
11974 * config/i386/i386.c (enum ix86_builtins): Add
11975 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
11976 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
11977 descriptions.
11978 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
11979 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
11980
11981 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
11982
11983 PR middle-end/50083
11984 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
11985 only when TARGET_C99_FUNCTIONS.
11986 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
11987 <BUILT_IN_RINT{,F,L}>: Ditto.
11988
11989 2011-08-26 Michael Matz <matz@suse.de>
11990 Jakub Jelinek <jakub@redhat.com>
11991
11992 PR lto/50165
11993 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
11994 don't call strlen twice, use memcpy.
11995
11996 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
11997
11998 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
11999 * config/i386/bmiintrin.h: Likewise.
12000 * config/i386/lzcntintrin.h: Likewise.
12001
12002 * config/i386/immintrin.h: Include <lzcntintrin.h>,
12003 <bmiintrin.h> and <bmi2intrin.h>.
12004
12005 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12006
12007 PR target/50166
12008 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
12009 * configure: Regenerate.
12010
12011 2011-08-26 Jakub Jelinek <jakub@redhat.com>
12012
12013 PR c/50179
12014 * c-typeck.c (c_process_expr_stmt): Skip over nops and
12015 call mark_exp_read even if exprv is ADDR_EXPR.
12016
12017 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
12018
12019 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
12020 to df_set_dead_notes_for_mw.
12021
12022 2011-08-26 Richard Guenther <rguenther@suse.de>
12023
12024 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
12025
12026 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
12027 Tom de Vries <tom@codesourcery.com>
12028
12029 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
12030 (struct ivopts_data): Add loop_single_exit_p field.
12031 (niter_for_exit): Change parameter desc_p into return value. Return
12032 desc if desc->may_be_zero. Free desc if unused.
12033 (niter_for_single_dom_exit): Change return type.
12034 (find_induction_variables): Handle changed return type of
12035 niter_for_single_dom_exit. Dump may_be_zero.
12036 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
12037 (set_use_iv_cost): Add and handle comp parameter.
12038 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
12039 comp argument to set_use_iv_cost.
12040 (strip_wrap_conserving_type_conversions, expr_equal_p)
12041 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
12042 (may_eliminate_iv): Add comp parameter. Handle new return type of
12043 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
12044 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
12045 and may_eliminate_iv.
12046 (rewrite_use_compare): Move call to iv_elimination_compare to ...
12047 (may_eliminate_iv): Here.
12048 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
12049
12050 2011-08-26 Tom de Vries <tom@codesourcery.com>
12051
12052 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
12053 accessing TREE_TYPE.
12054
12055 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
12056
12057 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
12058 (*ior_scc_scc_cmp): Likewise
12059 (*and_scc_scc): Likewise.
12060 (*and_scc_scc_cmp): Likewise.
12061 (*and_scc_scc_nodom): Likewise.
12062 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
12063
12064 2011-08-26 Jakub Jelinek <jakub@redhat.com>
12065
12066 * rtlanal.c (nonzero_bits1): Handle CLRSB.
12067
12068 2011-08-26 Richard Guenther <rguenther@suse.de>
12069
12070 * expr.c (string_constant): Handle &MEM_REF.
12071
12072 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
12073
12074 * config/arm/arm.c (struct four_ints): New type.
12075 (count_insns_for_constant): Delete function.
12076 (find_best_start): Delete function.
12077 (optimal_immediate_sequence): New function.
12078 (optimal_immediate_sequence_1): New function.
12079 (arm_gen_constant): Move constant splitting code to
12080 optimal_immediate_sequence.
12081 Rewrite constant negation/invertion code.
12082
12083 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
12084
12085 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
12086 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
12087 Remove prototype. Remove static function type.
12088 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
12089 Add arch attribute.
12090 * config/arm/constraints.md (Pj, PJ): New constraints.
12091
12092 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12093
12094 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
12095 ("cortex_a9_multiply_long"): New and use above. Handle all
12096 long multiply cases.
12097 ("cortex_a9_multiply"): Handle smmul and smmulr.
12098 ("cortex_a9_mac"): Handle smmla.
12099
12100 2011-08-25 Richard Henderson <rth@redhat.com>
12101
12102 PR 50132
12103 PR 49864
12104 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
12105 non-constant stack adjutment.
12106 * expr.c (find_args_size_adjust): Break out from ...
12107 (fixup_args_size_notes): ... here.
12108 * rtl.h (find_args_size_adjust): Declare.
12109
12110 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
12111
12112 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
12113 sse4 and sse4_noavx.
12114 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
12115 (*pushdf_rex64): Change Y2 register constraint to x.
12116 (*movdf_internal_rex64): Ditto.
12117 (*zero_extendsidi2_rex64): Ditto.
12118 (*movdi_internal): Change Y2 register constraint to x
12119 and update "isa" attribute.
12120 (*pushdf): Ditto.
12121 (*movdf internal): Ditto.
12122 (zero_extendsidi2_1): Ditto.
12123 (*truncdfdf_mixed): Ditto.
12124 (*truncxfdf2_mixed): Ditto.
12125 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
12126 register constraint to x.
12127 (*movv2sf_internal_rex64): Ditto.
12128 (*mov<mode>_internal): Change Y2 register constraint to x
12129 and add "isa" attribute.
12130 (*movv2sf_internal): Ditto.
12131 (*vec_extractv2si_1): Ditto.
12132 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
12133 constraints to x and update "isa" attribute.
12134 (*vec_interleave_highv2df): Change Y3 registerconstraint
12135 to x and update "isa" attribute.
12136 (*vec_interleave_lowv2df): Ditto.
12137 (*vec_concatv2df): Change Y2 register constraint to x and
12138 update "isa" attribute.
12139 (sse2_loadld): Ditto.
12140 (*vec_extractv2di_1): Ditto.
12141 (*vec_dupv4si): Ditto.
12142 (*vec_dupv2di): Ditto.
12143 (*vec_concatv4si): Ditto.
12144 (vec_concatv2di): Ditto.
12145 * config/i386/constraints.md (Y2): Remove.
12146 (Y3): Ditto.
12147 (Y4): Ditto.
12148
12149 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
12150
12151 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
12152 dump_def_use_chain): Don't declare.
12153 (mark_conflict, create_new_chain): Move before users.
12154 (regrename_optimize): Move to near end of file.
12155
12156 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12157
12158 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
12159 (secondary_input_reload_class): Remove Prototype.
12160 * config/avr/avr.c (byte_immediate_operand): Remove Function.
12161 * config/avr/avr.md (setmemhi): Use u8_operand.
12162 (strlenhi): Use const0_rtx for comparison.
12163 * config/avr/avr.h (avr_reg_order): Remove Declaration.
12164
12165 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12166
12167 * config/avr/avr.c (reg_class_tab): Make local to
12168 avr_regno_reg_class. Return smallest register class available.
12169
12170 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12171
12172 * config/avr/avr.c (STR_PREFIX_P): New Define.
12173 (avr_asm_declare_function_name): Use it.
12174 (avr_asm_named_section): Use it.
12175 (avr_section_type_flags): Use it.
12176
12177 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
12178
12179 * doc/md.texi (automata_option): Document collapse-ndfa.
12180 * genautomata.c (COLLAPSE_OPTION): New macro.
12181 (collapse_flag): New static variable.
12182 (struct description): New member normal_decls_num.
12183 (struct automaton): New members advance_ainsn and collapse_ainsn.
12184 (gen_automata_option): Check for COLLAPSE_OPTION.
12185 (collapse_ndfa_insn_decl): New static variable.
12186 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
12187 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
12188 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
12189 necessary. Use normal_decls_num rather than decls_num, remove
12190 test for special decls.
12191 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
12192 (make_automaton); Likewise. Use the new advance_cycle_insn member
12193 of struct automaton.
12194 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
12195 is set.
12196 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
12197 transition. Create the necessary transitions for it.
12198 (create_ainsns): Return void. Take an automaton_t argument, and
12199 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
12200 callers changed.
12201 (COLLAPSE_NDFA_VALUE_NAME): New macro.
12202 (output_tables): Output code to define it.
12203 (output_internal_insn_code_evaluation): Output code to accept
12204 const0_rtx as collapse-ndfa transition.
12205 (output_default_latencies, output_print_reservation_func,
12206 output_print_description): Reorganize loops to use normal_decls_num
12207 as loop bound; remove special case for advance_cycle_insn_decl.
12208 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
12209 (check_automata_insn_issues): Check for collapse_ainsn.
12210 (expand_automate): Allocate sufficient space. Initialize
12211 normal_decls_num.
12212
12213 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
12214
12215 * config/avr/avr.md: Fix indentation from r177991.
12216
12217 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
12218
12219 * regrename.c (struct du_head): Remove member terminated.
12220 (create_new_chain): Don't initialize it.
12221 (scan_rtx_reg): Don't set or test it, test the open_chains_set
12222 bitmap instead.
12223 (tick, this_tick): New global variables, moved out of
12224 regrename_optimize.
12225 (current_id, open_chains, closed_chains, open_chains_set,
12226 live_in_chains, live_hard_regs): Reorder declarations.
12227 (dump_def_use_chain): Move function earlier in the file.
12228 (rename_chains): New static function, broken out of
12229 regrename_optimize.
12230 (regrename_optimize): Use it. Remove #if 0'ed code.
12231
12232 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12233
12234 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
12235
12236 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
12237
12238 PR target/50172
12239 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
12240
12241 2011-08-24 Richard Guenther <rguenther@suse.de>
12242
12243 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
12244 ref in the basic-block case. Move stripping array-refs
12245 to the place we create an access-function for it. Remove
12246 bogus stripping down a MEM_REF to its base.
12247
12248 2011-08-24 Richard Guenther <rguenther@suse.de>
12249
12250 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
12251 with -fno-strict-overflow.
12252
12253 2011-08-24 Richard Guenther <rguenther@suse.de>
12254
12255 * tree-vectorizer.c (vect_print_dump_info): Avoid the
12256 file and location clutter when dumping to dump files.
12257
12258 2011-08-24 Simon Baldwin <simonb@google.com>
12259
12260 * gengtype-state.c (write_state): Remove timestamped header line.
12261
12262 2011-08-24 Joseph Myers <joseph@codesourcery.com>
12263
12264 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
12265 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
12266 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
12267 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
12268 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
12269 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
12270 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
12271 rules.
12272 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
12273
12274 2011-08-24 Joseph Myers <joseph@codesourcery.com>
12275
12276 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
12277
12278 2011-08-24 Richard Guenther <rguenther@suse.de>
12279
12280 PR tree-optimization/50067
12281 * tree-data-ref.c (dr_analyze_indices): Do not add an access
12282 function for a MEM_REF base that has no evolution in the loop
12283 nest or that is not analyzable.
12284
12285 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
12286
12287 * ira.c (ira_init_register_move_cost): Check small subclasses
12288 through ira_reg_class_max_nregs and ira_available_class_regs.
12289
12290 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
12291
12292 * config/i386/constraints.md (Yp): New register constraint.
12293 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
12294 Yp register constraint.
12295 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
12296 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
12297 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
12298
12299 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
12300
12301 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
12302
12303 2011-08-23 Mark Heffernan <meheff@google.com>
12304
12305 PR middle-end/38509
12306 * common.opt (Wfree-nonheap-object): New option.
12307 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
12308 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
12309 to warning.
12310 (expand_builtin): Make warning conditional.
12311
12312 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
12313
12314 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
12315 (length_immediate): Handle imulx, ishiftx and rotatex.
12316 (imm_disp): Ditto.
12317 (isa): Add bmi2.
12318 (enabled): Handle bmi2.
12319 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
12320 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
12321 (*bmi2_umulditi3_1): New insn pattern.
12322 (*bmi2_umulsidi3_1): Ditto.
12323 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
12324 (*bmi2_ashl<mode>3_1): New insn pattern.
12325 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
12326 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
12327 (*bmi2_ashlsi3_1_zext): New insn pattern.
12328 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
12329 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
12330 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
12331 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
12332 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
12333 flags dependency.
12334 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
12335 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
12336 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
12337 flags dependency.
12338 (*bmi2_rorx<mode>3_1): New insn pattern.
12339 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
12340 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
12341 (*rotatert<mode>3_1 splitter): Ditto.
12342 (*bmi2_rorxsi3_1_zext): New insn pattern.
12343 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
12344 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
12345 (*rotatertsi3_1_zext splitter): Ditto.
12346
12347 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
12348
12349 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
12350 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
12351 (ix86_handle_option): Handle OPT_mbmi2 case.
12352 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
12353 (x86_64-*-*): Likewise.
12354 * config/i386/bmi2intrin.h: New file.
12355 * config/i386/cpuid.h (bit_BMI2): New.
12356 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12357 BMI2 feature.
12358 * config/i386/i386-c.c (ix86_target_macros_internal):
12359 Conditionally define __BMI2__.
12360 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
12361 Handle BMI2 option.
12362 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
12363 (print_reg): New code.
12364 (ix86_print_operand): Likewise.
12365 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
12366 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
12367 IX86_BUILTIN_PEXT64.
12368 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
12369 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
12370 IX86_BUILTIN_PEXT64.
12371 * config/i386/i386.h (TARGET_BMI2): New.
12372 * config/i386/i386.md (UNSPEC_PDEP): New.
12373 (UNSPEC_PEXT): Likewise.
12374 (*bmi2_bzhi_<mode>3): Likewise.
12375 (*bmi2_pdep_<mode>3): Likewise.
12376 (*bmi2_pext_<mode>3): Likewise.
12377 * config/i386/i386.opt (mbmi2): New.
12378 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
12379 is defined.
12380 * doc/extend.texi: Document BMI2 built-in functions.
12381 * doc/invoke.texi: Document -mbmi2.
12382
12383 2011-08-23 Jakub Jelinek <jakub@redhat.com>
12384
12385 PR middle-end/50161
12386 * simplify-rtx.c (simplify_const_unary_operation): If
12387 op is CONST_INT, don't look at op_mode, but use instead mode.
12388 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
12389 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
12390 operation and TRUNCATE/ZERO_EXTEND if needed.
12391 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
12392 Document that operand mode must be same as operation mode,
12393 or VOIDmode.
12394 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
12395 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
12396 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
12397 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
12398 use the mode of operand for the operation and add truncate
12399 or zero_extend around if needed.
12400 * config/c6x/c6x.md (ctzdi2): Likewise.
12401 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
12402
12403 2011-08-12 Michael Matz <matz@suse.de>
12404
12405 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
12406 (gimple_expand_cfg): Merge alignment info for coalesced pointer
12407 SSA names.
12408
12409 2011-08-23 Richard Guenther <rguenther@suse.de>
12410
12411 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
12412 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
12413 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
12414 from ...
12415 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
12416 (mem_refs_may_alias_p): Adjust.
12417 * tree-data-ref.h (dr_may_alias_p): Adjust.
12418 * tree-data-ref.c: Include tree-affine.h.
12419 (dr_analyze_indices): Do nothing for the non-loop case.
12420 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
12421 more cases in the non-loop case.
12422 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
12423 calls to dr_may_alias_p.
12424 (write_alias_graph_to_ascii_ecc): Likewise.
12425 (write_alias_graph_to_ascii_dot): Likewise.
12426 (build_alias_set_optimal_p): Likewise.
12427
12428 2011-08-23 Richard Guenther <rguenther@suse.de>
12429
12430 PR tree-optimization/50162
12431 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
12432
12433 2011-08-23 Richard Guenther <rguenther@suse.de>
12434
12435 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
12436 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
12437 (create_data_ref): Also dump access functions for the created data-ref.
12438
12439 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
12440 Kirill Yukhin <kirill.yukhin@intel.com>
12441
12442 PR target/50155
12443 * config/i386/sse.md (VI_AVX2): New.
12444 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
12445 (*<plusminus_insn><mode>3): Ditto.
12446 (<sse2_avx2>_andnot<mode>3): Ditto.
12447 (*andnot<mode>3): Fix order of cond operands.
12448 Add asserts for correct TARGET_xxx.
12449 (*<any_logic:code><mode>3): Ditto.
12450
12451 2011-08-22 Anatoly Sokolov <aesok@post.ru>
12452
12453 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
12454 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
12455 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
12456 regclass argument type to reg_class_t. Change 'max' and 'v' vars
12457 and return types to unsigned char. Use reg_class_contents instead
12458 of class_contents.
12459 (TARGET_CLASS_MAX_NREGS): Define.
12460
12461 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
12462
12463 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
12464 to make computed_jump_p return true.
12465
12466 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12467
12468 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
12469 (PICFLAG_FOR_TARGET): Substitute.
12470 * aclocal.m4: Regenerate.
12471 * configure: Regenerate.
12472
12473 2011-08-22 Dodji Seketeli <dodji@redhat.com>
12474
12475 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
12476 after reading in the pch.
12477
12478 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
12479
12480 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
12481 * configure: Regenerated.
12482
12483 2011-08-22 Jakub Jelinek <jakub@redhat.com>
12484
12485 PR tree-optimization/50133
12486 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
12487 from stmt instead of some statement around gsi.
12488
12489 PR middle-end/50141
12490 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
12491 innerdecl is a VAR_DECL.
12492
12493 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
12494
12495 * config/i386/avx2intrin.h: New file.
12496 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
12497 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
12498 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
12499 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
12500 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
12501 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
12502 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
12503 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
12504 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
12505 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
12506 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
12507 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
12508 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
12509 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
12510 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
12511 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
12512 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
12513 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
12514 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
12515 VOID_FTYPE_PV8SI_V8SI_V8SI,
12516 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
12517 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
12518 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
12519 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
12520 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
12521 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
12522 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
12523 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
12524 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
12525 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
12526 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
12527 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
12528 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
12529 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
12530 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
12531 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
12532 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
12533 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
12534 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
12535 V4DI_FTYPE_V4DI_INT_CONVERT,
12536 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
12537 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
12538 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
12539 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
12540 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
12541 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
12542 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
12543 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
12544 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
12545 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
12546 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
12547 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
12548 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
12549 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12550 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12551 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12552 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
12553 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
12554 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
12555 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
12556 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
12557 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
12558 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
12559 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
12560 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
12561 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
12562 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
12563 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
12564 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
12565 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
12566 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
12567 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
12568 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
12569 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
12570 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
12571 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
12572 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
12573 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
12574 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
12575 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
12576 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
12577 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
12578 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
12579 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
12580 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
12581 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
12582 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
12583 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
12584 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
12585 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
12586 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
12587 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
12588 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
12589 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
12590 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
12591 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
12592 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
12593 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
12594 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
12595 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
12596 IX86_BUILTIN_VBROADCASTSS_PS256,
12597 IX86_BUILTIN_VBROADCASTSD_PD256,
12598 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
12599 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
12600 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
12601 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
12602 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
12603 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
12604 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
12605 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
12606 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
12607 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
12608 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
12609 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
12610 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
12611 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
12612 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
12613 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
12614 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
12615 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
12616 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
12617 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
12618 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
12619 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
12620 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
12621 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
12622 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
12623 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
12624 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
12625 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
12626 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
12627 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
12628 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
12629 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
12630 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
12631 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
12632 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
12633 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
12634 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
12635 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
12636 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
12637 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
12638 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
12639 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
12640 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
12641 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
12642 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
12643 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
12644 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
12645 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
12646 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
12647 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
12648 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
12649 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
12650 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
12651 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
12652 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
12653 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
12654 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
12655 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
12656 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
12657 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
12658 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
12659 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
12660 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
12661 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
12662 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
12663 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
12664 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
12665 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
12666 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
12667 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
12668 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
12669 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
12670 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
12671 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
12672 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
12673 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
12674 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
12675 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
12676 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
12677 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
12678 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
12679 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
12680 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
12681 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
12682 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
12683 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
12684 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
12685 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
12686 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
12687 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
12688 IX86_BUILTIN_VBROADCASTSD_PD256,
12689 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
12690 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
12691 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
12692 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
12693 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
12694 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
12695 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
12696 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
12697 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
12698 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
12699 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
12700 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
12701 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
12702 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
12703 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
12704 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
12705 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
12706 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
12707 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
12708 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
12709 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
12710 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
12711 IX86_BUILTIN_GATHERDIV8SI.
12712 (ix86_preferred_simd_mode): Support AVX2 modes.
12713 (ix86_expand_args_builtin): Support AVX2 builtins.
12714 (ix86_expand_special_args_builtin): Likewise.
12715 (ix86_expand_builtin): Likewise.
12716 * config/i386/i386.md (UNSPEC_VPERMSI): New.
12717 (UNSPEC_VPERMDF): Likewise.
12718 (UNSPEC_VPERMSF): Likewise.
12719 (UNSPEC_VPERMDI): Likewise.
12720 (UNSPEC_VPERMTI): Likewise.
12721 (UNSPEC_GATHER): Likewise.
12722 (ssemodesuffix): Extend.
12723 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
12724 is defined.
12725 * config/i386/predicates.md (const1248_operand): New.
12726 * config/i386/sse.md (VI1_AVX2): New mode iterator.
12727 (VI2_AVX2): Likewise.
12728 (VI4_AVX2): Likewise.
12729 (VI8_AVX2): Likewise.
12730 (VIMAX_AVX2): Likewise.
12731 (SSESCALARMODE): Likewise.
12732 (VI12_AVX2): Likewise.
12733 (VI24_AVX2): Likewise.
12734 (VI124_AVX2): Likewise.
12735 (VI248_AVX2): Likewise.
12736 (VI48_AVX2): Likewise.
12737 (VI4SD_AVX2): Likewise.
12738 (V48_AVX2): Likewise.
12739 (AVX256MODE2P): Likewise.
12740 (AVXMODE48P_DI): Likewise.
12741 (sse2_avx2): New mode attribute.
12742 (ssse3_avx2): Likewise.
12743 (sse4_1_avx2): Likewise.
12744 (avx_avx2): Likewise.
12745 (ssebytemode): Likewise.
12746 (AVXTOSSEMODE): Likewise.
12747 (AVXMODE48P_DI): Likewise.
12748 (gthrfirstp): Likewise.
12749 (gthrlastp): Likewise.
12750 (lshift): New code_iterator
12751 (lshift): New code attribute.
12752 (lshift): Likewise.
12753 (ssescalarmodesuffix): Update.
12754 (sseunpackmode): Likewise.
12755 (ssepackmode): Likewise.
12756 (avx2_vec_dupv4sf): New insn pattern.
12757 (avx2_vec_dupv8sf): Likewise.
12758 (avx2_interleave_highv4di): Likewise.
12759 (avx2_interleave_lowv4di): Likewise.
12760 (avx2_umulv4siv4di3): Likewise
12761 (*avx2_umulv4siv4di3): Likewise
12762 (avx2_pmaddwd): Likewise.
12763 (*avx2_pmaddwd): Likewise.
12764 (avx2_lshrqv4di3): Likewise.
12765 (avx2_lshlqv4di3): Likewise.
12766 (avx2_lshl<mode>3): Likewise.
12767 (avx2_<umaxmin:code><mode>3): Likewise.
12768 (*avx2_<umaxmin:code><mode>3): Likewise.
12769 (avx2_<smaxmin:code><mode>3): Likewise.
12770 (*avx2_<smaxmin:code><mode>3): Likewise.
12771 (avx2_eq<mode>3): Likewise.
12772 (*avx2_eq<mode>3): Likewise.
12773 (avx2_gt<mode>3): Likewise.
12774 (avx2_interleave_highv32qi): New.
12775 (avx2_interleave_lowv32qi): Likewise.
12776 (avx2_interleave_highv16hi): Likewise.
12777 (avx2_interleave_lowv16hi): Likewise.
12778 (avx2_interleave_highv8si): Likewise.
12779 (avx2_interleave_lowv8si): Likewise.
12780 (avx2_pshufd): Likewise.
12781 (avx2_pshufd_1): Likewise.
12782 (avx2_pshuflwv3): Likewise.
12783 (avx2_pshuflw_1): Likewise.
12784 (avx2_pshufhwv3): Likewise.
12785 (avx2_pshufhw_1): Likewise.
12786 (avx2_uavgv32qi3): Likewise.
12787 (*avx2_uavgv32qi3): Likewise.
12788 (avx2_uavgv16hi3): Likewise.
12789 (*avx2_uavgv16hi3): Likewise.
12790 (avx2_pmovmskb): Likewise.
12791 (avx2_phaddwv16hi3): Likewise.
12792 (avx2_phadddv8si3): Likewise.
12793 (avx2_phaddswv16hi3): Likewise.
12794 (avx2_phsubwv16hi3): Likewise.
12795 (avx2_phsubdv8si3): Likewise.
12796 (avx2_phsubswv16hi3): Likewise.
12797 (avx2_pmaddubsw256): Likewise.
12798 (avx2_umulhrswv16hi3): Likewise.
12799 (*avx2_umulhrswv16hi3): Likewise.
12800 (avx2_packusdw): Likewise.
12801 (avx2_pblendd<mode>): Likewise.
12802 (avx2_<code>v16qiv16hi2): Likewise.
12803 (avx2_<code>v8qiv8si2): Likewise.
12804 (avx2_<code>v8hiv8si2): Likewise.
12805 (avx2_<code>v4qiv4di2): Likewise.
12806 (avx2_<code>v4hiv4di2): Likewise.
12807 (avx2_<code>v4siv4di2): Likewise.
12808 (avx2_pbroadcast<mode>): Likewise.
12809 (avx2_permvarv8si): Likewise.
12810 (avx2_permv4df): Likewise.
12811 (avx2_permvarv8sf): Likewise.
12812 (avx2_permv4di): Likewise.
12813 (avx2_permv2ti): Likewise.
12814 (avx2_vec_dupv4df): Likewise.
12815 (avx2_vbroadcasti128_<mode>): Likewise.
12816 (avx2_vec_set_lo_v4di): Likewise.
12817 (avx2_vec_set_hi_v4di): Likewise.
12818 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
12819 (avx2_extracti128): Likewise.
12820 (avx2_inserti128): Likewise.
12821 (avx2_ashrvv8si): Likewise.
12822 (avx2_ashrvv4si): Likewise.
12823 (avx2_<lshift>vv8si): Likewise.
12824 (avx2_<lshift>v<mode>): Likewise.
12825 (avx2_<lshift>vv2di): Likewise.
12826 (avx2_gathersi<mode>): Likewise.
12827 (*avx2_gathersi<mode>): Likewise.
12828 (avx2_gatherdi<mode>): Likewise.
12829 (*avx2_gatherdi<mode>): Likewise.
12830 (avx2_gatherdi<mode>256): Likewise.
12831 (*avx2_gatherdi<mode>256): Likewise.
12832 (<plusminus_insn><mode>3): Use VI mode iterator.
12833 (*<plusminus_insn><mode>3): Use VI mode iterator.
12834 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
12835 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
12836 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
12837 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
12838 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
12839 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
12840 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
12841 Use VI2_AVX2 mode iterator.
12842 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
12843 Use VI2_AVX2 mode iterator.
12844 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
12845 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
12846 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
12847 Use VI4_AVX2 mode iterator.
12848 (ashr<mode>3): Use VI24_AVX2 mode iterator.
12849 (lshr<mode>3): Use VI248_AVX2 mode iterator.
12850 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
12851 Use VIMAX_AVX2 mode iterator.
12852 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
12853 Use VI mode iterator.
12854 (*andnot<mode>3): Update for AVX2.
12855 (*<any_logic:code><mode>3): Likewise.
12856 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
12857 Use VI1_AVX mode iterator.
12858 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
12859 Use VI2_AVX mode iterator.
12860 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
12861 Use VI1_AVX mode iterator.
12862 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
12863 Use VI8_AVX2 mode iterator.
12864 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
12865 Use VI1_AVX2 mode iterator.
12866 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
12867 Use VI124_AVX2 mode iterator.
12868 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
12869 Use SSESCALARMODE mode iterator.
12870 (abs<mode>2): Use VI124_AVX2 mode iterator.
12871 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
12872 Use VI8_AVX2 mode iterator.
12873 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
12874 Use VI1_AVX2 mode iterator.
12875 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
12876 Use VI1_AVX2 mode iterator.
12877 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
12878 Use VI2_AVX2 mode iterator.
12879 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
12880 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
12881 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
12882 avx_maskstore<ssemodesuffix><avxsizesuffix>.
12883 Use V48_AVX2 mode iterator.
12884 * doc/extend.texi: Document AVX2 built-in functions.
12885 * doc/invoke.texi: Document -mavx2.
12886
12887 2011-08-22 Matthias Klose <doko@debian.org>
12888
12889 Revert:
12890 2011-07-11 Arthur Loiret <aloiret@debian.org>
12891 Matthias Klose <doko@debian.org>
12892 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
12893 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
12894 convention.
12895 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
12896
12897 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
12898
12899 PR bootstrap/50146
12900 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
12901 to #ifndef HONOR_REG_ALLOC_ORDER block.
12902
12903 2011-08-21 Richard Henderson <rth@redhat.com>
12904
12905 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
12906 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
12907 * resource.c (next_insn_no_annul): Likewise.
12908 (mark_set_resources): Likewise.
12909 * reorg.c (delete_from_delay_slot): Likewise.
12910 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
12911 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
12912
12913 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
12914
12915 * config/i386/i386.md (any_div): Remove.
12916 (sgnprefix): Update for removal.
12917 (u): Ditto.
12918
12919 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
12920
12921 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
12922 for ira_reg_class_max_nregs. Increase pressure by 1.
12923 (mark_pseudo_regno_subword_dead): Use allocno class
12924 for ira_reg_class_max_nregs.
12925
12926 2011-08-20 Richard Henderson <rth@redhat.com>
12927
12928 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
12929 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
12930 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
12931 config/c6x/ltf.c: Adjust include path for soft-fp.
12932
12933 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
12934
12935 PR other/46770
12936 * config.gcc (tm_file): Add initfini-array.h if
12937 .init_arrary/.fini_array are supported.
12938
12939 * crtstuff.c: Don't generate .ctors nor .dtors sections if
12940 USE_INITFINI_ARRAY is defined.
12941
12942 * output.h (default_elf_init_array_asm_out_constructor): New.
12943 (default_elf_fini_array_asm_out_destructor): Likewise.
12944 * varasm.c (elf_init_array_section): Likewise.
12945 (elf_fini_array_section): Likewise.
12946 (get_elf_initfini_array_priority_section): Likewise.
12947 (default_elf_init_array_asm_out_constructor): Likewise.
12948 (default_elf_fini_array_asm_out_destructor): Likewise.
12949
12950 * config/initfini-array.h: New.
12951
12952 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
12953
12954 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
12955 OK for ST_REGS and FP_REGS before taking those classes into account.
12956
12957 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
12958
12959 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
12960 before checking for annulled branches.
12961
12962 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
12963
12964 * config/i386/i386.c (ix86_binary_operator_ok): Use
12965 satisfies_constraint_L.
12966
12967 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
12968 Michael Matz <matz@suse.de>
12969
12970 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
12971 trunc (a + copysign (nextafter (0.5, 0.0), a)).
12972
12973 2011-08-20 Anatoly Sokolov <aesok@post.ru>
12974
12975 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12976 * doc/tm.texi: Regenerate.
12977 * targhooks.c (default_preferred_output_reload_class): Don't use
12978 PREFERRED_OUTPUT_RELOAD_CLASS macro.
12979 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
12980
12981 2011-08-20 Jakub Jelinek <jakub@redhat.com>
12982
12983 PR tree-optimization/48739
12984 * tree-ssa.c: Include cfgloop.h.
12985 (execute_update_addresses_taken): When updating ssa, if in loop closed
12986 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
12987 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
12988
12989 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
12990
12991 PR rtl-optimization/49936
12992 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
12993 for calculation of max register move costs.
12994
12995 2011-08-19 Joseph Myers <joseph@codesourcery.com>
12996
12997 * c-parser.c (c_parser_postfix_expression): Convert operands of
12998 __builtin_complex to their semantic types.
12999
13000 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
13001
13002 PR middle-end/49721
13003 * explow.c (convert_memory_address_addr_space): Also permute the
13004 conversion and addition of constant for zero-extend.
13005
13006 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13007
13008 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
13009 * doc/extend.texi (__builtin_complex): Document.
13010
13011 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13012
13013 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
13014 beyond conversions.
13015 (convert_mult_to_widen): Convert constant inputs to the right type.
13016 (convert_plusminus_to_widen): Don't automatically reject inputs that
13017 are not an SSA_NAME.
13018 Convert constant inputs to the right type.
13019
13020 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13021
13022 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
13023 to the correct type.
13024
13025 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13026
13027 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
13028 unsigned inputs of different modes.
13029 (convert_plusminus_to_widen): Likewise.
13030
13031 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13032
13033 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
13034 'type'.
13035 Use 'type' from caller, not inferred from 'rhs'.
13036 Don't reject non-conversion statements. Do return lhs in this case.
13037 (is_widening_mult_p): Add new argument 'type'.
13038 Use 'type' from caller, not inferred from 'stmt'.
13039 Pass type to is_widening_mult_rhs_p.
13040 (convert_mult_to_widen): Pass type to is_widening_mult_p.
13041 (convert_plusminus_to_widen): Likewise.
13042
13043 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13044
13045 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
13046 Ensure the the larger type is the first operand.
13047
13048 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13049
13050 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
13051 unsupported unsigned multiplies to signed.
13052 (convert_plusminus_to_widen): Likewise.
13053
13054 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13055
13056 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
13057 conversion statement separating multiply-and-accumulate.
13058
13059 2011-08-19 Richard Guenther <rguenther@suse.de>
13060
13061 PR tree-optimization/50067
13062 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
13063 offset only if we accounted for it.
13064
13065 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13066
13067 * config/arm/arm.md (maddhidi4): Remove '*' from name.
13068 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
13069 * optabs.c (find_widening_optab_handler_and_mode): New function.
13070 (expand_widen_pattern_expr): Use find_widening_optab_handler.
13071 (expand_binop_directly): Likewise.
13072 (expand_binop): Likewise.
13073 * optabs.h (find_widening_optab_handler): New macro define.
13074 (find_widening_optab_handler_and_mode): New prototype.
13075 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
13076 type precision rules.
13077 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
13078 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
13079 (is_widening_mult_rhs_p): Allow widening by more than one mode.
13080 Explicitly disallow mis-matched input types.
13081 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
13082 input types to fit the new handler.
13083 (convert_plusminus_to_widen): Likewise.
13084
13085 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
13086
13087 * expr.c (expand_expr_real_2): Use widening_optab_handler.
13088 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
13089 (gen_insn): $N now means $a must be wider than $b, not consecutive.
13090 * optabs.c (widened_mode): New function.
13091 (expand_widen_pattern_expr): Use widening_optab_handler.
13092 (expand_binop_directly): Likewise.
13093 (expand_binop): Likewise.
13094 * optabs.h (widening_optab_handlers): New struct.
13095 (optab_d): New member, 'widening'.
13096 (widening_optab_handler): New function.
13097 (set_widening_optab_handler): New function.
13098 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
13099 widening_optab_handler.
13100 (convert_plusminus_to_widen): Likewise.
13101
13102 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13103
13104 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
13105 pedantic.
13106 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
13107 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
13108
13109 2011-08-19 Joseph Myers <joseph@codesourcery.com>
13110
13111 * opth-gen.awk: Do not declare target save/restore structures and
13112 functions if IN_RTS defined.
13113
13114 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13115
13116 PR target/49437
13117 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
13118 when stack was realigned in interrupt handler prologue.
13119
13120 2011-08-18 Joseph Myers <joseph@codesourcery.com>
13121
13122 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
13123 (quals_from_declspecs): Assert _Noreturn not present.
13124 (grokdeclarator): Handle _Noreturn.
13125 (build_null_declspecs): Initialize noreturn_p.
13126 (declspecs_add_scspec): Handle RID_NORETURN.
13127 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
13128 (c_parser_attributes): Handle RID_NORETURN.
13129 * c-tree.h (struct c_declspecs): Add noreturn_p.
13130 * ginclude/stdnoreturn.h: New.
13131 * Makefile.in (USER_H): Add stdnoreturn.h.
13132
13133 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
13134
13135 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
13136 (OPTION_MASK_ISA_AVX_UNSET): Update.
13137 (OPTION_MASK_ISA_AVX2_UNSET): New.
13138 (ix86_handle_option): Handle OPT_mavx2 case.
13139 * config/i386/cpuid.h (bit_AVX2): New.
13140 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13141 AVX2 feature.
13142 * config/i386/i386-c.c (ix86_target_macros_internal):
13143 Conditionally define __AVX2__.
13144 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
13145 Define "core-avx2" processor alias. Handle avx2 option.
13146 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
13147 * config/i386/i386.h (TARGET_AVX2): New.
13148 * config/i386/i386.opt (mavx2): New.
13149 * doc/invoke.texi: Document -mavx2.
13150
13151 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
13152
13153 PR rtl-optimization/49890
13154 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
13155 subclasses of class which is superset of a pressure class.
13156
13157 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
13158 Igor Zamyatin <igor.zamyatin@intel.com>
13159
13160 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
13161 with HOST_WIDE_INT for isa_flag.
13162 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
13163 isa variables.
13164
13165 * config/i386/i386.c (ix86_target_string): Replace int with
13166 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
13167 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
13168 (pta_flags): Removed.
13169 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
13170 (pta): Use HOST_WIDE_INT on flags.
13171 (builtin_isa): Use HOST_WIDE_INT on isa.
13172 (ix86_add_new_builtins): Likewise.
13173 (def_builtin): Use HOST_WIDE_INT on mask.
13174 (def_builtin_const): Likewise.
13175 (builtin_description): Likewise.
13176
13177 * config/i386/i386.opt (ix86_isa_flags): Replace int with
13178 HOST_WIDE_INT.
13179 (ix86_isa_flags_explicit): Likewise.
13180 (x_ix86_isa_flags_explicit): Likewise.
13181
13182 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
13183
13184 PR rtl-optimization/50107
13185 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
13186 (ira_hard_reg_in_set_p): New.
13187
13188 * ira-color.c (calculate_saved_nregs): New.
13189 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
13190 hard regs.
13191 (allocno_reload_assign, fast_allocation): Use
13192 ira_hard_reg_set_intersection_p instead of
13193 ira_hard_reg_not_in_set_p.
13194
13195 * ira.c (setup_reg_renumber): Use
13196 ira_hard_reg_set_intersection_p instead of
13197 ira_hard_reg_not_in_set_p.
13198 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
13199 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
13200
13201 * ira-costs.c (ira_tune_allocno_costs): Use
13202 ira_hard_reg_set_intersection_p instead of
13203 ira_hard_reg_not_in_set_p.
13204
13205 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
13206 Igor Zamyatin <igor.zamyatin@intel.com>
13207
13208 * hwint.h (HOST_WIDE_INT_1): New.
13209
13210 * opt-functions.awk (switch_bit_fields): Initialize the
13211 host_wide_int field.
13212 (host_wide_int_var_name): New.
13213 (var_type_struct): Check and return HOST_WIDE_INT.
13214
13215 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
13216
13217 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
13218
13219 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
13220 check masks for HOST_WIDE_INT.
13221
13222 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
13223 (option_enabled): Likewise.
13224 (get_option_state): Likewise.
13225
13226 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
13227 to HOST_WIDE_INT.
13228
13229 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13230 Marc Glisse <marc.glisse@normalesup.org>
13231
13232 PR libstdc++-v3/1773
13233 * target.def (decl_mangling_context): New C++ hook.
13234 * doc/tm.texi: Regenerate.
13235 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
13236 * config/sol2-protos.h: Group by source file.
13237 (solaris_cxx_decl_mangling_context): Declare.
13238 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
13239 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
13240 Use $<.
13241 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
13242 Add sol2-stubs.o to extra_objs.
13243
13244 2011-08-18 Jakub Jelinek <jakub@redhat.com>
13245
13246 PR target/50009
13247 * stor-layout.c (update_alignment_for_field): Don't ICE on
13248 packed flexible array members if ms_bitfield_layout_p.
13249
13250 PR target/50092
13251 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
13252 on the result before returning it.
13253
13254 PR debug/50017
13255 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
13256 is a debug stmt, use location of the first non-debug stmt after it.
13257
13258 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13259
13260 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
13261 (arm_size_rtx_costs): Likewise.
13262
13263 2011-08-18 Richard Guenther <rguenther@suse.de>
13264
13265 * tree.h (tree_int_cst_msb): Remove.
13266 * tree.c (tree_int_cst_msb): Likewise.
13267 (tree_int_cst_sign_bit): Move from ...
13268 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
13269
13270 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13271
13272 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
13273 * doc/tm.texi: Regenerate.
13274 * target.def (rtx_costs): Add an opno parameter.
13275 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
13276 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
13277 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
13278 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
13279 * cse.c (COST_IN): Add an opno parameter.
13280 (notreg_cost): Likewise. Update call to rtx_cost.
13281 (COST, fold_rtx): Update accordingly.
13282 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
13283 * expmed.c (emit_store_flag): Likewise.
13284 * optabs.c (avoid_expensive_constant): Add an opno parameter.
13285 Update call to rtx_cost.
13286 (expand_binop_directly, expand_binop): Likewise.
13287 (expand_twoval_binop, prepare_cmp_insn): Likewise.
13288 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
13289 (set_src_cost, get_full_set_src_cost): Update accordingly.
13290 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
13291 to target hook.
13292 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
13293 (default_adress_cost): Update calls to rtx_cost.
13294
13295 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
13296 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
13297 (arm_rtx_costs): Add an opno parameter.
13298 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
13299 adjust any recursive rtx-cost calls.
13300 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
13301 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13302 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13303 * config/cris/cris.c (cris_rtx_costs): Likewise.
13304 * config/frv/frv.c (frv_rtx_costs): Likewise.
13305 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13306 * config/i386/i386.c (ix86_rtx_costs): Likewise.
13307 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13308 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13309 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13310 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13311 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13312 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13313 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13314 * config/mep/mep.c (mep_rtx_cost): Likewise.
13315 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13316 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
13317 (mips_zero_extend_cost): Add an opno parameter.
13318 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13319 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
13320 to rtx_cost.
13321 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
13322 rtx-cost calls.
13323 * config/pa/pa.c (hppa_rtx_costs): Likewise.
13324 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13325 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
13326 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13327 (rs6000_debug_rtx_costs): Likewise.
13328 * config/s390/s390.c (s390_rtx_costs): Likewise.
13329 * config/score/score-protos.h (score_rtx_costs): Likewise.
13330 * config/score/score.c (score_rtx_costs): Likewise.
13331 * config/sh/sh.c (andcosts): Update call to rtx_cost.
13332 (sh_rtx_costs): Add an opno parameter.
13333 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13334 * config/spu/spu.c (spu_rtx_costs): Likewise.
13335 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13336 * config/v850/v850.c (v850_rtx_costs): Likewise.
13337 * config/vax/vax.c (vax_rtx_costs): Likewise.
13338 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13339
13340 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13341
13342 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
13343 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
13344 rtx_cost.
13345 * calls.c (precompute_register_parameters): Likewise.
13346 * combine.c (expand_compound_operation, make_extraction): Likewise.
13347 (force_to_mode, distribute_and_simplify_rtx): Likewise.
13348 * dse.c (find_shift_sequence): Likewise.
13349 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
13350 * expr.c (compress_float_constant): Likewise.
13351 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13352 * gcse.c (want_to_gcse_p): Likewise.
13353 * ifcvt.c (noce_try_sign_mask): Likewise.
13354 * loop-doloop.c (doloop_optimize): Likewise.
13355 * loop-invariant.c (create_new_invariant): Likewise.
13356 * optabs.c (avoid_expensive_constant): Likewise.
13357 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
13358 (try_replace_in_use, reload_cse_move2add): Likewise.
13359 * reload1.c (calculate_elim_costs_all_insns): Likewise.
13360 (note_reg_elim_costly): Likewise.
13361 * rtlanal.c (insn_rtx_cost): Likewise.
13362 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13363 * stmt.c (lshift_cheap_p): Likewise.
13364 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
13365 * config/avr/avr.c (final_prescan_insn): Likewise.
13366 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13367 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
13368
13369 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
13370
13371 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
13372 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
13373 * cfgloopanal.c (seq_cost): Likewise.
13374 * loop-invariant.c (create_new_invariant): Likewise.
13375 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
13376 (reload_cse_move2add): Use get_full_set_rtx_cost.
13377
13378 2011-08-18 Richard Guenther <rguenther@suse.de>
13379
13380 * expr.c (get_inner_reference): Fix typo in last change.
13381
13382 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
13383 Joseph Myers <joseph@codesourcery.com>
13384
13385 PR tree-optimization/49963
13386 * hwint.c (absu_hwi): Define.
13387 * hwint.h (absu_hwi): Declare.
13388 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
13389 of abs_hwi.
13390 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
13391 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
13392
13393 2011-08-18 Richard Guenther <rguenther@suse.de>
13394
13395 * expr.c (get_inner_reference): Sign-extend the constant
13396 twos-complement offset before doing arbitrary precision
13397 arithmetic on it.
13398 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13399 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
13400 to get_constraint_for_ptr_offset.
13401
13402 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
13403
13404 PR target/50068
13405 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
13406
13407 2011-08-17 Richard Guenther <rguenther@suse.de>
13408
13409 * tree.h (convert_to_ptrofftype_loc): New function.
13410 (convert_to_ptrofftype): Define.
13411 * builtins.c (expand_builtin_bzero): Use size_type_node.
13412 (fold_builtin_bzero): Likewise.
13413 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
13414 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
13415 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
13416 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
13417 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
13418 * fold-const.c (build_range_check): Negate using the original type.
13419 (fold_unary_loc): Use fold_build_pointer_plus_loc.
13420 * gimple-fold.c (gimple_adjust_this_by_delta): Use
13421 convert_to_ptrofftype.
13422 * gimplify.c (gimplify_self_mod_expr): Likewise.
13423 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
13424 (graphite_create_new_loop_guard): Likewise.
13425 * graphite-sese-to-poly.c (my_long_long): Remove.
13426 (scop_ivs_can_be_represented): Adjust.
13427 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
13428 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
13429 * tree-loop-distribution.c (build_size_arg_loc): Use
13430 size_type_node.
13431 (generate_memset_zero): Simplify.
13432 * tree-mudflap.c: Use fold_convert, not convert.
13433 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
13434 its own type.
13435 (determine_offset): Likewise for DR_STEP.
13436 (valid_initializer_p): Likewise.
13437 * tree-profile.c (prepare_instrumented_value): Convert the pointer
13438 to an integer type of same size.
13439 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
13440 to sizetype without need.
13441 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
13442 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
13443 * tree-ssa-loop-manip.c (create_iv): Likewise.
13444 (determine_exit_conditions): Adjust comment.
13445 * tree-ssa-pre.c (create_expression_by_pieces): Use
13446 convert_to_ptrofftype.
13447 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
13448 * varasm.c (array_size_for_constructor): Compute using double_ints.
13449
13450 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13451
13452 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
13453 when generating an integer result where possible. Short-cut
13454 comparison against 0 also for QImode.
13455
13456 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13457
13458 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
13459 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
13460 prototype.
13461 * config/spu/spu.c (spu_legitimize_reload_address): New function.
13462 (spu_legitimate_address_p): Do not check displacement if the base
13463 is an eliminable stack register.
13464
13465 2011-08-16 Anatoly Sokolov <aesok@post.ru>
13466
13467 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
13468 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
13469 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
13470 m32c_preferred_output_reload_class): Remove.
13471 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
13472 Change rclass argument and return types to reg_class_t. Use
13473 reg_class_subset_p instead of class_sizes.
13474 (m32c_preferred_output_reload_class): Make static. Change rclass
13475 argument and return types to reg_class_t.
13476 (TARGET_PREFERRED_RELOAD_CLASS,
13477 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13478
13479 2011-08-16 Kai Tietz <ktietz@redhat.com>
13480
13481 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
13482
13483 2011-08-16 Richard GUenther <rguenther@suse.de>
13484
13485 PR tree-optimization/50082
13486 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
13487 warnings here, instead of ...
13488 (ssa_forward_propagate_and_combine): ... here.
13489 (forward_propagate_into_comparison_1): Adjust.
13490 (forward_propagate_into_comparison): Likewise.
13491 (forward_propagate_into_gimple_cond): Likewise.
13492 (forward_propagate_into_cond): Likewise.
13493
13494 2011-08-16 Andreas Schwab <schwab@redhat.com>
13495
13496 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
13497 instead of ggc_alloc_zone_vec_rtvec_def.
13498
13499 2011-08-16 Richard Guenther <rguenther@suse.de>
13500
13501 * tree.h (ptrofftype_p): New helper function.
13502 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
13503 offset verification.
13504 (verify_gimple_assign_binary): Likewise.
13505 * tree.c (build2_stat): Likewise.
13506 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
13507 (reset_evolution_in_loop): Likewise.
13508 * tree-chrec.h (build_polynomial_chrec): Likewise.
13509
13510 2011-08-16 Liang Wang <lwang1@marvell.com>
13511
13512 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
13513 ggc_alloc_zone_vec_rtvec_def.
13514
13515 2011-08-16 Richard Guenther <rguenther@suse.de>
13516
13517 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
13518 helper factored out from ...
13519 (extract_range_from_binary_expr_1): ... here. Re-structure
13520 to not glob handling too different tree codes.
13521
13522 2011-08-15 Richard Henderson <rth@redhat.com>
13523
13524 PR middle-end/50006
13525 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
13526 setting out to include allocate_stack named pattern as well.
13527 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
13528 * stmt.c (expand_stack_restore): Likewise.
13529
13530 2011-08-15 Richard Guenther <rguenther@suse.de>
13531
13532 PR middle-end/50082
13533 * fold-const.c (maybe_canonicalize_comparison_1): Properly
13534 convert the modified operand to the other operand type.
13535 (fold_comparison): Call maybe_canonicalize_comparison_1 with
13536 useless conversions stripped from comparison operands.
13537
13538 2011-08-15 Richard Guenther <rguenther@suse.de>
13539
13540 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
13541 (extract_range_from_unary_expr_1): Restructure.
13542
13543 2011-08-15 Richard Guenther <rguenther@suse.de>
13544
13545 PR tree-optimization/50058
13546 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
13547 copy matching.
13548
13549 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13550
13551 PR target/50022
13552 * config/arm/arm.c (output_move_double): Add 2 parameters
13553 to count the number of insns emitted and whether to emit or not.
13554 Use the flag to decide when to emit and count number of instructions
13555 that will be emitted.
13556 Handle case where output_move_double might be called for calculating
13557 lengths with an invalid constant.
13558 (arm_count_output_move_double_insns): Define.
13559 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
13560 (output_move_double): Adjust prototype.
13561 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
13562 output_move_double.
13563 ("*movdi_vfp_cortexa8"): Likewise and add attribute
13564 for ce_count.
13565 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
13566 ("*movdf_soft_insn"): Likewise.
13567 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
13568 ("*cirrus_thumb2_movdi"): Likewise.
13569 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
13570 ("*cirrus_movdf_hard_insn"): Likewise.
13571 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
13572 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
13573 ("mov<mode>_internal VMMX"): Likewise.
13574 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
13575
13576 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
13577
13578 * config/i386/i386.c (ix86_expand_round_sse4): New function.
13579 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
13580 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
13581 for TARGET_ROUND.
13582
13583 (rint<mode>2): Simplify TARGET_ROUND check.
13584 (floor<mode>2): Ditto.
13585 (ceil<mode>2): Ditto.
13586 (btrunc<mode>2): Ditto.
13587
13588 2011-08-14 Anatoly Sokolov <aesok@post.ru>
13589
13590 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
13591 as mmix_preferred_output_reload_class.
13592
13593 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
13594
13595 * PR target/49903
13596 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
13597 (branch_unspec): New insn.
13598 (branch): Beauty farm.
13599 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
13600 to be IF_THEN_ELSE.
13601 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
13602 New static functions.
13603 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
13604 Use CONST_INT_P. Beauty.
13605
13606 2011-08-12 Richard Henderson <rth@redhat.com>
13607
13608 PR rtl-opt/49994
13609 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
13610 * sched-deps.c (init_deps): Clear it.
13611 (deps_analyze_insn): Consume it.
13612 (sched_analyze_insn): Fill it.
13613
13614 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13615
13616 PR target/48328
13617 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
13618 for tbh instructions.
13619
13620 2011-08-12 Diego Novillo <dnovillo@google.com>
13621
13622 * data-streamer.h (streamer_write_zero): Rename from output_zero.
13623 (streamer_write_uhwi): Rename from lto_output_uleb128.
13624 (streamer_write_hwi): Rename from output_sleb128.
13625 (streamer_write_string): Rename from lto_output_string.
13626 (streamer_string_index): Rename from lto_string_index.
13627 (streamer_write_string_with_length): Rename from
13628 lto_output_string_with_length.
13629 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
13630 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
13631 (streamer_read_string): Rename from lto_input_string.
13632 (streamer_read_indexed_string): Rename from input_string_internal.
13633 (streamer_read_uhwi): Rename from lto_input_uleb128.
13634 (streamer_read_hwi): Rename from lto_input_sleb128.
13635 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
13636 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
13637 (streamer_write_enum): Rename from lto_output_enum.
13638 (streamer_read_enum): Rename from lto_input_enum.
13639 (streamer_write_record_start): Rename from output_record_start.
13640 (streamer_read_record_start): Rename from input_record_start.
13641 (streamer_write_bitpack): Rename from lto_output_bitpack.
13642 (streamer_read_bitpack): Rename from lto_input_bitpack.
13643 (streamer_write_char_stream): Rename from lto_output_1_stream.
13644 (streamer_read_uchar): Rename from lto_input_1_unsigned.
13645 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
13646 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
13647 (streamer_read_string_cst): Rename from input_string_cst.
13648 (streamer_read_chain): Rename from lto_input_chain.
13649 (streamer_alloc_tree): Rename from lto_materialize_tree.
13650 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
13651 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
13652 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
13653 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
13654 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
13655 (streamer_write_chain): Rename from lto_output_chain.
13656 (streamer_write_tree_header): Rename from lto_output_tree_header.
13657 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
13658 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
13659 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
13660 (streamer_write_builtin): Rename from lto_output_builtin_tree.
13661 (streamer_check_handled_ts_structures): Rename from
13662 check_handled_ts_structures.
13663 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
13664 (streamer_tree_cache_insert_at): Rename from
13665 lto_streamer_cache_insert_at.
13666 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
13667 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
13668 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
13669 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
13670 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
13671 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
13672 (write_identifier): Rename from output_identifier.
13673 (write_ts_common_tree_pointers): Rename from
13674 lto_output_ts_common_tree_pointers.
13675 (write_ts_vector_tree_pointers): Rename from
13676 lto_output_ts_vector_tree_pointers.
13677 (write_ts_complex_tree_pointers): Rename from
13678 lto_output_ts_complex_tree_pointers.
13679 (write_ts_decl_minimal_tree_pointers): Rename from
13680 lto_output_ts_decl_minimal_tree_pointers.
13681 (write_ts_decl_common_tree_pointers): Rename from
13682 lto_output_ts_decl_common_tree_pointers.
13683 (write_ts_decl_non_common_tree_pointers): Rename from
13684 lto_output_ts_decl_non_common_tree_pointers.
13685 (write_ts_decl_with_vis_tree_pointers): Rename from
13686 lto_output_ts_decl_with_vis_tree_pointers.
13687 (write_ts_field_decl_tree_pointers): Rename from
13688 lto_output_ts_field_decl_tree_pointers.
13689 (write_ts_function_decl_tree_pointers): Rename from
13690 lto_output_ts_function_decl_tree_pointers.
13691 (write_ts_type_common_tree_pointers): Rename from
13692 lto_output_ts_type_common_tree_pointers.
13693 (write_ts_type_non_common_tree_pointers): Rename from
13694 lto_output_ts_type_non_common_tree_pointers.
13695 (write_ts_list_tree_pointers): Rename from
13696 lto_output_ts_list_tree_pointers.
13697 (write_ts_vec_tree_pointers): Rename from
13698 lto_output_ts_vec_tree_pointers.
13699 (write_ts_exp_tree_pointers): Rename from
13700 lto_output_ts_exp_tree_pointers.
13701 (write_ts_block_tree_pointers): Rename from
13702 lto_output_ts_block_tree_pointers.
13703 (write_ts_binfo_tree_pointers): Rename from
13704 lto_output_ts_binfo_tree_pointers.
13705 (write_ts_constructor_tree_pointers): Rename from
13706 lto_output_ts_constructor_tree_pointers.
13707 (write_ts_target_option): Rename from lto_output_ts_target_option.
13708 (write_ts_translation_unit_decl_tree_pointers): Rename from
13709 lto_output_ts_translation_unit_decl_tree_pointers.
13710 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
13711 Rename from lto_streamer_cache_add_to_node_array.
13712 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
13713 (record_common_node): Rename from lto_record_common_node.
13714
13715 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
13716 declarations.
13717 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
13718 function.
13719 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
13720 unused function.
13721 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
13722 (ipa-reference.o): Likewise.
13723 * lto-section-out.c: Include data-streamer.h.
13724 * ipa-reference.c: Include data-streamer.h.
13725
13726 2011-08-12 Nick Clifton <nickc@redhat.com>
13727
13728 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
13729 * doc/md.texi (cmpstrn): Note that the comparison stops if both
13730 fetched bytes are zero.
13731 (cmpstr): Likewise.
13732 (cmpmem): Note that the comparison does not stop if both of the
13733 fetched bytes are zero.
13734
13735 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
13736
13737 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
13738 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
13739 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
13740 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
13741 to integer_type_node.
13742 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
13743 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
13744 * builtins.c (expand_builtin_in): Ditto.
13745 (mathfn_built_in_1): Ditto.
13746 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
13747 BUILT_IN_IFLOOR.
13748 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
13749 BUILT_IN_IROUND.
13750 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
13751 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
13752 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
13753
13754 2011-08-12 Richard Guenther <rguenther@suse.de>
13755
13756 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
13757
13758 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
13759
13760 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
13761
13762 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
13763
13764 * config/arm/arm.c (get_label_padding): New function.
13765 (create_fix_barrier, arm_reorg): Use it.
13766
13767 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
13768
13769 PR target/49781
13770 * config/i386/i386.md (*lea_5_zext): New.
13771 (*lea_6_zext): Ditto.
13772 * config/i386/predicates.md (const_32bit_mask): New predicate.
13773 (lea_address_operand): Reject AND.
13774 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
13775 const_32bit_mask immediate.
13776 (ix86_print_operand_address): Handle AND.
13777 (memory_address_length): Ditto.
13778
13779 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
13780 Brian Hackett <bhackett1024@gmail.com>
13781
13782 * plugin.def: Add event for finish_decl.
13783 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
13784 * c-decl.c (finish_decl): Invoke callbacks on above event.
13785 * doc/plugins.texi: Document above event.
13786
13787 2011-08-11 Richard Guenther <rguenther@suse.de>
13788
13789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
13790 lookups, make looking through aggregate copies stronger.
13791
13792 2011-08-11 Richard Henderson <rth@redhat.com>
13793
13794 PR bootstrap/50018
13795 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
13796
13797 2011-08-11 Richard Guenther <rguenther@suse.de>
13798
13799 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
13800 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
13801 (vrp_visit_stmt): Likewise.
13802
13803 2011-08-11 Richard Guenther <rguenther@suse.de>
13804
13805 PR middle-end/50040
13806 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
13807 load of the other piece with TREE_NO_WARNING.
13808 * tree-flow.h (warn_uninit): Adjust prototype.
13809 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
13810 the base variable and the expression that is used separately.
13811 Properly query all TREE_NO_WARNING flags.
13812 (struct walk_data): Remove.
13813 (warn_uninitialized_var): Likewise.
13814 (warn_uninitialized_vars): Do not walk gimple pieces but simply
13815 look at all SSA uses of the statement. Handle unused memory
13816 separately.
13817 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
13818
13819 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
13820
13821 * config/rx/rx.md (movsicc): Allow register to register transfers.
13822 (*movsicc): Likewise.
13823 (*stcc): Restrict this pattern to EQ and NE compares.
13824 (*stcc_reg): New pattern. Works for any comparison but only for
13825 register transfers.
13826
13827 2011-08-11 Diego Novillo <dnovillo@google.com>
13828
13829 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
13830 Call stream_write_tree instead of output_record_start.
13831 (lto_output_ts_binfo_tree_pointers): Likewise.
13832
13833 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
13834 Convert it to a macro.
13835 (stream_read_tree): Likewise.
13836
13837 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
13838 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
13839
13840 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
13841 and tree_read_bitfields.
13842 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
13843 (lto_write_tree): Call it.
13844 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
13845 * streamer-hooks.h (struct streamer_hooks): Remove fields
13846 name, is_streamable and alloc_tree. Update all users.
13847 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
13848 (lto_materialize_tree): ... here.
13849 Handle CALL_EXPR codes.
13850 Remove call to lto_streamer_cache_append.
13851 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
13852 * tree-streamer.h (tree_read_bitfields): Declare.
13853
13854 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
13855 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
13856 * tree-streamer.h (stream_read_tree): New. Replace all calls
13857 to lto_input_tree with it.
13858 (stream_write_tree): New. Replace all calls to lto_output_tree,
13859 lto_output_tree_ref and lto_output_tree_or_ref with it.
13860 * lto-streamer-in.c (lto_read_tree): Inline code from
13861 lto_streamer_read_tree.
13862 (lto_input_tree): Move from tree-streamer-in.c.
13863 * lto-streamer-out.c (lto_output_tree_ref): Make static.
13864 Remove handling of NULL values for EXPR.
13865 Do not handle EXPRs that are not indexable.
13866 (lto_write_tree): Move from tree-streamer-out.c.
13867 Inline lto_streamer_write_tree.
13868 (lto_output_tree): Move from tree-streamer-out.c.
13869 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
13870 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
13871 (lto_preload_common_nodes): Likewise.
13872 Remove assertions and adjustments for nodes
13873 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
13874 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
13875 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
13876 * lto-streamer.h (lto_input_tree): Declare.
13877 (lto_output_tree_ref): Remove.
13878 * streamer-hooks.h (struct streamer_hooks): Remove fields
13879 preload_common_nodes, indexable_with_decls_p,
13880 pack_value_fields, unpack_value_fields and output_tree_header.
13881 Update all users.
13882 * tree-streamer-in.c (lto_materialize_tree): Make extern.
13883 (lto_input_tree_pointers): Likewise.
13884 (lto_read_tree): Move to lto-streamer-in.c.
13885 (lto_input_integer_cst): Make extern.
13886 (lto_get_pickled_tree): Likewise.
13887 (lto_get_builtin_tree): Likewise.
13888 (lto_input_tree): Move to lto-streamer-in.c.
13889 * tree-streamer-out.c (pack_value_fields): Make extern.
13890 (lto_output_tree_or_ref): Remove. Replace all callers with
13891 calls to stream_write_tree.
13892 (lto_output_builtin_tree): Make extern.
13893 (lto_streamer_write_tree): Inline into lto_write_tree.
13894 (lto_output_tree_pointers): Make extern.
13895 (lto_output_tree_header): Likewise.
13896 (lto_output_integer_cst): Likewise.
13897 (lto_write_tree): Move to lto-streamer-out.c.
13898 (lto_output_tree): Likewise.
13899 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
13900 (preload_common_nodes): Likewise.
13901 (lto_streamer_cache_create): Call it.
13902 * tree-streamer.h: Include streamer-hooks.h.
13903 (stream_write_tree): New.
13904 (stream_read_tree): New.
13905 (lto_input_tree): Remove.
13906 (lto_materialize_tree): Declare.
13907 (lto_input_tree_pointers): Declare.
13908 (lto_get_pickled_tree): Declare.
13909 (lto_get_builtin_tree): Declare.
13910 (lto_input_integer_cst): Declare.
13911 (lto_output_tree_header): Declare.
13912 (pack_value_fields): Declare.
13913 (lto_output_tree_pointers): Declare.
13914 (lto_output_integer_cst): Declare.
13915 (lto_output_builtin_tree): Declare.
13916
13917 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
13918
13919 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
13920 only if producer writes to the register given by regno.
13921
13922 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
13923 Alexander Monakov <amonakov@ispras.ru>
13924
13925 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
13926 (sched_get_condition_with_rev_uncached): ... this. Factor out
13927 condition caching logic into ...
13928 (sched_get_condition_with_rev): ... this. Reimplement. Do not
13929 attempt to use cache for instructions with zero luid.
13930 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
13931 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
13932
13933 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
13934
13935 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
13936 get_seqno_for_a_jump. Update the caller.
13937 (get_seqno_by_succs): New. Use it ...
13938 (get_seqno_for_a_jump): ... here to find a seqno if looking at
13939 predecessors was not sufficient.
13940 (get_seqno_by_preds): Include head in iteration range, exclude insn.
13941
13942 2011-08-11 Dmitry Melnik <dm@ispras.ru>
13943
13944 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
13945
13946 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
13947
13948 * sel-sched-ir.h (register_unavailable_p): Declare.
13949 * sel-sched-ir.c (register_unavailable_p): New. Use it...
13950 (set_unavailable_target_for_expr): ... here to properly test
13951 availability of a register.
13952 (speculate_expr): Ditto.
13953 * sel-sched.c (substitute_reg_in_expr): Ditto.
13954 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
13955
13956 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
13957
13958 * sel-sched.c (verify_target_availability): Fix usage of
13959 hard_regno_nregs.
13960
13961 2011-08-11 Dmitry Melnik <dm@ispras.ru>
13962
13963 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
13964 recognized by cannot_copy_insn_p hook and volatile instructions.
13965
13966 2011-08-11 Dmitry Melnik <dm@ispras.ru>
13967
13968 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
13969
13970 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
13971
13972 * doc/md.texi (define_bypass): Say that the instruction names can
13973 be filename-style globs.
13974 * Makefile.in (FNMATCH_H): Define.
13975 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
13976 * genattrtab.c: Include fnmatch.h.
13977 (bypass_list): Change field name from "insn" to "pattern".
13978 (gen_bypass_1): Update accordingly.
13979 (process_bypasses): Use fnmatch to check for matches between
13980 insn reservations and define_bypasses.
13981 * genautomata.c: Include fnmatch.h.
13982 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
13983 and out_pattern respectively.
13984 (gen_bypass, insert_bypass): Update accordingly.
13985 (for_each_matching_insn, process_bypass_2, process_bypass_1)
13986 (process_bypass): New functions.
13987 (process_decls): Use process_bypass. Update after field name changes.
13988
13989 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
13990
13991 PR target/49687
13992 * config/avr/avr.md (smulqi3_highpart): New insn.
13993 (umulqi3_highpart): New insn.
13994 (*subqi3.ashiftrt7): New insn.
13995 (smulhi3_highpart): New expander.
13996 (umulhi3_highpart): Nex expander.
13997 (*smulhi3_highpart_call): New insn.
13998 (*umulhi3_highpart_call): New insn.
13999 (extend_u): New code attribute.
14000 (extend_prefix): Rename code attribute to extend_su.
14001 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
14002 widening QI/HI multiply.
14003
14004 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
14005
14006 PR tree-optimization/50039
14007 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
14008 that DEF_STMT has a stmt_vec_info.
14009
14010 2011-08-10 Richard Guenther <rguenther@suse.de>
14011
14012 * tree.h (can_trust_pointer_alignment): Remove.
14013 * builtins.c (can_trust_pointer_alignment): Remove.
14014
14015 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
14016
14017 * c-typeck.c (scalar_to_vector): New function. Try scalar to
14018 vector conversion.
14019 (stv_conv): New enum for scalar_to_vector return type.
14020 (build_binary_op): Adjust.
14021 * doc/extend.texi: Description of scalar to vector expansion.
14022
14023 2011-08-10 Richard Guenther <rguenther@suse.de>
14024
14025 * tree.h (get_pointer_alignment): Remove max-align argument.
14026 (get_object_alignment): Likewise.
14027 * builtins.c (get_object_alignment_1): Adjust.
14028 (get_object_alignment): Remove max-align argument.
14029 (get_pointer_alignment): Likewise.
14030 (expand_builtin_strlen): Adjust.
14031 (expand_builtin_memcpy): Likewise.
14032 (expand_builtin_mempcpy_args): Likewise.
14033 (expand_builtin_strncpy): Likewise.
14034 (expand_builtin_memset_args): Likewise.
14035 (expand_builtin_memcmp): Likewise.
14036 (expand_builtin_strcmp): Likewise.
14037 (expand_builtin_strncmp): Likewise.
14038 (get_builtin_sync_mem): Likewise.
14039 (fold_builtin_memset): Likewise.
14040 (fold_builtin_memory_op): Likewise.
14041 (expand_builtin_memory_chk): Likewise.
14042 * emit-rtl.c (get_mem_align_offset): Likewise.
14043 (set_mem_attributes_minus_bitpos): Likewise.
14044 * expr.c (expand_assignment): Likewise.
14045 (expand_expr_real_1): Likewise.
14046 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
14047 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
14048 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
14049 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
14050 * value-prof.c (gimple_stringops_transform): Likewise.
14051
14052 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
14053
14054 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
14055 * doc/tm.texi: Regenerate.
14056
14057 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
14058
14059 PR target/29560
14060 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
14061 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
14062 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
14063 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
14064 shift target is unused.
14065
14066 2011-08-10 Richard Guenther <rguenther@suse.de>
14067
14068 PR tree-optimization/49937
14069 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
14070 using get_object_alignment_1.
14071
14072 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
14073
14074 * config/i386/i386.c (ix86_emit_i387_round): New function.
14075 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
14076 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
14077 Use ix86_emit_i387_round to expand round function for i387 math.
14078 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
14079 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
14080
14081 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14082
14083 * config/sync.c: Move to ../libgcc.
14084 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
14085 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
14086 Remove.
14087
14088 2011-08-09 Anatoly Sokolov <aesok@post.ru>
14089
14090 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
14091 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
14092 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
14093 Change 'from' and 'to' arguments type to reg_class_t.
14094 (TARGET_REGISTER_MOVE_COST): Define.
14095
14096 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
14097
14098 PR target/50026
14099 Revert:
14100 PR rtl-optimization/49990
14101 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
14102 ignore classes which can not change mode.
14103 (find_costs_and_classes): Ditto.
14104
14105 2011-08-09 Richard Guenther <rguenther@suse.de>
14106
14107 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
14108 information for ranges with only negative values.
14109 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
14110 BIT_AND_EXPR handling to handle ranges with negative values.
14111
14112 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
14113
14114 * config/i386/i386.c: Remove traling spaces.
14115 * config/i386/sse.md: Likewise.
14116 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
14117 (*fma_fmsub_<mode>): Likewise.
14118 (*fma_fnmadd_<mode>): Likewise.
14119 (*fma_fnmsub_<mode>): Likewise.
14120
14121 2011-08-09 Nick Clifton <nickc@redhat.com>
14122
14123 * config/rx/rx.md: Disable extender peepholes at -O3.
14124
14125 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
14126
14127 PR target/49781
14128 * config/i386/i386.md (reload_noff_load): New.
14129 (reload_noff_store): Ditto.
14130 * config/i386/i386.c (ix86_secondary_reload): Use
14131 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
14132 double-word moves from/to non-offsetable addresses instead of
14133 generating XMM temporary.
14134
14135 2011-08-09 Anatoly Sokolov <aesok@post.ru>
14136
14137 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
14138
14139 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
14140
14141 PR tree-optimization/50014
14142 * tree-vect-loop.c (vectorizable_reduction): Get def type before
14143 calling vect_get_vec_def_for_stmt_copy ().
14144
14145 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
14146
14147 PR rtl-optimization/49990
14148 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
14149 ignore classes which can not change mode.
14150 (find_costs_and_classes): Ditto.
14151
14152 2011-08-08 Richard Henderson <rth@redhat.com>
14153
14154 PR middle-end/49990
14155 * config/i386/i386.c (ix86_expand_prologue): Call
14156 for SEH target gen_prologue_use instead of gen_blockage
14157 at prologue's end.
14158
14159 2011-08-08 Martin Jambor <mjambor@suse.cz>
14160
14161 PR middle-end/49923
14162 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
14163 memory alignment.
14164
14165 2011-08-08 Diego Novillo <dnovillo@google.com>
14166
14167 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
14168 (DATA_STREAMER_H): New.
14169 (GIMPLE_STREAMER_H): New.
14170 (TREE_STREAMER_H): New.
14171 (STREAMER_HOOKS_H): New.
14172 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
14173 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
14174 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
14175 (data-streamer.o): New.
14176 (data-streamer-in.o): New.
14177 (data-streamer-out.o): New.
14178 (gimple-streamer-in.o): New.
14179 (gimple-streamer-out.o): New.
14180 (streamer-hooks.o): New.
14181 (tree-streamer.o): New.
14182 (tree-streamer-in.o): New.
14183 (tree-streamer-out.o): New.
14184 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
14185 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
14186 GIMPLE_STREAMER_H and TREE_STREAMER_H.
14187 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
14188 GIMPLE_STREAMER_H and TREE_STREAMER_H.
14189 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
14190 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
14191 (ipa-inline-analysis.o): Likewise.
14192 (ipa-pure-const.o): Likewise.
14193 * data-streamer-in.c: New.
14194 * data-streamer-out.c: New.
14195 * data-streamer.c: New.
14196 * data-streamer.h: New.
14197 * gimple-streamer-in.c: New.
14198 * gimple-streamer-out.c: New.
14199 * gimple-streamer.h: New.
14200 * ipa-inline-analysis.c: Include data-streamer.h.
14201 * ipa-prop.c: Include data-streamer.h.
14202 * ipa-pure-const.c: Include data-streamer.h.
14203 * lto-cgraph.c: Include data-streamer.h.
14204 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
14205 (lto_input_widest_uint_uleb128): Likewise.
14206 (lto_input_sleb128): Likewise.
14207 (bp_unpack_var_len_unsigned): Likewise.
14208 (bp_unpack_var_len_int): Likewise.
14209 * lto-section-out.c (lto_output_uleb128_stream): Move to
14210 data-streamer-out.c.
14211 (lto_output_widest_uint_uleb128_stream): Likewise.
14212 (lto_output_sleb128_stream): Likewise.
14213 (bp_pack_var_len_unsigned): Likewise.
14214 (bp_pack_var_len_int): Likewise.
14215 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
14216 (struct string_slot): Remove. Update all users.
14217 (lto_tag_check_set): Make extern.
14218 (lto_tag_check_range): Move to lto-streamer.h.
14219 (lto_tag_check): Likewise.
14220 (hash_string_slot_node): Remove. Update all users.
14221 (eq_string_slot_node): Remove. Update all users.
14222 (string_for_index): Move to data-streamer-in.c
14223 (input_string_internal): Likewise.
14224 (input_string_cst): Move to tree-streamer-in.c.
14225 (input_identifier): Likewise.
14226 (lto_input_string): Move to data-streamer-in.c
14227 (input_record_start): Move to data-streamer.h
14228 (canon_file_name): Use new definition of struct string_slot
14229 from data-streamer.h. Set S_SLOT.LEN.
14230 (lto_input_location): Make extern.
14231 (lto_input_chain): Move to tree-streamer-in.c.
14232 (lto_init_eh): Make extern.
14233 (input_phi): Move to gimple-streamer-in.c.
14234 (input_gimple_stmt): Likewise.
14235 (input_bb): Likewise.
14236 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
14237 (unpack_ts_real_cst_value_fields): Likewise.
14238 (unpack_ts_fixed_cst_value_fields): Likewise.
14239 (unpack_ts_decl_common_value_fields): Likewise.
14240 (unpack_ts_decl_wrtl_value_fields): Likewise.
14241 (unpack_ts_decl_with_vis_value_fields): Likewise.
14242 (unpack_ts_function_decl_value_fields): Likewise.
14243 (unpack_ts_type_common_value_fields): Likewise.
14244 (unpack_ts_block_value_fields): Likewise.
14245 (unpack_ts_translation_unit_decl_value_fields): Likewise.
14246 (unpack_value_fields): Likewise.
14247 (lto_materialize_tree): Likewise.
14248 (lto_input_ts_common_tree_pointers): Likewise.
14249 (lto_input_ts_vector_tree_pointers): Likewise.
14250 (lto_input_ts_complex_tree_pointers): Likewise.
14251 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
14252 (lto_input_ts_decl_common_tree_pointers): Likewise.
14253 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
14254 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
14255 (lto_input_ts_field_decl_tree_pointers): Likewise.
14256 (lto_input_ts_function_decl_tree_pointers): Likewise.
14257 (lto_input_ts_type_common_tree_pointers): Likewise.
14258 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14259 (lto_input_ts_list_tree_pointers): Likewise.
14260 (lto_input_ts_vec_tree_pointers): Likewise.
14261 (lto_input_ts_exp_tree_pointers): Likewise.
14262 (lto_input_ts_block_tree_pointers): Likewise.
14263 (lto_input_ts_binfo_tree_pointers): Likewise.
14264 (lto_input_ts_constructor_tree_pointers): Likewise.
14265 (lto_input_ts_target_option): Likewise.
14266 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
14267 (lto_input_tree_pointers): Likewise.
14268 (lto_get_pickled_tree): Likewise.
14269 (lto_get_builtin_tree): Likewise.
14270 (lto_read_tree): Likewise.
14271 (lto_input_integer_cst): Likewise.
14272 (lto_input_tree): Likewise.
14273 * lto-streamer-out.c: Include data-streamer.h,
14274 gimple-streamer.h and streamer-hooks.h.
14275 (struct string_slot): Move to data-streamer.h.
14276 (hash_string_slot_node): Likewise.
14277 (eq_string_slot_node): Likewise.
14278 (lto_string_index): Move to data-streamer-out.c.
14279 (lto_output_string_with_length): Likewise.
14280 (lto_output_string): Likewise.
14281 (output_string_cst): Move to tree-streamer-out.c.
14282 (output_identifier): Likewise.
14283 (output_zero): Move to data-streamer-out.c
14284 (output_uleb128): Likewise.
14285 (output_sleb128): Likewise.
14286 (output_record_start): Move to data-streamer.h
14287 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
14288 (pack_ts_real_cst_value_fields): Likewise.
14289 (pack_ts_fixed_cst_value_fields): Likewise.
14290 (pack_ts_decl_common_value_fields): Likewise.
14291 (pack_ts_decl_wrtl_value_fields): Likewise.
14292 (pack_ts_decl_with_vis_value_fields): Likewise.
14293 (pack_ts_function_decl_value_fields): Likewise.
14294 (pack_ts_type_common_value_fields): Likewise.
14295 (pack_ts_block_value_fields): Likewise.
14296 (pack_ts_translation_unit_decl_value_fields): Likewise.
14297 (pack_value_fields): Likewise.
14298 (lto_output_chain): Likewise.
14299 (lto_output_ts_common_tree_pointers): Likewise.
14300 (lto_output_ts_vector_tree_pointers): Likewise.
14301 (lto_output_ts_complex_tree_pointers): Likewise.
14302 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
14303 (lto_output_ts_decl_common_tree_pointers): Likewise.
14304 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
14305 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
14306 (lto_output_ts_field_decl_tree_pointers): Likewise.
14307 (lto_output_ts_function_decl_tree_pointers): Likewise.
14308 (lto_output_ts_type_common_tree_pointers): Likewise.
14309 (lto_output_ts_type_non_common_tree_pointers): Likewise.
14310 (lto_output_ts_list_tree_pointers): Likewise.
14311 (lto_output_ts_vec_tree_pointers): Likewise.
14312 (lto_output_ts_exp_tree_pointers): Likewise.
14313 (lto_output_ts_block_tree_pointers): Likewise.
14314 (lto_output_ts_binfo_tree_pointers): Likewise.
14315 (lto_output_ts_constructor_tree_pointers): Likewise.
14316 (lto_output_ts_target_option): Likewise.
14317 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
14318 (lto_output_tree_pointers): Likewise.
14319 (lto_output_tree_header): Likewise.
14320 (lto_output_builtin_tree): Likewise.
14321 (lto_write_tree): Likewise.
14322 (lto_output_integer_cst): Likewise.
14323 (lto_output_tree): Likewise.
14324 (output_phi): Move to gimple-streamer-out.c.
14325 (output_gimple_stmt): Likewise.
14326 (output_bb): Likewise.
14327 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
14328 (streamer_hooks): Move to streamer-hooks.c.
14329 (check_handled_ts_structures): Move to tree-streamer.c
14330 (lto_streamer_cache_add_to_node_array): Likewise.
14331 (lto_streamer_cache_insert_1): Likewise.
14332 (lto_streamer_cache_insert): Likewise.
14333 (lto_streamer_cache_insert_at): Likewise.
14334 (lto_streamer_cache_append): Likewise.
14335 (lto_streamer_cache_lookup): Likewise.
14336 (lto_streamer_cache_get): Likewise.
14337 (lto_record_common_node): Likewise.
14338 (lto_preload_common_nodes): Likewise.
14339 (lto_streamer_cache_create): Likewise.
14340 (lto_streamer_cache_delete): Likewise.
14341 (streamer_hooks_init): Move to streamer-hooks.c.
14342 * lto-streamer.h: Include diagnostic.h
14343 (struct output_block, struct lto_input_block,
14344 struct data_in, struct bitpack_d): Remove forward declarations.
14345 (struct bitpack_d): Move to data-streamer.h.
14346 (struct lto_streamer_cache_d): Move to tree-streamer.h.
14347 (struct streamer_hooks): Move to streamer-hooks.h.
14348 (bp_pack_var_len_unsigned): Move to data-streamer.h.
14349 (bp_pack_var_len_int): Likewise.
14350 (bp_unpack_var_len_unsigned): Likewise.
14351 (bp_unpack_var_len_int): Likewise.
14352 (lto_input_location): Declare.
14353 (lto_tag_check_set): Declare.
14354 (lto_init_eh): Declare.
14355 (lto_output_tree_ref): Declare.
14356 (lto_output_location): Declare.
14357 (bitpack_create): Move to data-streamer.h.
14358 (bp_pack_value): Likewise.
14359 (lto_output_bitpack): Likewise.
14360 (lto_input_bitpack): Likewise.
14361 (bp_unpack_value): Likewise.
14362 (lto_output_1_stream): Likewise.
14363 (lto_input_1_unsigned): Likewise.
14364 (lto_output_int_in_range): Likewise.
14365 (lto_input_int_in_range): Likewise.
14366 (bp_pack_int_in_range): Likewise.
14367 (bp_unpack_int_in_range): Likewise.
14368 (lto_output_enum): Likewise.
14369 (lto_input_enum): Likewise.
14370 (bp_pack_enum): Likewise.
14371 (bp_unpack_enum): Likewise.
14372 * streamer-hooks.c: New.
14373 * streamer-hooks.h: New.
14374 * tree-streamer-in.c: New.
14375 * tree-streamer-out.c: New.
14376 * tree-streamer.c: New.
14377 * tree-streamer.h: New.
14378
14379 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14380
14381 * gthr-posix95.h: Remove.
14382 * gthr.h [_PTHREADS95]: Remove.
14383 * configure.ac (enable_threads): Remove posix95.
14384 * configure: Regenerate.
14385 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
14386
14387 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
14388
14389 PR target/49781
14390 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
14391 SImode addresses.
14392 (ix86_print_operand_address): Handle zero-extended addresses.
14393 (memory_address_length): Add length of addr32 prefix for
14394 zero-extended addresses.
14395 (ix86_secondary_reload): Handle moves to/from double-word general
14396 registers from/to zero-extended addresses.
14397 * config/i386/predicates.md (lea_address_operand): Reject
14398 zero-extended operands.
14399
14400 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
14401
14402 PR other/48007
14403 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
14404
14405 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
14406 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
14407
14408 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
14409 (_Unwind_Context_Reg_Val): Likewise.
14410 (_Unwind_Get_Unwind_Word): Likewise.
14411 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
14412 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
14413 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
14414 for EXTENDED_CONTEXT_BIT.
14415 (__frame_state_for): Likewise.
14416 (uw_init_context_1): Likewise.
14417 (_Unwind_GetGR): Updated.
14418 (_Unwind_SetGR): Likewise.
14419 (_Unwind_GetGRPtr): Likewise.
14420 (_Unwind_SetGRPtr): Likewise.
14421 (_Unwind_SetGRValue): Likewise.
14422 (_Unwind_GRByValue): Likewise.
14423 (uw_install_context_1): Likewise.
14424
14425 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
14426 ASSUME_EXTENDED_UNWIND_CONTEXT.
14427 * doc/tm.texi: Regenerated.
14428
14429 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14430
14431 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
14432
14433 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14434
14435 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
14436 Linux/GNU-specific.
14437 (DEC Alpha Options, -mtune): Likewise.
14438 (MIPS Options, -march): native is supported on IRIX.
14439
14440 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14441
14442 * config/sparc/driver-sparc.c: New file.
14443 * config/sparc/x-sparc: New file.
14444 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
14445 * config/sparc/sparc.opt (native): New value for enum processor_type.
14446 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
14447 * config/sparc/sparc.c (sparc_option_override): Abort if
14448 PROCESSOR_NATIVE gets here.
14449 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
14450 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
14451 DRIVER_SELF_SPECS): Define.
14452 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
14453 (SPARC Options, -mtune): Likewise.
14454 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
14455 Substitute result.
14456 * configure: Regenerate.
14457 * Makefile.in (EXTRA_GCC_LIBS): Set.
14458 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
14459 (cpp$(exeext)): Likewise.
14460
14461 2011-08-08 Richard Guenther <rguenther@suse.de>
14462
14463 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
14464 split out from ...
14465 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
14466 by composition.
14467
14468 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
14469
14470 PR tree-optimization/50005
14471 * ipa-inline-analysis (remap_predicate): Add cast to
14472 silence signed/unsigned comparison warning.
14473
14474 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
14475
14476 * modulo-sched.c (get_sched_window): Use a table for the debug output.
14477 Print the current ii.
14478 (sms_schedule_by_order): Reduce whitespace in dump line.
14479
14480 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
14481
14482 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
14483 and one loop for successors. Fix upper bound of memory range.
14484
14485 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
14486
14487 PR target/50001
14488 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
14489 (TARGET_INSTANTIATE_DECLS): New define.
14490
14491 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
14492 Mikael Morin <mikael.morin@sfr.fr>
14493
14494 * Makefile.in (INCLUDES_FOR_TARGET): New.
14495 (LIBGCC2_CFLAGS): Use it.
14496 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
14497
14498 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
14499
14500 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
14501 frame->save_regs_using_mov calculation.
14502
14503 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
14504
14505 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
14506 * config/i386/sse.md (castmode): New mode attribute.
14507 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
14508 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
14509
14510 2011-08-05 Jan Hubicka <jh@suse.cz>
14511
14512 PR middle-end/49494
14513 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
14514
14515 2011-08-05 Jan Hubicka <jh@suse.cz>
14516
14517 PR middle-end/49500
14518 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
14519 handle aliases.
14520 (create_emultls_var):New function.
14521 (ipa_lower_emutls): Handle aliases correctly.
14522
14523 2011-08-05 Jan Hubicka <jh@suse.cz>
14524
14525 PR middle-end/49735
14526 * ipa-inline.c (recursive_inlining): Look through aliases.
14527
14528 2011-08-05 Jason Merrill <jason@redhat.com>
14529
14530 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
14531 declarations to beginning of function.
14532
14533 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
14534
14535 PR rtl-optimization/49900
14536 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
14537 ensure basic blocks stay in the same order.
14538
14539 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
14540
14541 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
14542 store_bit_field.
14543 (s390_expand_atomic): Same.
14544
14545 2011-08-05 Richard Henderson <rth@redhat.com>
14546
14547 PR rtl-opt/49977
14548 * dwarf2cfi.c (scan_insn_after): Split out of ...
14549 (scan_trace): ... here. Correctly place notes wrt sequences.
14550
14551 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
14552 Richard Henderson <rth@redhat.com>
14553
14554 PR rtl-opt/49982
14555 * expr.c (fixup_args_size_notes): Look through no-op moves.
14556
14557 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
14558
14559 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
14560 of "m" for operand 0. Add type and mode attribute.
14561 (*pushxf_nointeger"): Use "<" constraint for operand 0.
14562 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
14563 constraint instead of "o" for opreand 1.
14564 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
14565 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
14566 operand 0, alternative 4.
14567 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
14568
14569 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
14570
14571 * config/i386/predicates.md (lea_address_operand): Rename from
14572 no_seg_address_operand.
14573 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
14574 (*lea_1_zext): Ditto.
14575 (*lea_2): Ditto.
14576 (*lea_2_zext): Ditto.
14577
14578 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
14579
14580 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
14581 parts.base and parts.index.
14582 * config/i386/predicates.md (aligned_operand): Ditto.
14583 (cmpxchg8b_pic_memory_operand): Ditto.
14584
14585 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14586
14587 * config/soft-fp: Move to ../libgcc.
14588 * Makefile.in (SFP_MACHINE): Remove.
14589 (libgcc-support): Remove $(SFP_MACHINE) dependency.
14590 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
14591 * config/arm/t-arm-softfp: Move to
14592 ../libgcc/config/arm/t-softfp.
14593 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
14594 * config/c6x/t-c6x-softfp: Remove.
14595 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
14596 * config/i386/t-fprules-softfp: Move to
14597 ../libgcc/config/t-softfp-tf.
14598 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
14599 * config/ia64/t-fprules-softfp: Remove.
14600 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
14601 * config/lm32/t-fprules-softfp: Remove.
14602 * config/moxie/sfp-machine.h: Remove.
14603 * config/moxie/t-moxie-softfp: Remove.
14604 * config/rs6000/darwin-ldouble-format: Move to
14605 ../libgcc/config/rs6000/ibm-ldouble-format.
14606 * config/rs6000/darwin-ldouble.c: Move to
14607 ../libgcc/config/rs6000/ibm-ldouble.c
14608 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
14609 * config/rs6000/libgcc-ppc64.ver: Likewise.
14610 * config/rs6000/sfp-machine.h: Likewise.
14611 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
14612 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
14613 (LIB2FUNCS_EXTRA): Remove.
14614 (TARGET_LIBGCC2_CFLAGS): Remove.
14615 * config/rs6000/t-aix52: Likewise
14616 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
14617 $(srcdir)/config/rs6000/darwin-ldouble.c.
14618 (SHLIB_MAPFILES): Remove.
14619 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
14620 $(srcdir)/config/rs6000/darwin-ldouble.c.
14621 * config/rs6000/t-fprules-softfp: Move to
14622 ../libgcc/config/t-softfp-sfdf.
14623 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
14624 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
14625 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
14626 $(srcdir)/config/rs6000/darwin-ldouble.c.
14627 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
14628 * config/score/t-score-softfp: Remove.
14629 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
14630 soft-fp/t-softfp from tmake_file.
14631 (arm*-*-uclinux*): Likewise.
14632 (arm*-*-ecos-elf): Likewise.
14633 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
14634 (arm*-*-rtems*): Likewise.
14635 (arm*-*-elf): Likewise.
14636 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
14637 tmake_file.
14638 (moxie-*-uclinux*): Likewise.
14639 (moxie-*-rtems*): Likewise.
14640 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
14641 tmake_file.
14642 (lm32-*-rtems*): Likewise.
14643 (lm32-*-uclinux*): Likewise.
14644 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
14645 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
14646 (powerpc-*-linux*, powerpc64-*-linux*): Remove
14647 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
14648 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
14649 tmake_file.
14650 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
14651 tmake_file.
14652 (tic6x-*-uclinux): Likewise.
14653 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
14654 soft-fp/t-softfp from tmake_file.
14655 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
14656 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
14657 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
14658 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
14659 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
14660
14661 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14662
14663 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
14664 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
14665 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
14666 TPBIT, TPBIT_FUNCS.
14667 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
14668 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
14669 Remove.
14670 * config/arm/t-vxworks: Likewise.
14671 * config/arm/t-wince-pe: Likewise.
14672 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
14673 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14674 * config/bfin/t-bfin-elf: Likewise.
14675 * config/bfin/t-bfin-linux: Likewise.
14676 * config/bfin/t-bfin-uclinux: Likewise.
14677 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
14678 Remove.
14679 * config/fr30/t-fr30: Likewise.
14680 * config/frv/t-frv: Likewise.
14681 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
14682 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14683 * config/m32c/t-m32c: Likewise.
14684 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
14685 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14686 * config/mcore/t-mcore: Likewise.
14687 * config/mep/t-mep: Likewise.
14688 * config/microblaze/t-microblaze: Likewise.
14689 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
14690 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14691 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
14692 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14693 * config/mn10300/t-linux: Remove.
14694 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14695 * config/pdp11/t-pdp11: Likewise.
14696 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
14697 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
14698 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14699 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
14700 * config/rs6000/t-aix52: Likewise.
14701 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
14702 $(srcdir)/config/rs6000/ppc64-fp.c.
14703 * config/rs6000/t-fprules-fpbit: Remove.
14704 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
14705 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14706 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
14707 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14708 * config/sparc/t-elf: Likewise.
14709 * config/sparc/t-leon: Likewise.
14710 * config/sparc/t-leon3: Likewise.
14711 * config/spu/t-spu-elf: Likewise.
14712 (DPBIT_FUNCS): Remove.
14713 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
14714 * config/v850/t-v850: Likewise.
14715 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
14716 (avr-*-*): Likewise.
14717 (h8300-*-rtems*): Set libgcc_tm_file.
14718 (h8300-*-elf*): Likewise.
14719 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
14720 tmake_file.
14721 (powerpc-*-eabisim*): Likewise.
14722 (powerpc-*-elf*): Likewise.
14723 (powerpc-*-eabialtivec*): Likewise.
14724 (powerpc-xilinx-eabi*): Likewise.
14725 (powerpc-*-eabi*): Likewise.
14726 (powerpc-*-rtems*): Likewise.
14727 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
14728 (powerpcle-*-elf*): Likewise.
14729 (powerpcle-*-eabisim*): Likewise.
14730 (powerpcle-*-eabi*): Likewise.
14731 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
14732 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
14733 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
14734 Remove.
14735
14736 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14737
14738 * Makefile.in (UNWIND_H): Remove.
14739 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
14740 ../libgcc/Makefile.in.
14741 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
14742 (LIBUNWINDDEP): Remove.
14743 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
14744 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
14745 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
14746 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
14747 Don't copy $(UNWIND_H).
14748 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
14749 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
14750 * aclocal.m4: Regenerate.
14751 * configure: Regenerate.
14752 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
14753 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
14754 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
14755 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
14756 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
14757 * config/arm/libunwind.S, config/arm/pr-support.c,
14758 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
14759 ../libgcc/config/arm.
14760 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
14761 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
14762 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
14763 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
14764 ($(T)frvend$(objext)): Likewise.
14765 * config/ia64/t-glibc (LIB2ADDEH): Remove.
14766 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
14767 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
14768 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
14769 ../libgcc/config/ia64.
14770 * config/ia64/t-hpux (LIB2ADDEH): Remove.
14771 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
14772 * config/ia64/t-vms (LIB2ADDEH): Remove.
14773 * config/ia64/vms.h (UNW_IVMS_MODE,
14774 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
14775 * config/picochip/t-picochip (LIB2ADDEH): Remove.
14776 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
14777 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
14778 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
14779 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
14780 $(srcdir)/../libgcc to refer to unwinder sources.
14781 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
14782 * config/t-darwin (LIB2ADDEH): Remove.
14783 * config/t-freebsd (LIB2ADDEH): Remove.
14784 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
14785 * config/t-libunwind-elf: Move to ../libgcc/config.
14786 * config/t-linux (LIB2ADDEH): Remove.
14787 * config/t-sol2 (LIB2ADDEH): Remove.
14788 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
14789 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
14790
14791 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
14792
14793 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
14794
14795 * doc/invoke.texi: Document core-avx-i.
14796
14797 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14798
14799 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
14800
14801 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
14802
14803 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
14804 result of multiple results reduction when extracting the final
14805 value using scalar code.
14806
14807 2011-08-05 Richard Guenther <rguenther@suse.de>
14808
14809 PR tree-optimization/49984
14810 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
14811
14812 2011-08-05 Richard Guenther <rguenther@suse.de>
14813
14814 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
14815 return true for constant integer ranges.
14816 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
14817 BIT_IOR_EXPR handling.
14818
14819 2011-08-04 Kai Tietz <ktietz@redhat.com>
14820
14821 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
14822 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
14823
14824 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
14825
14826 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
14827 pattern def statement, and its access macro.
14828 (NUM_PATTERNS): Set to 5.
14829 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
14830 pattern def statement.
14831 (vect_transform_loop): Likewise.
14832 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
14833 function vect_recog_over_widening_pattern ().
14834 (vect_operation_fits_smaller_type): New function.
14835 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
14836 Likewise.
14837 (vect_pattern_recog_1): Move the code that marks pattern
14838 statements to vect_mark_pattern_stmts (), and call it. Update
14839 documentation.
14840 * tree-vect-stmts.c (vect_supportable_shift): New function.
14841 (vect_analyze_stmt): Handle pattern def statement.
14842 (new_stmt_vec_info): Initialize pattern def statement.
14843
14844 2011-08-04 Richard Henderson <rth@redhat.com>
14845
14846 PR target/49964
14847 * config/i386/i386.c (ix86_expand_call): Don't create nested
14848 PARALLELs for TARGET_VZEROUPPER.
14849 (ix86_split_call_vzeroupper): Fix extraction of the original call.
14850 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
14851 recognize nested PARALLELs.
14852 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
14853 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
14854 *sibcall_value_pop_vzeroupper): Likewise.
14855
14856 2011-08-04 Richard Henderson <rth@redhat.com>
14857
14858 PR middle-end/49968
14859 * calls.c (expand_call): Use fixup_args_size_notes for
14860 emit_stack_restore.
14861 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
14862 in non-standard modes.
14863
14864 2011-08-04 Jakub Jelinek <jakub@redhat.com>
14865
14866 * gcc.c (self_spec): New variable.
14867 (static_specs): Add self_spec.
14868 (main): Call do_self_spec on "self_spec" specs after reading
14869 user specs files. Move compare_debug handling right after that.
14870
14871 2011-08-04 Richard Guenther <rguenther@suse.de>
14872
14873 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
14874 (value_range_nonnegative_p): New function.
14875 (ssa_name_nonnegative_p): Use it.
14876 (value_range_constant_singleton): New function.
14877 (op_with_constant_singleton_value_range): Use it.
14878 (extract_range_from_binary_expr_1): New function, split out from ...
14879 (extract_range_from_binary_expr): ... this. Remove fallback
14880 constant folding done here.
14881
14882 2011-08-04 Richard Guenther <rguenther@suse.de>
14883
14884 PR tree-optimization/49806
14885 * tree-vrp.c (op_with_boolean_value_range_p): New function.
14886 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
14887 a new statement for a final conversion to bool.
14888
14889 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
14890
14891 * gengtype-state.c: Include "bconfig.h" if
14892 GENERATOR_FILE is defined, "config.h" otherwise.
14893 * gengtype.c: Likewise.
14894 * gengtype-lex.l: Likewise.
14895 * gengtype-parse.c: Likewise.
14896 * Makefile.in (gengtype-lex.o-warn): New variable.
14897 (plugin_resourcesdir): Likewise.
14898 (plugin_bindir): Likewise.
14899 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
14900 (MOSTLYCLEANFILES): Add gengtype$(exeext).
14901 (native): Depend on gengtype$(exeext) is $enable_plugin
14902 is set to "yes".
14903 (gtype.state): Depend on s-gtype. Use temporary file.
14904 (gengtype-lex.o): New rule.
14905 (gengtype-parse.o): Likewise.
14906 (gengtype-state.o): Likewise.
14907 (gengtype$(exeext)): Likewise.
14908 (install-gengtype): Likewise.
14909 (gengtype.o): Likewise.
14910 (build/gengtype.o): Depend on version.h.
14911 (build/gengtype-state): Depend on double-int.h, version.h,
14912 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
14913 (install-plugin): Depend on install-gengtype.
14914
14915 2011-08-04 Jakub Jelinek <jakub@redhat.com>
14916
14917 PR middle-end/49905
14918 * tree.h (init_attributes): New prototype.
14919 * attribs.c (init_attributes): No longer static.
14920
14921 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14922
14923 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
14924 maybe_suffix.
14925
14926 2011-08-03 David Li <davidxl@google.com>
14927
14928 * tree-optimize.c (execute_fixup_cfg): Fix up entry
14929 outgoing edge counts after inlining.
14930
14931 2011-08-03 David Li <davidxl@google.com>
14932
14933 * profile.c (compute_branch_probabilities): Compute
14934 function frequency after profile annotation.
14935
14936 2011-08-04 Alan Modra <amodra@gmail.com>
14937
14938 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
14939 use_backchain_to_restore_sp initialisation.
14940 (rs6000_legitimate_offset_address_p): Simplify offset test.
14941
14942 2011-08-03 Richard Henderson <rth@redhat.com>
14943
14944 * config/spu/spu.md: Use define_c_enum instead of define_constants.
14945 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
14946 (UNSPECV_NOP): New.
14947
14948 2011-08-03 Richard Henderson <rth@redhat.com>
14949
14950 PR target/34888
14951 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
14952
14953 2011-08-03 Jakub Jelinek <jakub@redhat.com>
14954
14955 PR tree-optimization/49948
14956 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
14957
14958 2011-08-03 Anatoly Sokolov <aesok@post.ru>
14959
14960 * config/m32c/m32c.c (class_sizes): Remove.
14961 (reduce_class): Change arguments and return type to reg_class_t.
14962 Change type cc var to HARD_REG_SET. Change type best var to
14963 reg_class_t. Change type best_size var to unsigned int. Remove
14964 initialization class_sizes var. Use reg_class_size array instead
14965 of class_sizes. Use reg_class_contents array instead
14966 of class_contents.
14967
14968 2011-08-03 Richard Guenther <rguenther@suse.de>
14969
14970 PR middle-end/49958
14971 * fold-const.c (fold_binary_loc): Only associate
14972 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
14973 overflow wraps.
14974
14975 2011-08-03 Alan Modra <amodra@gmail.com>
14976
14977 PR rtl-optimization/49941
14978 * jump.c (mark_jump_label): Comment.
14979 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
14980 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
14981 (mark_used_flags): Don't mark RETURN.
14982
14983 2011-08-03 Richard Guenther <rguenther@suse.de>
14984
14985 PR tree-optimization/49938
14986 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
14987 deal with a POLYNOMIAL_CHREC.
14988
14989 2011-08-03 Revital Eres <revital.eres@linaro.org>
14990
14991 * modulo-sched.c (calculate_stage_count,
14992 calculate_must_precede_follow, get_sched_window,
14993 try_scheduling_node_in_cycle, remove_node_from_ps): Add
14994 declaration.
14995 (update_node_sched_params, set_must_precede_follow, optimize_sc):
14996 New functions.
14997 (reset_sched_times): Call update_node_sched_params.
14998 (sms_schedule): Call optimize_sc.
14999 (get_sched_window): Change function arguments.
15000 (sms_schedule_by_order): Update call to get_sched_window.
15001 Call set_must_precede_follow.
15002 (calculate_stage_count): Add function argument.
15003
15004 2011-08-02 Richard Henderson <rth@redhat.com>
15005
15006 PR target/49864
15007 PR target/49879
15008 * reg-notes.def (REG_ARGS_SIZE): New.
15009 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
15010 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
15011 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
15012 different stack levels.
15013 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
15014 (maybe_move_args_size_note): New.
15015 (combine_stack_adjustments_for_block): Use it.
15016 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
15017 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
15018 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
15019 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
15020 (cur_cfa): New.
15021 (queued_args_size): Remove.
15022 (add_cfi_args_size): Assert size is non-negative.
15023 (stack_adjust_offset, dwarf2out_args_size): Remove.
15024 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
15025 (notice_args_size, notice_eh_throw): New.
15026 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
15027 (dwarf2out_frame_debug_adjust_cfa): Likewise.
15028 (dwarf2out_frame_debug_cfa_offset): Likewise.
15029 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
15030 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
15031 (change_cfi_row): Don't emit args_size.
15032 (maybe_record_trace_start_abnormal): Split out from ...
15033 (maybe_record_trace_start): Here. Set args_size_undefined.
15034 (create_trace_edges): Update to match.
15035 (scan_trace): Handle REG_ARGS_SIZE.
15036 (connect_traces): Connect args_size between EH insns.
15037 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
15038 * explow.c (suppress_reg_args_size): New.
15039 (adjust_stack_1): Split out from ...
15040 (adjust_stack): ... here.
15041 (anti_adjust_stack): Use it.
15042 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
15043 * expr.c (mem_autoinc_base): New.
15044 (fixup_args_size_notes): New.
15045 (emit_single_push_insn_1): Rename from emit_single_push_insn.
15046 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
15047 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
15048 * reload1.c (reload_as_needed): Likewise.
15049 * rtl.h (fixup_args_size_notes): Declare.
15050
15051 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
15052
15053 PR bootstrap/49914
15054 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
15055 of abs.
15056 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
15057 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
15058
15059 2011-08-02 Richard Henderson <rth@redhat.com>
15060
15061 * config/h8300/h8300.c (push, pop): Return the insn.
15062 (h8300_swap_into_er6): Generate correct unwind info.
15063 (h8300_swap_out_of_er6): Likewise.
15064 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
15065 complex cfa expression.
15066 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
15067
15068 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
15069
15070 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15071
15072 2011-08-02 Richard Henderson <rth@redhat.com>
15073
15074 PR target/49878
15075 * config/h8300/h8300.c (h8300_move_ok): New.
15076 * config/h8300/h8300-protos.h: Declare it.
15077 * config/h8300/h8300.md (P): New mode iterator.
15078 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
15079 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
15080 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
15081 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
15082 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
15083 and pushqi1_h8300hs_normal; use PRE_MODIFY and
15084 register_no_sp_elim_operand.
15085 (*pushhi1_h8300hs_<P>): Similarly.
15086 (pushqi1, pushhi1, pushhi1_h8300): Remove.
15087 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
15088
15089 2011-08-02 Richard Henderson <rth@redhat.com>
15090
15091 PR target/49881
15092 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
15093
15094 2011-08-02 Jakub Jelinek <jakub@redhat.com>
15095
15096 * c-parser.c (enum c_parser_prec): New enum, moved from within
15097 c_parser_binary_expression.
15098 (c_parser_binary_expression): Add PREC argument. Stop parsing
15099 if operator has lower or equal precedence than PREC.
15100 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
15101 callers.
15102 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
15103 Adjust c_finish_omp_atomic caller.
15104 (c_parser_omp_taskyield): New function.
15105 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
15106 (c_parser_omp_clause_name): Handle final and mergeable clauses.
15107 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
15108 functions.
15109 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
15110 and PRAGMA_OMP_CLAUSE_MERGEABLE.
15111 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
15112 (c_parser_omp_clause_reduction): Handle min and max.
15113 * c-typeck.c (c_finish_omp_clauses): Don't complain about
15114 const qualified predetermined vars in firstprivate clause.
15115 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15116 Handle MIN_EXPR and MAX_EXPR.
15117 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
15118 and OMP_CLAUSE_MERGEABLE.
15119 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
15120 and OMP_ATOMIC_CAPTURE_NEW.
15121 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
15122 OMP_CLAUSE_MERGEABLE.
15123 (omp_clause_code_name): Likewise.
15124 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15125 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
15126 and OMP_CLAUSE_MERGEABLE.
15127 (OMP_CLAUSE_FINAL_EXPR): Define.
15128 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
15129 OMP_CLAUSE_MERGEABLE.
15130 (expand_task_call): Likewise.
15131 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
15132 (expand_omp_atomic_fetch_op): Handle cases where old or new
15133 value is needed afterwards.
15134 (expand_omp_atomic): Call expand_omp_atomic_load resp.
15135 expand_omp_atomic_store.
15136 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
15137 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
15138 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
15139 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15140 * tree-nested.c (convert_nonlocal_omp_clauses,
15141 convert_local_omp_clauses): Likewise.
15142 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
15143 OMP_ATOMIC_CAPTURE_NEW): New.
15144 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
15145 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
15146 New inlines.
15147 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
15148 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
15149 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
15150
15151 2011-08-02 Kai Tietz <ktietz@redhat.com>
15152
15153 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
15154 boolean-type.
15155 (ssa_forward_propagate_and_combine): Interprete result of
15156 forward_propagate_comparison.
15157 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
15158 boolean-typed operands for comparisons.
15159
15160 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
15161
15162 * config/avr/libgcc.S: Gather related function in the
15163 same input section.
15164 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
15165 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
15166 references.
15167 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
15168 __udivmodsi4, __divmodsi4, __prologue_saves__,
15169 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
15170 __do_copy_data, __do_clear_bss, __do_global_ctors,
15171 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
15172
15173 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
15174
15175 PR target/47766
15176 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
15177 (stack_protect_test): The pattern compares ptr_mode value.
15178
15179 2011-08-02 Alan Modra <amodra@gmail.com>
15180
15181 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
15182 note for save_LR_around_toc_setup sequence.
15183
15184 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
15185
15186 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
15187
15188 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
15189 Joseph Myers <joseph@codesourcery.com>
15190
15191 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
15192 * hwint.c: Include diagnostic-core.h.
15193 (abs_hwi): New.
15194 (gcd): Moved here...
15195 (pos_mul_hwi): New.
15196 (mul_hwi): New.
15197 (least_common_multiple): Moved here...
15198 * hwint.h (gcd): ... from here.
15199 (least_common_multiple): ... from here.
15200 (HOST_WIDE_INT_MIN): New.
15201 (HOST_WIDE_INT_MAX): New.
15202 (abs_hwi): Declared.
15203 (gcd): Declared.
15204 (pos_mul_hwi): Declared.
15205 (mul_hwi): Declared.
15206 (least_common_multiple): Declared.
15207 * omega.c (check_pos_mul): Removed.
15208 (check_mul): Removed.
15209 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
15210 mul_hwi instead of check_mul.
15211
15212 2011-08-01 Richard Henderson <rth@redhat.com>
15213
15214 PR target/49881
15215 * config/avr/avr.h (PUSH_ROUNDING): New.
15216 * config/avr/avr.md (pushqi1): Rename from *pushqi.
15217 (*pushhi, *pushsi, *pushsf): Remove.
15218 (MPUSH): New mode iterator.
15219 (push<MPUSH>1): New expander.
15220
15221 2011-08-01 Anatoly Sokolov <aesok@post.ru>
15222
15223 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
15224 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
15225 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
15226 mmix_preferred_output_reload_class): Remove.
15227 * config/mmix/mmix.c (mmix_preferred_reload_class,
15228 mmix_preferred_output_reload_class): Make static. Change rclass
15229 argument and return type to reg_class_t.
15230 (TARGET_PREFERRED_RELOAD_CLASS,
15231 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15232
15233 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
15234
15235 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
15236 handling.
15237
15238 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
15239
15240 PR target/47766
15241 * config/i386/i386.md (PTR): New.
15242 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
15243 (stack_protect_test): Likewise.
15244 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
15245 (stack_tls_protect_set_<mode>): Likewise.
15246 (stack_tls_protect_test_<mode>): Likewise.
15247
15248 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
15249
15250 PR target/49927
15251 * config/i386/i386.c (ix86_address_subreg_operand): New.
15252 (ix86_decompose_address): Use ix86_address_subreg_operand.
15253 (ix86_legitimate_address_p): Do not assert that subregs satisfy
15254 register_no_elim_operand in DImode.
15255
15256 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
15257
15258 PR tree-optimization/49926
15259 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
15260 in a chain doesn't have uses both inside and outside the loop.
15261
15262 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
15263
15264 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
15265 * config/avr/avr-devices.c (avr_mcu_types): Use it.
15266 * config/avr/avr-mcus.def (AVR_MCU): Use it.
15267 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
15268 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
15269 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
15270 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
15271 to detect if XJMP must not be skipped.
15272
15273 2011-08-02 Alan Modra <amodra@gmail.com>
15274
15275 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
15276 Delete.
15277 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
15278 (rs6000_emit_prologue): Don't prematurely return when
15279 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
15280 save_toc_in_prologue case.
15281 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
15282 calls_alloca.
15283
15284 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
15285
15286 * config/avr/avr-devices.c: Delete SVN property svn:executable.
15287 * config/avr/predicates.md: Ditto.
15288 * config/avr/driver-avr.c: Ditto.
15289 * config/avr/genopt.sh: Set SVN property svn:executable to *.
15290
15291 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
15292
15293 * calls.c (emit_library_call_value_1): Declare size only if
15294 BLOCK_REG_PADDING is defined.
15295
15296 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
15297
15298 PR target/49547
15299 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
15300 (x86_64-*-*): Likewise.
15301 * config/i386/i386.opt (mlzcnt): New.
15302 * config/i386/abmintrin.h: File removed.
15303 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
15304 * config/i386/lzcntintrin.h: ... here. New file.
15305 (__lzcnt): Rename to ...
15306 (__lzcnt32): ... this.
15307 * config/i386/bmiintrin.h (head): Update copyright year.
15308 (__lzcnt_u16): Removed.
15309 (__lzcnt_u32): Likewise.
15310 (__lzcnt_u64): Likewise.
15311 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
15312 is defined, remove abmintrin.h.
15313 * config/i386/cpuid.h (bit_LZCNT): New.
15314 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15315 LZCNT feature.
15316 * config/i386/i386-c.c (ix86_target_macros_internal): Define
15317 __LZCNT__ if needed.
15318 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
15319 (ix86_option_override_internal): Handle LZCNT option.
15320 (ix86_valid_target_attribute_inner_p): Likewise.
15321 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
15322 * config/i386/i386.h (TARGET_LZCNT): New.
15323 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
15324 * config/i386/i386.md (clz<mode>2): Update insn constraint.
15325 (clz<mode>2_lzcnt): Likewise.
15326 * doc/invoke.texi: Mention -mlzcnt option.
15327 * doc/extend.texi: Likewise.
15328
15329 2011-08-01 Julian Brown <julian@codesourcery.com>
15330
15331 * configure.ac (fixed-point): Add ARM support.
15332 * configure: Regenerate.
15333 * config/arm/arm.c (arm_fixed_mode_set): New struct.
15334 (arm_set_fixed_optab_libfunc): New.
15335 (arm_set_fixed_conv_libfunc): New.
15336 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
15337 ARM-specific names.
15338 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
15339 return values in SImode.
15340 (arm_return_in_msb): Return fixed-point types in the msb.
15341 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
15342 upwards.
15343 (arm_scalar_mode_supported_p): Support fixed-point modes.
15344 (arm_vector_mode_supported_p): Support vector fixed-point modes.
15345 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
15346 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
15347 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
15348 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
15349 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
15350 New mode iterators.
15351 (qaddsub_suf): New mode attribute.
15352 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
15353 vector modes.
15354 * config/arm/predicates.md (sat_shift_operator): New predicate.
15355 * config/arm/arm-fixed.md: New.
15356 * config/arm/arm.md: Include arm-fixed.md.
15357 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
15358
15359 2011-08-01 Julian Brown <julian@codesourcery.com>
15360
15361 * calls.c (emit_library_call_value_1): Support padding for libcall
15362 arguments and return values.
15363 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
15364 downwards in big-endian mode.
15365
15366 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15367
15368 PR debug/49887
15369 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
15370 * config/sol2-protos.h: Likewise.
15371 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
15372 solaris_code_end.
15373 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
15374 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
15375 solaris_file_end.
15376 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
15377
15378 2011-08-01 Julian Brown <julian@codesourcery.com>
15379
15380 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
15381
15382 2011-08-01 Julian Brown <julian@codesourcery.com>
15383
15384 * final.c (output_addr_const): Print fixed-point constants as
15385 decimal not hex.
15386
15387 2011-08-01 Richard Guenther <rguenther@suse.de>
15388
15389 * stor-layout.c (initialize_sizetypes): Properly sign-extend
15390 bitsiztype TYPE_MAX_VALUE.
15391
15392 2011-08-01 Julian Brown <julian@codesourcery.com>
15393
15394 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
15395 comparison helpers.
15396
15397 2011-07-31 Richard Henderson <rth@redhat.com>
15398
15399 * config/h8300/crti.asm: Add flags to .section directive.
15400 * config/h8300/crtn.asm: Likewise.
15401
15402 2011-07-31 Richard Henderson <rth@redhat.com>
15403
15404 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
15405 * tree.c (build_common_tree_nodes): Likewise.
15406
15407 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
15408
15409 PR target/49880
15410 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
15411 (divsi3_i1): Likewise.
15412
15413 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15414
15415 PR tree-optimization/49749
15416 * tree-ssa-reassoc.c (get_rank): New forward declaration.
15417 (PHI_LOOP_BIAS): New macro.
15418 (phi_rank): New function.
15419 (loop_carried_phi): Likewise.
15420 (propagate_rank): Likewise.
15421 (get_rank): Add calls to phi_rank and propagate_rank.
15422
15423 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
15424
15425 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
15426 of TARGET_64BIT.
15427 (PTRDIFF_TYPE): Likewise.
15428
15429 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
15430
15431 PR target/49920
15432 * config/i386/i386.md (strset): Do not expand strset_singleop
15433 when %eax or $edi are fixed.
15434 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
15435 (*strsetsi_1): Ditto.
15436 (*strsethi_1): Ditto.
15437 (*strsetqi_1): Ditto.
15438 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
15439 (*rep_stossi): Ditto.
15440 (*rep_stosqi): Ditto.
15441 (*strlenqi_1): Ditto.
15442 (cmpstrnsi): Also fail when %ecx is fixed.
15443 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
15444 (*cmpstrnqi_1): Ditto.
15445 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
15446 (*strmovsi_1): Ditto.
15447 (*strmovhi_1): Ditto.
15448 (*strmovqi_1): Ditto.
15449 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
15450 (*rep_movsi): Ditto.
15451 (*rep_movqi): Ditto.
15452
15453 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
15454
15455 PR target/47908
15456 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
15457 Disable instruction scheduling for non-ColdFire targets.
15458 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
15459
15460 2011-07-31 Revital Eres <revital.eres@linaro.org>
15461
15462 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
15463 of anti-dep edge from a branch.
15464 (add_cross_iteration_register_deps): Create anti-dep edge from
15465 a branch.
15466
15467 2011-07-31 Revital Eres <revital.eres@linaro.org>
15468
15469 * modulo-sched.c: Change comment.
15470 (reset_sched_times): Fix print message.
15471 (print_partial_schedule): Add print info.
15472
15473 2011-07-31 Tom de Vries <tom@codesourcery.com>
15474
15475 PR middle-end/43513
15476 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
15477 get_object_alignment and TYPE_ALIGN.
15478
15479 2011-07-30 Tom de Vries <tom@codesourcery.com>
15480
15481 PR middle-end/43513
15482 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
15483 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
15484
15485 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15486
15487 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
15488 <sys/sbd.h>.
15489 (cpu_types): New array.
15490 (cputype): New function.
15491 (host_detect_local_cpu): Only define buf, f if !__sgi__.
15492 Use scaninvent instead of /proc/cpuinfo if __sgi__.
15493 * config.host: Also use driver-native.o, mips/x-native on
15494 mips-sgi-irix*.
15495 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
15496 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
15497 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
15498
15499 2011-07-29 Jakub Jelinek <jakub@redhat.com>
15500
15501 PR middle-end/49897
15502 PR middle-end/49898
15503 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
15504 in nested parallel and outer is a gimple_reg, mark it as addressable
15505 and set its bit in task_shared_vars bitmap too.
15506
15507 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
15508
15509 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
15510
15511 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15512
15513 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
15514 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
15515 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
15516 AMASK_LOCKPFTCHOK): Define.
15517 (host_detect_local_cpu): Remove buf, f, cpu_names.
15518 Define cpu_types, implver, amask.
15519 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
15520 native CPU.
15521 * config.host: Also use driver-alpha.o, alpha/x-alpha on
15522 alpha*-dec-osf*.
15523 * config/alpha/osf5.h [__alpha__ || __alpha]
15524 (host_detect_local_cpu): Declare.
15525 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
15526 (DRIVER_SELF_SPECS): Define.
15527
15528 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
15529
15530 PR target/47715
15531 * config/i386/i386.md (*load_tp_x32): New.
15532 (*load_tp_x32_zext): Ditto.
15533 (*add_tp_x32): Ditto.
15534 (*add_tp_x32_zext): Ditto.
15535 (*load_tp_<mode>): Disable for TARGET_X32 targets.
15536 (*add_tp_<mode>): Ditto.
15537 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
15538 ptr_mode and convert to Pmode if needed.
15539
15540 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
15541
15542 PR target/49687
15543 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
15544 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
15545 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
15546 Add X to register footprint: Clobber r26/r27.
15547
15548 2011-07-29 Richard Guenther <rguenther@suse.de>
15549
15550 * builtins.c (fold_builtin_signbit): Build the comparison
15551 with a proper type.
15552
15553 2011-07-29 Richard Guenther <rguenther@suse.de>
15554
15555 PR tree-optimization/49893
15556 * tree-predcom.c (suitable_reference_p): Volatile references
15557 are not suitable.
15558
15559 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
15560
15561 PR target/49313
15562 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
15563 (__ctzsi2): Result for 0 may be undefined.
15564 (__ctzhi2): Result for 0 may be undefined.
15565 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
15566 (__popcountsi2): Ditto. And don't clobber r26.
15567 (__popcountdi2): Ditto. And don't clobber r27.
15568 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
15569 (parityhi2): New expand.
15570 (paritysi2): New expand.
15571 (popcounthi2): New expand.
15572 (popcountsi2): New expand.
15573 (clzhi2): New expand.
15574 (clzsi2): New expand.
15575 (ctzhi2): New expand.
15576 (ctzsi2): New expand.
15577 (ffshi2): New expand.
15578 (ffssi2): New expand.
15579 (copysignsf3): New insn.
15580 (bswapsi2): New expand.
15581 (*parityhi2.libgcc): New insn.
15582 (*parityqihi2.libgcc): New insn.
15583 (*paritysihi2.libgcc): New insn.
15584 (*popcounthi2.libgcc): New insn.
15585 (*popcountsi2.libgcc): New insn.
15586 (*popcountqi2.libgcc): New insn.
15587 (*popcountqihi2.libgcc): New insn-and-split.
15588 (*clzhi2.libgcc): New insn.
15589 (*clzsihi2.libgcc): New insn.
15590 (*ctzhi2.libgcc): New insn.
15591 (*ctzsihi2.libgcc): New insn.
15592 (*ffshi2.libgcc): New insn.
15593 (*ffssihi2.libgcc): New insn.
15594 (*bswapsi2.libgcc): New insn.
15595
15596 2011-07-29 Richard Guenther <rguenther@suse.de>
15597
15598 * tree-vrp.c (get_value_range): Only set parameter default
15599 definitions to varying, leave others at undefined.
15600 (extract_range_from_binary_expr): Fix undefined handling.
15601 (vrp_visit_phi_node): Handle merged undefined state.
15602
15603 2011-07-29 Wei Guozhi <carrot@google.com>
15604
15605 PR rtl-optimization/49799
15606 * combine.c (make_compound_operation): Check if the bit field is valid
15607 before change it to bit field extraction.
15608
15609 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
15610
15611 PR rtl-optimization/49891
15612 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
15613 newly created returnjumps.
15614
15615 2011-07-28 DJ Delorie <dj@redhat.com>
15616
15617 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
15618 local frame in a naked function, and produce a suitable error for
15619 that specific case.
15620
15621 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
15622 registers to be reloaded in HI classes when the target is HI.
15623
15624 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
15625
15626 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
15627 bound_one, bound_two.
15628
15629 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
15630
15631 PR middle-end/48648
15632 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
15633 CLAST assignments.
15634 (translate_clast): Same.
15635 (translate_clast_assignment): New.
15636
15637 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
15638
15639 PR tree-optimization/49876
15640 * sese.c (rename_uses): Do not return false on gloog_error: set
15641 the new_expr to integer_zero_node and continue code generation.
15642 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
15643
15644 2011-07-28 Jakub Jelinek <jakub@redhat.com>
15645
15646 PR debug/49846
15647 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
15648 arguments also check if they aren't initialized with a MODE_INT
15649 mode of the same size.
15650
15651 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
15652
15653 * expr.c (get_bit_range): Handle *MEM_REF's.
15654
15655 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
15656
15657 * rtlanal.c (tablejump_p): False for returns.
15658 * reorg.c (first_active_target_insn): New static function.
15659 (find_end_label): Set JUMP_LABEL for a new returnjump.
15660 (optimize_skip, get_jump_flags, rare_destination,
15661 mostly_true_jump, get_branch_condition,
15662 steal_delay_list_from_target, own_thread_p,
15663 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
15664 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
15665 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
15666 * jump.c (delete_related_insns): Likewise.
15667 (jump_to_label_p): New function.
15668 (redirect_target): New static function.
15669 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
15670 (redirect_jump_1): Assert that the new label is nonnull.
15671 (redirect_jump): Likewise.
15672 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
15673 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
15674 exit block.
15675 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
15676 changed. Ensure that the right label is passed to redirect_jump.
15677 * function.c (emit_return_into_block,
15678 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
15679 ret_rtx in their JUMP_LABEL.
15680 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
15681 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
15682 pass ret_rtx as label.
15683 * cfglayout.c (fixup_reorder_chain): Use
15684 force_nonfallthru_and_redirect rather than force_nonfallthru.
15685 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
15686 * rtl.h (ANY_RETURN_P): New macro.
15687 (jump_to_label_p): Declare.
15688 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
15689 JUMP_LABELs.
15690 (mark_target_live_regs): Likewise.
15691 * basic-block.h (force_nonfallthru_and_redirect): Declare.
15692 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
15693 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
15694 alpha_tablejump_best_label): Remove functions.
15695 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
15696 alpha_tablejump_best_label): Remove declarations.
15697 * config/sh/sh.c (barrier_align, split_branches): Adjust for
15698 ret_rtx in JUMP_LABELs.
15699 * config/arm/arm.c (is_jump_table): Likewise.
15700
15701 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
15702
15703 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
15704 special predicate. Remove explicit mode checks.
15705
15706 2011-07-28 Jakub Jelinek <jakub@redhat.com>
15707
15708 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
15709 DW_AT_data_member_location containing just DW_OP_plus_uconst.
15710
15711 PR debug/49871
15712 * dwarf2out.c (size_of_die, value_format, output_die): Use
15713 DW_FORM_udata instead of DW_FORM_data[48] for
15714 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
15715
15716 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15717
15718 * config/i386/i386.md (*tls_global_dynamic_64): Update
15719 length attribute.
15720
15721 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
15722
15723 PR target/47715
15724 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
15725 tls_symbolic_operand check. Update code sequence for TARGET_X32.
15726 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
15727 (tls_dynamic_gnu2_64): Ditto.
15728 (*tls_dynamic_gnu2_lea_64): Ditto.
15729 (*tls_dynamic_gnu2_call_64): Ditto.
15730 (*tls_dynamic_gnu2_combine_64): Ditto.
15731
15732 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15733
15734 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
15735
15736 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
15737
15738 PR target/47364
15739 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
15740
15741 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15742
15743 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
15744 before the core constraints. Adjust attributes.
15745 ("*thumb2_movdf_vfp"): Likewise.
15746
15747 2011-07-28 Kai Tietz <ktietz@redhat.com>
15748
15749 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
15750 (simplify_truth_ops_using_ranges): Likewise.
15751 (build_assert_expr_for): Likewise.
15752 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
15753 and handle BIT_NOT_EXPR for truth-operation.
15754
15755 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
15756
15757 PR target/49313
15758 Undo r176835 from trunk
15759 2011-07-27 Georg-Johann Lay
15760
15761 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
15762
15763 PR target/49687
15764 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
15765 Add _muluhisi3, _mulshisi3, _usmulhisi3.
15766 * config/avr/libgcc.S (__mulsi3): Rewrite.
15767 (__mulhisi3): Rewrite.
15768 (__umulhisi3): Rewrite.
15769 (__usmulhisi3): New.
15770 (__muluhisi3): New.
15771 (__mulshisi3): New.
15772 (__mulohisi3): New.
15773 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
15774 declare.
15775 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
15776 (pseudo_register_or_const_int_operand): New.
15777 (combine_pseudo_register_operand): New.
15778 (u16_operand): New.
15779 (s16_operand): New.
15780 (o16_operand): New.
15781 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
15782 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
15783 (any_extend, any_extend2): New code iterators.
15784 (extend_prefix): New code attribute.
15785 (mulsi3): Rewrite. Turn insn to expander.
15786 (mulhisi3): Ditto.
15787 (umulhisi3): Ditto.
15788 (usmulhisi3): New expander.
15789 (*mulsi3): New insn-and-split.
15790 (mulu<mode>si3): New insn-and-split.
15791 (muls<mode>si3): New insn-and-split.
15792 (mulohisi3): New insn-and-split.
15793 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
15794 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
15795 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
15796 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
15797 insn-and-split.
15798 (*mulsi3_call): Rewrite.
15799 (*mulhisi3_call): Rewrite.
15800 (*umulhisi3_call): Rewrite.
15801 (*usmulhisi3_call): New insn.
15802 (*muluhisi3_call): New insn.
15803 (*mulshisi3_call): New insn.
15804 (*mulohisi3_call): New insn.
15805 (extendqihi2): Use combine_pseudo_register_operand as predicate
15806 for operand 1.
15807 (extendqisi2): Ditto.
15808 (zero_extendqihi2): Ditto.
15809 (zero_extendqisi2): Ditto.
15810 (zero_extendhisi2): Ditto.
15811 (extendhisi2): Ditto. Don't early-clobber operand 0.
15812
15813 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
15814
15815 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
15816
15817 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
15818
15819 PR tree-optimization/49471
15820 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
15821 iv only when the largest type is unsigned. Do not call
15822 lang_hooks.types.type_for_size.
15823
15824 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
15825
15826 PR middle-end/45450
15827 * graphite-poly.c (apply_poly_transforms): Disable legality check
15828 after an openscop read.
15829
15830 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
15831
15832 PR middle-end/47691
15833 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
15834 copy_bb_and_scalar_dependences.
15835 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
15836 (graphite_copy_stmts_from_block): Update call to rename_uses.
15837 (copy_bb_and_scalar_dependences): Update call to
15838 graphite_copy_stmts_from_block.
15839 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15840
15841 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
15842
15843 PR target/49313
15844 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
15845 (__ctzsi2): Result for 0 may be undefined.
15846 (__ctzhi2): Result for 0 may be undefined.
15847 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
15848 (__popcountsi2): Ditto. And don't clobber r26.
15849 (__popcountdi2): Ditto. And don't clobber r27.
15850 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
15851 (parityhi2): New expand.
15852 (paritysi2): New expand.
15853 (popcounthi2): New expand.
15854 (popcountsi2): New expand.
15855 (clzhi2): New expand.
15856 (clzsi2): New expand.
15857 (ctzhi2): New expand.
15858 (ctzsi2): New expand.
15859 (ffshi2): New expand.
15860 (ffssi2): New expand.
15861 (copysignsf3): New insn.
15862 (bswapsi2): New expand.
15863 (*parityhi2.libgcc): New insn.
15864 (*parityqihi2.libgcc): New insn.
15865 (*paritysihi2.libgcc): New insn.
15866 (*popcounthi2.libgcc): New insn.
15867 (*popcountsi2.libgcc): New insn.
15868 (*popcountqi2.libgcc): New insn.
15869 (*popcountqihi2.libgcc): New insn-and-split.
15870 (*clzhi2.libgcc): New insn.
15871 (*clzsihi2.libgcc): New insn.
15872 (*ctzhi2.libgcc): New insn.
15873 (*ctzsihi2.libgcc): New insn.
15874 (*ffshi2.libgcc): New insn.
15875 (*ffssihi2.libgcc): New insn.
15876 (*bswapsi2.libgcc): New insn.
15877
15878 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
15879
15880 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
15881 the mode of symbolic_opreand RTXes.
15882
15883 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
15884
15885 * config/i386/predicates.md (x86_64_movabs_operand): Return false
15886 for pic_32bit_operand RTXes.
15887 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
15888 in DImode.
15889
15890 2011-07-27 Kai Tietz <ktietz@redhat.com>
15891
15892 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
15893 for 32-bit, too.
15894 (ix86_handle_abi_attribute): Allow function attributes
15895 ms_abi/sysv_abi in 32-bit mode, too.
15896 * doc/extend.texi: Adjust attribute documentation.
15897
15898 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
15899 expression handling.
15900 (and_var_with_comparison_1): Likewise.
15901
15902 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
15903
15904 * params.h (ALLOW_STORE_DATA_RACES): New.
15905 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
15906 * Makefile.in (expr.o): Depend on PARAMS_H.
15907 * machmode.h (get_best_mode): Add argument.
15908 * fold-const.c (optimize_bit_field_compare): Add argument to
15909 get_best_mode.
15910 (fold_truthop): Same.
15911 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
15912 * expr.c (emit_group_store): Same.
15913 (copy_blkmode_from_reg): Same.
15914 (write_complex_part): Same.
15915 (optimize_bitfield_assignment_op): Add argument.
15916 Add argument to get_best_mode.
15917 (get_bit_range): New.
15918 (expand_assignment): Calculate maxbits and pass it down accordingly.
15919 (store_field): New argument.
15920 (expand_expr_real_2): New argument to store_field. Include params.h.
15921 * expr.h (store_bit_field): New argument.
15922 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
15923 into account maxbits.
15924 * calls.c (store_unaligned_arguments_into_pseudos): New argument
15925 to store_bit_field.
15926 * expmed.c (store_bit_field_1): New argument. Use it.
15927 (store_bit_field): Same.
15928 (store_fixed_bit_field): Same.
15929 (store_split_bit_field): Same.
15930 (extract_bit_field_1): Pass new argument to get_best_mode.
15931 (extract_bit_field): Same.
15932 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
15933 * doc/invoke.texi: Document parameter allow-store-data-races.
15934
15935 2011-07-27 Jakub Jelinek <jakub@redhat.com>
15936
15937 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
15938
15939 2011-07-27 Kai Tietz <ktietz@redhat.com>
15940
15941 * tree-vrp.c (extract_range_from_binary_expr): Remove
15942 TRUTH-binary cases and add new bitwise-cases.
15943 (extract_range_from_assignment): Likewise.
15944 (register_edge_assert_for_1): Likeiwise.
15945 (register_edge_assert_for): Likewise.
15946 (simplify_truth_ops_using_ranges): Likewise.
15947 (simplify_stmt_using_ranges): Likewise.
15948
15949 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
15950
15951 PR target/47372
15952 * config/i386/i386.c (ix86_delegitimize_address): Call
15953 simplify_gen_subreg for PIC with mode of x only if modes of
15954 x and orig_x are different.
15955
15956 2011-07-26 Jakub Jelinek <jakub@redhat.com>
15957
15958 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
15959 to GC allocated copy of the string.
15960 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
15961 before .debug_line, not after it.
15962
15963 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
15964
15965 PR middle-end/47046
15966 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
15967 evolution_function_is_affine_p on CHREC_RIGHT.
15968
15969 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
15970
15971 * tree-data-ref.c (max_stmt_executions_tree): Do not call
15972 lang_hooks.types.type_for_size.
15973
15974 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
15975
15976 PR middle-end/47653
15977 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
15978 loops using wrapping semantics.
15979
15980 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
15981
15982 PR middle-end/48805
15983 * tree-scalar-evolution.c (instantiate_scev_r): Return
15984 chrec_dont_know for ADDR_EXPR.
15985
15986 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
15987 H.J. Lu <hongjiu.lu@intel.com>
15988
15989 PR target/47369
15990 PR target/49853
15991 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
15992 if legitimize_tls_address returned operand in wrong mode. Allow
15993 SImode and DImode symbolic operand for PIC. Call convert_to_mode
15994 if legitimize_pic_address returned operand in wrong mode.
15995
15996 2011-07-26 Martin Jambor <mjambor@suse.cz>
15997
15998 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
15999 return false for invariants.
16000
16001 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
16002
16003 * config/i386/i386.md (add->lea splitter): Implement using SWI
16004 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
16005 (add->lea zext splitter): Change operand 2 predicate to
16006 x86_64_nonmemory_operand.
16007
16008 2011-07-26 Richard Guenther <rguenther@suse.de>
16009
16010 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
16011 frequency makes everything hot.
16012
16013 2011-07-26 Richard Guenther <rguenther@suse.de>
16014
16015 PR tree-optimization/49840
16016 * tree-vrp.c (range_fits_type_p): Properly handle full
16017 double-int precision.
16018
16019 2011-07-26 Martin Jambor <mjambor@suse.cz>
16020
16021 PR bootstrap/49786
16022 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
16023 counts.
16024 (update_specialized_profile): Likewise.
16025
16026 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
16027 H.J. Lu <hongjiu.lu@intel.com>
16028
16029 PR target/47381
16030 PR target/49832
16031 PR target/49833
16032 * config/i386/i386.md (i): Change SImode attribute to "e".
16033 (g): Change SImode attribute to "rme".
16034 (di): Change SImode attribute to "nF".
16035 (general_operand): Change SImode attribute to x86_64_general_operand.
16036 (general_szext_operand): Change SImode attribute to
16037 x86_64_szext_general_operand.
16038 (immediate_operand): Change SImode attribute to
16039 x86_64_immediate_operand.
16040 (nonmemory_operand): Change SImode attribute to
16041 x86_64_nonmemory_operand.
16042 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
16043 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
16044 (*lea_1): Use SWI48 mode iterator.
16045 (*lea_1_zext): New insn pattern.
16046 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
16047 (*bt<mode>): Ditto.
16048 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
16049 Update operand constraints.
16050 (addsi_1_zext): Ditto.
16051 (*add<mode>2): Ditto.
16052 (*addsi_3_zext): Ditto.
16053 (*subsi_1_zext): Ditto.
16054 (*subsi_2_zext): Ditto.
16055 (*subsi_3_zext): Ditto.
16056 (*addsi3_carry_zext): Ditto.
16057 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
16058 (*mulsi3_1_zext): Ditto.
16059 (*andsi_1): Ditto.
16060 (*andsi_1_zext): Ditto.
16061 (*andsi_2_zext): Ditto.
16062 (*<any_or:code>si_1_zext): Ditto.
16063 (*<any_or:code>si_2_zext): Ditto.
16064 (*test<mode>_1): Use <general_operand> predicate for operand 1.
16065 (*and<mode>_2): Ditto.
16066 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
16067 (add->lea splitter): Check operand modes in insn constraint. Extend
16068 operands less than SImode wide to SImode.
16069 (add->lea zext splitter): Do not extend input operands to DImode.
16070 (*lea_general_1): Handle only QImode and HImode operands.
16071 (*lea_general_2): Ditto.
16072 (*lea_general_3): Ditto.
16073 (*lea_general_1_zext): Remove.
16074 (*lea_general_2_zext): Ditto.
16075 (*lea_general_3_zext): Ditto.
16076 (*lea_general_4): Check operand modes in insn constraint. Extend
16077 operands less than SImode wide to SImode.
16078 (ashift->lea splitter): Ditto.
16079 * config/i386/i386.c (ix86_print_operand_address): Print address
16080 registers with 'q' modifier on 64bit targets.
16081 * config/i386/predicates.md (pic_32bit_opreand): Define as special
16082 predicate. Reject non-SI and non-DI modes.
16083
16084 2011-07-25 Andrew Pinski <apinski@cavium.com>
16085
16086 PR tree-opt/49671
16087 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
16088 TREE_THIS_NOTRAP into the inner most MEM_REF.
16089 Always copy TREE_THIS_VOLATILE.
16090 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
16091 arguments are not volatile references.
16092
16093 2011-07-25 Richard Henderson <rth@redhat.com>
16094
16095 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
16096 * final.c (final_scan_insn): Don't test for it.
16097 (rest_of_clean_state): Likewise.
16098
16099 2011-07-25 Richard Henderson <rth@redhat.com>
16100
16101 PR debug/49841
16102 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
16103 (emit_frame_save): Likewise.
16104 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
16105 insn onto a dummy blockage insn after the join label.
16106
16107 2011-07-25 Richard Henderson <rth@redhat.com>
16108
16109 * dwarf2cfi.c (dw_trace_info): Add ID member.
16110 (get_trace_index): Remove. Change users to use ID member.
16111 (before_next_cfi_note): New.
16112 (connect_traces): Remove unreachable traces before the main loop.
16113 Look across one trace and generate remember/restore_state if needed.
16114
16115 2011-07-25 Richard Henderson <rth@redhat.com>
16116
16117 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
16118
16119 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
16120
16121 * genattr.c (write_upcase, gen_attr <enum definition writing>):
16122 Move to ...
16123 * genattr-common.c ... here.
16124 (main): Call gen_attr.
16125 * optc-gen.awk: Make generated program include insn-attr-common.h .
16126 * Makefile.in (oprions.o): Depend on insn-attr-common.h
16127
16128 2011-07-25 Anatoly Sokolov <aesok@post.ru>
16129
16130 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16131 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
16132 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
16133 m32c_print_operand, m32c_print_operand_address): Remove.
16134 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
16135 Change return type to bool. Change argument type to bool.
16136 (m32c_print_operand, m32c_print_operand_address): Make static.
16137 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
16138 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16139
16140 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16141
16142 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
16143 attributes): Document mmap.
16144
16145 2011-07-25 Anatoly Sokolov <aesok@post.ru>
16146
16147 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16148 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
16149 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
16150 mmix_print_operand, mmix_print_operand_address): Remove.
16151 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
16152 Change return type to bool. Change argument type to bool.
16153 (mmix_print_operand, mmix_print_operand_address): Make static.
16154 (mmix_intval, mmix_output_condition): Change 'x' argument type
16155 to const_rtx.
16156 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
16157 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16158
16159 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
16160
16161 PR target/39386
16162 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
16163 shift counter for x << x and x >> x shifts.
16164
16165 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16166
16167 PR target/47124
16168 * config.gcc: Reject *-*-solaris2 configuration.
16169
16170 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
16171
16172 PR tree-optimization/49809
16173 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
16174 gimple_get_lhs instead of gimple_assign_lhs.
16175
16176 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16177
16178 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
16179
16180 2011-07-25 Richard Guenther <rguenther@suse.de>
16181
16182 PR tree-optimization/49822
16183 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
16184 more. Make sure to preserve stmts with side-effects. Properly
16185 handle virtual defs, follow a longer def chain.
16186
16187 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
16188
16189 PR plugins/45348
16190 PR plugins/48425
16191 PR plugins/46577
16192 * Makefile.in: Do not flatten c-family directory when installing
16193 plugin headers.
16194
16195 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
16196
16197 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
16198 original nodes if we are dealing with virtual clones.
16199
16200 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
16201
16202 * common/config/c6x/c6x-common.c: New file.
16203
16204 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
16205
16206 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
16207
16208 2011-07-25 Richard Guenther <rguenther@suse.de>
16209
16210 PR tree-optimization/49715
16211 * tree-vrp.c: Include expr.h and optabs.h.
16212 (range_fits_type_): New function.
16213 (simplify_float_conversion_using_ranges): Likewise.
16214 (simplify_stmt_using_ranges): Call it.
16215 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
16216 * optabs.c (can_float_p): Export.
16217 * optabs.h (can_float_p): Declare.
16218
16219 2011-07-25 Richard Guenther <rguenther@suse.de>
16220
16221 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
16222 (get_value_range): For out-of-range SSA names or names created
16223 after propagation return a read-only varying range.
16224 (dump_all_value_ranges): Adjust.
16225 (vrp_initialize): Likewise.
16226 (vrp_finalize): Likewise.
16227
16228 2011-07-24 Richard Henderson <rth@redhat.com>
16229
16230 PR debug/49831
16231 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
16232 them entirely.
16233
16234 2011-07-24 Richard Henderson <rth@redhat.com>
16235
16236 PR debug/49825
16237 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
16238 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
16239
16240 2011-07-24 Richard Henderson <rth@redhat.com>
16241
16242 PR debug/49827
16243 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
16244
16245 2011-07-24 Richard Henderson <rth@redhat.com>
16246
16247 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
16248 Zero args_size for abnormal edges. Adjust all callers.
16249
16250 2011-07-24 Richard Henderson <rth@redhat.com>
16251
16252 PR debug/49825
16253 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
16254
16255 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
16256
16257 PR bootstrap/49835
16258 * collect2.c (demangle_flag): Removed.
16259
16260 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
16261
16262 * configure.ac (demangler_in_ld): Default to yes.
16263 * configure: Regenerated.
16264 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
16265 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
16266 --no-demangle options straight through to ld. When
16267 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
16268 way that has the intended effect on Windows.
16269
16270 2011-07-23 Richard Henderson <rth@redhat.com>
16271
16272 * dwarf2cfi.c: Include basic-block.h.
16273 (dw_label_info): Remove.
16274 (trace_work_list, trace_index): New.
16275 (remember_row, emit_cfa_remember): Remove.
16276 (dw_trace_info_hash, dw_trace_info_eq): New.
16277 (get_trace_index, get_trace_info): New.
16278 (save_point_p): New.
16279 (free_cfi_row): Remove.
16280 (add_cfi): Do not emit DW_CFA_remember_state.
16281 (cfa_row_equal_p): New.
16282 (barrier_args_size): Remove.
16283 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
16284 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
16285 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
16286 (dwarf2out_cfi_begin_epilogue): Remove.
16287 (dwarf2out_frame_debug_restore_state): Remove.
16288 (connect_traces, create_pseudo_cfg): New.
16289 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
16290 * Makefile.in (dwarf2cfi.o): Update.
16291
16292 2011-07-23 Richard Henderson <rth@redhat.com>
16293
16294 * dwarf2cfi.c (dw_trace_info): New.
16295 (dw_label_info): New.
16296 (cie_return_save): New.
16297 (cur_trace): New.
16298 (queued_args_size): Rename from args_size. Update all users.
16299 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
16300 (def_cfa_1): Use cur_trace instead of cfa_*.
16301 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
16302 (clobbers_queued_reg_save, reg_saved_in): Likewise.
16303 (dwarf2out_frame_debug_expr): Likewise.
16304 (create_cie_data): Split out from ...
16305 (execute_dwarf2_frame): ... here. Initialize cur_trace.
16306
16307 2011-07-23 Richard Henderson <rth@redhat.com>
16308
16309 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
16310 Update all users to match.
16311 (execute_dwarf2_frame): Free reg_saved_in_data.
16312
16313 2011-07-23 Richard Henderson <rth@redhat.com>
16314
16315 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
16316 (queued_reg_saves): Don't GTY. Change to a VEC.
16317 (queue_reg_save): Update to match.
16318 (dwarf2out_flush_queued_reg_saves): Likewise.
16319 (clobbers_queued_reg_save): Likewise.
16320 (reg_saved_in): Likewise.
16321 (execute_dwarf2_frame): Free queued_reg_saves.
16322
16323 2011-07-23 Richard Henderson <rth@redhat.com>
16324
16325 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
16326
16327 2011-07-23 Richard Henderson <rth@redhat.com>
16328
16329 * dwarf2cfi.c (add_cfi_args_size): Split out from...
16330 (dwarf2out_args_size): ... here.
16331 (add_cfi_restore): Split out from ...
16332 (dwarf2out_frame_debug_cfa_restore): ... here.
16333 (def_cfa_0): Split out from ...
16334 (def_cfa_1): ... here.
16335 (cfi_oprnd_equal_p, cfi_equal_p): New.
16336 (change_cfi_row): New.
16337 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
16338 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
16339 (output_cfis): Remove.
16340 * dwarf2out.c (output_fde): Simplify output_cfi loop.
16341 (dwarf2out_switch_text_section): Don't call output_cfis.
16342 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
16343 * dwarf2out.h: Update decls.
16344 (enum dw_val_class): Add dw_val_class_none.
16345
16346 2011-07-23 Richard Henderson <rth@redhat.com>
16347
16348 * dwarf2cfi.c (update_row_reg_save): New.
16349 (dwarf2out_frame_debug_cfa_expression): Use it.
16350 (dwarf2out_frame_debug_cfa_restore): Likewise.
16351 (reg_save): Likewise. Do not emit DW_CFA_same_value.
16352
16353 2011-07-23 Richard Henderson <rth@redhat.com>
16354
16355 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
16356
16357 2011-07-23 Richard Henderson <rth@redhat.com>
16358
16359 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
16360 (cie_cfi_row): New.
16361 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
16362 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
16363 (cur_row, remember_row): New.
16364 (def_cfa_1): Use cur_row instead of the old_* variables.
16365 (dwarf2out_frame_debug_restore_state): Similarly.
16366 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
16367 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
16368 (dwarf2out_frame_debug_adjust_cfa): Likewise.
16369 (dwarf2out_frame_debug_cfa_offset): Likewise.
16370 (dwarf2out_frame_debug_expr): Likewise.
16371 (execute_dwarf2_frame): Set up cur_row.
16372 * dwarf2out.h (struct cfa_loc): Mark for GTY.
16373
16374 2011-07-23 Richard Henderson <rth@redhat.com>
16375
16376 * basic-block.h (EDGE_PRESERVE): New.
16377 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
16378 * bb-reorder.c: Include except.h.
16379 (fix_up_crossing_landing_pad): New.
16380 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
16381 landing pads in the right partition. Duplicate as necessary.
16382 (partition_hot_cold_basic_blocks): Fix up DF info after
16383 duplicating landing pads.
16384 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
16385 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
16386 is set properly. Validate that EH edges are not CROSSING.
16387 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
16388 (dw2_build_landing_pads): ... here.
16389 (convert_to_eh_region_ranges): Remove code to fixup crossing
16390 landing pads.
16391 * except.h (expand_dw2_landing_pad_for_region): Declare.
16392 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
16393
16394 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
16395
16396 PR target/49816
16397 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
16398
16399 2011-07-22 Jason Merrill <jason@redhat.com>
16400
16401 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
16402
16403 2011-07-22 Richard Henderson <rth@redhat.com>
16404
16405 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
16406
16407 2011-07-22 Richard Henderson <rth@redhat.com>
16408
16409 * jump.c (maybe_propagate_label_ref): Split out of...
16410 (mark_all_labels): ... here. Do not attempt label_ref
16411 propagation while in cfglayout mode.
16412
16413 2011-07-22 Jakub Jelinek <jakub@redhat.com>
16414
16415 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
16416 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
16417 (dwarf_attr_name): Handle DW_AT_GNU_macros.
16418 (dwarf2out_define): If the vector is empty and
16419 lineno is 0, emit a dummy entry first.
16420 (dwarf2out_undef): Likewise. Remove redundant semicolon.
16421 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
16422 optimize_macinfo_range): New functions.
16423 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
16424 mergeable, optimize longer strings using
16425 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
16426 optimize longer sequences of define/undef ops from headers
16427 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
16428 emit a section headers.
16429 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
16430 and macinfo_section_label to DEBUG_MACRO_SECTION
16431 resp. DEBUG_MACRO_SECTION_LABEL.
16432 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
16433 instead of DW_AT_macro_info.
16434
16435 PR other/32998
16436 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
16437 options.
16438 * dwarf2out.c: Include opts.h.
16439 (dchar_p): New typedef. Define heap VEC for it.
16440 (producer_string): New variable.
16441 (gen_producer_string): New function.
16442 (gen_compile_unit_die): Use it.
16443 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
16444 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
16445 * doc/invoke.texi: Document -grecord-gcc-switches and
16446 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
16447 to -frecord-gcc-switches description.
16448
16449 2011-07-22 Jason Merrill <jason@redhat.com>
16450
16451 PR c++/30112
16452 * c-decl.c (c_linkage_bindings): Define.
16453
16454 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
16455
16456 PR debug/49815
16457 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
16458
16459 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
16460
16461 * config/i386/i386.c (ix86_option_override_internal): Disallow
16462 MS ABI in x32 mode.
16463 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
16464 only for TARGET_LP64.
16465 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
16466
16467 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16468
16469 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
16470 avoid warnings when GCC is built with a C++ compiler.
16471
16472 2011-07-22 Martin Jambor <mjambor@suse.cz>
16473
16474 PR lto/49796
16475 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
16476 if decl node is in another partition, call cgraph_get_node only once.
16477
16478 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
16479
16480 * config.gcc (x86_64-*-linux*): Set
16481 default_gnu_indirect_function to yes.
16482
16483 2011-07-22 Richard Guenther <rguenther@suse.de>
16484
16485 PR tree-optimization/45819
16486 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16487 preserve volatile and notrap flags.
16488
16489 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16490 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16491
16492 PR bootstrap/49794
16493 * configure.ac: Test AM_ICONV with CXX.
16494 * configure: Regenerate.
16495 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
16496
16497 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16498
16499 PR bootstrap/49797
16500 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
16501 (set_cloog_options): Use it.
16502
16503 2011-07-22 Jakub Jelinek <jakub@redhat.com>
16504
16505 PR c++/49756
16506 * gcc.c (main): Call stack_limit_increase (64MB).
16507 * toplev.c (toplev_main): Likewise.
16508
16509 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16510
16511 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
16512 instead of force_reg.
16513
16514 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16515
16516 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
16517 needed and use force_reg after convert.
16518 (ix86_expand_call): Likewise.
16519 (ix86_expand_special_args_builtin): Likewise.
16520 (ix86_expand_builtin): Likewise.
16521
16522 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16523
16524 PR middle-end/47654
16525 PR middle-end/49649
16526 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
16527 in parameter. Initialize v1 and v2 based on the values returned
16528 by clast_name_to_lb_ub.
16529 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
16530 values.
16531 (type_for_clast_bin): Same.
16532 (type_for_clast_expr): Same.
16533 (type_for_clast_eq): Update calls to type_for_clast_expr.
16534 (type_for_clast_for): Same.
16535 (build_iv_mapping): Same.
16536 * graphite-ppl.h (value_min): New.
16537
16538 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16539
16540 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
16541 types whenever possible.
16542
16543 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16544
16545 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
16546 and ub fields.
16547 (new_clast_name_index): Add lb and ub parameters.
16548 (free_clast_name_index): New.
16549 (clast_name_to_lb_ub): New.
16550 (save_clast_name_index): Add lb and ub parameters.
16551 (compute_bounds_for_param): New.
16552 (type_for_level): Removed.
16553 (type_for_clast_for): Removed level parameter. Do not call
16554 type_for_level.
16555 (graphite_create_new_loop): Store the lb and ub for the clast_name
16556 of the iterator of the loop that has been generated.
16557 (graphite_create_new_loop_guard): Remove parameter level.
16558 (create_params_index): Store the lb and ub of each parameter.
16559 (gloog): Use free_clast_name_index. Pass to create_params_index
16560 the current scop.
16561
16562 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16563
16564 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
16565 (max_precision_type): Inline max_signed_precision_type.
16566 (type_for_clast_red): Use max_precision_type.
16567 (type_for_clast_bin): Same.
16568 (type_for_clast_for): Same.
16569
16570 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16571
16572 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
16573 type_for_interval.
16574 (gcc_type_for_value): Renamed type_for_value.
16575 (gcc_type_for_clast_term): Renamed type_for_clast_term.
16576 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
16577 (gcc_type_for_clast_red): Renamed type_for_clast_red.
16578 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
16579 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
16580 (graphite_translate_clast_equation): Update calls.
16581 (compute_type_for_level): Renamed type_for_level.
16582 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
16583 (build_iv_mapping): Update calls.
16584 (graphite_create_new_loop_guard): Same.
16585
16586 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16587
16588 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
16589 comment.
16590
16591 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16592
16593 * graphite-clast-to-gimple.c (struct ivs_params): New.
16594 (clast_name_to_gcc): Use ivs_params to pass around parameters.
16595 (clast_to_gcc_expression): Same.
16596 (clast_to_gcc_expression_red): Same.
16597 (gcc_type_for_clast_term): Same.
16598 (gcc_type_for_clast_expr): Same.
16599 (gcc_type_for_clast_red): Same.
16600 (gcc_type_for_clast_bin): Same.
16601 (gcc_type_for_clast_eq): Same.
16602 (graphite_translate_clast_equation): Same.
16603 (graphite_create_guard_cond_expr): Same.
16604 (graphite_create_new_guard): Same.
16605 (graphite_create_new_loop): Same.
16606 (build_iv_mapping): Same.
16607 (translate_clast_user): Same.
16608 (graphite_create_new_loop_guard): Same.
16609 (translate_clast): Same.
16610 (translate_clast_for_loop): Same.
16611 (translate_clast_for): Same.
16612 (translate_clast_guard): Same.
16613 (initialize_cloog_names): Fix typo.
16614 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
16615
16616 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16617
16618 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
16619 (new_clast_name_index): Add level parameter.
16620 (clast_name_to_level): New.
16621 (save_clast_name_index): Add level parameter.
16622 (newivs_to_depth_to_newiv): Removed.
16623 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
16624 (graphite_create_new_loop): Add level parameter. Pass level to
16625 save_clast_name_index.
16626 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
16627 (create_params_index): Pass level to save_clast_name_index.
16628
16629 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16630
16631 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
16632 recompute type, lb, and ub. Get them from...
16633 (graphite_create_new_loop_guard): ...here. Pass in parameter
16634 pointers to type, lb, and ub.
16635 (translate_clast_for_loop): Update function calls.
16636 (translate_clast_for): Same.
16637
16638 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
16639
16640 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
16641 psct_dynamic_dim.
16642 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
16643 (gcc_type_for_iv_of_clast_loop): Update use of level.
16644 (gloog): Start counting nesting level from 0.
16645 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
16646 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
16647 psct_dynamic_dim on level.
16648
16649 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16650
16651 * config/i386/i386.c (ix86_legitimize_address): Convert to
16652 Pmode if needed.
16653
16654 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
16655
16656 * config/i386/i386.c (function_value_64): Always return pointers
16657 in Pmode.
16658 (ix86_promote_function_mode): New.
16659 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
16660
16661 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16662
16663 PR tree-optimization/49749
16664 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
16665 remove no-longer-used maxrank variable.
16666
16667 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
16668
16669 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
16670
16671 2011-07-21 Jason Merrill <jason@redhat.com>
16672
16673 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
16674 * recog.h (struct insn_data_d): Check it instead of
16675 HAVE_DESIGNATED_INITIALIZERS.
16676 * genoutput.c (output_insn_data): Likewise.
16677
16678 2011-07-21 Richard Guenther <rguenther@suse.de>
16679
16680 PR tree-optimization/49770
16681 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
16682 valueized any operand. Renamed from ...
16683 (valueize_refs): ... this. New wrapper around valueize_refs_1.
16684 (valueize_shared_reference_ops_from_ref): Return whether we
16685 valueized any operand.
16686 (vn_reference_lookup): Only when we valueized any operand
16687 use the valueized reference for alias analysis. Do not preserve
16688 the original reference tree in this case.
16689
16690 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
16691
16692 * config/i386/i386.c (ix86_decompose_address): Reject all but
16693 register operands and subregs of DImode hard registers in index.
16694
16695 2011-07-21 Kai Tietz <ktietz@redhat.com>
16696
16697 * fold-const.c (fold_unary_loc): Preserve indirect
16698 comparison cast to none-boolean type.
16699 * tree-ssa.c (useless_type_conversion_p): Preserve cast
16700 from/to boolean-type.
16701 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
16702 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
16703 * tree-cfg.c (verify_gimple_comparison): Check result
16704 type of comparison expression.
16705 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
16706 of condition result and disallow type-cast sinking into comparison.
16707
16708 2011-07-21 Richard Guenther <rguenther@suse.de>
16709
16710 * tree-ssa-forwprop.c (combine_conversions): Return whether
16711 we have to run cfg-cleanup. Properly remove dead stmts.
16712 (ssa_forward_propagate_and_combine): Adjust.
16713
16714 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
16715
16716 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
16717
16718 2011-07-21 Kai Tietz <ktietz@redhat.com>
16719
16720 * tree-ssa-propagate.c (substitute_and_fold): Use
16721 do_dce flag to deside, if BB's statements are scanned
16722 in last to first, or first to last order.
16723
16724 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
16725
16726 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
16727
16728 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
16729 Uros Bizjak <ubizjak@gmail.com>
16730 Richard Henderson <rth@redhat.com>
16731
16732 * config/i386/constraints.md (w): New.
16733
16734 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
16735 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
16736
16737 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
16738 instead of TARGET_64BIT.
16739
16740 * config/i386/i386.md (indirect_jump): Replace
16741 nonimmediate_operand with indirect_branch_operand.
16742 (*indirect_jump): Likewise. Replace constraint "m" with "w".
16743 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
16744 Convert operand 0 to Pmode for x32 if not PIC.
16745 (*tablejump_1): Replace nonimmediate_operand with
16746 indirect_branch_operand. Replace constraint "m" with "w".
16747 (*call_vzeroupper): Replace constraint "m" with "w".
16748 (*call): Likewise.
16749 (*call_rex64_ms_sysv_vzeroupper): Likewise.
16750 (*call_rex64_ms_sysv): Likewise.
16751 (*call_value_vzeroupper): Likewise.
16752 (*call_value): Likewise.
16753 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
16754 (*call_value_rex64_ms_sysv): Likewise.
16755 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
16756
16757 * config/i386/predicates.md (indirect_branch_operand): New.
16758 (call_insn_operand): Support x32.
16759
16760 2011-07-20 Michael Eager <eager@eagercon.com>
16761
16762 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
16763
16764 2011-07-20 Richard Henderson <rth@redhat.com>
16765
16766 * cfg.c (dump_bb_info): Dump basic_block->flags.
16767 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
16768
16769 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
16770
16771 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
16772 of DImode hard registers in index.
16773 (ix86_legitimate_address_p): Allow subregs of base and index to span
16774 more than a word. Assert that subregs of base and index satisfy
16775 register_no_elim_operand predicates. Reject addresses where
16776 base and index have different modes.
16777
16778 2011-07-20 Robert Millan <rmh@gnu.org>
16779
16780 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
16781
16782 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16783
16784 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
16785 removing now-unnecessary assignment.
16786
16787 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16788
16789 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
16790 memory address space to the type's address space.
16791
16792 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
16793
16794 PR target/36467
16795 PR target/49687
16796 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
16797 and expand appropriately if there is a CONST_INT in operand2.
16798 (usmulqihi3): New insn.
16799 (*sumulqihi3): New insn.
16800 (*osmulqihi3): New insn.
16801 (*oumulqihi3): New insn.
16802 (*muluqihi3.uconst): New insn_and_split.
16803 (*muluqihi3.sconst): New insn_and_split.
16804 (*mulsqihi3.sconst): New insn_and_split.
16805 (*mulsqihi3.uconst): New insn_and_split.
16806 (*mulsqihi3.oconst): New insn_and_split.
16807 (*ashifthi3.signx.const): New insn_and_split.
16808 (*ashifthi3.signx.const7): New insn_and_split.
16809 (*ashifthi3.zerox.const): New insn_and_split.
16810 (mulsqihi3): New insn.
16811 (muluqihi3): New insn.
16812 (muloqihi3): New insn.
16813 * config/avr/predicates.md (const_2_to_7_operand): New.
16814 (const_2_to_6_operand): New.
16815 (u8_operand): New.
16816 (s8_operand): New.
16817 (o8_operand): New.
16818 (s9_operand): New.
16819 (register_or_s9_operand): New.
16820
16821 2011-07-20 Kai Tietz <ktietz@redhat.com>
16822
16823 * builtins.c (fold_builtin_expect): See through the cast
16824 from truthvalue_type_node to long.
16825
16826 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
16827
16828 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
16829 where we can use them from the standard and altivec instruction
16830 sets, instead of always using the 3 operand VSX forms that require
16831 the destination to overlap one of the inputs.
16832 (vsx_fms*): Ditto.
16833 (vsx_fnma*): Ditto.
16834 (vsx_fnms*): Ditto.
16835
16836 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
16837 for DF types.
16838 (fmsdf4_fpr): Ditto.
16839 (nfmadf4_fpr): Ditto.
16840 (nfmsdf4_fpr): Ditto.
16841
16842 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
16843
16844 * genrecog.c (make_insn_sequence): Correct position numbering
16845 when filtering out match_scratch and match_dup.
16846
16847 2011-07-20 Richard Guenther <rguenther@suse.de>
16848
16849 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
16850 against already removed statements.
16851 (forward_propagate_into_comparison): Remove dead defining stmts.
16852 (forward_propagate_into_gimple_cond): Likewise.
16853 (forward_propagate_into_cond): Simplify.
16854 (ssa_forward_propagate_and_combine): Handle changed cfg from
16855 forward_propagate_into_comparison.
16856 * tree-ssa-phiopt.c (conditional_replacement): Use proper
16857 locations for newly built statements.
16858
16859 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
16860
16861 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
16862
16863 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16864
16865 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
16866 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
16867
16868 2011-07-20 Richard Guenther <rguenther@suse.de>
16869
16870 PR middle-end/18908
16871 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
16872 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
16873 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
16874
16875 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
16876
16877 * config/frv/frv.c (frv_register_move_cost): Define explicitly
16878 costs for subclasses of GR_REGS.
16879
16880 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
16881
16882 PR target/49780
16883 * config/i386/predicates.md (no_seg_addres_operand): No more special.
16884 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
16885 of DImode hard registers in base.
16886 (ix86_legitimate_address_p): Allow SImode and DImode base and index
16887 registers.
16888
16889 2011-07-20 Richard Guenther <rguenther@suse.de>
16890
16891 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
16892 (unify_nodes): Deal with that.
16893 (solve_graph): Likewise.
16894
16895 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
16896
16897 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
16898 canonicalize left operand from ZERO_EXTEND to AND.
16899
16900 2011-07-20 Anatoly Sokolov <aesok@post.ru>
16901
16902 * target.def (class_max_nregs): New hook.
16903 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
16904 * doc/tm.texi: Regenerate.
16905 * targhooks.c (default_class_max_nregs): New function.
16906 * targhooks.h (default_class_max_nregs): Declare.
16907 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
16908 x_ira_reg_class_min_nregs arrays to unsigned char.
16909 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
16910 hook instead of CLASS_MAX_NREGS macro.
16911 * reginfo.c (restore_register_info): Ditto.
16912 * ira-conflicts.c (process_regs_for_copy): Use
16913 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
16914 Change type rclass and aclass vars to reg_class_t.
16915 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
16916 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
16917 reg_class_t.
16918 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
16919 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
16920
16921 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
16922 * config/i386/i386.c (ix86_class_max_nregs): New function.
16923 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
16924 instead of CLASS_MAX_NREGS macro.
16925 (TARGET_CLASS_MAX_NREGS): Define.
16926 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
16927 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
16928 * config/avr/avr.c (class_max_nregs): Remove function.
16929 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
16930 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
16931 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
16932 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
16933 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
16934 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
16935 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
16936 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
16937 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
16938 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
16939 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
16940 * config/score/score.h (CLASS_MAX_NREGS): Remove.
16941 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
16942 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
16943 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
16944
16945 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
16946
16947 * cif-code.def (OVERWRITABLE): Fix typo and move around.
16948 (TARGET_OPTIMIZATION_MISMATCH): Delete.
16949 (EH_PERSONALITY): Fix typo.
16950 (NON_CALL_EXCEPTIONS): Fix message.
16951 (OPTIMIZATION_MISMATCH): Adjust message.
16952 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
16953
16954 2011-07-19 Ian Lance Taylor <iant@google.com>
16955
16956 * doc/install.texi (Configuration): Document
16957 --enable-build-poststage1-with-cxx.
16958
16959 2011-07-19 Robert Millan <rmh@gnu.org>
16960
16961 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
16962 (GLIBC_DYNAMIC_LINKER): Remove.
16963
16964 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
16965 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
16966 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
16967 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
16968 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
16969 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
16970
16971 * config/mips/linux.h: Remove everything except for ...
16972 (GLIBC_DYNAMIC_LINKER): ... this macro.
16973
16974 * config/mips/linux64.h: Remove everything except for ...
16975 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
16976 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
16977 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
16978 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
16979 (GNU_USER_LINK_EMULATIONN32): New macros.
16980
16981 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
16982 Use the new headers.
16983
16984 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
16985
16986 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
16987 Add offset_known_p and size_known_p fields.
16988 (MEM_OFFSET_KNOWN_P): Update accordingly.
16989 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
16990 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
16991 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
16992 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
16993 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
16994 (init_emit_regs): Likewise.
16995
16996 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
16997
16998 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
16999 (MEM_OFFSET): Change from returning an rtx to returning a
17000 HOST_WIDE_INT.
17001 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
17002 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
17003 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
17004 (clear_mem_offset): Declare.
17005 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
17006 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
17007 MEM_OFFSET to get a HOST_WIDE_INT offset.
17008 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
17009 (adjust_offset_for_component_ref): Take a bool "known_p"
17010 parameter and a HOST_WIDE_INT "offset" parameter.
17011 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
17012 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
17013 than an rtx. Use clear_mem_offset to clear the offset.
17014 * cfgcleanup.c (merge_memattrs): Likewise.
17015 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
17016 * function.c (assign_parm_find_stack_rtl): Likewise.
17017 (assign_parm_setup_stack): Likewise.
17018 * print-rtl.c (print_rtx): Likewise.
17019 * reload.c (find_reloads_subreg_address): Likewise.
17020 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
17021 * var-tracking.c (INT_MEM_OFFSET): Likewise.
17022 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
17023 (get_mem_align_offset): Likewise.
17024 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
17025 (clear_mem_offset): New function.
17026 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
17027 offset rather than an rtx. Assume both the expressio and offset
17028 are available.
17029 (r10k_needs_protection_p_1): Update accordingly, checking the
17030 expression and offset availability here instead.
17031
17032 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17033
17034 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
17035 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
17036 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
17037 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
17038 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
17039 (clear_mem_size): Declare.
17040 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
17041 (clear_mem_size): New function.
17042 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
17043 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
17044 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
17045 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
17046 to clear the size.
17047 (nonoverlapping_memrefs_p): Likewise.
17048 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
17049 (expand_builtin_init_trampoline): Likewise.
17050 * calls.c (compute_argument_addresses): Likewise.
17051 * cfgcleanup.c (merge_memattrs): Likewise.
17052 * dce.c (find_call_stack_args): Likewise.
17053 * dse.c (record_store, scan_insn): Likewise.
17054 * dwarf2out.c (dw_sra_loc_expr): Likewise.
17055 * expr.c (emit_block_move_hints): Likewise.
17056 * function.c (assign_parm_find_stack_rtl): Likewise.
17057 * print-rtl.c (print_rtx): Likewise.
17058 * reload.c (find_reloads_subreg_address): Likewise.
17059 * rtlanal.c (may_trap_p_1): Likewise.
17060 * var-tracking.c (track_expr_p): Likewise.
17061 * varasm.c (assemble_trampoline_template): Likewise.
17062 * config/arm/arm.c (arm_print_operand): Likewise.
17063 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
17064 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
17065 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
17066 (expand_constant_setmem_prologue): Likewise.
17067 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
17068 * config/rs6000/rs6000.c (expand_block_move): Likewise.
17069 (adjacent_mem_locations): Likewise.
17070 * config/s390/s390.c (s390_expand_setmem): Likewise.
17071 (s390_expand_insv): Likewise.
17072 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
17073 (*extendqi<mode>2_short_displ): Likewise.
17074 * config/sh/sh.c (expand_block_move): Likewise.
17075 * config/sh/sh.md (extv, extzv): Likewise.
17076
17077 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17078
17079 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
17080 (mem_attrs_htab_eq): ...here.
17081 (find_mem_attrs): Replace with...
17082 (set_mem_attrs): ...this function. Take a mem_attrs structure
17083 rather than individual fields.
17084 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
17085 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
17086 (set_mem_size, change_address, adjust_address_1, offset_address)
17087 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
17088 Update accordingly.
17089
17090 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17091
17092 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
17093 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
17094 Provide a dummy definition of MEM_ADDR_SPACE for generators.
17095 (target_rtl): Add x_mode_mem_attrs.
17096 (mode_mem_attrs): New macro.
17097 (get_mem_attrs): New function.
17098 * emit-rtl.c (get_mem_attrs): Rename to...
17099 (find_mem_attrs): ...this.
17100 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
17101 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
17102 (set_mem_size, change_address, adjust_address_1, offset_address)
17103 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
17104 Update accordingly.
17105 (init_emit_regs): Initialize mode_mem_attrs.
17106
17107 2011-07-19 Richard Guenther <rguenther@suse.de>
17108
17109 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
17110 TRUTH_*_EXPR handling.
17111 * tree-ssa-operands.c (get_expr_operands): Likewise.
17112 * tree-ssa-pre.c (fully_constant_expression): Likewise.
17113 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
17114 Likewise.
17115 (is_and_or_or): Likewise.
17116 (is_norm_cond_subset_of): Likewise.
17117
17118 2011-07-19 Richard Guenther <rguenther@suse.de>
17119
17120 * tree.h (fold_build_pointer_plus_loc): New helper function.
17121 (fold_build_pointer_plus_hwi_loc): Likewise.
17122 (fold_build_pointer_plus): Define.
17123 (fold_build_pointer_plus_hwi): Likewise.
17124 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
17125 (fold_builtin_memory_op): Likewise.
17126 (fold_builtin_stpcpy): Likewise.
17127 (fold_builtin_memchr): Likewise.
17128 (fold_builtin_strstr): Likewise.
17129 (fold_builtin_strchr): Likewise.
17130 (fold_builtin_strrchr): Likewise.
17131 (fold_builtin_strpbrk): Likewise.
17132 (fold_builtin_strcat): Likewise.
17133 (expand_builtin_memory_chk): Likewise.
17134 (fold_builtin_memory_chk): Likewise.
17135 * c-typeck.c (build_unary_op): Likewise.
17136 * cgraphunit.c (thunk_adjust): Likewise.
17137 * fold-const.c (build_range_check): Likewise.
17138 (fold_binary_loc): Likewise.
17139 * omp-low.c (extract_omp_for_data): Likewise.
17140 (expand_omp_for_generic): Likewise.
17141 (expand_omp_for_static_nochunk): Likewise.
17142 (expand_omp_for_static_chunk): Likewise.
17143 * tree-affine.c (add_elt_to_tree): Likewise.
17144 * tree-data-ref.c (split_constant_offset_1): Likewise.
17145 * tree-loop-distribution.c (generate_memset_zero): Likewise.
17146 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
17147 * tree-predcom.c (ref_at_iteration): Likewise.
17148 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
17149 (add_to_parts): Likewise.
17150 (create_mem_ref): Likewise.
17151 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17152 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
17153 (number_of_iterations_le): Likewise.
17154 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
17155 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
17156 (vect_create_addr_base_for_vector_ref): Likewise.
17157 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
17158 (vect_create_cond_for_alias_checks): Likewise.
17159 * tree-vrp.c (extract_range_from_assert): Likewise.
17160 * config/alpha/alpha.c (alpha_va_start): Likewise.
17161 (alpha_gimplify_va_arg_1): Likewise.
17162 * config/i386/i386.c (ix86_va_start): Likewise.
17163 (ix86_gimplify_va_arg): Likewise.
17164 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17165 * config/mep/mep.c (mep_expand_va_start): Likewise.
17166 (mep_gimplify_va_arg_expr): Likewise.
17167 * config/mips/mips.c (mips_va_start): Likewise.
17168 (mips_gimplify_va_arg_expr): Likewise.
17169 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17170 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
17171 (rs6000_gimplify_va_arg): Likewise.
17172 * config/s390/s390.c (s390_va_start): Likewise.
17173 (s390_gimplify_va_arg): Likewise.
17174 * config/sh/sh.c (sh_va_start): Likewise.
17175 (sh_gimplify_va_arg_expr): Likewise.
17176 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
17177 * config/spu/spu.c (spu_va_start): Likewise.
17178 (spu_gimplify_va_arg_expr): Likewise.
17179 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17180 Likewise.
17181 (xstormy16_gimplify_va_arg_expr): Likewise.
17182 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
17183 (xtensa_gimplify_va_arg_expr): Likewise.
17184
17185 2011-07-19 Richard Guenther <rguenther@suse.de>
17186
17187 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
17188 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
17189 handling.
17190
17191 PR middle-end/18908
17192 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
17193 result of BIT_*_EXPR to bitfield precision.
17194
17195 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
17196
17197 PR tree-optimization/49742
17198 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
17199 as a potential write.
17200
17201 2011-07-19 Richard Guenther <rguenther@suse.de>
17202
17203 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
17204 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
17205 (forward_propagate_comparison): Simplify, remove obsolete code.
17206
17207 2011-07-19 Richard Guenther <rguenther@suse.de>
17208
17209 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
17210 BIT_XOR_EXPR, same as the RTL expander does.
17211 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
17212 (verify_gimple_assign_unary): Likewise.
17213 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
17214 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
17215 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
17216
17217 2011-07-19 Jakub Jelinek <jakub@redhat.com>
17218
17219 PR tree-optimization/49768
17220 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
17221 if offset is smaller than bitoffset, but offset+size is bigger
17222 than bitoffset.
17223
17224 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
17225
17226 PR tree-optimization/49771
17227 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
17228 zero step, set segment length to the size of the data-ref's type.
17229
17230 2011-07-18 Martin Jambor <mjambor@suse.cz>
17231
17232 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
17233 comments.
17234 (ipcp_values_pool): Declare.
17235 (ipcp_sources_pool): Likewise.
17236 (ipcp_lattice): Changed to forward declaration.
17237 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
17238 cannot_devirtualize.
17239 (ipa_node_params): New fields descriptors, lattices, known_vals,
17240 clone_for_all_contexts and node dead, removed fields params and
17241 count_scale.
17242 (ipa_set_param_count): Removed.
17243 (ipa_get_param_count): Made to work with descriptors vector.
17244 (ipa_get_param): Updated.
17245 (ipa_param_cannot_devirtualize_p): Removed.
17246 (ipa_param_types_vec_empty): Likewise.
17247 (ipa_set_param_used): New function.
17248 (ipa_get_param_used): Updated to use descriptors vector.
17249 (ipa_func_list): Removed.
17250 (ipa_init_func_list): Removed declaration.
17251 (ipa_push_func_to_list_1): Likewise.
17252 (ipa_pop_func_from_list): Likewise.
17253 (ipa_push_func_to_list): Removed.
17254 (ipa_lattice_from_jfunc): Remove declaration.
17255 (ipa_get_jf_pass_through_result): Declare.
17256 (ipa_get_jf_ancestor_result): Likewise.
17257 (ipa_value_from_jfunc): Likewise.
17258 (ipa_get_lattice): Update.
17259 (ipa_lat_is_single_const): New function.
17260 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
17261 (ipa_init_func_list): Likewise.
17262 (ipa_pop_func_from_list): Likewise.
17263 (ipa_get_param_decl_index): Fix coding style.
17264 (count_formal_params): Removed.
17265 (count_formal_params_1): Renamed to count_formal_params.
17266 (ipa_populate_param_decls): Update to use descriptors vector.
17267 (ipa_initialize_node_params): Likewise.
17268 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
17269 (ipa_analyze_params_uses): Likewise.
17270 (ipa_free_node_params_substructures): Likewise and free also lattices
17271 and known values.
17272 (duplicate_array): Removed.
17273 (ipa_edge_duplication_hook): Add the new edge to the list of edge
17274 clones.
17275 (ipa_node_duplication_hook): Update to use new lattices.
17276 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
17277 (ipa_free_all_structures_after_iinln): Likewise.
17278 (ipa_write_node_info): Update to use new lattices.
17279 (ipa_read_node_info): Likewise.
17280 (ipa_get_jf_pass_through_result): New function.
17281 (ipa_get_jf_ancestor_result): Likewise.
17282 (ipa_value_from_jfunc): Likewise.
17283 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
17284 * ipa-cp.c: Reimplemented.
17285 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
17286 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
17287 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
17288 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
17289 * doc/invoke.texi (devirt-type-list-size): Removed description.
17290 (ipa-cp-value-list-size): Added description.
17291
17292 2011-07-18 Richard Henderson <rth@redhat.com>
17293
17294 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
17295 before calling create_basic_block.
17296
17297 2011-07-18 Jakub Jelinek <jakub@redhat.com>
17298
17299 PR middle-end/49675
17300 * tree.c (build_common_builtin_nodes): Register
17301 __builtin_return_address, __cyg_profile_func_enter
17302 and __cyg_profile_func_exit.
17303
17304 2011-07-18 Richard Henderson <rth@redhat.com>
17305
17306 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
17307 (add_labels_and_missing_jumps): ... here.
17308 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
17309
17310 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
17311
17312 PR target/47744
17313 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17314 of DImode hard registers in PLUS address chains.
17315
17316 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17317
17318 PR bootstrap/49769
17319 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
17320 (alpha*-*-freebsd*): Likewise.
17321 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
17322 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
17323 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
17324 crtprec80.o, crtfastmath.o to extra_parts for all targets.
17325 (ia64*-*-elf*): Remove extra_parts.
17326 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
17327 (sparc64-*-linux*): Likewise.
17328 (sparc64-*-freebsd*): Likewise.
17329
17330 Revert:
17331 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
17332 (ia64*-*-linux*): Likewise.
17333 (mips64*-*-linux*): Likewise.
17334 (mips*-*-linux*): Likewise.
17335
17336 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
17337
17338 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
17339
17340 2011-07-18 Richard Guenther <rguenther@suse.de>
17341
17342 * gimplify.c (gimplify_expr): Use input_location, not saved_location
17343 when building new trees.
17344
17345 2011-07-18 Richard Guenther <rguenther@suse.de>
17346
17347 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
17348 expansion result to bitfield precision if required.
17349
17350 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17351
17352 * config.gcc (i[3456x]86-*-netware*): Remove.
17353
17354 * gthr-nks.h: Remove.
17355 * configure.ac (enable_threads): Remove nks.
17356 * configure: Regenerate.
17357
17358 * config/i386/i386.c (ix86_encode_section_info): Remove netware
17359 reference.
17360 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
17361 <netware.h> reference.
17362
17363 * config/i386/netware-libgcc.c,
17364 gcc/config/i386/netware-libgcc.def,
17365 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
17366 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
17367 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
17368 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
17369
17370 * doc/extend.texi (Function Attributes,
17371 callee_pop_aggregate_return): Remove i?86-netware reference.
17372 * doc/install.texi (Configuration, --enable-threads): Remove nks.
17373
17374 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17375
17376 PR target/49746
17377 Revert:
17378 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17379
17380 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
17381 patterns.
17382
17383 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
17384
17385 PR middle-end/49732
17386 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
17387
17388 2011-07-16 Matthias Klose <doko@ubuntu.com>
17389
17390 * doc/install.texi: Document --enable-static-libjava.
17391
17392 2011-07-15 Richard Henderson <rth@redhat.com>
17393
17394 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
17395 Replace all three arguments by returning a VEC of edges.
17396 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
17397 pointers and counts.
17398 (fix_edges_for_rarely_executed_code): Merge ...
17399 (rest_of_handle_partition_blocks): ... into...
17400 (partition_hot_cold_basic_blocks): ... here. Return todo items if
17401 any work was performed.
17402 (pass_partition_blocks): Clear todo_flags_finish.
17403
17404 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
17405 Jakub Jelinek <jakub@redhat.com>
17406 Jonathan Wakely <jwakely.gcc@gmail.com>
17407
17408 PR libstdc++/49745
17409 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
17410 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
17411
17412 2011-07-15 Jason Merrill <jason@redhat.com>
17413
17414 PR testsuite/49741
17415 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
17416 rather than --tool_opts.
17417
17418 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
17419
17420 * doc/plugins.texi (Building GCC plugins): gengtype needs its
17421 corresponding gtype.state.
17422
17423 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17424
17425 PR target/49723
17426 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
17427
17428 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
17429
17430 PR target/48220
17431 * doc/md.texi (Standard Names): Document window_save.
17432 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
17433 expand_debug_expr and expand_debug_source_expr. If the target has
17434 a window_save instruction, adjust the ENTRY_VALUE_EXP.
17435 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
17436 SSA_NAME_VAR is a parameter.
17437 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
17438 * var-tracking.c (parm_reg_t): New type and associated vector type.
17439 (windowed_parm_regs): New variable.
17440 (adjust_insn): If the target has a window_save instruction and this
17441 is the instruction, make its effect on parameter registers explicit.
17442 (next_non_note_insn_var_location): New function.
17443 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
17444 (vt_add_function_parameter): If the target has a window_save insn,
17445 adjust the incoming RTL and record that in windowed_parm_regs.
17446 (vt_finalize): Free windowed_parm_regs.
17447
17448 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
17449
17450 * doc/invoke.texi (C6X Options): New section.
17451 * doc/md.texi (TI C6X family): New section.
17452 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
17453 tic6x-*-uclinux.
17454 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
17455 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
17456 Provide C6X definitions.
17457 * config/c6x/c6x.md: New file.
17458 * config/c6x/constraints.md: New file.
17459 * config/c6x/predicates.md: New file.
17460 * config/c6x/c6x-sched.md.in: New file.
17461 * config/c6x/c6x-sched.md: New file.
17462 * config/c6x/gensched.sh: New file.
17463 * config/c6x/c6x-mult.md.in: New file.
17464 * config/c6x/genmult.sh: New file.
17465 * config/c6x/c6x-mult.md: New file.
17466 * config/c6x/sync.md: New file.
17467 * config/c6x/c6x-protos.h: New file.
17468 * config/c6x/sfp-machine.h: New file.
17469 * config/c6x/c6x.c: New file.
17470 * config/c6x/c6x.h: New file.
17471 * config/c6x/crti.s: New file.
17472 * config/c6x/crtn.s: New file.
17473 * config/c6x/lib1funcs.asm: New file.
17474 * config/c6x/c6x-modes.def: New file.
17475 * config/c6x/genopt.sh: New file.
17476 * config/c6x/c6x.opt: New file.
17477 * config/c6x/c6x-tables.opt: New file.
17478 * config/c6x/c6x-opts.h: New file.
17479 * config/c6x/c6x-isas.def: New file.
17480 * config/c6x/elf.h: New file.
17481 * config/c6x/elf-common.h: New file.
17482 * config/c6x/uclinux-elf.h: New file.
17483 * config/c6x/t-c6x: New file.
17484 * config/c6x/t-c6x-elf: New file.
17485 * config/c6x/t-c6x-uclinux: New file.
17486 * config/c6x/t-c6x-softfp: New file.
17487 * config/c6x/gtd.c: New file.
17488 * config/c6x/gtf.c: New file.
17489 * config/c6x/ltd.c: New file.
17490 * config/c6x/ltf.c: New file.
17491 * config/c6x/ged.c: New file.
17492 * config/c6x/gef.c: New file.
17493 * config/c6x/led.c: New file.
17494 * config/c6x/lef.c: New file.
17495 * config/c6x/eqd.c: New file.
17496 * config/c6x/eqf.c: New file.
17497 * config/c6x/libgcc-c6xeabi.ver: New file.
17498
17499 Revert
17500 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
17501 PR rtl-optimization/11320
17502 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
17503 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
17504 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
17505 current_sched_info->compute_jump_reg_dependencies. Record which
17506 registers are used and which registers are set by the jump.
17507 Clear deps->reg_conditional_sets after a barrier.
17508 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
17509 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
17510 (init_deps): Initialize reg_conditional_sets.
17511 (free_deps): Clear reg_conditional_sets.
17512 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
17513 Mark registers live on entry of the fallthrough block and conditionally
17514 set as set by the jump. Mark registers live on entry of non-fallthrough
17515 blocks as used by the jump.
17516 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
17517 Mark new parameters as unused.
17518
17519 2011-07-14 Andrew Pinski <pinskia@gmail.com>
17520
17521 PR tree-opt/49309
17522 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
17523 Use fold_build2_loc instead of build2.
17524 Use the correct type for the new tree.
17525
17526 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
17527
17528 PR rtl-optimization/11320
17529 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
17530 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
17531
17532 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
17533
17534 PR target/49487
17535 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
17536 of REG.
17537 (*rotw<mode>): Use const_int_operand for operand2.
17538 Use match_scatch for operand3.
17539 (*rotb<mode>): Ditto
17540 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
17541
17542 2011-07-14 Richard Guenther <rguenther@suse.de>
17543
17544 PR tree-optimization/49651
17545 * tree-ssa-structalias.c (get_constraint_for_1): Properly
17546 handle dereferences with subvariables.
17547
17548 2011-07-14 Richard Guenther <rguenther@suse.de>
17549
17550 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
17551 (fold_stmt_1): Do it here directly on gimple and as a first thing.
17552
17553 2011-07-14 Richard Guenther <rguenther@suse.de>
17554
17555 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
17556 not bool_var when folding bool_var != 1 or bool_var == 0.
17557
17558 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
17559
17560 * haifa-sched.c (schedule_insns): Remove outdated comment.
17561 (schedule_block): When computing a known value for TODO_SPEC,
17562 just set it rather than using logical operations.
17563 (try_ready): Likewise. Use a local variable rather than a
17564 pointer to TODO_SPEC. Reorder an if statement to move the
17565 easy case to the then block.
17566 * sched-deps.c (dep_spec_p): New static function.
17567 (update_dep): Use it to decide whether to call
17568 change_spec_dep_to_hard.
17569 (get_back_and_forw_lists): Use it.
17570 (sd_resolve_dep): Likewise.
17571 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
17572 (haifa_note_mem_dep): Likewise.
17573 (check_dep): Likewise.
17574 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
17575 (sched_free_deps): Free in two passes.
17576
17577 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
17578
17579 PR middle-end/49736
17580 * expr.c (all_zeros_p): Undo bogus part of last change.
17581
17582 2011-07-14 Matthias Klose <doko@ubuntu.com>
17583
17584 * doc/extend.texi (optimize attribute): Fix typo.
17585
17586 2011-07-14 Richard Guenther <rguenther@suse.de>
17587
17588 * gimplify.c (gimplify_expr): Only do required conversions.
17589
17590 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
17591
17592 PR target/43746
17593 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
17594 i.e. use default_elf_select_section.
17595 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
17596 (READONLY_DATA_SECTION_ASM_OP): Remove.
17597 (TARGET_ASM_NAMED_SECTION): Move from here...
17598 * config/avr/avr.c: ...to here.
17599 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
17600 (avr_asm_named_section): Make static.
17601
17602 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17603
17604 PR bootstrap/49739
17605 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
17606 and crtfastmath.o for Linux/x86.
17607
17608 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
17609
17610 * haifa-sched.c: Include "hashtab.h"
17611 (sched_no_dce): New global variable.
17612 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
17613 SHADOW_P): New macros.
17614 (last_clock_var, cycle_issued_insns): Move declarations.
17615 (must_backtrack): New static variable.
17616 (struct delay_pair): New structure.
17617 (delay_htab, delay_htab_i2): New static variables.
17618 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
17619 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
17620 functions.
17621 (dep_cost_1): If delay pairs exist, try to look up the insns and
17622 use the correct pair delay if we find them.
17623 (rank-for_schedule): Tweak priority for insns that must be scheduled
17624 soon to avoid backtracking.
17625 (queue_insn): Detect conditions which force backtracking.
17626 (ready_add): Likewise.
17627 (struct sched_block_state): Add member shadows_only_p.
17628 (struct haifa_save_data): New structure.
17629 (backtrack_queue): New static variable.
17630 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
17631 unschedule_insns_until, restore_last_backtrack_point,
17632 free_topmost_backtrack_point, free_backtrack_queue,
17633 estimate_insn_tick, estimate_shadow_tick): New functions.
17634 (prune_ready_list): New arg shadows_only_p. All callers changed.
17635 If true, remove everything that isn't SHADOW_P. Look up delay
17636 pairs and estimate ticks to avoid scheduling the first insn too early.
17637 (verify_shadows): New function.
17638 (schedule_block): Add machinery to enable backtracking.
17639 (sched_init): Take sched_no_dce into account when setting
17640 DF_LR_RUN_DCE.
17641 (free_delay_pairs): New function.
17642 (init_h_i_d): Initialize INSN_EXACT_TICK.
17643 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
17644 * sched-deps.c (sd_unresolve_dep): New function.
17645 * sched-int. (struct haifa_sched_info): New fields save_state
17646 and restore_state.
17647 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
17648 feeds_backtrack_insn and shadow_p.
17649 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
17650 (sched_no_dce): Declare variable.
17651 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
17652 sd_unresolve_dep): Declare functions.
17653 * modulo-sched.c (sms_sched_info): Clear the two new fields.
17654 * sched-rgn.c (rgn_const_sched_info): Likewise.
17655 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17656 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
17657 (ebb_sched_info): Add them for the two new fields.
17658 (add_deps_for_risky_insns): Call add_delay_dependencies.
17659
17660 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17661
17662 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
17663 Rename -mr11.
17664 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
17665 (rs6000_call_indirect_aix): Ditto.
17666 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
17667 (call_indirect_aix<ptrsize>_internal): Ditto.
17668 (call_indirect_aix<ptrsize>_nor11): Ditto.
17669 (call_indirect_aix<ptrsize>_internal2): Ditto.
17670 (call_value_indirect_aix<ptrsize>): Ditto.
17671 (call_value_indirect_aix<ptrsize>_internal): Ditto.
17672 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
17673 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
17674 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
17675
17676 2011-07-13 Jason Merrill <jason@redhat.com>
17677
17678 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
17679
17680 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17681
17682 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
17683 * config/spu/spu.md ("clrsb<mode>2"): New expander.
17684
17685 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
17686
17687 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
17688 * configure: Regenerate.
17689
17690 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17691
17692 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
17693 (asm_file_start): Remove.
17694 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
17695 free_bb_for_insn around code that modifies insns before
17696 restarting df analysis.
17697
17698 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17699
17700 PR target/49541
17701 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
17702 (LINK_SPEC): ... here.
17703
17704 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
17705
17706 * haifa-sched.c (struct sched_block_state): New.
17707 (schedule_block): Move some local variables into such a structure.
17708
17709 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17710
17711 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
17712 * config/i386/t-crtpc: Remove.
17713 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
17714 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
17715 tmake_file.
17716 (x86_64-*-darwin*): Likewise.
17717 (i[34567]86-*-linux*): Likewise.
17718 (x86_64-*-linux*): Likewise.
17719
17720 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
17721 Handle -mpc32, -mpc64, -mpc80.
17722
17723 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17724
17725 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
17726 * config/alpha/t-crtfm: Remove.
17727 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
17728 * config/i386/t-crtfm: Remove.
17729 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
17730 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
17731 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
17732 * config/sparc/t-crtfm: Remove.
17733
17734 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
17735 (alpha*-*-freebsd*): Likewise.
17736 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
17737 (x86_64-*-darwin*): Likewise.
17738 (i[34567]86-*-linux*): Likewise.
17739 (x86_64-*-linux*): Likewise.
17740 (x86_64-*-mingw*): Likewise.
17741 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
17742 (ia64*-*-freebsd*): Likewise.
17743 (ia64*-*-linux*): Likewise.
17744 (mips64*-*-linux*): Likewise.
17745 (mips*-*-linux*): Likewise.
17746 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
17747 (sparc64-*-linux*): Likewise.
17748 (sparc64-*-freebsd*): Likewise.
17749
17750 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17751
17752 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
17753 * config/darwin-crt3.c: Move to ../libgcc/config.
17754 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
17755 ($(T)crt3$(objext)): Remove.
17756 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
17757 ($(T)crt2$(objext)): Remove.
17758 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
17759 (powerpc64-*-darwin*): Likewise.
17760
17761 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
17762
17763 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
17764
17765 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
17766 (addsi_1_zext): This.
17767
17768 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
17769
17770 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
17771 * doc/tm.texi: Regenerate.
17772 * target.def (mergeable_rodata_prefix): New defhookpod.
17773 * varasm.c (mergeable_string_section, mergeable_constant_section):
17774 Use it. Allocate name with alloca.
17775
17776 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
17777
17778 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
17779
17780 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
17781
17782 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
17783 overlap check.
17784
17785 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
17786
17787 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
17788 (count_type_elements): Delete.
17789 (complete_ctor_at_level_p): Declare.
17790 * expr.c (flexible_array_member_p): New function, split out from...
17791 (count_type_elements): ...here. Make static. Replace allow_flexarr
17792 parameter with for_ctor_p. When for_ctor_p is true, return the
17793 number of elements that should appear in the top-level constructor,
17794 otherwise return an estimate of the number of scalars.
17795 (categorize_ctor_elements): Replace p_must_clear with p_complete.
17796 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
17797 (complete_ctor_at_level_p): New function, borrowing union logic
17798 from old categorize_ctor_elements_1.
17799 (mostly_zeros_p): Return true if the constructor is not complete.
17800 (all_zeros_p): Update call to categorize_ctor_elements.
17801 * gimplify.c (gimplify_init_constructor): Update call to
17802 categorize_ctor_elements. Don't call count_type_elements.
17803 Unconditionally prevent clearing for variable-sized types,
17804 otherwise rely on categorize_ctor_elements to detect
17805 incomplete initializers.
17806
17807 2011-07-13 Richard Guenther <rguenther@suse.de>
17808
17809 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
17810 the final type is integral.
17811
17812 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
17813
17814 * sched-int.h (struct _dep): Add member cost.
17815 (DEP_COST, UNKNOWN_DEP_COST): New macros.
17816 * sched-deps.c (init_dep_1): Initialize DEP_COST.
17817 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
17818 (sched_change_pattern): Reset it for dependent insns.
17819
17820 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17821
17822 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
17823 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
17824 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
17825 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
17826 (CRT0_S, MCRT0_S): Remove.
17827 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
17828 Remove.
17829 (s-crt0): Remove.
17830 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
17831
17832 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
17833
17834 * cse.c (insert_with_costs): Put semi-colon after empty loop body
17835 on the next line.
17836 * emit-rtl.c (push_to_sequence): Likewise.
17837 * haifa-sched.c (max_issue): Likewise.
17838 * matrix-reorg.c (add_allocation_site): Likewise.
17839 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
17840 * reload.c (alternative_allows_const_pool_ref): Likewise.
17841 * sched-rgn.c (rgn_add_block): Likewise.
17842 (rgn_fix_recovery_cfg): Likewise.
17843 * tree.c (attribute_list_contained): Likewise.
17844
17845 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
17846
17847 * config/i386/i386.c: Tidy processor feature bitmasks.
17848 (m_P4_NOCONA): New.
17849
17850 2011-07-12 Andrew Pinski <pinskia@gmail.com>
17851
17852 PR rtl-opt/49474
17853 * cprop.c (find_implicit_sets): Correct the condition.
17854
17855 2011-07-12 Richard Henderson <rth@redhat.com>
17856
17857 PR target/49713
17858 * dwarf2out.h (dwarf_frame_regnum): Remove.
17859 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
17860 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
17861 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
17862 (execute_dwarf2_frame): Initialize them.
17863 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
17864 users of the macros with the variables.
17865 (expand_builtin_dwarf_sp_column): Revert last change.
17866 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
17867 result of DWARF_FRAME_REGNUM into a local variable.
17868
17869 2011-07-12 Richard Henderson <rth@redhat.com>
17870
17871 PR target/49714
17872 * config/i386/i386.c (x86_output_mi_thunk): Use
17873 machopic_indirect_call_target instead of machopic_indirection_name
17874 directly.
17875
17876 2011-07-12 Laurent GUERBY <laurent@guerby.net>
17877 Eric Botcazou <ebotcazou@adacore.com>
17878
17879 * prefix.h: Wrap up in extern "C" block.
17880
17881 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
17882
17883 AMD bdver2 Enablement
17884 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
17885 (case ${target}): Add bdver2.
17886 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17887 -march=native recognize bdver2 processors.
17888 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17889 bdver2 def_and_undef
17890 * config/i386/i386.c (struct processor_costs bdver2_cost): New
17891 bdver2 cost table.
17892 (m_BDVER2): New definition.
17893 (m_AMD_MULTIPLE): Includes m_BDVER2.
17894 (initial_ix86_tune_features): Add bdver2 tuning.
17895 (processor_target_table): Add bdver2 entry.
17896 (static const char *const cpu_names): Add bdver2 entry.
17897 (ix86_option_override_internal): Add bdver2 instruction sets.
17898 (ix86_issue_rate): Add bdver2.
17899 (ix86_adjust_cost): Add bdver2.
17900 (has_dispatch): Add bdver2.
17901 * config/i386/i386.h (TARGET_BDVER2): New definition.
17902 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
17903 (enum processor_type): Add PROCESSOR_BDVER2.
17904 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
17905 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
17906 description.
17907
17908 2011-07-12 Richard Henderson <rth@redhat.com>
17909
17910 PR target/49714
17911 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
17912 destination address in memory on some paths.
17913
17914 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
17915
17916 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
17917 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
17918 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
17919 * function.c (locate_and_pad_parm): Take it into account.
17920 * target.def (function_arg_round_boundary): New hook.
17921 * targhooks.c (default_function_arg_round_boundary): New function.
17922 * targhooks.h (default_function_arg_round_boundary): Declare.
17923 * doc/tm.texi: Regenerate.
17924
17925 2011-07-12 Richard Guenther <rguenther@suse.de>
17926
17927 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
17928 Do not perform no-op changes.
17929
17930 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
17931
17932 * config/arm/predicates.md (neon_struct_operand): Make a normal
17933 predicate.
17934 (neon_struct_or_register_operand): New predicate.
17935 * config/arm/neon.md (movmisalign<mode>): Replace predicates
17936 with neon_struct_or_register_operand.
17937 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
17938 neon_struct_operand instead of memory_operand.
17939
17940 2011-07-12 Martin Jambor <mjambor@suse.cz>
17941
17942 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
17943 * cgraph.c (cgraph_get_node_or_alias): Removed.
17944 (change_decl_assembler_name): Changed all calls to
17945 cgraph_get_node_or_alias to a call to cgraph_get_node.
17946 (cgraph_make_decl_local): Likewise.
17947 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
17948 * varasm.c (default_binds_local_p_1): Likewise.
17949 (decl_binds_to_current_def_p): Likewise.
17950
17951 2011-07-12 Jakub Jelinek <jakub@redhat.com>
17952
17953 PR tree-optimization/49712
17954 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
17955
17956 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
17957
17958 * genautomata.c (add_arc): Return void. All callers changed.
17959 (make_automaton): Remove dead code.
17960
17961 2011-07-11 Richard Henderson <rth@redhat.com>
17962
17963 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
17964 (DW_FRAME_POINTER_REGNUM): New.
17965 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
17966 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
17967 (dwf_regno): New.
17968 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
17969 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
17970 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
17971 Use it.
17972 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
17973 * dwarf2out.h (dwarf_frame_regnum): New.
17974 (struct cfa_loc): Document the domain of the reg member.
17975
17976 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
17977
17978 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
17979 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
17980
17981 2011-07-11 Jakub Jelinek <jakub@redhat.com>
17982
17983 PR debug/49676
17984 * dwarf2out.c (int_shift_loc_descriptor): New function.
17985 (int_loc_descriptor): If shorter, emit i as
17986 (i >> shift), shift, DW_OP_shl for suitable shift value.
17987 Similarly, try to optimize large negative values using
17988 DW_OP_neg of a positive value if shorter.
17989 (size_of_int_shift_loc_descriptor): New function.
17990 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
17991 changes.
17992 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
17993 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
17994 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
17995 is shorter.
17996 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
17997 addend as added DW_OP_plus if it is shorter.
17998
17999 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18000
18001 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
18002 (DTORS_SECTION_ASM_OP): Define.
18003
18004 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18005
18006 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
18007 * config/t-dfprules: Move to ../libgcc/config.
18008 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
18009 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
18010 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
18011 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
18012 Likewise.
18013 (i[34567]86-*-cygwin*): Likewise.
18014 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
18015 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
18016 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
18017 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
18018 D64PBIT_FUNCS, D128PBIT_FUNCS.
18019
18020 2011-07-11 Richard Guenther <rguenther@suse.de>
18021
18022 * tree-vrp.c (simplify_conversion_using_ranges): Manually
18023 translate the source value-range through the conversion chain.
18024
18025 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
18026
18027 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
18028
18029 2011-07-11 Arthur Loiret <aloiret@debian.org>
18030
18031 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
18032 a bi-arch compiler defaulting to 31-bit. In this case:
18033 (tmake_file): Add s390/t-linux64.
18034 * doc/install.texi: Add s390-linux to the list of targets supporting
18035 --enable-targets=all.
18036
18037 2011-07-11 Arthur Loiret <aloiret@debian.org>
18038 Matthias Klose <doko@debian.org>
18039
18040 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
18041 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
18042 (tm_file): Add mips/linux64.h.
18043 (tmake_file): Add mips/t-linux64.
18044 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
18045 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
18046 instead of hardcoded mabi=n32.
18047 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
18048 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
18049 convention.
18050
18051 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18052
18053 * passes.c (init_optimization_passes): Add invariant motion pass
18054 after induction variable optimization.
18055
18056 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
18057
18058 PR target/39633
18059 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
18060 offsets 1..5 set cc0 in a usable way.
18061
18062 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
18063
18064 * tree.h (call_expr_arg): Remove.
18065 (call_expr_argp): Likewise.
18066
18067 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
18068
18069 * config/sparc/sparc.md (save_register_window_1): Rename to...
18070 (window_save): ...this.
18071 * config/sparc/sparc.c (emit_save_register_window): Rename to...
18072 (emit_window_save): ...this.
18073 (sparc_expand_prologue): Adjust to above renaming.
18074
18075 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
18076
18077 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
18078 of movabs for x32.
18079
18080 2011-07-10 Richard Henderson <rth@redhat.com>
18081
18082 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
18083 run final, instead of emitting text directly.
18084
18085 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
18086
18087 * config/i386/i386.c (ix86_option_override_internal): Turn on
18088 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
18089 small PIC models for TARGET_X32.
18090
18091 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
18092
18093 PR target/49684
18094 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
18095 $(LIBGCC2_CFLAGS).
18096
18097 PR bootstrap/49680
18098 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
18099 stray notes and debug insns by using prev_nonnote_nondebug_insn
18100 instead of PREV_INSN.
18101
18102 2011-07-09 Richard Henderson <rth@redhat.com>
18103
18104 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
18105 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
18106 * dwarf2out.c: ... here.
18107 (output_all_cfis): Remove.
18108 (dwarf2out_switch_text_section): Use output_cfis directly.
18109 (size_of_locs): Export.
18110 (output_loc_sequence, output_loc_sequence_raw): Export.
18111 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
18112 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
18113 output_cfa_loc_raw): Move to ...
18114 * dwarfcfi.c: ... here.
18115 * dwarf2out.h: Update decls.
18116
18117 2011-07-09 Richard Henderson <rth@redhat.com>
18118
18119 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
18120 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
18121 * dwarf2cfi.c: ... here.
18122 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
18123 (DWARF_ROUND, DWARF_CIE_ID): Remove.
18124 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
18125 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
18126 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
18127
18128 2011-07-09 Richard Henderson <rth@redhat.com>
18129
18130 * dwarf2cfi.c (cie_return_save): New.
18131 (queue_reg_save): Use compare_reg_or_pc.
18132 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
18133 (dwarf2out_frame_debug_expr): Likewise.
18134 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
18135 (initial_return_save): Likewise.
18136 (execute_dwarf2_frame): Save and restore initial return save from
18137 the cie to the fde.
18138 * config/mips/mips.c (mips_frame_set): Remove special case for
18139 DWARF_FRAME_RETURN_COLUMN.
18140
18141 2011-07-09 Richard Henderson <rth@redhat.com>
18142
18143 * dwarf2cfi.c (lookup_cfa): Remove.
18144 (execute_dwarf2_frame): Assert queues are empty on entry.
18145 Setup initial cfa directly, not via lookup_cfa.
18146 Don't clear args_size state here.
18147
18148 2011-07-09 Richard Henderson <rth@redhat.com>
18149
18150 * dwarf2cfi.c (add_cfi_vec): New.
18151 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
18152 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
18153 (execute_dwarf2_frame): Set add_cfi_vec.
18154
18155 2011-07-09 Richard Henderson <rth@redhat.com>
18156
18157 * defaults.h (ASM_COMMENT_START): Move here...
18158 * dwarf2asm.c: ... from here.
18159 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
18160 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
18161 * varasm.c: Likewise.
18162
18163 2011-07-09 Richard Henderson <rth@redhat.com>
18164
18165 PR debug/49686
18166 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
18167 (create_cfi_notes): ... do it here instead.
18168
18169 2011-07-09 Jakub Jelinek <jakub@redhat.com>
18170
18171 PR debug/49676
18172 * dwarf2out.c (size_of_int_loc_descriptor): New function.
18173 (address_of_int_loc_descriptor): Use it.
18174 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
18175
18176 2011-07-09 Richard Henderson <rth@redhat.com>
18177
18178 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
18179 (prologue, epilogue): New.
18180 (return, *rts): New.
18181 (blockage, setd, seti): New.
18182 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
18183 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
18184 (pdp11_saved_regno): New.
18185 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
18186 generate rtl instead of text.
18187 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
18188 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
18189 * config/pdp11/pdp11-protos.h: Update.
18190
18191 2011-07-09 Richard Henderson <rth@redhat.com>
18192
18193 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
18194 try to insert an rtl prologue here.
18195 (rs6000_output_function_epilogue): Similarly.
18196 * config/rs6000/rs6000.md (prologue): Emit a barrier to
18197 satisfy !TARGET_SCHED_PROLOG.
18198 (epilogue, sibcall_epilogue): Likewise.
18199
18200 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
18201
18202 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
18203 (FP_REG_P): Delete.
18204 (IN_OR_GLOBAL_P): Likewise.
18205
18206 2011-07-08 Jason Merrill <jason@redhat.com>
18207
18208 PR c++/45437
18209 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
18210 compound assignment.
18211
18212 * cgraph.c (cgraph_add_to_same_comdat_group): New.
18213 * cgraph.h: Declare it.
18214 * ipa.c (function_and_variable_visibility): Make sure thunks
18215 have the right visibility.
18216
18217 2011-07-08 Richard Henderson <rth@redhat.com>
18218
18219 PR bootstrap/49680
18220 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
18221 any tablejump vector.
18222
18223 PR bootstrap/49680
18224 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
18225 end of the prologue.
18226
18227 2011-07-08 Jakub Jelinek <jakub@redhat.com>
18228
18229 PR target/49621
18230 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
18231 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
18232 * config/rs6000/vector.md (vector_select_<mode>,
18233 vector_select_<mode>_uns): Change second operand of NE to
18234 CONST0_RTX (<MODE>mode) instead of const0_rtx.
18235 * config/rs6000/altivec.md (*altivec_vsel<mode>,
18236 *altivec_vsel<mode>_uns): Expect second operand of NE to be
18237 zero_constant of the corresponding vector mode.
18238 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
18239 Likewise.
18240
18241 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
18242
18243 * graphite-dependences.c (build_alias_set_powerset): Remove
18244 continue from loop, add one more assert.
18245
18246 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
18247
18248 PR target/46779
18249 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
18250 In particular, allow 8-bit values in r28 and r29.
18251 (avr_hard_regno_scratch_ok): Disallow any register that might be
18252 part of the frame pointer.
18253 (avr_hard_regno_rename_ok): Same.
18254 (avr_legitimate_address_p): Don't allow SUBREGs.
18255
18256 2011-07-08 Julian Brown <julian@codesourcery.com>
18257
18258 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
18259 big-endian mode.
18260 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
18261 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
18262 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
18263 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
18264 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
18265 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
18266 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
18267 registers in big-endian mode.
18268
18269 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
18270
18271 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
18272 in terms of another.
18273 (write_attr_value): Write a cast if necessary.
18274
18275 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
18276 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
18277 (REG_WORDS_BIG_ENDIAN): Document.
18278 * doc/tm.texi: Regenerate.
18279 * reload.c (operands_match_p): Take it into account.
18280 (reload_adjust_reg_for_mode): Likewise.
18281 * rtlanal.c (subreg_get_info): Likewise.
18282
18283 2011-07-08 Richard Guenther <rguenther@suse.de>
18284
18285 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
18286 folding.
18287
18288 2011-07-08 Kai Tietz <ktietz@redhat.com>
18289
18290 * fold-const.c (fold_truth_andor): Factored out truth_andor
18291 label from fold_binary as function.
18292 (fold_binary_loc): Replace truth_andor lable
18293 by function fold_truth_andor.
18294
18295 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
18296
18297 PR middle-end/49519
18298 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
18299 check if address is stored in register. If so - give up.
18300 (check_sibcall_argument_overlap_1): Do not perform check of
18301 overlapping when it is call to address.
18302
18303 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
18304
18305 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
18306 of magic '31'.
18307
18308 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
18309
18310 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
18311 GET_MODE_BITSIZE where appropriate.
18312 (widen_leading, expand_parity, expand_ctz, expand_ffs,
18313 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
18314 expand_float, expand_fix): Likewise.
18315 * expr.c (convert_move, convert_modes, expand_expr_real_2,
18316 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
18317 * stor-layout.c (get_mode_bounds): Likewise.
18318 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
18319 Likewise.
18320 * convert.c (convert_to_integer): Likewise.
18321 * expmed.c (expand_shift_1): Likewise.
18322
18323 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
18324 a bitsize.
18325
18326 * optabs.c (expand_binop): Tighten conditions for doubleword
18327 expansions.
18328 (widen_bswap): Assert that mode bitsize and precision are the same.
18329 * stor-layout.c (get_best_mode): Skip modes that have lower
18330 precision than bitsize.
18331 * recog.c (simplify_while_replacing): Assert that bitsize and
18332 precision are the same.
18333
18334 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18335
18336 * Makefile.in (LIBGCOV): Remove.
18337 (libgcc.mvars): Remove LIBGCOV.
18338 * libgov.c: Move to ../libgcc.
18339
18340 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18341
18342 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
18343
18344 2011-07-08 Martin Jambor <mjambor@suse.cz>
18345
18346 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
18347 is too big for total scalarization.
18348
18349 2011-07-07 Richard Henderson <rth@redhat.com>
18350
18351 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
18352 (DBX_DEBUGGING_INFO): Undef.
18353
18354 2011-07-07 Richard Henderson <rth@redhat.com>
18355
18356 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
18357 Handle some opcodes specially for debugging.
18358 * print-rtl.c: Include dwarf2out.h
18359 (print_rtx): Handle NOTE_INSN_CFI.
18360 * Makefile.in (print-rtl.o): Update.
18361
18362 2011-07-07 Richard Henderson <rth@redhat.com>
18363
18364 * tree-pass.h (pass_dwarf2_frame): Declare.
18365 * passes.c (init_optimization_passes): Add it.
18366 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
18367 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
18368 make static, do not call add_cfis_to_fde.
18369 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
18370 dwarf2out_frame_init): Merge into...
18371 (execute_dwarf2_frame): ... here. New function.
18372 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
18373 saved_do_cfi_asm to a tri-state variable.
18374 (gate_dwarf2_frame, pass_dwarf2_frame): New.
18375 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
18376 if it has yet to be done. Don't call dwarf2cfi_function_init.
18377 * dwarf2out.h, debug.h: Update decls.
18378 * final.c (final_start_function): Don't call
18379 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
18380 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
18381 * toplev.c (lang_dependent_init): Likewise.
18382
18383 2011-07-07 Richard Henderson <rth@redhat.com>
18384
18385 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
18386 FDE_TABLE_INCREMENT): Replace with...
18387 (fde_vec): ... this, a new vector.
18388 (current_fde): Remove. Replace all users with cfun->fde.
18389 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
18390 (size_of_aranges, dwarf2out_finish): Likewise.
18391 (dwarf2out_alloc_current_fde): Break out from ...
18392 (dwarf2out_begin_prologue): ... here.
18393 (dwarf2out_frame_init): Remove.
18394 * dwarf2cfi.c: Update all users of current_fde.
18395 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
18396 * dwarf2out.h: Update decls.
18397 (dw_fde_node): Add fde_index member.
18398 * function.h (struct function): Add fde member.
18399
18400 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18401 Richard Henderson <rth@redhat.com>
18402
18403 * dwarf2cfi.c (add_cfi): Remove.
18404 (dwarf2out_cfi_label): Remove force argument. Only generate the
18405 label name.
18406 (add_fde_cfi): Simplify the different code paths.
18407 (add_cie_cfi): New.
18408 (old_cfa, old_cfa_remember): New.
18409 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
18410 (last_reg_save_label): Remove.
18411 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
18412 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
18413 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
18414 dwarf2out_frame_debug_cfa_expression,
18415 dwarf2out_frame_debug_cfa_restore,
18416 dwarf2out_frame_debug_cfa_window_save,
18417 dwarf2out_frame_debug_expr): Remove label parameter.
18418 (cfi_label_required_p, add_cfis_to_fde): New.
18419 (dwarf2out_frame_debug_after_prologue): New.
18420 (dwarf2cfi_frame_init): Initialize old_cfa.
18421 (dwarf2out_frame_debug_restore_state): Likewise.
18422 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
18423 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
18424 * final.c (final_start_function): Call
18425 dwarf2out_frame_debug_after_prologue.
18426
18427 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18428 Richard Henderson <rth@redhat.com>
18429
18430 * dwarf2cfi.c (cfi_insn): New.
18431 (dwarf2out_cfi_label): Don't emit cfi label here.
18432 (add_fde_cfi): Create a NOTE_INSN_CFI.
18433 (dwarf2out_frame_debug): Setup cfi_insn.
18434 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
18435 (dwarf2out_cfi_begin_epilogue): Make static.
18436 (dwarf2out_frame_debug_restore_state): Make static.
18437 * dwarf2out.c (output_cfi_directive): Make static.
18438 (dwarf2out_emit_cfi): New.
18439 * dwarf2out.h: Update.
18440 * final.c (final): Remove CFI notes.
18441 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
18442 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
18443 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
18444 * insn-notes.def (NOTE_INSN_CFI): New.
18445 (NOTE_INSN_CFI_LABEL): New.
18446 * rtl.h (union rtunion_def): Add rt_cfi member.
18447 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
18448
18449 2011-07-07 Richard Henderson <rth@redhat.com>
18450
18451 * dwarf2cfi.c: New file.
18452 * Makefile.in (OBJS): Add it.
18453 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
18454 * gengtype.c (open_base_files): Include dwarf2out.h.
18455 * coretypes.h (enum var_init_status): Move from ...
18456 * rtl.h: ... here.
18457 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
18458 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
18459 expand_builtin_dwarf_sp_column, init_return_column_size,
18460 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
18461 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
18462 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
18463 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
18464 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
18465 compute_barrier_args_size, dwarf2out_args_size,
18466 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
18467 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
18468 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
18469 queue_reg_save, dwarf2out_flush_queued_reg_saves,
18470 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
18471 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
18472 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
18473 dwarf2out_frame_debug_cfa_expression,
18474 dwarf2out_frame_debug_cfa_restore,
18475 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
18476 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
18477 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
18478 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
18479 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
18480 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
18481 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
18482 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
18483 dw_loc_descr_node): Move to dwarf2out.h.
18484 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
18485 mem_loc_descriptor): Export.
18486 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
18487 (dwarf2out_frame_init): Extract CIE generation code to
18488 dwarf2cfi_frame_init.
18489
18490 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
18491
18492 PR target/49660
18493 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
18494 MASK_V8PLUS, remove commented out flag and reorder.
18495
18496 2011-07-07 Jakub Jelinek <jakub@redhat.com>
18497
18498 PR c/49644
18499 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
18500 one non-complex and one complex argument, call c_save_expr on both
18501 operands.
18502
18503 2011-07-07 Martin Jambor <mjambor@suse.cz>
18504
18505 PR middle-end/49495
18506 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
18507 (verify_cgraph_node): Some functinality moved to
18508 verify_edge_corresponds_to_fndecl, call it.
18509
18510 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18511
18512 * config.gcc (*local*): Remove.
18513 * doc/install-old.texi: Don't mention local configurations.
18514
18515 2011-07-07 Jakub Jelinek <jakub@redhat.com>
18516
18517 PR debug/49522
18518 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
18519 referencing debug insns that have been reset.
18520 (dead_debug_insert_before): Don't assert reg is non-NULL,
18521 instead return immediately if it is NULL.
18522
18523 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18524
18525 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
18526
18527 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18528
18529 * hw-doloop.c: New file.
18530 * hw-doloop.h: New file.
18531 * Makefile.in (OBJS): Add hw-doloop.o.
18532 (hw-doloop.o): New rule.
18533 ($(obj_out_file)): Add hw-doloop.h dependency.
18534 * config/bfin/bfin.c: Include "hw-doloop.h".
18535 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
18536 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
18537 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
18538 type changed to hwloop_info. Return bool, true if the loop was
18539 successfully optimized. Remove code that was moved to
18540 hw-doloop.c, and adjust other parts.
18541 (hwloop_fail): New static function, containing parts that used
18542 to be in bfin_optimize_loop.
18543 (bfin_discover_loop, bfin_discover_loops, free_loops,
18544 bfin_reorder_loops): Remove.
18545 (hwloop_pattern_reg): New static function.
18546 (bfin_doloop_hooks): New variable.
18547 (bfin_reorg_loops): Remove most code, call reorg_loops.
18548 * config/bfin/bfin.md (doloop_end splitter): Also enable if
18549 loop counter is a memory_operand.
18550
18551 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
18552
18553 * config.gcc: Support --with-multilib-list for x86 Linux targets.
18554
18555 * configure.ac: Mention x86-64 for --with-multilib-list.
18556 * configure: Regenerated.
18557
18558 * config/i386/gnu-user64.h (SPEC_64): Support x32.
18559 (SPEC_32): Likewise.
18560 (ASM_SPEC): Likewise.
18561 (LINK_SPEC): Likewise.
18562 (TARGET_THREAD_SSP_OFFSET): Likewise.
18563 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
18564 (SPEC_X32): New.
18565
18566 * config/i386/i386.h (TARGET_X32): New.
18567 (TARGET_LP64): New.
18568 (LONG_TYPE_SIZE): Likewise.
18569 (POINTER_SIZE): Likewise.
18570 (POINTERS_EXTEND_UNSIGNED): Likewise.
18571 (OPT_ARCH64): Support x32.
18572 (OPT_ARCH32): Likewise.
18573
18574 * config/i386/i386.opt (mx32): New.
18575
18576 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
18577 (GLIBC_DYNAMIC_LINKERX32): Likewise.
18578 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
18579 (GLIBC_DYNAMIC_LINKERX32): Likewise.
18580
18581 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
18582 (BIONIC_DYNAMIC_LINKERX32): Likewise.
18583 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
18584
18585 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
18586
18587 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
18588
18589 * doc/invoke.texi: Document -mx32.
18590
18591 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
18592
18593 * doc/invoke.texi (mwords-little-endian): Deprecate.
18594 * config/arm/arm.opt (mwords-little-endian): Likewise.
18595 * config/arm/arm.c (arm_option_override): Warn about the deprecation
18596 of -mwords-little-endian.
18597
18598 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
18599
18600 * reload1.c (choose_reload_regs): Use mode sizes to check whether
18601 an old reload register completely defines the required value.
18602
18603 2011-07-07 Richard Guenther <rguenther@suse.de>
18604
18605 * fold-const.c (fold_unary_loc): Do not strip sign-changes
18606 for NEGATE_EXPR.
18607
18608 2011-07-07 Richard Guenther <rguenther@suse.de>
18609
18610 * tree-vrp.c (simplify_conversion_using_ranges): New function.
18611 (simplify_stmt_using_ranges): Call it.
18612
18613 2011-07-07 Kai Tietz <ktietz@redhat.com>
18614
18615 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
18616 (lookup_logical_inverted_value): Likewise.
18617 (simplify_bitwise_binary_1): Likewise.
18618 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
18619
18620 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18621
18622 * gcc.c (%[Spec]): Don't document.
18623 (struct spec_list): Update comment.
18624 (do_spec_1): Don't handle %[Spec].
18625 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
18626
18627 2011-07-07 Joseph Myers <joseph@codesourcery.com>
18628
18629 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
18630 default based on TARGET_ASM_NAMED_SECTION.
18631 * common/common-target.def (have_named_sections): Default to true.
18632 * common/config/default-common.c: Don't include tm.h.
18633 * common/config/picochip/picochip-common.c
18634 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
18635 * common/config/m32c/m32c-common.c: Remove.
18636 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
18637 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18638 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18639 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18640 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18641 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18642 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
18643
18644 2011-07-07 Jakub Jelinek <jakub@redhat.com>
18645
18646 PR middle-end/49640
18647 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
18648 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
18649
18650 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18651
18652 PR libmudflap/49550
18653 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
18654
18655 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18656
18657 PR target/39150
18658 * configure.ac (gcc_cv_as_hidden): Also accept
18659 x86_64-*-solaris2.1[0-9]*.
18660 (gcc_cv_as_cfi_directive): Likewise.
18661 (gcc_cv_as_comdat_group_group): Likewise.
18662 (set_have_as_tls): Likewise.
18663 * configure: Regenerate.
18664 * config.gcc (i[34567]86-*-solaris2*): Also handle
18665 x86_64-*-solaris2.1[0-9]*.
18666 * config.host (i[34567]86-*-solaris2*): Likewise.
18667 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18668 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
18669 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
18670 (TARGET_LD_EMULATION): Use it.
18671 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
18672 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
18673 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
18674 (ASM_CPU64_DEFAULT_SPEC): Define.
18675 (ASM_CPU_SPEC): Use %(asm_cpu_default).
18676 (ASM_SPEC): Redefine.
18677 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
18678 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
18679 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
18680 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
18681 configuration.
18682 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
18683
18684 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18685
18686 * config/sol2.h (ASM_SPEC): Split into ...
18687 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
18688 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
18689 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
18690 (ASM_SPEC): Use ASM_SPEC_BASE.
18691 * config/sparc/sol2.h (ASM_SPEC): Redefine.
18692
18693 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
18694
18695 * config/avr/avr.md (*reload_insi): Change predicate #1 to
18696 const_int_operand. Ditto for peep2 producing this insn.
18697 Add argument to output_reload_insisf call.
18698 (*movsi,*movsf): Add argument to output_movsisf call.
18699 (*reload_insf): New insn and new peep2 to produce it.
18700 * config/avr/avr-protos.h (output_movsisf): Change prototype.
18701 (output_reload_insisf): Change prototype.
18702 * config/avr/avr.c (avr_asm_len): New function.
18703 (output_reload_insisf): Rewrite.
18704 (output_movsisf): Change prototype. output_reload_insisf for
18705 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
18706 (adjust_insn_length): Add argument to output_movsisf and
18707 output_reload_insisf call.
18708
18709 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
18710
18711 * emit-rtl.c (paradoxical_subreg_p): New function.
18712 * rtl.h (paradoxical_subreg_p): Declare.
18713 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
18714 apply_distributive_law, simplify_comparison, simplify_set): Use it.
18715 * cse.c (record_jump_cond, cse_insn): Likewise.
18716 * expr.c (force_operand): Likewise.
18717 * rtlanal.c (num_sign_bit_copies1): Likewise.
18718 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
18719 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
18720 (push_reload): Use precision to check for paradoxical subregs.
18721 * expmed.c (extract_bit_field_1): Likewise.
18722
18723 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
18724 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
18725 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
18726 simplify_set, simplify_logical, expand_compound_operation,
18727 make_extraction, force_to_mode, if_then_else_cond, extended_count,
18728 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
18729 record_value_for_reg): Likewise.
18730 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
18731 * simplify-rtx. c (simplify_unary_operation_1,
18732 simplify_binary_operation_1, simplify_const_relational_operation):
18733 Likewise.
18734
18735 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
18736 instead of GET_MODE_BITSIZE where appropriate.
18737 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
18738 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
18739 init_num_sign_bit_copies_in_rep): Likewise.
18740 * cse.c (fold_rtx, cse_insn): Likewise.
18741 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
18742 * simplify-rtx.c (simplify_unary_operation_1,
18743 simplify_const_unary_operation, simplify_binary_operation_1,
18744 simplify_const_binary_operation, simplify_ternary_operation,
18745 simplify_const_relational_operation, simplify_subreg): Likewise.
18746 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
18747 simplify_if_then_else, simplify_set, expand_compound_operation,
18748 expand_field_assignment, make_extraction, if_then_else_cond,
18749 make_compound_operation, force_to_mode, make_field_assignment,
18750 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
18751 extended_count, try_widen_shift_mode, simplify_shift_const_1,
18752 simplify_comparison, record_promoted_value, simplify_compare_const,
18753 record_dead_and_set_regs_1): Likewise.
18754
18755 Revert:
18756 * simplify-rtx.c (simplify_const_binary_operation): Use the
18757 shift_truncation_mask hook instead of performing modulo by width.
18758 Compare against mode precision, not bitsize.
18759 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
18760 Use shift_truncation_mask instead of constructing the value manually.
18761
18762 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18763
18764 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
18765 declaration.
18766 (rs6000_save_toc_in_prologue_p): Ditto.
18767
18768 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
18769 up the static chain (r11) during indirect function calls.
18770 (-msave-toc-indirect): New undocumented debug switch.
18771
18772 * config/rs6000/rs6000.c (struct machine_function): Add
18773 save_toc_in_prologue field to note whether the prologue needs to
18774 save the TOC value in the reserved stack location.
18775 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
18776 to save the TOC in the prologue, do so.
18777 (rs6000_trampoline_init): Don't allow creating AIX style
18778 trampolines if -mno-r11 is in effect.
18779 (rs6000_call_indirect_aix): New function to create AIX style
18780 indirect calls, adding support for -mno-r11 to suppress loading
18781 the static chain, and saving the TOC in the prologue instead of
18782 the call body.
18783 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
18784 TOC in the prologue.
18785
18786 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
18787 register numbers.
18788 (TOC_REGNUM): Ditto.
18789 (STATIC_CHAIN_REGNUM): Ditto.
18790 (ARG_POINTER_REGNUM): Ditto.
18791 (SFP_REGNO): Delete, unused.
18792 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
18793 function descriptor offsets.
18794 (TOC_SAVE_OFFSET_64BIT): Ditto.
18795 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
18796 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
18797 (AIX_FUNC_DESC_SC_32BIT): Ditto.
18798 (AIX_FUNC_DESC_SC_64BIT): Ditto.
18799 (ptrload): New mode attribute for the appropriate load of a pointer.
18800 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
18801 (call_indirect_aix64): Ditto.
18802 (call_value_indirect_aix32): Ditto.
18803 (call_value_indirect_aix64): Ditto.
18804 (call_indirect_nonlocal_aix32_internal): Ditto.
18805 (call_indirect_nonlocal_aix32): Ditto.
18806 (call_indirect_nonlocal_aix64_internal): Ditto.
18807 (call_indirect_nonlocal_aix64): Ditto.
18808 (call): Rewrite AIX indirect function calls. Add support for
18809 eliminating the static chain, and for moving the save of the TOC
18810 to the function prologue.
18811 (call_value): Ditto.
18812 (call_indirect_aix<ptrsize>): Ditto.
18813 (call_indirect_aix<ptrsize>_internal): Ditto.
18814 (call_indirect_aix<ptrsize>_internal2): Ditto.
18815 (call_indirect_aix<ptrsize>_nor11): Ditto.
18816 (call_value_indirect_aix<ptrsize>): Ditto.
18817 (call_value_indirect_aix<ptrsize>_internal): Ditto.
18818 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
18819 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
18820 (call_nonlocal_aix32): Relocate in the rs6000.md file.
18821 (call_nonlocal_aix64): Ditto.
18822
18823 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
18824 -mno-r11 documentation.
18825
18826 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
18827
18828 PR other/49658
18829 * doc/extend.texi (Compound Literals): Fix typo.
18830
18831 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
18832
18833 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
18834
18835 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
18836
18837 * configure.ac (plugin-version.h): Generate
18838 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
18839 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
18840 macros.
18841
18842 * configure: Regenerate.
18843
18844 * doc/plugins.texi (Building GCC plugins): Mention
18845 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
18846
18847 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
18848
18849 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
18850 * combine.c (make_extraction, gen_lowpart_or_truncate,
18851 apply_distributive_law, simplify_comparison,
18852 reg_truncated_to_mode, record_truncated_value): Use it.
18853 * cse.c (notreg_cost): Likewise.
18854 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18855 * expr.c (convert_move, convert_modes): Likewise.
18856 * optabs.c (expand_binop, expand_unop): Likewise.
18857 * postreload.c (move2add_last_label): Likewise.
18858 * regmove.c (optimize_reg_copy_3): Likewise.
18859 * rtlhooks.c (gen_lowpart_general): Likewise.
18860 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18861
18862 2011-07-06 Joseph Myers <joseph@codesourcery.com>
18863
18864 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
18865
18866 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
18867
18868 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
18869 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
18870 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
18871 (simplify_const_unary_operation, simplify_binary_operation_1,
18872 simplify_const_binary_operation, simplify_const_relational_operation):
18873 Use them. Use GET_MODE_MASK for masking and sign-extensions.
18874 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
18875 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
18876 simplify_shift_const_1, simplify_comparison): Likewise.
18877 * expr.c (convert_modes): Likewise.
18878 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
18879 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
18880 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
18881
18882 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
18883
18884 2011-07-06 Richard Guenther <rguenther@suse.de>
18885
18886 PR tree-optimization/49645
18887 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
18888 register variables.
18889 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
18890 in type qualification here ...
18891 (copy_reference_ops_from_ref): ... not here.
18892 (vn_reference_lookup_3): ... or here.
18893 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
18894 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
18895
18896 2011-07-06 Ian Lance Taylor <iant@google.com>
18897
18898 * doc/install.texi (Configuration): It's
18899 --enable-gnu-indirect-function, not --enable-indirect-function.
18900
18901 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
18902
18903 * simplify-rtx.c (simplify_const_binary_operation): Use the
18904 shift_truncation_mask hook instead of performing modulo by width.
18905 Compare against mode precision, not bitsize.
18906 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
18907 Use shift_truncation_mask instead of constructing the value manually.
18908
18909 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
18910
18911 PR middle-end/47383
18912 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
18913 address computation and convert to address_mode if needed.
18914
18915 2011-07-06 Richard Guenther <rguenther@suse.de>
18916
18917 * tree.c (build_common_tree_nodes_2): Merge with
18918 build_common_tree_nodes.
18919 * tree.h (build_common_tree_nodes): Adjust prototype.
18920 (build_common_tree_nodes_2): Remove.
18921 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
18922 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
18923
18924 2011-07-05 Jakub Jelinek <jakub@redhat.com>
18925
18926 PR tree-optimization/49618
18927 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
18928 t recurse on the decl.
18929 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
18930 return true if expr isn't known to be defined in current
18931 TU or some other LTO partition.
18932
18933 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18934
18935 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
18936 override CASE_VALUES_THRESHOLD.
18937
18938 * stmt.c (toplevel): Include params.h.
18939 (case_values_threshold): Use the --param case-values-threshold
18940 value if non-zero, otherwise use machine dependent value.
18941 (expand_case): Use case_values_threshold.
18942
18943 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
18944
18945 * doc/invoke.texi (--param case-values-threshold): Document.
18946
18947 2011-07-05 Richard Henderson <rth@redhat.com>
18948
18949 * dwarf2out.c (dwarf2out_cfi_label): Make static.
18950 (dwarf2out_flush_queued_reg_saves): Make static.
18951 (dwarf2out_reg_save): Remove.
18952 (dwarf2out_return_save): Remove.
18953 (dwarf2out_return_reg): Remove.
18954 (dwarf2out_reg_save_reg): Remove.
18955 (dwarf2out_def_cfa): Merge into ...
18956 (dwarf2out_frame_init): ... here.
18957 * dwarf2out.h, tree.h: Remove declarations as necessary.
18958
18959 2011-07-05 Richard Henderson <rth@redhat.com>
18960
18961 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
18962 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
18963 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
18964 the alloc insn.
18965
18966 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
18967 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
18968 (process_epilogue): Don't call dwarf2out_def_cfa.
18969
18970 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
18971 indicate the return address save.
18972 (process_cfa_register): Likewise.
18973
18974 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
18975 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
18976
18977 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
18978 for ar.pfs save at alloc insn.
18979
18980 2011-07-05 Richard Henderson <rth@redhat.com>
18981
18982 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
18983 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
18984 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
18985 stack pointer save.
18986 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
18987 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
18988 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
18989 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
18990
18991 2011-07-05 Richard Henderson <rth@redhat.com>
18992
18993 * config/vax/vax.md (define_c_enum unspecv): New. Define the
18994 VUNSPEC_* constants here instead of via define_constants.
18995 (VUNSPEC_PEM): New constant.
18996 (procedure_entry_mask): New insn.
18997 (prologue): New expander.
18998 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
18999 (vax_expand_prologue): Rename from vax_output_function_prologue;
19000 emit rtl instead of text.
19001 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
19002 (print_operand): Add 'x' prefix.
19003
19004 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
19005
19006 PR middle-end/47715
19007 * calls.c (precompute_register_parameters): Promote the function
19008 argument before checking non-legitimate constant.
19009
19010 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19011
19012 PR tree-optimization/47654
19013 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
19014 (lst_do_strip_mine_loop): Return an int.
19015 (lst_do_strip_mine): Same.
19016 (scop_do_strip_mine): Same.
19017 (scop_do_block): Loop blocking should strip-mine at least two loops.
19018 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
19019 (scop_do_interchange): Same.
19020 * graphite-poly.h (scop_do_interchange): Update declaration.
19021 (scop_do_strip_mine): Same.
19022
19023 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19024
19025 * graphite-clast-to-gimple.c (precision_for_value): Removed.
19026 (precision_for_interval): Removed.
19027 (gcc_type_for_interval): Use mpz_sizeinbase.
19028
19029 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19030
19031 * graphite-ppl.h (value_max): Correct computation of max.
19032
19033 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
19034
19035 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
19036
19037 2011-07-05 Richard Guenther <rguenther@suse.de>
19038
19039 * c-decl.c (c_init_decl_processing): Defer building common
19040 tree nodes to c_common_nodes_and_builtins.
19041
19042 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
19043
19044 PR tree-optimization/49580
19045 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
19046 the loop's number of iterations.
19047 * tree-parloops.c (transform_to_exit_first_loop): Add the
19048 handling of the loop's number of iterations before the call
19049 to gimple_duplicate_sese_tail.
19050 Insert the stmt caclculating the new rhs of the loop's
19051 condition stmt to the preheader instead of iters_bb.
19052
19053 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
19054
19055 PR rtl-optimization/47449
19056 * fwprop.c (forward_propagate_subreg): Don't propagate hard
19057 register nor zero/sign extended hard register.
19058
19059 2011-07-05 Richard Guenther <rguenther@suse.de>
19060
19061 PR tree-optimization/49518
19062 PR tree-optimization/49628
19063 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
19064 irrelevant and invariant data-references.
19065 (vect_analyze_data_ref_access): For invariant loads clear the
19066 group association.
19067
19068 2011-07-04 Jakub Jelinek <jakub@redhat.com>
19069
19070 PR rtl-optimization/49619
19071 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
19072 pass VOIDmode as op0_mode to recursive call, and return temp even
19073 when different from tor, just if it is not IOR of the original
19074 PLUS arguments.
19075
19076 PR rtl-optimization/49472
19077 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
19078 negating MULT, negate the second operand instead of first.
19079 (simplify_binary_operation_1) <case MULT>: If one operand is
19080 a NEG and the other is MULT, don't attempt to optimize by negation
19081 of the MULT operand if it only moves the NEG operation around.
19082
19083 PR debug/49602
19084 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
19085 get_current_def return value if it can't be trusted to be
19086 the current value of the variable in the current bb.
19087
19088 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
19089
19090 PR target/49600
19091 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
19092 general register to memory for !TARGET_INTER_UNIT_MOVES.
19093
19094 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
19095
19096 PR target/44643
19097 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
19098 instead of TREE_READONLY.
19099
19100 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
19101
19102 * doc/extend.texi (AVR Built-in Functions): Update documentation
19103 of __builtin_avr_fmul*.
19104 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
19105 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
19106 * config/avr/avr.md (fmul): Rename to fmul_insn.
19107 (fmuls): Rename to fmuls_insn.
19108 (fmulsu): Rename to fmulsu_insn.
19109 (fmul,fmuls,fmulsu): New expander.
19110 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
19111 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
19112 * config/avr/libgcc.S (__fmul): New function.
19113 (__fmuls): New function.
19114 (__fmulsu,__fmulsu_exit): New function.
19115
19116 2011-07-04 Richard Guenther <rguenther@suse.de>
19117
19118 PR tree-optimization/49615
19119 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
19120 basic-block index check.
19121
19122 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
19123
19124 * longlong.h (count_leading_zeros, count_trailing_zeros,
19125 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
19126 resp. 64.
19127
19128 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
19129
19130 PR tree-optimization/49610
19131 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
19132 a basic block.
19133
19134 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
19135 Olivier Hainque <hainque@adacore.com>
19136 Nicolas Setton <setton@adacore.com>
19137
19138 * tree.h (TYPE_ARTIFICIAL): New flag.
19139 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
19140 the DIE of the type if it is artificial.
19141 (gen_array_type_die): Likewise.
19142 (gen_enumeration_type_die): Likewise.
19143 (gen_struct_or_union_type_die): Likewise.
19144 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
19145 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
19146
19147 2011-07-01 Jakub Jelinek <jakub@redhat.com>
19148
19149 * tree-object-size.c (pass_through_call): Handle
19150 BUILT_IN_ASSUME_ALIGNED.
19151
19152 2011-07-01 Martin Jambor <mjambor@suse.cz>
19153
19154 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
19155
19156 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
19157
19158 PR middle-end/48016
19159 * explow.c (update_nonlocal_goto_save_area): Use proper mode
19160 for stack save area.
19161 * function.c (expand_function_start): Likewise.
19162
19163 2011-07-01 Richard Guenther <rguenther@suse.de>
19164
19165 PR middle-end/49596
19166 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
19167 may have unknown refs.
19168
19169 2011-07-01 Kai Tietz <ktietz@redhat.com>
19170
19171 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
19172
19173 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19174
19175 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
19176 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
19177 (Specific, mips-sgi-irix6): Likewise.
19178
19179 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19180
19181 PR libmudflap/49549
19182 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
19183
19184 2011-07-01 Jakub Jelinek <jakub@redhat.com>
19185
19186 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
19187 [idx]= and [idx1 ... idx2]= before initializers if needed for
19188 array initializers.
19189
19190 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
19191
19192 * config.gcc (score-*-elf): Remove score7.o.
19193 * config/score/t-score-elf: Likewise.
19194 * config/score/score.c: Merge score7 to score.c and
19195 remove forwarding functions.
19196 * config/score/score7.c: Deleted.
19197 * config/score/score7.h: Deleted.
19198
19199 2011-07-01 Richard Guenther <rguenther@suse.de>
19200
19201 PR tree-optimization/49603
19202 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
19203
19204 2011-06-30 Martin Jambor <mjambor@suse.cz>
19205
19206 * tree-sra.c (struct access): Rename total_scalarization to
19207 grp_total_scalarization
19208 (completely_scalarize_var): New function.
19209 (sort_and_splice_var_accesses): Set total_scalarization in the
19210 representative access.
19211 (analyze_access_subtree): Propagate total scalarization accross the
19212 tree, no holes in totally scalarized trees, simplify coverage
19213 computation.
19214 (analyze_all_variable_accesses): Call completely_scalarize_var instead
19215 of completely_scalarize_record.
19216
19217 2011-06-30 Richard Henderson <rth@redhat.com>
19218
19219 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
19220 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
19221 * config/i386/i386.c: Don't include dwarf2out.h.
19222 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
19223 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
19224 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
19225 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
19226 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
19227
19228 2011-06-30 Richard Henderson <rth@redhat.com>
19229
19230 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
19231 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
19232 * final.c (final_scan_insn): Look for it, and invoke
19233 dwarf2out_frame_debug before the insn if found.
19234
19235 2011-06-30 Richard Henderson <rth@redhat.com>
19236
19237 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
19238 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
19239
19240 2011-06-30 Richard Henderson <rth@redhat.com>
19241
19242 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
19243 Define a vector of this type.
19244 (regs_saved_in_regs): Use a VEC.
19245 (num_regs_saved_in_regs): Remove.
19246 (compare_reg_or_pc): New.
19247 (record_reg_saved_in_reg): Split out from...
19248 (dwarf2out_flush_queued_reg_saves): ... here.
19249 (clobbers_queued_reg_save): Update for VEC.
19250 (reg_saved_in): Likewise.
19251 (dwarf2out_frame_debug_init): Likewise.
19252 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
19253 (dwarf2out_frame_debug_cfa_register): Likewise.
19254
19255 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
19256
19257 PR tree-optimization/49572
19258 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
19259 type of the RHS instead of that of the LHS for the expression type.
19260
19261 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
19262
19263 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
19264 unconditionally.
19265
19266 2011-06-30 Richard Guenther <rguenther@suse.de>
19267
19268 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
19269 * tree-ssa-structalias.c (create_variable_info_for): Do not
19270 add initial constraints for non-var-decls. Properly handle
19271 globals in other ltrans partitions.
19272 (intra_create_variable_infos): Manually create constraints for
19273 the fake no-alias parameter.
19274 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
19275 and assert there are no clones.
19276
19277 2011-06-30 Richard Guenther <rguenther@suse.de>
19278
19279 PR tree-optimization/46787
19280 * tree-data-ref.c (dr_address_invariant_p): Remove.
19281 (find_data_references_in_stmt): Invariant accesses are ok now.
19282 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
19283 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19284 invariant loads.
19285
19286 2011-06-30 Martin Jambor <mjambor@suse.cz>
19287
19288 PR tree-optimization/49094
19289 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
19290 (build_accesses_from_assign): Use it.
19291
19292 2011-06-30 Jakub Jelinek <jakub@redhat.com>
19293
19294 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
19295 handling of BUILT_IN_ASSUME_ALIGNED.
19296
19297 PR debug/49364
19298 * dwarf2out.c (output_abbrev_section): Don't return early
19299 if abbrev_die_table_in_use is 1.
19300 (dwarf2out_finish): Instead don't call output_abbrev_section
19301 nor emit abbrev_section_label in that case.
19302
19303 2011-06-30 Nick Clifton <nickc@redhat.com>
19304
19305 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
19306 for the V850E.
19307
19308 2011-06-30 Jakub Jelinek <jakub@redhat.com>
19309
19310 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
19311 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
19312
19313 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
19314
19315 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
19316 both pattern and original statements if necessary.
19317 (vect_transform_loop): Likewise.
19318 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
19319 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
19320 Mark the pattern statement only if the original statement doesn't
19321 have its own uses.
19322 (process_use): Call vect_mark_relevant with additional parameter.
19323 (vect_mark_stmts_to_be_vectorized): Likewise.
19324 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
19325 (vect_analyze_stmt): Handle both pattern and original statements
19326 if necessary.
19327 (vect_transform_stmt): Don't store vectorized pattern statement
19328 in the original statement.
19329 (vect_is_simple_use_1): Use related pattern statement only if the
19330 original statement is irrelevant.
19331 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
19332
19333 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
19334
19335 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
19336 option.
19337 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
19338 entry.
19339 (TARGET_AVX128_OPTIMAL): New definition.
19340 * config/i386/i386.c (initial_ix86_tune_features): Initialize
19341 X86_TUNE_AVX128_OPTIMAL entry.
19342 (ix86_option_override_internal): Enable the generation
19343 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
19344 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
19345 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
19346
19347 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
19348
19349 PR tree-optimization/49539
19350 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
19351 names by means of stmt_references_abnormal_ssa_name.
19352 (associate_plusminus): Call can_propagate_from before propagating
19353 from definition statements.
19354 (ssa_forward_propagate_and_combine): Remove superfluous newline.
19355
19356 2011-06-29 Richard Guenther <rguenther@suse.de>
19357
19358 * doc/invoke.texi: Document -scev dump modifier.
19359 * tree-pass.h (TDF_SCEV): New dump flag.
19360 * tree-dump.c (dump_option_value_in): Add scev.
19361 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
19362 * tree-scalar-evolution.c: Likewise.
19363
19364 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
19365
19366 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
19367 (cxa_type_match): Correct declaration.
19368 (__gnu_unwind_pr_common): Reconstruct additional indirection
19369 when __cxa_type_match returns succeeded_with_ptr_to_base.
19370
19371 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19372
19373 PR rtl-optimization/49114
19374 * reload.c (struct replacement): Remove SUBREG_LOC member.
19375 (push_reload): Do not set it.
19376 (push_replacement): Likewise.
19377 (subst_reload): Remove dead code.
19378 (copy_replacements): Remove assertion.
19379 (copy_replacements_1): Do not handle SUBREG_LOC.
19380 (move_replacements): Likewise.
19381 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
19382 Detect subregs via recursive descent instead of via SUBREG_LOC.
19383
19384 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
19385
19386 * config/avr/avr.c (avr_encode_section_info): Dispatch to
19387 default_encode_section_info.
19388
19389 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
19390
19391 PR tree-optimization/49545
19392 * builtins.c (get_object_alignment_1): Update function comment.
19393 Do not use DECL_ALIGN for functions, but test
19394 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
19395 * fold-const.c (get_pointer_modulus_and_residue): Don't check
19396 for functions here.
19397 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
19398
19399 2011-06-29 Jakub Jelinek <jakub@redhat.com>
19400
19401 PR debug/49567
19402 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
19403 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
19404
19405 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
19406
19407 PR target/34734
19408 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
19409 about uninitialized data attributed 'progmem' from here...
19410 (avr_encode_section_info): ...to this new function.
19411 (TARGET_ENCODE_SECTION_INFO): New define.
19412 (avr_section_type_flags): For data in ".progmem.data", remove
19413 section flag SECTION_WRITE.
19414
19415 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
19416
19417 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
19418 _xmulhisi3_exit.
19419 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
19420 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
19421 (__umulhisi3): Ditto.
19422 * config/avr/avr.md (mulhisi3): New insn expender.
19423 (umulhisi3): New insn expender.
19424 (*mulhisi3_call): New insn.
19425 (*umulhisi3_call): New insn.
19426
19427 2011-06-28 Joseph Myers <joseph@codesourcery.com>
19428
19429 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
19430
19431 2011-06-28 Richard Henderson <rth@redhat.com>
19432
19433 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
19434 all code and arguments that handled pushes. Update all callers.
19435
19436 2011-06-28 Richard Henderson <rth@redhat.com>
19437
19438 * config/arm/arm.c (arm_output_function_prologue): Don't call
19439 thumb1_output_function_prologue.
19440 (arm_expand_prologue): Avoid dead store.
19441 (number_of_first_bit_set): Use ctz_hwi.
19442 (thumb1_emit_multi_reg_push): New.
19443 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
19444 to emit the entire prologue as rtl.
19445 (thumb1_output_interwork): Split out from
19446 thumb1_output_function_prologue.
19447 (thumb1_output_function_prologue): Remove.
19448 (arm_attr_length_push_multi): Handle thumb1.
19449 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
19450 (prologue_thumb1_interwork): New.
19451 (*push_multi): Allow thumb1; use push_mult_memory_operand.
19452 * config/arm/predicates.md (push_mult_memory_operand): New.
19453
19454 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
19455
19456 * config/sparc/sync.md (*stbar): Delete.
19457 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
19458
19459 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
19460
19461 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
19462
19463 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19464
19465 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
19466 (TARGET_64BIT_DEFAULT): Define.
19467 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
19468 of tm_file.
19469 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
19470
19471 2011-06-28 Joseph Myers <joseph@codesourcery.com>
19472
19473 * common.opt (in_lto_p): New Variable entry.
19474 * flags.h (in_lto_p): Move to common.opt.
19475 * gcc.c: Include params.h.
19476 (set_option_handlers): Also use common_handle_option and
19477 target_handle_option.
19478 (main): Call global_init_params, finish_params and init_options_struct.
19479 * opts.c (debug_type_names): Move from toplev.c.
19480 (print_filtered_help): Access quiet_flag through opts pointer.
19481 (common_handle_option): Return early in the driver for some options.
19482 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
19483 opts pointer.
19484 * toplev.c (in_lto_p): Move to common.opt.
19485 (debug_type_names): Move to opts.c.
19486 * Makefile.in (OBJS): Remove opts.o.
19487 (OBJS-libcommon-target): Add opts.o.
19488 (gcc.o): Update dependencies.
19489
19490 2011-06-28 Kai Tietz <ktietz@redhat.com>
19491
19492 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
19493
19494 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19495
19496 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
19497 with '=' constraint modifier.
19498 (*divdf3_vfp): Likewise.
19499 ("*mulsf3_vfp"): Likewise.
19500 ("*muldf3_vfp"): Likewise.
19501 ("*mulsf3negsf_vfp"): Likewise.
19502 ("*muldf3negdf_vfp"): Likewise.
19503
19504 2011-06-28 Nick Clifton <nickc@redhat.com>
19505
19506 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
19507 relaxation when performing an incremental link.
19508
19509 2011-06-28 Kai Tietz <ktietz@redhat.com>
19510
19511 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
19512 within BB from last to first.
19513
19514 2011-06-28 Joseph Myers <joseph@codesourcery.com>
19515
19516 * genattr-common.c: New. Based on genattr.c.
19517 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
19518 (MOSTLYCLEANFILES): Add insn-attr-common.h.
19519 (opts.o): Update dependencies.
19520 (.PRECIOUS): Add insn-attr-common.h.
19521 (simple_rtl_generated_h): Add insn-attr-common.h.
19522 (build/genattr-common.o): New.
19523 (genprogrtl): Add attr-common.
19524 * genattr.c (main): Include insn-attr-common.h. Don't generate
19525 definitions of DELAY_SLOTS or INSN_SCHEDULING.
19526 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
19527
19528 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
19529
19530 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
19531 avr-*-* and avr-*-rtems* targets.
19532
19533 * config/avr/elf.h: New file.
19534 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
19535 (TARGET_ASM_SELECT_SECTION): Define.
19536 (INIT_SECTION_ASM_OP): Undefine.
19537 (FINI_SECTION_ASM_OP): Undefine.
19538 (READONLY_DATA_SECTION_ASM_OP): Undefine.
19539 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
19540 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
19541 * config/avr/avr.h:
19542 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
19543 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
19544 (MAX_OFILE_ALIGNMENT): Move to elf.h.
19545 (STRING_LIMIT): Move to elf.h.
19546 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
19547 (ASM_DECLARE_OBJECT_NAME): Remove.
19548 (ESCAPES): Remove.
19549 (ASM_OUTPUT_SKIP): Remove.
19550 (DWARF2_DEBUGGING_INFO): Remove.
19551 (OBJECT_FORMAT_ELF): Remove.
19552 (USER_LABEL_PREFIX): Remove.
19553 (ASM_OUTPUT_EXTERNAL): Remove.
19554 (ASM_OUTPUT_ASCII): Remove.
19555 (TYPE_ASM_OP): Remove.
19556 (SIZE_ASM_OP): Remove.
19557 (WEAK_ASM_OP): Remove.
19558 (STRING_ASM_OP): Remove.
19559 (SET_ASM_OP): Remove.
19560 (ASM_WEAKEN_LABEL): Remove.
19561 (TYPE_OPERAND_FMT): Remove.
19562 (ASM_DECLARE_FUNCTION_SIZE): Remove.
19563 (ASM_FINISH_DECLARE_OBJECT): Remove.
19564 (NO_DOLLAR_IN_LABEL): Remove.
19565 (ASM_GENERATE_INTERNAL_LABEL): Remove.
19566 (ASM_OUTPUT_CASE_LABEL): Remove.
19567 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
19568 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
19569 (gas_output_ascii): Remove.
19570 (gas_output_limited_string): Remove.
19571 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
19572 * config/avr/avr-protos.h
19573 (gas_output_ascii): Remove prototye.
19574 (gas_output_limited_string): Remove prototype.
19575
19576 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
19577
19578 PR target/48637
19579 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
19580 asm operands.
19581
19582 2011-06-27 Jan Hubicka <jh@suse.cz>
19583
19584 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
19585 node instead of references in node.
19586
19587 2011-06-27 Richard Henderson <rth@redhat.com>
19588
19589 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
19590 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
19591 inside ifdef.
19592
19593 2011-06-27 Jakub Jelinek <jakub@redhat.com>
19594
19595 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
19596
19597 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
19598 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
19599 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
19600 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
19601 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
19602 (evaluate_stmt, execute_fold_all_builtins): Handle
19603 BUILT_IN_ASSUME_ALIGNED.
19604 * tree-ssa-dce.c (propagate_necessity): Likewise.
19605 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19606 call_may_clobber_ref_p_1): Likewise.
19607 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
19608 (expand_builtin_assume_aligned): New function.
19609 * doc/extend.texi (__builtin_assume_aligned): Document.
19610
19611 PR debug/49544
19612 * cselib.c (promote_debug_loc): If cselib_preserve_constants
19613 and l has two DEBUG_INSN owned locs instead of just one, adjust
19614 the second location's setting_insn too.
19615
19616 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19617
19618 PR libmudflap/38738
19619 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
19620
19621 2011-06-27 Nick Clifton <nickc@redhat.com>
19622
19623 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
19624 bit position of highest bit set into a count of the high zero bits.
19625
19626 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19627
19628 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
19629
19630 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19631
19632 PR lto/48492
19633 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
19634 to a NULL parent.
19635
19636 2011-06-27 Richard Guenther <rguenther@suse.de>
19637
19638 PR tree-optimization/49394
19639 * passes.c (execute_one_pass): Restore current_pass after
19640 applying IPA transforms.
19641
19642 2011-06-27 Kai Tietz <ktietz@redhat.com>
19643
19644 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
19645 out of type precision after operation.
19646 (find_bswap): Take for limit value the integer auto-promotion
19647 into account.
19648
19649 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19650
19651 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
19652 forward scan as well.
19653
19654 2011-06-27 Tristan Gingold <gingold@adacore.com>
19655
19656 PR target/44241
19657 * config/vms/vms-protos.h: New file.
19658 * config/vms/vms-crtlmap.map: New file.
19659 * config/vms/vms.c: New file.
19660 * config/vms/make-crtlmap.awk: New file.
19661 * config/vms/vms-crtl.h: File removed.
19662 * config/vms/vms-crtl-64.h: File removed.
19663 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
19664 * config/alpha/vms64.h: Do not include vms-crtl-64.h
19665 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
19666 clear some builtins on VMS. Calls vms_patch_builtins.
19667 (avms_asm_output_external): Remove.
19668 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
19669 (struct crtl_name_spec): Remove
19670 (DO_CTRL_NAMES): Remove.
19671 * config/ia64/vms.h (struct crtl_name_spec): Remove
19672 (DO_CTRL_NAMES): Remove.
19673 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
19674 clear some builtins on VMS. Calls vms_patch_builtins.
19675 (ia64_asm_output_external): Remove DO_CRTL_NAME.
19676 * config/ia64/vms64.h: Do not include vms-crtl-64.h
19677 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
19678
19679 2011-06-27 Tristan Gingold <gingold@adacore.com>
19680
19681 * config/alpha/alpha.c (alpha_end_function): Always generate .end
19682 directive on VMS.
19683
19684 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
19685
19686 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
19687 the function receives nonlocal gotos.
19688
19689 2011-06-27 Richard Guenther <rguenther@suse.de>
19690
19691 PR tree-optimization/49536
19692 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19693 For non-scalar inner types use a scalar type according to
19694 the scalar inner mode.
19695
19696 2011-06-27 Richard Guenther <rguenther@suse.de>
19697
19698 PR tree-optimization/49365
19699 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
19700
19701 2011-06-27 Richard Guenther <rguenther@suse.de>
19702
19703 PR tree-optimization/49169
19704 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
19705 the alignment of function decls.
19706
19707 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
19708
19709 PR target/47997
19710 * config/darwin.c (darwin_mergeable_string_section): Place string
19711 constants in '.cstring' rather than '.const' when CF/NSStrings are
19712 active.
19713
19714 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
19715
19716 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
19717 (emit_save_register_window): Likewise.
19718 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
19719 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
19720 Swap back %o7/%i7 in register naming.
19721
19722 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
19723
19724 PR driver/49371
19725 * config/darwin.c (darwin_override_options): Improve warning when
19726 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
19727 is given with fpie/fPIE.
19728 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
19729 * config/darwin9.h (PIE_SPEC): New.
19730
19731 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
19732
19733 * timevar.c (timevar_print): Increase width for display of timevar
19734 name.
19735
19736 2011-06-24 Jakub Jelinek <jakub@redhat.com>
19737
19738 PR c++/46400
19739 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
19740 instead of TYPE_CHAIN for chain_next for types.
19741
19742 2011-06-24 Richard Henderson <rth@redhat.com>
19743
19744 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
19745 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
19746 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
19747 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
19748 (sparc_flat_expand_prologue): Emit individual instructions
19749 instead of one of the above.
19750
19751 2011-06-24 Easwaran Raman <eraman@google.com>
19752
19753 PR rtl-optimization/49429
19754 PR target/49454
19755 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
19756 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
19757 used to copy y into x.
19758 * calls.c (initialize_argument_information): Mark
19759 an argument addressable if it is passed by invisible reference.
19760 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
19761 if it is passed by reference.
19762
19763 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
19764
19765 PR rtl-optimization/49504
19766 * rtlanal.c (nonzero_bits1): Properly handle addition or
19767 subtraction of a pointer in Pmode if pointers extend unsigned.
19768 (num_sign_bit_copies1): Likewise.
19769
19770 2011-06-24 Martin Jambor <mjambor@suse.cz>
19771
19772 PR tree-optimizations/49516
19773 * tree-sra.c (sra_modify_assign): Choose the safe path for
19774 aggregate copies if we also did scalar replacements.
19775
19776 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19777
19778 PR target/49335
19779 * config/arm/predicates.md (add_operator): New.
19780 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
19781
19782 2011-06-24 Andi Kleen <ak@linux.intel.com>
19783
19784 * tree-sra.c (type_internals_preclude_sra_p): Add msg
19785 parameter. Split up ifs and report reason in *msg.
19786 (reject): Add.
19787 (find_var_candiate): Add msg variable.
19788 Split up ifs and report reason to reject.
19789 (find_param_candidates): Add msg variable.
19790 Pass msg to type_internals_preclude_sra_p.
19791
19792 2011-06-23 Jeff Law <law@redhat.com>
19793
19794 PR middle-end/48770
19795 * reload.h (reload): Change to return a bool.
19796 * ira.c (ira): If requested by reload, run a fast DCE pass after
19797 reload has completed. Fix comment typo.
19798 * reload1.c (need_dce): New file scoped static.
19799 (reload): Set reload_completed here. Return whether or not a DCE
19800 pass after reload is needed.
19801 (delete_dead_insn): Set need_dce as needed.
19802
19803 PR middle-end/49465
19804 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
19805 to detect threading through joiner block. If there was already
19806 an edge to the new target, then do not change the PHI nodes.
19807
19808 2011-06-23 Jakub Jelinek <jakub@redhat.com>
19809
19810 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
19811 get_pointer_alignment to see if base isn't sufficiently aligned.
19812
19813 2011-06-23 Jan Hubicka <jh@suse.cz>
19814
19815 PR tree-optimize/49373
19816 * tree-pass.h (all_late_ipa_passes): Declare.
19817 * cgraphunit.c (init_lowered_empty_function): Fix properties.
19818 (cgraph_optimize): Execute late passes; remove unreachable funcions
19819 after materialization.
19820 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
19821 LTOing.
19822 * passes.c (all_late_ipa_passes): Declare.
19823 (dump_passes, register_pass): Handle late ipa passes.
19824 (init_optimization_passes): Move ipa_pta to late passes; schedule
19825 fixup_cfg at beggining of all_passes.
19826 (apply_ipa_transforms): New function.
19827 (execute_one_pass): When doing simple ipa pass, apply all transforms.
19828
19829 2011-06-23 Joseph Myers <joseph@codesourcery.com>
19830
19831 * params.c: Include common/common-target.h. Don't include tm.h.
19832 (lang_independent_params): Move from toplev.c.
19833 (global_init_params): New.
19834 * params.h (global_init_params): Declare.
19835 * target.def (default_params): Move to common-target.def.
19836 * toplev.c (lang_independent_options): Remove.
19837 (lang_independent_params): Move to params.c.
19838 (general_init): Use global_init_params.
19839 * common/common-target.def (option_default_params): Move from
19840 target.def.
19841 * common/config/ia64/ia64-common.c: Include params.h.
19842 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19843 from ia64.c.
19844 * common/config/rs6000/rs6000-common.c: Include params.h.
19845 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19846 from rs6000.c.
19847 * common/config/sh/sh-common.c: Include params.h.
19848 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19849 from sh.c.
19850 * common/config/spu/spu-common.c: Include params.h.
19851 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
19852 from spu.c.
19853 * config/ia64/ia64.c (ia64_option_default_params,
19854 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
19855 * config/rs6000/rs6000.c (rs6000_option_default_params,
19856 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
19857 * config/sh/sh.c (sh_option_default_params,
19858 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
19859 * config/spu/spu.c (spu_option_default_params,
19860 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
19861 * Makefile.in (OBJS): Remove params.o.
19862 (OBJS-libcommon-target): Add params.o.
19863 (params.o, $(common_out_object_file)): Update dependencies.
19864 * doc/tm.texi: Regenerate.
19865
19866 2011-06-23 Alan Modra <amodra@gmail.com>
19867
19868 PR bootstrap/49383
19869 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
19870 invocation for 2011-06-09 changes.
19871
19872 2011-06-22 Jakub Jelinek <jakub@redhat.com>
19873
19874 PR libgomp/49490
19875 * omp-low.c (expand_omp_for_static_nochunk): Only
19876 use n ceil/ nthreads size for the first n % nthreads threads in the
19877 team instead of all threads except for the last few ones which
19878 get less work or none at all.
19879
19880 PR debug/49496
19881 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
19882 uses.
19883
19884 2011-06-22 Richard Guenther <rguenther@suse.de>
19885
19886 PR tree-optimization/49493
19887 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
19888 Refer to the alias target of variables.
19889 (associate_varinfo_to_alias_1): Remove.
19890 (ipa_pta_execute): Do not associate aliases with anything.
19891 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
19892 (cgraph_function_node): Likewise.
19893 (cgraph_function_or_thunk_node): Likewise.
19894 (varpool_variable_node): Likewise.
19895
19896 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
19897
19898 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
19899 * config.gcc (arm*-*-linux*): Default to gnu tls.
19900 (arm*-*-*): Add --with-tls option.
19901 (all_defaults): Add 'tls'.
19902
19903 2011-06-22 Richard Henderson <rth@redhat.com>
19904
19905 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
19906 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
19907 (dwarf2out_frame_debug_cfa_window_save): Rename from
19908 dwarf2out_window_save; make static.
19909 * tree.h (dwarf2out_window_save): Don't declare.
19910
19911 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
19912 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
19913 (emit_save_register_window): Rename from gen_save_register_window;
19914 emit the insn and add REG_CFA_* notes.
19915 (sparc_expand_prologue): Update to match.
19916 * config/sparc/sparc.md (save_register_window_1): Simplify from
19917 save_register_window<P:mode>.
19918
19919 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
19920
19921 PR target/49497
19922 * config/i386/i386.md (*lea_general_2): Always allow SImode.
19923 (*lea_general_2_zext): Likewise.
19924 (imul to lea peepholes): Use const359_operand and check
19925 TARGET_PARTIAL_REG_STALL.
19926
19927 * config/i386/predicates.md (const359_operand): New.
19928
19929 2011-06-22 Michael Matz <matz@suse.de>
19930
19931 * cgraphunit.c (assemble_thunk): Use correct return type.
19932
19933 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
19934 Dmitry Melnik <dm@ispras.ru>
19935
19936 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
19937 (neon_output_shift_immediate): Ditto.
19938 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
19939 prototype.
19940 (neon_output_shift_immediate): Ditto.
19941 * config/arm/neon.md (vashl<mode>3): Modified constraint.
19942 (vashr<mode>3_imm): New insn pattern.
19943 (vlshr<mode>3_imm): Ditto.
19944 (vashr<mode>3): Modified constraint.
19945 (vlshr<mode>3): Ditto.
19946 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
19947 predicate.
19948 (imm_for_neon_rshift_operand): Ditto.
19949 (imm_lshift_or_reg_neon): Ditto.
19950 (imm_rshift_or_reg_neon): Ditto.
19951
19952 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
19953
19954 2011-06-22 Jakub Jelinek <jakub@redhat.com>
19955
19956 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
19957 builtin calls even if likelyvalue is not CONSTANT.
19958 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
19959 Return get_value_for_expr of first operand
19960 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
19961 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19962 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
19963 their non-checking counterparts.
19964 (call_may_clobber_ref_p_1): Likewise.
19965 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
19966 like their non-checking counterparts.
19967 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19968 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
19969 like their non-checking counterparts.
19970 (find_func_clobbers): Likewise.
19971 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
19972 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
19973
19974 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
19975 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
19976 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
19977 of base type reference as argument.
19978 (resolve_addr_in_expr): Likewise. Fix keep computation.
19979 (convert_descriptor_to_signed): Renamed to...
19980 (convert_descriptor_to_mode): ... this. For wider types convert to
19981 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
19982 (typed_binop): New function.
19983 (scompare_loc_descriptor, ucompare_loc_descriptor,
19984 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
19985 default to unsigned type instead of signed.
19986
19987 PR debug/47858
19988 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
19989 (gimple_build_debug_source_bind_stat): New prototype.
19990 (gimple_build_debug_source_bind): Define.
19991 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
19992 gimple_debug_source_bind_get_value,
19993 gimple_debug_source_bind_get_value_ptr,
19994 gimple_debug_source_bind_set_var,
19995 gimple_debug_source_bind_set_value): New inlines.
19996 * gimple.c (gimple_build_debug_source_bind_stat): New function.
19997 * gimple-pretty-print.c (dump_gimple_debug): Handle
19998 GIMPLE_DEBUG_SOURCE_BIND.
19999 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
20000 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20001 * tree-parloops.c (eliminate_local_variables,
20002 separate_decls_in_region): Likewise.
20003 (separate_decls_in_region_debug): Renamed from
20004 separate_decls_in_region_debug_bind. Handle
20005 gimple_debug_source_bind_p.
20006 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
20007 prototypes.
20008 (DECL_HAS_DEBUG_ARGS_P): Define.
20009 (struct tree_function_decl): Add has_debug_args_flag field.
20010 * tree.c (debug_args_for_decl): New variable.
20011 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
20012 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
20013 (rewrite_debug_stmt_uses): New function.
20014 (rewrite_stmt): Use it to rewrite debug stmt uses.
20015 * rtl.def (DEBUG_PARAMETER_REF): New.
20016 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
20017 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
20018 DEBUG_PARAMETER_REF.
20019 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
20020 * print-rtl.c (print_rtx): Likewise.
20021 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
20022 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
20023 debug stmts in the first bb.
20024 * tree-inline.c (remap_ssa_name): If remapping default def
20025 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
20026 a source bind debug stmt.
20027 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
20028 (maybe_move_debug_stmts_to_successors): Likewise.
20029 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
20030 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
20031 debug args vector from old_decl to new_decl.
20032 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
20033 or modified parameters, add debug bind stmts before call
20034 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
20035 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
20036 on DECL_DEBUG_EXPRs from debug args vector.
20037 (expand_debug_source_expr): New function.
20038 (expand_debug_locations): Use it for source bind insns.
20039 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
20040 * var-tracking.c (prepare_call_arguments): Add debug args
20041 to call_arguments if any.
20042 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
20043 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
20044 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
20045 (get_ref_die_offset, parameter_ref_descriptor): New functions.
20046 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
20047 (gen_subprogram_die): Handle parameters identified by
20048 DEBUG_PARAMETER_REF.
20049
20050 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
20051
20052 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
20053 * doc/install.texi (Configuration): Document --with-tls.
20054 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
20055 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
20056 (arm_tls_descseq_addr): New.
20057 (legitimize_tls_address): Add tlsdesc support.
20058 (arm_cannot_copy_insn_p): Check for tlscall.
20059 (arm_emit_tls_decoration): Likewise.
20060 * config/arm/arm.h (TARGET_GNU2_TLS): New.
20061 (OPTION_DEFAULT_SPECS): Add with-tls support.
20062 * config/arm/arm.md (R1_REGNUM): Define.
20063 (tlscall): New.
20064 * config/arm/arm.opt (tls_type): New enumeration type and values.
20065 (mtls-dialect): New switch.
20066 * config/arm/arm-opts.h (enum tls_type): New.
20067
20068 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
20069
20070 * attribs.c (register_attribute): Added assert to check that all
20071 attribute specs are registered with a name that is not empty and
20072 does not start with '_'.
20073 (decl_attributes): Avoid the lookup of the "naked" attribute spec
20074 if the function has no attributes.
20075 * tree.c (is_attribute_with_length_p): Removed.
20076 (is_attribute_p): Removed.
20077 (private_is_attribute_p): New.
20078 (private_lookup_attribute): New.
20079 (lookup_attribute): Removed.
20080 (lookup_ident_attribute): New.
20081 (remove_attribute): Require the first argument to be in the form
20082 'text', not '__text__'. Updated asserts.
20083 (merge_attributes): Use lookup_ident_attributes instead of
20084 lookup_attribute.
20085 (merge_dllimport_decl_attributes): Use remove_attribute.
20086 (attribute_list_contained): Likewise.
20087 (attribute_list_equal): Immediately return 1 if the arguments are
20088 identical pointers.
20089 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
20090 'int'. Require the first argument to be in the form 'text', not
20091 '__text__'. Require the second argument to be an identifier.
20092 (lookup_attribute): Made inline. Require the first argument to be
20093 in the form 'text', not '__text__'.
20094 (private_is_attribute_p, private_lookup_attribute): New.
20095 Updated comments.
20096
20097 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
20098
20099 * builtins.c: Add sync_ or SYNC__ to builtin names.
20100 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
20101 * omp-low.c: Add sync_ or SYNC__ to builtin names.
20102
20103 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
20104
20105 PR target/33049
20106 * config/avr/avr.md (extzv): New expander.
20107 (*extzv): New insn.
20108 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
20109 * config/avr/constraints.md (C04): New constraint.
20110 * doc/md.texi (Machine Constraints): Document it.
20111
20112 2011-06-21 Jakub Jelinek <jakub@redhat.com>
20113
20114 PR middle-end/49489
20115 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
20116 unsignedp argument instead of 1 for clrsb_optab.
20117 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
20118 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
20119 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
20120 * optabs.c (widen_leading): Call widen_operand and expand_unop
20121 with 0 as unsignedp argument instead of 1 for clrsb_optab.
20122 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
20123
20124 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
20125
20126 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
20127
20128 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
20129
20130 * gensupport.c (add_define_attr): New static function.
20131 (is_predicable): Allow multi-alternative lists for the "predicable"
20132 attribute.
20133 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
20134 (process_one_cond_exec): Call alter_attrs_for_insn.
20135 * doc/md.texi (Defining Attributes): Mention some standard names.
20136 (Conditional Execution): Update documentation for "predicable".
20137
20138 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
20139 __builtin_clrsbll): Document.
20140 * doc/rtl.texi (clrsb): New entry.
20141 * optabs.c (widen_leading): Renamed from widen_clz. New argument
20142 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
20143 (expand_unop): Handle clrsb_optab.
20144 (init_optabs): Initialize it.
20145 * optabs.h (enum optab_index): New entry OTI_clrsb.
20146 (clrsb_optab): Define.
20147 * genopinit.c (optabs): Add an entry for it.
20148 * builtins.c (expand_builtin): Handle clrsb builtin functions.
20149 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
20150 BUILT_IN_CLRSBLL): New.
20151 * rtl.def (CLRSB): New code.
20152 * dwarf2out.c (mem_loc_descriptor): Handle it.
20153 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20154 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
20155 and popcount.
20156 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
20157 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
20158 (__ctzDI2): Move declaration.
20159 * config/bfin/bfin.md (clrsbsi2): New expander.
20160 (signbitssi2): Use the CLRSB rtx.
20161 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
20162 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
20163
20164 2011-06-21 Richard Guenther <rguenther@suse.de>
20165
20166 * ipa-inline-transform.c (inline_transform): Fix previous change.
20167
20168 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
20169
20170 PR tree-optimization/49478
20171 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
20172 with constant operand.
20173
20174 2011-06-21 Richard Guenther <rguenther@suse.de>
20175
20176 * ipa-inline-transform.c (inline_transform): Fix typo.
20177
20178 2011-06-21 Richard Guenther <rguenther@suse.de>
20179
20180 PR tree-optimization/49483
20181 * tree-vect-stmts.c (vectorizable_assignment): Also handle
20182 VIEW_CONVERT_EXPR conversions.
20183
20184 2011-06-21 Joseph Myers <joseph@codesourcery.com>
20185
20186 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
20187 * config/avr/avr-tables.opt: New file (generated).
20188 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
20189 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
20190 avr-mcus.def.
20191 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
20192 (avr_option_override): Don't process -mmcu= argument here. Set
20193 avr_current_device using avr_mcu_index.
20194 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
20195 * config/avr/avr.opt (mmcu=): Use Enum.
20196 * config/avr/t-avr (avr-devices.o): Update dependencies.
20197 ($(srcdir)/config/avr/avr-tables.opt): New.
20198 * target.def (help): Remove.
20199 * doc/tm.texi.in (TARGET_HELP): Remove.
20200 * doc/tm.texi: Regenerate.
20201 * opts.c: Don't include target.h.
20202 (common_handle_option): Don't call targetm.help.
20203 * system.h (TARGET_HELP): Poison.
20204 * Makefile.in (opts.o): Update dependencies.
20205
20206 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20207
20208 * config/usegld.h: New file.
20209 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
20210 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
20211 (LIB_SPEC): Likewise. Search /lib.
20212 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
20213 (RDYNAMIC_SPEC): Handle GNU ld.
20214 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
20215 Define.
20216 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
20217 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
20218 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
20219 (STACK_CHECK_STATIC_BUILTIN): Define.
20220 * config/sol2.opt (compat-bsd): Remove.
20221 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
20222 * config/sol2-bi.h: New file.
20223 * config/sol2-gld.h: Remove.
20224 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
20225 (NO_DBX_BNSYM_ENSYM): Remove.
20226 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
20227 (STACK_CHECK_STATIC_BUILTIN): Remove.
20228 Test USE_GLD instead of TARGET_GNU_LD.
20229 * config/i386/sol2-10.h: Rename to ...
20230 * config/i386/sol2-bi.h .. this.
20231 (SUBTARGET_EXTRA_SPECS): Redefine.
20232 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
20233 (MULTILIB_DEFAULTS): Remove.
20234 (DEFAULT_ARCH32_P): Define.
20235 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
20236 (ARCH64_SUBDIR): Define.
20237 Test USE_GLD instead of TARGET_GNU_LD.
20238 (I386_EMULATION): Rename to ...
20239 (ARCH32_EMULATION): ... this.
20240 (X86_64_EMULATION): Rename to ...
20241 (ARCH64_EMULATION): ... this.
20242 (TARGET_LD_EMULATION): Remove.
20243 (LINK_ARCH_SPEC): Remove.
20244 * config/i386/sol2-gas.h: Remove.
20245 * config/i386/t-sol2-10: Rename to ...
20246 * config/i386/t-sol2-64: ... this.
20247 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
20248 (AS_SPARC64_FLAG): Define.
20249 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
20250 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
20251 depending on TARGET_CPU_DEFAULT.
20252 (CPP_CPU_SPEC): Redefine.
20253 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
20254 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
20255 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
20256 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
20257 ASM_ARCH_DEFAULT_SPEC): Redefine.
20258 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20259 LINK_ARCH_DEFAULT_SPEC.
20260 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
20261 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
20262 (ARCH64_SUBDIR): Define.
20263 (LINK_ARCH64_SPEC): Redefine.
20264 (CC1_SPEC): Redefine.
20265 (OPTION_DEFAULT_SPECS): Redefine.
20266 (MULTILIB_DEFAULTS): Define.
20267 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
20268 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
20269 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
20270 (NO_DBX_BNSYM_ENSYM): Remove.
20271 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
20272 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
20273 (TARGET_ASM_NAMED_SECTION): Likewise.
20274 (STACK_CHECK_STATIC_BUILTIN): Remove.
20275 * config/sparc/sol2-bi.h: Remove.
20276 * config/sparc/sol2-gas-bi.h: Remove.
20277 * config/sparc/sol2-gas.h: Remove.
20278 * config/sparc/sol2-gld-bi.h: Remove.
20279 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
20280 common parts ...
20281 (*-*-solaris2*): ... here.
20282
20283 2011-06-21 Christian Bruel <christian.bruel@st.com>
20284
20285 PR other/43564
20286 * ipa-inline.c (can_inline_edge_p): Check
20287 !DECL_DISREGARD_INLINE_LIMITS.
20288
20289 2011-06-21 Christian Bruel <christian.bruel@st.com>
20290
20291 PR middle-end/49139
20292 * cgraphunit.c (process_function_and_variable_attributes): warn when
20293 always_inline functions that are not inline.
20294 * ipa-inline-transform.c (inline_transform): Always call
20295 optimize_inline.
20296 * tree-inline.c (tree_inlinable_function_p): Use error instead
20297 of sorry.
20298 (expand_call_inline): Likewise.
20299
20300 2011-06-21 Jakub Jelinek <jakub@redhat.com>
20301
20302 * Makefile.in (dg_target_exps): Set.
20303 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
20304 instead of 7, try to divide it more evenly.
20305
20306 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
20307
20308 PR target/49089
20309 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
20310 (avx256_split_unaligned_store): New definition.
20311 (ix86_option_override_internal): Enable avx256 unaligned load/store
20312 splitting only when avx256_split_unaligned_load/store is set.
20313
20314 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
20315
20316 * regrename.c (scan_rtx_reg): Handle the case where we write to an
20317 open chain in a smaller mode without failing the entire block.
20318
20319 2011-06-21 Alan Modra <amodra@gmail.com>
20320
20321 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
20322 CONST high part large-toc address.
20323 (rs6000_tls_referenced_p): Make static.
20324 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
20325
20326 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20327
20328 PR target/49385
20329 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
20330 one of the operands is a register.
20331
20332 2011-06-20 Kai Tietz <ktietz@redhat.com>
20333
20334 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
20335 operations in combination with binary and.
20336
20337 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
20338
20339 * regrename.c (do_replace): Don't update notes.
20340
20341 2011-06-20 Alan Modra <amodra@gmail.com>
20342
20343 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
20344 of toc-relative address in CONST.
20345 (rs6000_delegitimize_address): Recognize changed address.
20346 (rs6000_legitimize_reload_address): Likewise.
20347 (rs6000_emit_move): Don't force these constants to memory.
20348 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
20349 toc-relative address in CONST.
20350 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
20351 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
20352
20353 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
20354
20355 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
20356 (count_trailing_zeros): Likewise.
20357
20358 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
20359
20360 PR other/49325
20361 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
20362 .init_array can be used with .ctors on targets.
20363 * configure: Regenerated.
20364
20365 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
20366
20367 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
20368 if the element type is volatile.
20369
20370 2011-06-18 Jan Hubicka <jh@suse.cz>
20371
20372 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
20373 extra name aliases.
20374 (lto_symtab_resolve_can_prevail_p): Likewise.
20375 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
20376 * cgraphbuild.c (record_reference): Remove extra body alias code.
20377 (mark_load): Likewise.
20378 (mark_store): Likewise.
20379 * cgraph.h (varpool_node): Remove extra_name filed;
20380 add alias_of and extraname_alias.
20381 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
20382 (varpool_alias_aliased_node): New inline function.
20383 (varpool_variable_node): New function.
20384 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
20385 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
20386 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
20387 (input_varpool_node): Likewise.
20388 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
20389 (varpool_externally_visible_p): Remove extra body alias code.
20390 (function_and_variable_visibility): Likewise.
20391 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
20392 (ipa_pta_execute): Use it.
20393 * varpool.c (varpool_remove_node): Remove extra name alias code.
20394 (varpool_mark_needed_node): Likewise.
20395 (varpool_analyze_pending_decls): Analyze aliases.
20396 (assemble_aliases): New functoin.
20397 (varpool_assemble_decl): Use it.
20398 (varpool_create_variable_alias): New function.
20399 (varpool_extra_name_alias): Rewrite.
20400 (varpool_for_node_and_aliases): New function.
20401
20402 2011-06-18 Jakub Jelinek <jakub@redhat.com>
20403
20404 PR target/49411
20405 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
20406 last_arg_constant and last argument doesn't match its predicate,
20407 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
20408 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
20409 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
20410 spelling of error message.
20411 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
20412 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
20413 const_0_to_255_operand instead of const_int_operand.
20414
20415 Revert:
20416 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20417
20418 * config/i386/sse.md (blendbits): Remove mode attribute.
20419 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
20420 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
20421 Check integer value of operand 3 in insn constraint.
20422
20423 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
20424
20425 PR rtl-optimization/48542
20426 * reload.c (find_equiv_reg): Stop looking when finding a
20427 setjmp-type call.
20428 * reload1.c (reload_as_needed): Invalidate all reload
20429 registers when crossing a setjmp-type call.
20430
20431 2011-06-16 Jeff Law <law@redhat.com>
20432
20433 * tree-ssa-threadupdate.c (struct redirection_data): New field
20434 intermediate_edge.
20435 (THREAD_TARGET2): Define.
20436 (redirection_data_eq): Also check that the intermediate edge is equal.
20437 (lookup_redirection_data): Drop useless argument. Extract the
20438 outgoing_edge and intermediate edge from E. Callers updated.
20439 (copy_phi_args, update_destination_phis): New functions.
20440 (fix_duplicate_block_edges): Likewise.
20441 (create_edge_and_update_destination_phis): Duplicate all the edges
20442 hung off e->aux. Use copy_phi_args.
20443 (create_duplicates): Use fix_duplicate_block_edges.
20444 (fixup_template_block): Likewise.
20445 (redirect_edges): If necessary, redirect the joiner block's incoming
20446 edge to the duplicate of the joiner block.
20447 (thread_block): Don't muck up loops when threading through a joiner
20448 block.
20449 (thread_through_loop_header): Handle threading through a joiner block.
20450 (mark_threaded_blocks, register_jump_thread): Likewise.
20451 * tree-flow.h (register_jump_thread): Add new argument. Callers
20452 updated.
20453 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
20454 (thread_across_edge): Handle threading through a joiner block.
20455
20456 2011-06-16 Martin Jambor <mjambor@suse.cz>
20457
20458 PR tree-optimization/49343
20459 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
20460 calculate offset, provide 2nd operand for the new COMPONENT_REF.
20461
20462 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
20463
20464 * config/darwin-protos.h (machopic_select_rtx_section): Move to
20465 inside RTX_CODE ifdef.
20466
20467 2011-06-16 Tom de Vries <tom@codesourcery.com>
20468
20469 PR target/45098
20470 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
20471 Disallow NULL pointer for pointer arithmetic.
20472
20473 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20474
20475 PR target/49398
20476 Revert.
20477 2011-06-10 Wei Guozhi <carrot@google.com>
20478
20479 PR target/45335
20480 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
20481 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
20482 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
20483 related peephole2.
20484 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
20485 related peephole2.
20486 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
20487 (arm_legitimate_ldrd_p): New prototype.
20488 (arm_output_ldrd): New prototype.
20489 * config/arm/arm.c (arm_check_ldrd_operands): New function.
20490 (arm_legitimate_ldrd_p): New function.
20491 (arm_output_ldrd): New function.
20492
20493 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
20494
20495 PR middle-end/46500
20496 * doc/tm.texi.in: Update Copyright date.
20497 * doc/tm.texi: Regenerate.
20498 * targhooks.c (default_setup_incoming_varargs): Replace
20499 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20500 (default_pretend_outgoing_varargs_named): Likewise.
20501 (hook_pass_by_reference_must_pass_in_stack): Likewise.
20502 (hook_callee_copies_named): Likewise.
20503 (default_function_arg_advance): Likewise.
20504 (default_function_arg): Likewise.
20505 (default_function_incoming_arg): Likewise.
20506 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
20507 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
20508 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
20509 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
20510 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
20511 * targhooks.h (default_setup_incoming_varargs): Likewise.
20512 (default_pretend_outgoing_varargs_named): Likewise.
20513 (hook_pass_by_reference_must_pass_in_stack): Likewise.
20514 (hook_callee_copies_named): Likewise.
20515 (default_function_arg_advance): Likewise.
20516 (default_function_arg): Likewise.
20517 (default_function_incoming_arg): Likewise.
20518 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
20519 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
20520 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
20521 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
20522 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
20523 * target.def (pass_by_reference): Likewise.
20524 (setup_incoming_varargs, strict_argument_naming): Likewise.
20525 (pretend_outgoing_varargs_named, callee_copies): Likewise.
20526 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
20527 (function_incoming_arg): Likewise.
20528 * target.h: Don't include "tm.h" .
20529 (cumulative_args_t): New typedef.
20530 [GCC_TM_H] (get_cumulative_args): New static inline function.
20531 [GCC_TM_H] (pack_cumulative_args): Likewise.
20532 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
20533 argument type with cumulative_args_t.
20534 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
20535 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
20536 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
20537 (frv_arg_partial_bytes, frv_function_arg): Likewise.
20538 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
20539 (frv_function_arg_1): Likewise.
20540 * config/s390/s390.c (s390_pass_by_reference): Likewise.
20541 (s390_function_arg_advance, s390_function_arg): Likewise.
20542 * config/m32c/m32c.c (m32c_function_arg): Likewise.
20543 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
20544 (m32c_strict_argument_naming): Likewise.
20545 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
20546 (spu_function_arg_advance): Likewise.
20547 (spu_setup_incoming_varargs): Likewise. Make static.
20548 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
20549 Remove prototype.
20550 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
20551 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20552 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
20553 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
20554 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
20555 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
20556 (mep_pass_by_reference, mep_function_arg): Likewise.
20557 (mep_function_arg_advance): Likewise.
20558 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
20559 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
20560 (m32r_function_arg, m32r_function_arg_advance): Likewise.
20561 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
20562 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
20563 (ix86_function_arg, ix86_pass_by_reference): Likewise.
20564 (ix86_setup_incoming_varargs): Likewise.
20565 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
20566 (sh_strict_argument_naming): Likewise.
20567 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
20568 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
20569 (sh_function_arg_advance, sh_function_arg): Likewise.
20570 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
20571 (pdp11_function_arg_advance): Likewise.
20572 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
20573 Likewise.
20574 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
20575 * config/avr/avr.c (avr_function_arg): Likewise.
20576 (avr_function_arg_advance): Likewise.
20577 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
20578 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
20579 (xtensa_function_arg_1): Likewise.
20580 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
20581 Likewise.
20582 (xstormy16_function_arg): Likewise.
20583 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
20584 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
20585 (fr30_function_arg_advance): Likewise.
20586 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
20587 (lm32_function_arg, lm32_function_arg_advance): Likewise.
20588 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
20589 (moxie_function_arg, moxie_function_arg_advance): Likewise.
20590 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
20591 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
20592 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
20593 (cris_function_arg, cris_function_incoming_arg): Likewise.
20594 (cris_function_arg_advance, cris_function_arg_1): Likewise.
20595 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
20596 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
20597 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
20598 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
20599 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
20600 (mn10300_arg_partial_bytes): Likewise.
20601 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
20602 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
20603 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
20604 (ia64_function_arg_1): Likewise.
20605 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
20606 (m68k_function_arg): Likewise.
20607 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
20608 (rs6000_function_arg, setup_incoming_varargs): Likewise.
20609 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
20610 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
20611 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
20612 (picochip_arg_advance): Likewise.
20613 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
20614 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
20615 (mcore_function_arg_advance): Likewise.
20616 * config/score/score.c (score_pass_by_reference): Likewise.
20617 (score_function_arg_advance): Likewise.
20618 (score_arg_partial_bytes): Likewise. Make static.
20619 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
20620 * config/arm/arm.c (arm_arg_partial_bytes): Replace
20621 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20622 (arm_function_arg, arm_function_arg_advance): Likewise.
20623 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
20624 * config/pa/pa.c (pa_pass_by_reference): Likewise.
20625 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
20626 (pa_function_arg): Likewise.
20627 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
20628 (mips_function_arg, mips_function_arg_advance): Likewise.
20629 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
20630 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
20631 * config/vax/vax.c (vax_function_arg): Likewise.
20632 (vax_function_arg_advance): Likewise.
20633 * config/h8300/h8300.c (h8300_function_arg): Likewise.
20634 (h8300_function_arg_advance): Likewise.
20635 * config/v850/v850.c (v850_pass_by_reference): Likewise.
20636 (v850_strict_argument_naming, v850_function_arg): Likewise.
20637 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
20638 (v850_setup_incoming_varargs): Likewise.
20639 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
20640 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
20641 (mmix_function_arg, mmix_pass_by_reference): Likewise.
20642 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
20643 with const void *.
20644 * config/bfin/bfin.c (setup_incoming_varargs): Replace
20645 CUMULATIVE_ARGS* argument type with cumulative_args_t.
20646 (bfin_function_arg_advance, bfin_function_arg): Likewise.
20647 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
20648 * calls.c (emit_call_1): Change type of args_so_far to
20649 cumulative_args_t. Changed all callers.
20650 (initialize_argument_information): Likewise.
20651 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
20652 * dse.c (get_call_args): Likewise.
20653 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
20654 * function.c (pass_by_reference, reference_callee_copied): Likewise.
20655 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
20656 New member args_so_far_v. Changed all users.
20657 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
20658 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
20659 * config/mips/mips.c (mips_output_args_xfer): Likewise.
20660 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
20661 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
20662 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20663 Likewise.
20664 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
20665 m32r_pass_by_reference.
20666
20667 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
20668
20669 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
20670 argument to be a VEC of statements.
20671 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
20672 assert that pattern statements have to have their vector type set.
20673 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
20674 Change the first argument to be a VEC of statements. Update
20675 documentation.
20676 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
20677 (vect_handle_widen_mult_by_const): New function.
20678 (vect_recog_widen_mult_pattern): Change the first argument to be a
20679 VEC of statements. Update documentation. Check that the constant is
20680 INTEGER_CST. Support multiplication by a constant that fits an
20681 intermediate type - call vect_handle_widen_mult_by_const.
20682 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
20683 call. Handle additional pattern statements if necessary.
20684
20685 2011-06-16 Nick Clifton <nickc@redhat.com>
20686
20687 PR target/49427
20688 * config.gcc: Set cpu_type to v850 for any V850 architecture.
20689 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
20690 md_file, extra_modes, out_file and extra_options are these are all
20691 deduced from cpu_type.
20692
20693 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
20694
20695 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
20696 truncation mask to 63.
20697
20698 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
20699
20700 PR target/49313
20701 PR target/29524
20702 * longlong.h: Add AVR support:
20703 (count_leading_zeros): New macro.
20704 (count_trailing_zeros): New macro.
20705 (COUNT_LEADING_ZEROS_0): New macro.
20706 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
20707 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
20708 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
20709 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
20710 (LIB2FUNCS_EXCLUDE): Add _clz.
20711 * config/avr/libgcc.S (XCALL): Move up in file.
20712 (XJMP): New C Macro.
20713 (DEFUN): New asm macro.
20714 (ENDF): New asm macro.
20715 (__ffssi2): New function.
20716 (__ffshi2): New function.
20717 (__loop_ffsqi2): New function.
20718 (__ctzsi2): New function.
20719 (__ctzhi2): New function.
20720 (__clzdi2): New function.
20721 (__clzsi2): New function.
20722 (__clzhi2): New function.
20723 (__paritydi2): New function.
20724 (__paritysi2): New function.
20725 (__parityhi2): New function.
20726 (__parityqi2): New function.
20727 (__popcounthi2): New function.
20728 (__popcountsi2): New function.
20729 (__popcountdi2): New function.
20730 (__popcountqi2): New function.
20731 (__bswapsi2): New function.
20732 (__bswapdi2): New function.
20733 (__ashldi3): New function.
20734 (__ashrdi3): New function.
20735 (__lshrdi3): New function.
20736 Fix suspicous lines.
20737
20738 2011-06-16 Richard Guenther <rguenther@suse.de>
20739
20740 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
20741 the same as x != 0.
20742 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
20743 to (bool) X & 1.
20744 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
20745 equality compares against zero for the lower bit.
20746
20747 2011-06-16 Jakub Jelinek <jakub@redhat.com>
20748
20749 PR tree-optimization/49419
20750 * tree-vrp.c (execute_vrp): Call init_range_assertions
20751 before estimate_numbers_of_iterations, call
20752 free_number_of_iterations_estimates before calling
20753 remove_range_assertions.
20754
20755 2011-06-16 Revital Eres <revital.eres@linaro.org>
20756
20757 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
20758 (struct partial_schedule): Add rows_length field.
20759 (verify_partial_schedule): Check rows_length.
20760 (ps_insert_empty_row): Handle rows_length.
20761 (create_partial_schedule): Likewise.
20762 (free_partial_schedule): Likewise.
20763 (reset_partial_schedule): Likewise.
20764 (create_ps_insn): Remove rest_count argument.
20765 (remove_node_from_ps): Update rows_length.
20766 (add_node_to_ps): Update rows_length and call create_ps_insn
20767 without passing row_rest_count.
20768 (rotate_partial_schedule): Update rows_length.
20769
20770 2011-06-16 Revital Eres <revital.eres@linaro.org>
20771
20772 * ddg.c (add_intra_loop_mem_dep): New function.
20773 (build_intra_loop_deps): Call it.
20774
20775 2011-06-13 Jeff Law <law@redhat.com>
20776
20777 * df-problems.c (df_lr_local_compute): Manually CSE
20778 PIC_OFFSET_TABLE_REGNUM.
20779 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
20780 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
20781
20782 2011-06-13 Jan Hubicka <jh@suse.cz>
20783
20784 * cgraphunit.c (handle_alias_pairs): New function.
20785 (cgraph_finalize_compilation_unit): Use it.
20786 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
20787 as externally visible.
20788
20789 2011-06-15 Richard Guenther <rguenther@suse.de>
20790
20791 * expr.c (expand_expr_real_2): Reduce all integral types to
20792 bitfield precision.
20793 (expand_expr_real_1): Likewise.
20794
20795 2011-06-15 Martin Jambor <mjambor@suse.cz>
20796
20797 PR tree-optimization/48613
20798 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
20799 ipa_node_params_vector is NULL.
20800
20801 2011-06-15 Jakub Jelinek <jakub@redhat.com>
20802
20803 PR debug/49382
20804 * dwarf2out.c (dw_loc_list_node): Add force field.
20805 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
20806 location in the list, even if it is modified before first real insn.
20807 (output_loc_list): Emit empty ranges with force flag set.
20808 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
20809
20810 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
20811
20812 PR target/49349
20813 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
20814 (fence_to_rewind). Use it to notice when bookkeeping will be placed
20815 above a fence. Update comments.
20816 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
20817 placed just above it. Do not allow NULL place_to_insert.
20818
20819 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
20820
20821 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
20822 (slpeel_tree_peel_loop_to_edge): Don't call
20823 remove_dead_stmts_from_loop.
20824 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20825 remove irrelevant pattern statements. For irrelevant statements
20826 check if it is the last statement of a detected pattern, use
20827 corresponding pattern statement instead.
20828 (destroy_loop_vec_info): No need to remove pattern statements,
20829 only free stmt_vec_info.
20830 (vect_transform_loop): For irrelevant statements check if it is
20831 the last statement of a detected pattern, use corresponding
20832 pattern statement instead.
20833 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
20834 pattern statements. Set basic block for the new statement.
20835 (vect_pattern_recog): Update documentation.
20836 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
20837 operands of pattern statements.
20838 (vectorizable_call): Fix printing. In case of a pattern statement
20839 use the lhs of the original statement when creating a dummy
20840 statement to replace the original call.
20841 (vect_analyze_stmt): For irrelevant statements check if it is
20842 the last statement of a detected pattern, use corresponding
20843 pattern statement instead.
20844 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
20845 statements use gsi of the original statement.
20846
20847 2011-06-14 Joseph Myers <joseph@codesourcery.com>
20848
20849 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
20850 common/common-target-def.h.
20851 * target.def (default_target_flags, handle_option,
20852 supports_split_stack, optimization_table, init_struct,
20853 except_unwind_info, unwind_tables_default, have_named_sections):
20854 Move to common/common-target.def.
20855 * target.h (enum opt_levels, struct default_options): Move to
20856 common/common-target.h.
20857 * targhooks.c (default_except_unwind_info,
20858 dwarf2_except_unwind_info, sjlj_except_unwind_info,
20859 default_target_handle_option, empty_optimization_table): Move to
20860 common/common-targhooks.c.
20861 * targhooks.h (default_except_unwind_info,
20862 dwarf2_except_unwind_info, sjlj_except_unwind_info,
20863 default_target_handle_option, empty_optimization_table): Move to
20864 common/common-targhooks.h.
20865 * common/common-target-def.h: Include common/common-targhooks.h.
20866 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
20867 defined.
20868 * common/common-target.def (handle_option, option_init_struct,
20869 option_optimization_table, default_target_flags,
20870 except_unwind_info, supports_split_stack, unwind_tables_default,
20871 have_named_sections): Move from target.def.
20872 (HOOK_PREFIX): Undefine at end of file.
20873 * common/common-target.h: Include input.h.
20874 (enum opt_levels, struct default_options): Move from target.h.
20875 * common/common-targhooks.c, common/common-targhooks.h: New.
20876 * config.gcc (target_has_targetm_common): Default to yes.
20877 (moxie*): Set target_has_targetm_common=no.
20878 (hppa*-*-*): Don't set target_has_targetm_common=yes.
20879 * doc/tm.texi: Regenerate.
20880 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
20881 (C_TARGET_DEF_H): Add common/common-targhooks.h.
20882 (GCC_OBJS): Remove vec.o.
20883 (OBJS): Remove hooks.o and vec.o.
20884 (OBJS-libcommon-target): Add vec.o, hooks.o and
20885 common/common-targhooks.o.
20886 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
20887 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
20888 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
20889 cfglayout.o, $(out_object_file), $(common_out_object_file)):
20890 Update dependencies.
20891 (common/common-targhooks.o): New.
20892 * common/config/default-common.c: Include tm.h. Add FIXME comment.
20893 * common/config/pa/pa-common.c: Include more headers. Take
20894 copyright dates from pa.c.
20895 (pa_option_optimization_table, pa_handle_option,
20896 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
20897 TARGET_HANDLE_OPTION): Move from pa.c.
20898 * common/config/alpha/alpha-common.c,
20899 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
20900 common/config/bfin/bfin-common.c,
20901 common/config/cris/cris-common.c,
20902 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
20903 common/config/h8300/h8300-common.c,
20904 common/config/i386/i386-common.c,
20905 common/config/ia64/ia64-common.c,
20906 common/config/iq2000/iq2000-common.c,
20907 common/config/lm32/lm32-common.c,
20908 common/config/m32c/m32c-common.c,
20909 common/config/m32r/m32r-common.c,
20910 common/config/m68k/m68k-common.c,
20911 common/config/mcore/mcore-common.c,
20912 common/config/mep/mep-common.c,
20913 common/config/microblaze/microblaze-common.c,
20914 common/config/mips/mips-common.c,
20915 common/config/mmix/mmix-common.c,
20916 common/config/mn10300/mn10300-common.c,
20917 common/config/pdp11/pdp11-common.c,
20918 common/config/picochip/picochip-common.c,
20919 common/config/rs6000/rs6000-common.c,
20920 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
20921 common/config/score/score-common.c, common/config/sh/sh-common.c,
20922 common/config/sparc/sparc-common.c,
20923 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
20924 common/config/vax/vax-common.c,
20925 common/config/xstormy16/xstormy16-common.c,
20926 common/config/xtensa/xtensa-common.c: New.
20927 * config/alpha/alpha.c: Include common/common-target.h.
20928 (alpha_option_optimization_table, alpha_handle_option,
20929 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
20930 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
20931 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
20932 * config/arm/arm.c (arm_option_optimization_table,
20933 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
20934 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
20935 arm-common.c.
20936 * config/avr/avr.c (avr_option_optimization_table,
20937 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
20938 to avr-common.c.
20939 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
20940 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
20941 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
20942 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
20943 * config/cris/cris.c (cris_option_optimization_table,
20944 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
20945 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
20946 cris-common.c.
20947 * config/fr30/fr30.c (fr30_option_optimization_table,
20948 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
20949 to fr30-common.c.
20950 * config/frv/frv.c (frv_option_optimization_table,
20951 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
20952 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
20953 * config/h8300/h8300.c (h8300_option_optimization_table,
20954 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
20955 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
20956 * config/i386/i386-protos.h (ix86_handle_option): Declare.
20957 * config/i386/i386.c: Include common/common-target.h.
20958 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
20959 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
20960 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
20961 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
20962 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
20963 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
20964 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
20965 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
20966 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
20967 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
20968 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
20969 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
20970 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
20971 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
20972 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
20973 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
20974 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
20975 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
20976 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
20977 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
20978 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
20979 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
20980 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
20981 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
20982 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
20983 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
20984 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
20985 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
20986 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
20987 ix86_option_optimization_table, ix86_option_init_struct,
20988 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
20989 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
20990 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
20991 i386-common.c.
20992 * config/i386/t-i386 (i386.o): Update dependencies.
20993 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
20994 * config/ia64/ia64.c (ia64_option_optimization_table,
20995 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
20996 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
20997 ia64_handle_option): Move to ia64-common.c.
20998 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
20999 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
21000 * config/lm32/lm32.c (lm32_option_optimization_table,
21001 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
21002 to lm32-common.c.
21003 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
21004 m32c-common.c.
21005 * config/m32r/m32r.c (m32r_option_optimization_table,
21006 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21007 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
21008 m32r_handle_option): Move to m32r-common.c.
21009 (m32r_memory_move_cost): Remove comment referring to
21010 TARGET_HANDLE_OPTION.
21011 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
21012 Move to m68k-common.c.
21013 * config/mcore/mcore.c (mcore_option_optimization_table,
21014 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21015 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
21016 * config/mep/mep.c (mep_option_optimization_table,
21017 mep_handle_option, TARGET_HANDLE_OPTION,
21018 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
21019 Move to mep-common.c.
21020 * config/microblaze/microblaze.c
21021 (microblaze_option_optimization_table,
21022 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21023 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
21024 * config/mips/mips.c (mips_handle_option,
21025 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
21026 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
21027 mips-common.c.
21028 * config/mmix/mmix.c (mmix_option_optimization_table,
21029 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
21030 Move to mmix-common.c.
21031 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
21032 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
21033 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21034 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
21035 * config/pa/pa.c: Include common/common-target.h.
21036 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
21037 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21038 pa_handle_option): Move to pa-common.c.
21039 (pa_option_override): Use targetm_common.except_unwind_info.
21040 (pa_asm_output_mi_thunk, pa_function_section): Use
21041 targetm_common.have_named_sections.
21042 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
21043 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21044 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
21045 pdp11_handle_option, pdp11_option_init_struct): Move to
21046 pdp11-common.c.
21047 * config/picochip/picochip.c (picochip_option_optimization_table,
21048 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
21049 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
21050 * config/rs6000/rs6000.c: Include common/common-target.h.
21051 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
21052 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
21053 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
21054 rs6000_handle_option): Move to rs6000-common.c.
21055 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21056 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
21057 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21058 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
21059 * config/s390/s390.c (processor_flags_table,
21060 s390_option_optimization_table, s390_option_init_struct,
21061 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
21062 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
21063 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
21064 * config/s390/s390.h (processor_flags_table): Declare.
21065 * config/score/score.c (score_option_optimization_table,
21066 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21067 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
21068 score_handle_option): Move to score-common.c.
21069 * config/sh/sh.c (sh_option_optimization_table,
21070 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
21071 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21072 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
21073 * config/sparc/sparc.c: Include common/common-target.h.
21074 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
21075 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
21076 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
21077 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
21078 spu_option_init_struct): Move to spu-common.c.
21079 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
21080 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
21081 * config/v850/v850.c (small_memory_physical_max,
21082 v850_handle_memory_optionn v850_handle_option,
21083 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
21084 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
21085 v850-common.c.
21086 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
21087 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
21088 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
21089 Move to xtensa-common.c.
21090 * cfglayout.c: Include common/common-target.h.
21091 (fixup_reorder_chain): Use targetm_common.have_named_sections.
21092 * cfgrtl.c: Include common/common-target.h.
21093 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
21094 targetm_common.have_named_sections.
21095 * dbxout.c: Include common/common-target.h.
21096 (dbxout_function_end): Use targetm_common.have_named_sections.
21097 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
21098 targetm_common.except_unwind_info.
21099 * dwarf2out.c: Include common/common-target.h.
21100 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
21101 dwarf2out_begin_prologue, dwarf2out_frame_init,
21102 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
21103 targetm_common.except_unwind_info.
21104 * except.c: Include common/common-target.h.
21105 (init_eh, finish_eh_generation,
21106 output_one_function_exception_table): Use
21107 targetm_common.except_unwind_info.
21108 (switch_to_exception_section): Use targetm_common.have_named_sections.
21109 * explow.c: Include common/common-target.h.
21110 * expr.c: Include common/common-target.h.
21111 (build_personality_function): Use targetm_common.except_unwind_info.
21112 * function.c: Include common/common-target.h.
21113 (expand_function_end): Use targetm_common.except_unwind_info.
21114 * haifa-sched.c: Include common/common-target.h.
21115 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
21116 * lto-opts.c: Include common/common-target.h instead of target.h.
21117 (lto_reissue_options): Use targetm_common.handle_option.
21118 * opts.c: Include common/common-target.h.
21119 (target_handle_option): Use targetm_common.handle_option.
21120 (init_options_struct): Update comment referring to
21121 targetm.target_option.optimization. Use
21122 targetm_common.default_target_flags,
21123 targetm_common.unwind_tables_default and
21124 targetm_common.option_init_struct.
21125 (default_options_optimization): Use
21126 targetm_common.option_optimization_table.
21127 (finish_options): Use targetm_common.except_unwind_info,
21128 targetm_common.unwind_tables_default,
21129 targetm_common.have_named_sections and
21130 targetm_common.supports_split_stack.
21131 * toplev.c: Include common/common-target.h.
21132 (process_options): Use targetm_common.have_named_sections.
21133 * tree-tailcall.c: Include common/common-target.h.
21134 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
21135 * tree.c: Include common/common-target.h.
21136 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
21137 * varasm.c: Include common/common-target.h.
21138 (resolve_unique_section, hot_function_section,
21139 default_function_section): Use targetm_common.have_named_sections.
21140
21141 2011-06-14 Easwaran Raman <eraman@google.com>
21142
21143 PR rtl-optimization/44194
21144 * dse.c: Include tree-flow.h
21145 (insn_info): Add new field non_frame_wild_read.
21146 (group_info): Add new fields escaped_n and escaped_p.
21147 (kill_on_calls): New variable.
21148 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
21149 (dse_step0): Initialize kill_on_calls.
21150 (can_escape): New function.
21151 (set_usage_bits): Add additional parameter; record information
21152 about escaped locations.
21153 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
21154 (dse_step2_nospill): Set kill_on_calls based on
21155 group->escaped_n and group->escaped_n.
21156 (add_wild_read): Refactor into...
21157 (reset_active_stores): ... New function, and
21158 (free_read_records): ... New function.
21159 (add_non_frame_wild_read): New function.
21160 (scan_insn): Call add_non_frame_wild_read on non-const calls.
21161 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
21162 (dse_step5_nospill): Call scan_reads_nospill for instructions
21163 marked as non_frame_wild_read.
21164 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
21165
21166 2011-06-14 Joseph Myers <joseph@codesourcery.com>
21167
21168 * common/common-target-def.h, common/common-target.def,
21169 common/common-target.h, common/config/default-common.c,
21170 common/config/pa/pa-common.c: New files.
21171 * Makefile.in (common_out_file, common_out_object_file,
21172 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
21173 (OBJS-libcommon-target): Include $(common_out_object_file).
21174 (prefix.o): Update dependencies.
21175 ($(common_out_object_file), common/common-target-hooks-def.h,
21176 s-common-target-hooks-def-h): New.
21177 (s-tm-texi): Also check timestamp on common-target.def.
21178 (build/genhooks.o): Update dependencies.
21179 * config.gcc (common_out_file, target_has_targetm_common): Define.
21180 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
21181 TARGET_ALWAYS_STRIP_DOTDOT.
21182 * configure.ac (common_out_object_file): Define.
21183 (common_out_file, common_out_object_file): Substitute.
21184 (common): Create directory.
21185 * configure: Regenerate.
21186 * doc/tm.texi.in (targetm_common): Document.
21187 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
21188 * doc/tm.texi: Regenerate.
21189 * genhooks.c (hook_array): Also include common/common-target.def.
21190 * prefix.c (tm.h): Don't include.
21191 (common/common-target.h): Include.
21192 (ALWAYS_STRIP_DOTDOT): Don't define.
21193 (update_path): Use targetm_common.always_strip_dotdot instead of
21194 ALWAYS_STRIP_DOTDOT.
21195 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
21196
21197 2011-06-14 David Li <davidxl@google.com>
21198
21199 * passes.c (execute_function_todo): Remove TODO_dump_func.
21200 (execute_one_pass): Remove TODO_dump_func.
21201 (execute_function_dump): New function.
21202 * tree-vrp.c: Remove TODO_dump_func.
21203 * regrename.c: Remove TODO_dump_func.
21204 * fwprop.c: Remove TODO_dump_func.
21205 * tree-into-ssa.c: Remove TODO_dump_func.
21206 * tree-complex.c: Remove TODO_dump_func.
21207 * tracer.c: Remove TODO_dump_func.
21208 * tree-loop-distribution.c: Remove TODO_dump_func.
21209 * postreload-gcse.c: Remove TODO_dump_func.
21210 * postreload.c: Remove TODO_dump_func.
21211 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
21212 * tree-tailcall.c: Remove TODO_dump_func.
21213 * ipa-cp.c: Remove TODO_dump_func.
21214 * final.c: Remove TODO_dump_func.
21215 * tree-emutls.c: Remove TODO_dump_func.
21216 * omp-low.c: Remove TODO_dump_func.
21217 * tree-ssa-dse.c: Remove TODO_dump_func.
21218 * tree-ssa-uncprop.c: Remove TODO_dump_func.
21219 * auto-inc-dec.c: Remove TODO_dump_func.
21220 * reorg.c: Remove TODO_dump_func.
21221 * tree-ssa-copyrename.c: Remove TODO_dump_func.
21222 * tree-ssa-ccp.c: Remove TODO_dump_func.
21223 * compare-elim.c: Remove TODO_dump_func.
21224 * mode-switching.c: Remove TODO_dump_func.
21225 * modulo-sched.c: Remove TODO_dump_func.
21226 * tree-call-cdce.c: Remove TODO_dump_func.
21227 * cse.c: Remove TODO_dump_func.
21228 * web.c: Remove TODO_dump_func.
21229 * tree-stdarg.c: Remove TODO_dump_func.
21230 * lto-streamer-out.c: Remove TODO_dump_func.
21231 * tree-ssa-math-opts.c: Remove TODO_dump_func.
21232 * tree-ssa-dom.c: Remove TODO_dump_func.
21233 * tree-nrv.c: Remove TODO_dump_func.
21234 * loop-init.c: Remove TODO_dump_func.
21235 * gimple-low.c: Remove TODO_dump_func.
21236 * ipa-inline.c: Remove TODO_dump_func.
21237 * tree-ssa-sink.c: Remove TODO_dump_func.
21238 * jump.c: Remove TODO_dump_func.
21239 * ifcvt.c: Remove TODO_dump_func.
21240 * tree-ssa-loop.c: Remove TODO_dump_func.
21241 * recog.c: Remove TODO_dump_func.
21242 * dse.c: Remove TODO_dump_func.
21243 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
21244 * matrix-reorg.c: Remove TODO_dump_func.
21245 * tree-eh.c: Remove TODO_dump_func.
21246 * regmove.c: Remove TODO_dump_func.
21247 * function.c: Remove TODO_dump_func.
21248 * tree-vectorizer.c: Remove TODO_dump_func.
21249 * ipa-split.c: Remove TODO_dump_func.
21250 * gcse.c: Remove TODO_dump_func.
21251 * tree-if-conv.c: Remove TODO_dump_func.
21252 * init-regs.c: Remove TODO_dump_func.
21253 * tree-ssa-phiopt.c: Remove TODO_dump_func.
21254 * implicit-zee.c: Remove TODO_dump_func.
21255 * lower-subreg.c: Remove TODO_dump_func.
21256 * bt-load.c: Remove TODO_dump_func.
21257 * tree-dfa.c: Remove TODO_dump_func.
21258 * except.c: Remove TODO_dump_func.
21259 * emit-rtl.c: Remove TODO_dump_func.
21260 * store-motion.c: Remove TODO_dump_func.
21261 * cfgexpand.c: Remove TODO_dump_func.
21262 * tree-cfgcleanup.c: Remove TODO_dump_func.
21263 * cfgcleanup.c: Remove TODO_dump_func.
21264 * tree-ssa-pre.c: Remove TODO_dump_func.
21265 * tree-sra.c: Remove TODO_dump_func.
21266 * tree-mudflap.c: Remove TODO_dump_func.
21267 * tree-ssa-copy.c: Remove TODO_dump_func.
21268 * cfglayout.c: Remove TODO_dump_func.
21269 * tree-ssa-forwprop.c: Remove TODO_dump_func.
21270 * tree-ssa-dce.c: Remove TODO_dump_func.
21271 * ira.c: Remove TODO_dump_func.
21272 * tree-ssa.c: Remove TODO_dump_func.
21273 * integrate.c: Remove TODO_dump_func.
21274 * tree-optimize.c: Remove TODO_dump_func.
21275 * tree-ssa-phiprop.c: Remove TODO_dump_func.
21276 * tree-object-size.c: Remove TODO_dump_func.
21277 * combine.c: Remove TODO_dump_func.
21278 * bb-reorder.c: Remove TODO_dump_func.
21279 * cprop.c: Remove TODO_dump_func.
21280 * var-tracking.c: Remove TODO_dump_func.
21281 * tree-profile.c: Remove TODO_dump_func.
21282 * tree-vect-generic.c: Remove TODO_dump_func.
21283 * reg-stack.c: Remove TODO_dump_func.
21284 * sched-rgn.c: Remove TODO_dump_func.
21285 * tree-ssa-structalias.c: Remove TODO_dump_func.
21286 * tree-switch-conversion.c: Remove TODO_dump_func.
21287 * tree-cfg.c: Remove TODO_dump_func.
21288 * tree-ssa-reassoc.c: Remove TODO_dump_func.
21289 * combine-stack-adj.c: Remove TODO_dump_func.
21290 * dce.c: Remove TODO_dump_func.
21291 * tree-ssanames.c: Remove TODO_dump_func.
21292 * regcprop.c: Remove TODO_dump_func.
21293
21294 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
21295
21296 PR middle-end/47364
21297 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
21298 and properly handle result not in Pmode.
21299
21300 2011-06-14 Robert Millan <rmh@gnu.org>
21301
21302 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
21303 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
21304 `config/linux.h'.
21305
21306 * config/i386/kfreebsd-gnu64.h: New file.
21307 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
21308 with `i386/kfreebsd-gnu64.h'.
21309
21310 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
21311 (GNU_USER_LINK_EMULATION64): New macros.
21312 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
21313 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
21314 of hardcoding `elf_i386' and `elf_x86_64'.
21315
21316 2011-06-14 Nick Clifton <nickc@redhat.com>
21317
21318 PR target/49403
21319 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
21320
21321 PR target/49402
21322 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
21323
21324 2011-06-14 Jakub Jelinek <jakub@redhat.com>
21325
21326 PR fortran/49103
21327 * tree.h (DECL_NONSHAREABLE): Define.
21328 (struct tree_decl_common): Change decl_common_unused to
21329 decl_nonshareable_flag.
21330 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
21331 Ignore vars with DECL_NONSHAREABLE bit set.
21332 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
21333 on stores to automatic aggregate vars.
21334
21335 PR rtl-optimization/49390
21336 Revert:
21337 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
21338
21339 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
21340 MEM_ALIAS_SET.
21341
21342 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
21343 Tom de Vries <tom@codesourcery.com>
21344
21345 PR target/45098
21346 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
21347 Document changed semantics.
21348 (max_stmt_executions, max_stmt_executions_int): Declare.
21349 * tree-data-ref.c (estimated_loop_iterations)
21350 (estimated_loop_iterations_int): Move functions...
21351 * tree-ssa-loop-niter.c (estimated_loop_iterations)
21352 (estimated_loop_iterations_int): here.
21353 (record_estimate): Change nb_iterations_upper_bound and
21354 nb_iterations_estimate semantics.
21355 (max_stmt_executions, max_stmt_executions_int): New function.
21356 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
21357 (max_stmt_executions_tree): this.
21358 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
21359 estimated_loop_iterations_tree.
21360 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
21361 max_stmt_executions_int instead of estimated_loop_iterations_int.
21362 * predict.c (predict_loops): Idem.
21363 * tree-parloops.c (parallelize_loops): Idem.
21364 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
21365 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
21366 (init_omega_for_ddr_1): Idem.
21367 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
21368 (loop_prefetch_arrays): Idem
21369 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
21370 max_stmt_executions instead of estimated_loop_iterations.
21371 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
21372 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
21373 instead of nb_iterations_upper_bound.
21374
21375 2011-06-13 Jan Hubicka <jh@suse.cz>
21376
21377 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
21378
21379 2011-06-14 Richard Henderson <rth@redhat.com>
21380
21381 PR debug/48459
21382 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
21383 (based_loc_descr): Assert it's true.
21384 (compute_frame_pointer_to_fb_displacement): Set it, rather than
21385 aborting immediately.
21386
21387 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
21388 Mingfeng Wu <mingfeng@faraday-tech.com>
21389
21390 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
21391
21392 2011-06-13 Jan Hubicka <jh@suse.cz>
21393
21394 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
21395
21396 2011-06-13 Jan Hubicka <jh@suse.cz>
21397
21398 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
21399 similarly to DECL_COMDAT.
21400 * cgraphunit.c (cgraph_analyze_function): Likewise.
21401 * ipa.c (function_and_variable_visibility): Likewise.
21402
21403 2011-06-13 Jan Hubicka <jh@suse.cz>
21404
21405 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
21406 BINFO_VIRTUALS when streaming for ltrans unit.
21407
21408 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
21409
21410 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
21411 (movdi_internal64): Same.
21412
21413 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
21414
21415 PR target/44618
21416 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
21417 a set of similar patterns, where the MATCH_OPERAND for the function
21418 argument is replaced with individual references to hardware registers.
21419 (save_fpregs_<mode>): Ditto
21420 (restore_gpregs_<mode>): Ditto
21421 (return_and_restore_gpregs_<mode>): Ditto
21422 (return_and_restore_fpregs_<mode>): Ditto
21423 (return_and_restore_fpregs_aix_<mode>): Ditto
21424
21425 2011-06-13 Jan Hubicka <jh@suse.cz>
21426
21427 * ipa-utils.c (postorder_stack): New structure.
21428 (ipa_reverse_postorder): Handle aliases.
21429
21430 2011-06-13 Jan Hubicka <jh@suse.cz>
21431
21432 * ipa-inline.c (reset_edge_caches): Walk aliases.
21433 (update_caller_keys): Do not test inlinability of aliases.
21434 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
21435 (do_estimate_growth): Fix typo.
21436
21437 2011-06-13 Jan Hubicka <jh@suse.cz>
21438
21439 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
21440 (can_remove_node_now_p): ... here; handle same comdat groups.
21441 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
21442 (inline_call): Update use of can_remove_node_now_p.
21443
21444 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21445
21446 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
21447 condition to disallow non-identical memory locations.
21448 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
21449 preference to bit manipulation instructions.
21450
21451 2011-06-13 Jan Hubicka <jh@suse.cz>
21452
21453 * cgraph.c (cgraph_for_node_thunks_and_aliases,
21454 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
21455 (nonremovable_p): New function.
21456 (cgraph_can_remove_if_no_direct_calls_p): New function.
21457 (used_from_object_file_p): New functoin.
21458 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
21459 references from aliases.
21460 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
21461 * ipa-inline.c (check_caller_edge): New function.
21462 (want_inline_function_called_once_p): Use it; accept aliases called
21463 once, too.
21464 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
21465
21466 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21467
21468 PR target/48454
21469 * config/arm/neon.md (vec_pack_trunc): Set the lengths
21470 correctly for the case with Quad vectors.
21471
21472 2011-06-13 Jakub Jelinek <jakub@redhat.com>
21473 Ira Rosen <ira.rosen@linaro.org>
21474
21475 PR tree-optimization/49352
21476 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
21477 all, make sure loop_use_stmt after the loop is a def stmt of a used
21478 SSA_NAME that is the only one defined inside of the loop. Don't
21479 check for COND_EXPR and GIMPLE_BINARY_RHS.
21480 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
21481 check_reduction is true.
21482
21483 2011-06-11 Jan Hubicka <jh@suse.cz>
21484
21485 PR middle-end/49373
21486 * ipa.c (cgraph_externally_visible_p): Check resolution info.
21487
21488 2011-06-11 Jan Hubicka <jh@suse.cz>
21489
21490 PR middle-end/48836
21491 * ipa-inline-transform.c: Include tree-pass.h
21492 (inline_transform): Set TODO_update_ssa_only_virtuals.
21493 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
21494
21495 2011-06-11 Jan Hubicka <jh@suse.cz>
21496
21497 PR middle-end/49378
21498 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
21499 aliases and thunks.
21500
21501 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
21502
21503 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
21504 Take number of iterations to peel into account for equally frequent
21505 misalignment values.
21506
21507 2011-06-11 Jan Hubicka <jh@suse.cz>
21508
21509 * lto-streamer-out.c (produce_symtab): Stream out the newly
21510 represented aliases.
21511
21512 2011-06-11 Jan Hubicka <jh@suse.cz>
21513
21514 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
21515 varying args.
21516 (ipa_update_after_lto_read): Likewise.
21517 (ipa_write_node_info): Do not sream call_with_var_arguments.
21518 (ipa_read_node_info): Likewise.
21519
21520 2011-06-11 Jan Hubicka <jh@suse.cz>
21521
21522 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
21523
21524 2011-06-11 Jan Hubicka <jh@suse.cz>
21525
21526 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
21527 (lto_symtab_resolve_can_prevail_p): Likewise.
21528 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
21529 * cgraph.c (same_body_aliases_done): New global var.
21530 (cgraph_same_body_alias_1): Rename to ...
21531 (cgraph_create_function_alias): ... this one; reorg to new
21532 representation.
21533 (cgraph_same_body_alias): Use cgraph_create_function_alias;
21534 record references when asked to.
21535 (cgraph_add_thunk): Fix formating.
21536 (cgraph_get_node): Kill same body alias code.
21537 (cgraph_node_for_asm): Likewise.
21538 (cgraph_remove_same_body_alias): Remove.
21539 (cgraph_remove_node): Kill same body alias code.
21540 (cgraph_mark_address_taken_node): Mark also the aliased function
21541 as having address taken.
21542 (dump_cgraph_node): Dump same body aliases.
21543 (cgraph_for_node_thunks_and_aliases): Update for new alias
21544 representation.
21545 (cgraph_for_node_and_aliases): Likewise.
21546 * cgraph.h (same_body): Kll pointer.
21547 (same_body_alias): Update comment.
21548 (same_body_aliases_done): Declare.
21549 (cgraph_remove_same_body_alias): Remove declaration.
21550 (cgraph_create_function_alias): Declare.
21551 (cgraph_process_same_body_aliases): Declare.
21552 (cgraph_function_with_gimple_body_p): Check for alias.
21553 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
21554 (cgraph_alias_aliased_node): New function.
21555 (cgraph_function_node): Update for new aliases.
21556 (cgraph_function_or_thunk_node): Likewise.
21557 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
21558 (inline_call): Remove dead aliases.
21559 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
21560 name hack for same body aliases.
21561 (clone_of_p): Look through aliases.
21562 (verify_cgraph_node): Verify aliases.
21563 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
21564 (cgraph_process_same_body_aliases): New function.
21565 (process_function_and_variable_attributes): Disable weakref warning on
21566 alias.
21567 (cgraph_analyze_functions): Handle aliases.
21568 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
21569 (assemble_thunks): Rename to ...
21570 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
21571 (cgraph_expand_function): Remove alias output code.
21572 (cgraph_output_in_order): Skip aliases.
21573 (cgraph_preserve_function_body_p): Aliases don't need preserving.
21574 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
21575 (ipa_record_reference): Do not assert on alias references.
21576 (ipa_ref_has_aliases_p): New function.
21577 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
21578 (ipa_ref_has_aliases_p): Declare.
21579 * lto-cgraph.c (lto_output_node): Handle aliases.
21580 (input_node): Likewise.
21581 * lto-streamer-out.c (lto_output): Skip aliases.
21582 (produce_symtab): Kill same_body_alias code.
21583 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
21584 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
21585 * ipa-inline.c (update_caller_keys): Walk aliases.
21586 (inline_small_functions): Fix thinko in previous patch.
21587 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
21588 (function_and_variable_visibility): Do not walk same body aliases.
21589 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
21590 (ipa_pta_execute): Use it.
21591
21592 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
21593
21594 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
21595 (*vec_dupv2df): Rename from vec_dupv2df.
21596 (vec_dupv2df): New expander.
21597
21598 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
21599
21600 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
21601
21602 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
21603
21604 * config/i386/i386.md: Use default value in "isa" attribute.
21605 * config/i386/sse.md: Ditto.
21606 * config/i386/mmx.md: Ditto.
21607
21608 2011-06-10 Wei Guozhi <carrot@google.com>
21609
21610 PR target/45335
21611 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
21612 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21613 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
21614 related peephole2.
21615 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
21616 related peephole2.
21617 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
21618 (arm_legitimate_ldrd_p): New prototype.
21619 (arm_output_ldrd): New prototype.
21620 * config/arm/arm.c (arm_check_ldrd_operands): New function.
21621 (arm_legitimate_ldrd_p): New function.
21622 (arm_output_ldrd): New function.
21623
21624 2011-06-10 David Li <davidxl@google.com>
21625
21626 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
21627 * passes.c (passr_eq): New function.
21628 (create_pass_tab): New function.
21629 (pass_traverse): New function.
21630 (dump_one_pass): New function.
21631 (dump_pass_list): New function.
21632 (dump_passes): New function.
21633
21634 2011-06-10 Jan Hubicka <jh@suse.cz>
21635
21636 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
21637 setting the nothrow flag.
21638 * ipa-reference.c (propagate): Skip aliases.
21639 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
21640 (propagate_nothrow): Skip aliases; do not update cgraph.
21641 (local_pure_const): Do not update cgraph.
21642 * tree-profile.c (tree_profiling): Do fixup_cfg.
21643
21644 2011-06-10 Jan Hubicka <jh@suse.cz>
21645
21646 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
21647 (cgraph_local_node_p): ... here; handle aliases.
21648 (has_addr_references_p): Break out from ...;
21649 (cgraph_remove_unreachable_nodes) ... here.
21650
21651 2011-06-10 Jan Hubicka <jh@suse.cz>
21652
21653 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
21654 * common.opt (flag_inline_functions_called_once): Do not
21655 initialize to 1.
21656
21657 2011-06-10 Jan Hubicka <jh@suse.cz>
21658
21659 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
21660 (ipcp_initialize_node_lattices): Do not deal with aliases;
21661 Do not try to propagate through thunks.
21662 (ipcp_change_tops_to_bottom): Do not deal with aliases.
21663
21664 2011-06-10 Jan Hubicka <jh@suse.cz>
21665
21666 * ipa-prop.c (ipa_write_node_info): Stream jump functions
21667 for indirect calls.
21668 (ipa_read_node_info): Likewise.
21669
21670 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21671
21672 PR lto/49302
21673 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
21674 (build_and_insert_call): Likewise.
21675 (build_and_insert_ref): New.
21676 (gimple_expand_builtin_pow): Minor cleanup.
21677 (gimple_expand_builtin_cabs): New.
21678 (execute_cse_sincos): Add case for BUILT_IN_CABS.
21679
21680 2011-06-10 Jan Hubicka <jh@suse.cz>
21681
21682 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
21683 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
21684 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
21685 (ipcp_propagate_stage): Skip aliases when propagating.
21686 (ipcp_need_redirect_p): Skip aliases.
21687 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
21688 collect_callers_of_node.
21689 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
21690 for aliases.
21691 (ipa_compute_jump_functions): Look through aliases.
21692
21693 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21694
21695 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
21696
21697 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
21698
21699 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
21700 Adjust comments.
21701 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
21702
21703 2011-06-10 Jan Hubicka <jh@suse.cz>
21704
21705 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
21706 Update call of gimple_get_virt_method_for_binfo.
21707 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
21708 refuse_thunks parameter.
21709 (gimple_fold_call): Update.
21710 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
21711
21712 2011-06-10 Jan Hubicka <jh@suse.cz>
21713
21714 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
21715 (not_all_callers_have_enough_arguments_p): ... this one; turn into
21716 worker for cgraph_for_node_and_aliases.
21717 (convert_callers_for_node): Break out from ...
21718 (convert_callers): ... here.
21719 (modify_function): Use collect_callers_of_node.
21720 (ipa_early_sra): Use cgraph_for_node_and_aliases.
21721
21722 2011-06-10 Richard Guenther <rguenther@suse.de>
21723
21724 PR tree-optimization/49361
21725 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
21726 when not already in gimple form.
21727
21728 2011-06-10 Richard Guenther <rguenther@suse.de>
21729
21730 PR bootstrap/49344
21731 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
21732 FOR_EACH_PHI_OR_STMT_USE.
21733
21734 2011-06-10 Jan Hubicka <jh@suse.cz>
21735
21736 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
21737 (clone_inlined_nodes): ... here.
21738 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
21739 to real destination prior inlining.
21740 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
21741 can_early_inline_edge_p, want_early_inline_function_p,
21742 want_early_inline_function_p, want_inline_small_function_p,
21743 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
21744 edge_badness, update_all_callee_keys, lookup_recursive_calls,
21745 add_new_edges_to_heap, inline_small_functions, flatten_function,
21746 inline_always_inline_functions, early_inline_small_functions): Use
21747 cgraph_function_or_thunk_node.
21748 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
21749 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
21750 (do_estimate_edge_growth_1): Break out from ...
21751 (do_estimate_growth) ... here; walk aliases.
21752 (inline_generate_summary): Skip aliases.
21753
21754 2011-06-10 Richard Guenther <rguenther@suse.de>
21755
21756 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
21757 forward when combining, visit inserted stmts when a stmt was changed.
21758
21759 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
21760
21761 * tree.h (error_operand_p): Add.
21762 * dbxout.c (dbxout_type_fields): Use the latter.
21763 * c-decl.c (add_stmt): Likewise.
21764 * gimplify.c (omp_add_variable, omp_notice_variable,
21765 gimplify_scan_omp_clauses): Likewise.
21766
21767 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
21768
21769 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
21770 when a value is actually passed in regs.
21771
21772 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
21773 Laurent Rougé <laurent.rouge@menta.fr>
21774
21775 * doc/invoke.texi (SPARC options): Add -mflat.
21776 * config/sparc/sparc.opt: Likewise.
21777 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
21778 (sparc_flat_expand_prologue): Declare.
21779 (sparc_flat_expand_epilogue): Likewise.
21780 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
21781 (CPP_ENDIAN_SPEC): Replace with...
21782 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
21783 (CPP_SPEC): Adjust to above change.
21784 (EXTRA_SPECS): Likewise.
21785 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
21786 (INCOMING_REGNO): Likewise.
21787 (OUTGOING_REGNO): Likewise.
21788 (LOCAL_REGNO): Likewise.
21789 (SETUP_FRAME_ADDRESSES): Likewise.
21790 (FIXED_REGISTERS): Set 0 for %fp.
21791 (CALL_USED_REGISTERS): Likewise.
21792 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
21793 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
21794 (RETURN_ADDR_REGNUM): Define.
21795 (RETURN_ADDR_RTX): Use it.
21796 (INCOMING_RETURN_ADDR_REGNUM): Define.
21797 (INCOMING_RETURN_ADDR_RTX): Use it.
21798 (DWARF_FRAME_RETURN_COLUMN): Likewise.
21799 (EH_RETURN_REGNUM): Define.
21800 (EH_RETURN_STACKADJ_RTX): Use it.
21801 (EH_RETURN_HANDLER_RTX): Delete.
21802 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
21803 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
21804 Delete.
21805 (struct machine_function): Add frame_size, apparent_frame_size,
21806 frame_base_reg, frame_base_offset, n_global_fp_regs and
21807 save_local_in_regs_p fields.
21808 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
21809 sparc_frame_base_offset, sparc_n_global_fp_regs,
21810 sparc_save_local_in_regs_p): New macros.
21811 (sparc_option_override): Error out if -fcall-saved-REG is specified
21812 for Out registers.
21813 (eligible_for_restore_insn): Fix formatting.
21814 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
21815 (eligible_for_sibcall_delay): Likewise.
21816 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
21817 (sparc_legitimate_address_p): Adjust to above change.
21818 (save_global_or_fp_reg_p): New predicate.
21819 (return_addr_reg_needed_p): Likewise.
21820 (save_local_or_in_reg_p): Likewise.
21821 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
21822 (SORR_SAVE, SORR_RESTORE): Delete.
21823 (sorr_pred_t): New typedef.
21824 (sorr_act_t): New enum.
21825 (save_or_restore_regs): Rename to...
21826 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
21827 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
21828 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
21829 mechanism. Add CFI information for double-word saves in 32-bit mode.
21830 (emit_adjust_base_to_offset): New function extracted from...
21831 (emit_save_or_restore_regs): ...this. Rename the rest to...
21832 (emit_save_or_restore_regs_global_fp_regs): ...this.
21833 (emit_save_or_restore_regs_local_in_regs): New function.
21834 (gen_create_flat_frame_[123]): New functions.
21835 (sparc_expand_prologue): Use SIZE local variable. Adjust.
21836 (sparc_flat_expand_prologue): New function.
21837 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
21838 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
21839 (sparc_flat_expand_epilogue): New function.
21840 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
21841 (output_return): Likewise.
21842 (output_sibcall): Likewise.
21843 (sparc_output_mi_thunk): Likewise.
21844 (sparc_frame_pointer_required): Likewise.
21845 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
21846 function optimization.
21847 * config/sparc/sparc.md (flat): New attribute.
21848 (prologue): Add TARGET_FLAT handling.
21849 (save_register_window): Disable if TARGET_FLAT.
21850 (create_flat_frame_[123]): New patterns.
21851 (epilogue): Add TARGET_FLAT handling.
21852 (sibcall_epilogue): Likewise.
21853 (eh_return): New expander.
21854 (eh_return_internal): New insn and splitter.
21855 (return_internal): Add TARGET_FLAT handling.
21856 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
21857 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
21858 (nonlocal_goto): Add TARGET_FLAT handling.
21859 * config/sparc/t-elf: Add -mflat multilib.
21860 * config/sparc/t-leon: Likewise.
21861
21862 2011-06-10 Jan Hubicka <jh@suse.cz>
21863
21864 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
21865 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
21866 (self_recursive_p): Use cgraph_function_node.
21867 (propagate_pure_const): Likewise.
21868 (propagate_nothrow): Likewise.
21869 * ipa-reference.c (ipa_reference_get_not_read_global): Use
21870 cgraph_function_node.
21871 (propagate_bits): Likewise.
21872 (propagate): Likewise.
21873
21874 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21875 Richard Earnshaw <rearnsha@arm.com>
21876
21877 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
21878 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
21879 (*thumb2_movdi_vfp): Delete.
21880 (*arm_movdi_vfp_cortexa8): Delete.
21881 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
21882 (*movdi_vfp_cortexa8): Likewise.
21883
21884 2011-06-10 Richard Guenther <rguenther@suse.de>
21885
21886 * stor-layout.c (initialize_sizetypes): Give names to all
21887 sizetype kinds.
21888
21889 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
21890
21891 PR tree-optimization/49318
21892 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
21893 irrelevant pattern statements.
21894
21895 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
21896
21897 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
21898
21899 PR bootstrap/49354
21900 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
21901 to last assignment.
21902
21903 2011-06-09 Jan Hubicka <jh@suse.cz>
21904
21905 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
21906 do not recompute reachable flag.
21907 (cgraph_finalize_function, cgraph_analyze_functions): Set
21908 redefined_extern_inline here.
21909
21910 2011-06-09 Jan Hubicka <jh@suse.cz>
21911
21912 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
21913 (cgraph_only_called_directly_p): ... this one; bring offline.
21914 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
21915 varpool_used_from_object_file_p): Drop names from the declaratoin.
21916 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
21917 collect_callers_of_node): New.
21918 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
21919 (cgraph_edge_recursive_p): Use cgraph_function_node.
21920 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
21921 (cgraph_node_cannot_be_local_p_1): Break out from ...
21922 (cgraph_node_can_be_local_p): ... here; walk aliases.
21923 (cgraph_for_node_thunks_and_aliases): New function.
21924 (cgraph_for_node_and_aliases): New function.
21925 (cgraph_make_node_local_1): Break out from ...
21926 (cgraph_make_node_local) ... here; use
21927 cgraph_for_node_thunks_and_aliases.
21928 (cgraph_set_nothrow_flag_1): Break out from ...
21929 (cgraph_set_nothrow_flag) ... here;
21930 use cgraph_for_node_thunks_and_aliases.
21931 (cgraph_set_const_flag_1): Break out from ...
21932 (cgraph_set_const_flag) ... here;
21933 use cgraph_for_node_thunks_and_aliases.
21934 (cgraph_set_pure_flag_1): Break out from ...
21935 (cgraph_set_pure_flag) ... here;
21936 use cgraph_for_node_thunks_and_aliases.
21937 (cgraph_propagate_frequency_1): Break out from ...
21938 (cgraph_propagate_frequency) ... here; use
21939 cgraph_for_node_thunks_and_aliases.
21940 (cgraph_used_from_object_file_p): Do not care about aliases.
21941 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
21942 New functions.
21943 (collect_callers_of_node_1, collect_callers_of_node): New functions.
21944
21945 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
21946
21947 PR rtl-optimization/49154
21948 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
21949 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
21950 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
21951 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
21952 * config/cris/cris.h (cris_register_move_cost): Remove
21953 !TARGET_V32 code. Tweak comments.
21954
21955 2011-06-09 Jan Hubicka <jh@suse.cz>
21956
21957 * cgraphbuild.c (record_eh_tables): Mark personality function as having
21958 address taken.
21959
21960 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
21961
21962 PR rtl-optimization/49154
21963 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
21964 is a matching slot in the hashtable, assign it to classes_ptr.
21965
21966 PR rtl-optimization/49154
21967 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
21968 register classes.
21969 * doc/tm.texi: Regenerate.
21970
21971 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
21972
21973 PR target/49307
21974 * config/sh/sh.md (UNSPEC_CHKADD): New.
21975 (chk_guard_add): New define_insn_and_split.
21976 (symGOT_load): Use chk_guard_add instead of blockage.
21977
21978 2011-06-09 Kai Tietz <ktietz@redhat.com>
21979
21980 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
21981
21982 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
21983
21984 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
21985
21986 2011-06-09 Wei Guozhi <carrot@google.com>
21987
21988 PR target/46975
21989 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
21990 (peephole2 for conditional move): Generate 16 bit instructions.
21991
21992 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
21993
21994 * config/i386/i386.md (*movdi_internal_rex64): Merge
21995 alternatives 6 and 8.
21996
21997 2011-06-09 David Li <davidxl@google.com>
21998
21999 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
22000 * passes.c (passr_eq): New function.
22001 (create_pass_tab): New function.
22002 (pass_traverse): New function.
22003 (dump_one_pass): New function.
22004 (dump_pass_list): New function.
22005 (dump_passes): New function.
22006
22007 2011-06-09 David Li <davidxl@google.com>
22008
22009 * tree-complex.c (tree_lower_complex): Gate cleanup.
22010 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
22011 (execute_optimize_stdarg): Ditto.
22012 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
22013 (execute_cleanup_eh_1): Ditto.
22014 (execute_cleanup_eh): Ditto.
22015 * gcse.c (gate_rtl_pre): Ditto.
22016 (execute_rtl_pre): Ditto.
22017 * except.c (finish_eh_generation): Ditto.
22018 (convert_to_eh_region_ranges): Ditto.
22019 * cprop.c (one_cprop_pass): Ditto.
22020
22021 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
22022
22023 PR target/48673
22024 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
22025 in all basic blocks.
22026
22027 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22028
22029 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
22030 (HAVE_ENABLE_EXECUTE_STACK): Define.
22031 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
22032 (HAVE_ENABLE_EXECUTE_STACK): Define.
22033 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
22034 (HAVE_ENABLE_EXECUTE_STACK): Define.
22035 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
22036 (ENABLE_EXECUTE_STACK): Remove.
22037 (HAVE_ENABLE_EXECUTE_STACK): Define.
22038 [IN_LIBGCC2]: Don't include <windows.h>.
22039 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
22040 (HAVE_ENABLE_EXECUTE_STACK): Define.
22041 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
22042 (HAVE_ENABLE_EXECUTE_STACK): Define.
22043 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
22044 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
22045 (HAVE_ENABLE_EXECUTE_STACK): Define.
22046 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
22047 (HAVE_ENABLE_EXECUTE_STACK): Define.
22048 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
22049 (HAVE_ENABLE_EXECUTE_STACK): Define.
22050 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
22051 (HAVE_ENABLE_EXECUTE_STACK): Define.
22052 * config/alpha/alpha.c (alpha_trampoline_init): Test
22053 HAVE_ENABLE_EXECUTE_STACK.
22054 * config/i386/i386.c (ix86_trampoline_init): Likewise.
22055 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
22056 (sparc64_initialize_trampoline): Likewise.
22057 * libgcc2.c [L_enable_execute_stack]: Remove.
22058 * system.h (ENABLE_EXECUTE_STACK): Poison.
22059 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
22060 * doc/tm.texi: Regenerate.
22061 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
22062
22063 2011-06-09 Jakub Jelinek <jakub@redhat.com>
22064
22065 PR middle-end/49308
22066 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
22067 variable. After resetting and rescanning insn continue with previous
22068 statement.
22069
22070 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22071
22072 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
22073 (gcc_cv_ld_hidden): Likewise.
22074 * configure: Regenerate.
22075 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
22076 (ix86_stack_protect_fail): Mark unused.
22077 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
22078 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
22079 [TARGET_MACHO]: Don't define.
22080 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
22081 (TARGET_STACK_PROTECT_FAIL): Likewise.
22082 (rs6000_stack_protect_fail): Mark unused.
22083 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
22084 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
22085
22086 2011-06-08 Andi Kleen <ak@linux.intel.com>
22087
22088 * varasm.c (get_section): Print location of other conflict
22089 for section conflicts.
22090
22091 2011-06-08 Andi Kleen <ak@linux.intel.com>
22092
22093 * config/i386/driver-i386.c (host_detect_local_cpu):
22094 Add model 0x2d Intel CPU.
22095
22096 2011-06-08 Andi Kleen <ak@linux.intel.com>
22097
22098 * reginfo.c (global_regs_decl): Add.
22099 (globalize_reg): Add decl parameter. Compute location. Pass location
22100 to warnings and add inform. Store decl in global_regs_decl.
22101 * rtl.h (globalize_reg): Update prototype.
22102 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
22103
22104 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
22105
22106 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
22107
22108 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
22109
22110 PR target/49305
22111 * config/sh/predicates.md (general_movsrc_operand): Check
22112 mode for memory with indexed address for QI and HImode.
22113 (general_movdst_operand): Likewise.
22114
22115 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
22116
22117 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
22118
22119 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
22120
22121 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
22122 (num_ssa_operands): Likewise.
22123 (op_iter_init_phiuse): Forward-declare.
22124 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
22125
22126 2011-06-08 Nick Clifton <nickc@redhat.com>
22127
22128 * doc/invoke.texi (ARM Options): Update description of
22129 -mthumb-interwork.
22130
22131 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
22132
22133 * config/i386/driver-i386.c (host_detect_local_cpu): Support
22134 unknown Intel family 0x6 CPUs.
22135
22136 2011-06-08 Martin Jambor <mjambor@suse.cz>
22137
22138 * tree-sra.c (mark_rw_status): Removed.
22139 (analyze_access_subtree): New parameter parent instead of
22140 mark_read and mark_write, propagate from that.
22141
22142 2011-06-08 Julian Brown <julian@codesourcery.com>
22143
22144 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
22145 for double-precision helper functions in hard-float mode if only
22146 single-precision arithmetic is supported in hardware.
22147
22148 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
22149
22150 PR rtl-optimization/49303
22151 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
22152 code_motion_path_driver returned 0 or 1.
22153 (sel_region_finish): Clear h_d_i_d.
22154
22155 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
22156
22157 * config/sh/sh.c (prepare_move_operands): Set pic register
22158 appropriately for global and local dynamic tls models even
22159 if flag_pic is unset.
22160
22161 2011-06-07 Jason Merrill <jason@redhat.com>
22162
22163 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
22164
22165 2011-06-07 Xinliang David Li <davidxl@google.com>
22166 * passes.c (enable_disable_pass): Handle assembler name.
22167 (is_pass_explicitly_enabled_or_disabled): Ditto.
22168
22169 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22170
22171 PR tree-optimization/48497
22172 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
22173
22174 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22175
22176 PR tree-optimization/46728
22177 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
22178 to use gimple_val_nonnegative_real_p.
22179 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
22180 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
22181
22182 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
22183
22184 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
22185
22186 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
22187
22188 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
22189 constant vectors.
22190
22191 2011-06-07 Richard Guenther <rguenther@suse.de>
22192
22193 * stor-layout.c (initialize_sizetypes): Initialize all
22194 sizetypes based on target definitions.
22195 (set_sizetype): Remove.
22196 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
22197 * tree.h (set_sizetype): Remove.
22198
22199 2011-06-07 Nick Clifton <nickc@redhat.com>
22200
22201 * config.gcc: Unify V850 architecture options and add support for
22202 newer V850 architectures.
22203 * config/v850/t-v850e: Delete.
22204
22205 2011-06-07 Richard Guenther <rguenther@suse.de>
22206
22207 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
22208 Call set_sizetype from here.
22209
22210 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
22211
22212 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
22213 (*maddhisi4tb, *maddhisi4tt): New define_insns.
22214
22215 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
22216 Andrew Stubbs <ams@codesourcery.com>
22217
22218 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
22219 multiplies.
22220 * doc/md.texi (Canonicalization of Instructions): Document widening
22221 multiply canonicalization.
22222
22223 2011-06-07 Jakub Jelinek <jakub@redhat.com>
22224
22225 PR gcov-profile/49299
22226 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
22227
22228 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
22229
22230 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
22231 a pointer.
22232 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
22233 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
22234 vect_recog_pow_pattern): Likewise.
22235 (vect_pattern_recog_1): Remove declaration.
22236 (widened_name_p): Remove declaration. Add new argument to specify
22237 whether to check that both types are either signed or unsigned.
22238 (vect_recog_widen_mult_pattern): Update documentation. Handle
22239 unsigned patterns and multiplication by constants.
22240 (vect_pattern_recog_1): Update vect_recog_func references. Use
22241 statement information from the statement returned from pattern
22242 detection functions.
22243 (vect_pattern_recog): Update vect_recog_func reference.
22244 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
22245 multiplication by a constant use the type of the other operand.
22246
22247 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22248
22249 PR rtl-optimization/49145
22250 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
22251
22252 2011-06-06 Jakub Jelinek <jakub@redhat.com>
22253
22254 PR debug/49262
22255 * dwarf2out.c (native_encode_initializer): Decrement count in each
22256 iteration.
22257
22258 PR debug/49294
22259 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
22260 non-MODE_INT modes.
22261
22262 PR c++/49264
22263 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
22264 if stmt folded into nothing.
22265 * tree-inline.c (fold_marked_statements): If a builtin at the end of
22266 a bb folded into nothing, just update cgraph edges and move to next bb.
22267 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
22268 to be NULL. Don't compute count and frequency if new_call is NULL.
22269
22270 2011-06-04 Diego Novillo <dnovillo@google.com>
22271
22272 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
22273 (cgraph.o): Likewise.
22274 (cgraphunit.o): Likewise.
22275 * cgraphunit.c: Include lto-streamer.h
22276 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
22277 if LTO is enabled.
22278 * lto-streamer-in.c (unpack_value_fields): Call
22279 streamer_hooks.unpack_value_fields if set.
22280 (lto_materialize_tree): For unhandled nodes, first try to
22281 call lto_streamer_hooks.alloc_tree, if it exists.
22282 (lto_input_ts_decl_common_tree_pointers): Move reading of
22283 DECL_INITIAL to lto_streamer_read_tree.
22284 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
22285 (lto_streamer_read_tree): New.
22286 (lto_reader_init): Rename from lto_init_reader.
22287 Move initialization code to lto/lto.c.
22288 * lto-streamer-out.c (pack_value_fields): Call
22289 streamer_hooks.pack_value_fields if set.
22290 (lto_output_tree_ref): For tree nodes that are not normally indexable,
22291 call streamer_hooks.indexable_with_decls_p before giving up.
22292 (lto_output_ts_decl_common_tree_pointers): Move handling
22293 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
22294 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
22295 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
22296 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
22297 (lto_streamer_write_tree): New.
22298 (lto_output): Call lto_streamer_init directly.
22299 (lto_writer_init): Remove.
22300 * lto-streamer.c (streamer_hooks): New.
22301 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
22302 instead of lto_preload_common_nodes.
22303 (lto_is_streamable): Move from lto-streamer.h
22304 (lto_streamer_hooks_init): New.
22305 (streamer_hooks): New.
22306 (streamer_hooks_init): New.
22307 * lto-streamer.h (struct output_block): Forward declare.
22308 (struct lto_input_block): Likewise.
22309 (struct data_in): Likewise.
22310 (struct bitpack_d): Likewise.
22311 (struct streamer_hooks): Declare.
22312 (streamer_hooks): Declare.
22313 (lto_streamer_hooks_init): Declare.
22314 (lto_streamer_write_tree): Declare.
22315 (lto_streamer_read_tree): Declare.
22316 (streamer_hooks_init): Declare.
22317 (lto_is_streamable): Move to lto-streamer.c
22318
22319 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22320
22321 * longlong.h (smul_ppmm): The resulting register pair contains the
22322 higher order word first.
22323
22324 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22325
22326 PR tree-optimization/46728
22327 * builtins.c (powi_table): Remove.
22328 (powi_lookup_cost): Remove.
22329 (powi_cost): Remove.
22330 (expand_powi_1): Remove.
22331 (expand_powi): Remove.
22332 (expand_builtin_pow_root): Remove.
22333 (expand_builtin_pow): Remove.
22334 (expand_builtin_powi): Eliminate handling of constant exponent.
22335 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
22336
22337 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22338
22339 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
22340
22341 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22342
22343 * dce.c (reset_unmarked_insns_debug_uses): New.
22344 (delete_unmarked_insns): Skip debug insns.
22345 (prescan_insns_for_dce): Likewise.
22346 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
22347 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
22348 active reg can be found.
22349 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
22350 (convert_regs_1): Use it.
22351
22352 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22353
22354 * tree-pretty-print.c (dump_function_header): Add flags.
22355 Don't dump decl_uid with nouid.
22356 * tree-pretty-print.h (dump_function_header): Adjust.
22357 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
22358 * passes.c (pass_init_dump_file): Pass dump_flags on.
22359 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
22360
22361 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
22362
22363 PR bootstrap/49270
22364 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
22365
22366 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
22367
22368 PR tree-optimization/49243
22369 * calls.c (setjmp_call_p): Also check if fndecl has the
22370 returns_twice attribute.
22371
22372 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22373
22374 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
22375 -ffast-math etc.
22376
22377 2011-06-06 Richard Henderson <rth@redhat.com>
22378 Georg-Johann Lay <avr@gjlay.de>
22379
22380 PR target/42210
22381 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
22382 New predicates.
22383 * config/avr/avr.md ("insv"): New insn expander.
22384 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
22385 "*insv.not.io", "*insv.reg"): New insns.
22386
22387 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
22388
22389 PR target/49285
22390 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
22391 to nonimmediate_operand from memory_operand for the operand that is to
22392 be forced to memory by the expander. Lose the constraints.
22393
22394 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
22395
22396 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
22397 EH return when delayed branches are disabled.
22398
22399 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
22400
22401 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
22402 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
22403 calculation.
22404 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
22405 Simplify MODE_V1DF and MODE_V2SF handling.
22406 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
22407 Simplify MODE_SF handling.
22408
22409 2011-06-04 Jan Hubicka <jh@suse.cz>
22410
22411 PR tree-optimization/48893
22412 PR tree-optimization/49091
22413 PR tree-optimization/49179
22414 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
22415 Bounds check.
22416
22417 2011-06-04 Jan Hubicka <jh@suse.cz>
22418
22419 PR lto/48954
22420 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
22421 bitmaps.
22422
22423 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
22424
22425 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
22426
22427 2011-06-04 Jakub Jelinek <jakub@redhat.com>
22428
22429 PR target/49281
22430 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
22431 to be strictly smaller than 1 << shiftcount.
22432
22433 2011-06-04 Jan Hubicka <jh@suse.cz>
22434
22435 PR tree-optimize/48929
22436 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
22437 of empty predicate.
22438
22439 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
22440
22441 PR debug/48333
22442 * calls.c (emit_call_1): Prefer the __builtin declaration of
22443 builtin functions.
22444
22445 2011-06-03 Diego Novillo <dnovillo@google.com>
22446
22447 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
22448 (lto_input_tree_pointers): Likewise.
22449 * lto-streamer-out.c (pack_value_fields): Likewise.
22450 (lto_output_tree_pointers): Likewise.
22451 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
22452 and OPTIMIZATION_NODE.
22453
22454 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22455
22456 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
22457 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
22458 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
22459 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
22460 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
22461 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
22462 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
22463 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
22464 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
22465 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
22466 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
22467 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
22468 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
22469 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
22470 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
22471 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
22472 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
22473 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
22474 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
22475 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
22476 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
22477 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
22478 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
22479 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
22480 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
22481 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
22482 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
22483 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
22484 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
22485 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
22486 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
22487 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
22488 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
22489 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
22490 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
22491 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
22492 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
22493 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
22494 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
22495 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
22496 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
22497 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
22498 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
22499 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
22500 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
22501 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
22502 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
22503 * system.h (MD_UNWIND_SUPPORT): Poison.
22504 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
22505 * doc/tm.texi: Regenerate.
22506 * unwind-dw2.c: Include md-unwind-support.h instead of
22507 MD_UNWIND_SUPPORT.
22508 * config/ia64/unwind-ia64.c: Likewise.
22509 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22510
22511 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
22512
22513 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
22514
22515 2011-06-03 Richard Henderson <rth@redhat.com>
22516 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22517
22518 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
22519 (sigill_hdlr): Correct insn, insn size.
22520 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
22521
22522 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22523
22524 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
22525 t-slibgcc-dummy.
22526 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
22527 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
22528 * config/mips/t-iris: Remove.
22529 * config/mips/t-irix6: New file.
22530 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
22531
22532 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22533
22534 * Makefile.in (LIB2ADDEHDEP): Remove.
22535 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
22536 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
22537 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
22538 * config/t-darwin (LIB2ADDEHDEP): Remove.
22539 * config/t-freebsd (LIB2ADDEHDEP): Remove.
22540 * config/t-linux (LIB2ADDEHDEP): Remove.
22541
22542 2011-06-03 Diego Novillo <dnovillo@google.com>
22543
22544 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
22545 (lto_register_var_decl_in_symtab): Likewise.
22546 (lto_register_function_decl_in_symtab): Likewise.
22547 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
22548 logic to uniquify_nodes.
22549
22550 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22551
22552 * config/alpha/t-osf5: Remove.
22553 * config/alpha/t-osf-pthread: Remove.
22554 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
22555 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
22556
22557 2011-06-03 Julian Brown <julian@codesourcery.com>
22558
22559 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
22560 (strongarm1110): Use strongarm tuning.
22561 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
22562 * config/arm/arm.c (arm_strongarm_tune): New.
22563 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
22564 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
22565 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
22566 setting, using previous defaults or 1 for Cortex-A5.
22567 (arm_option_override): Set max_insns_skipped from current tuning.
22568
22569 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
22570
22571 * doc/install.texi (Options specification): Document --with-specs.
22572
22573 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22574
22575 * config/arm/neon.md (orndi3_neon): Actually split it.
22576
22577 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
22578
22579 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
22580 * var-tracking.c (reverse_op): Limite recurse depth to 5.
22581
22582 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
22583
22584 PR debug/47590
22585 * target.def (delay_sched2, delay_vartrack): New.
22586 * doc/tm.texi.in: Update.
22587 * doc/tm.texi: Rebuild.
22588 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
22589 * var-tracking.c (gate_handle_var_tracking): Likewise.
22590 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
22591 (bfin_flag_var_tracking): Drop.
22592 (output_file_start): Don't save and override flag_var_tracking.
22593 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
22594 (bfin_reorg): Test original variables.
22595 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22596 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
22597 (ia64_flag_var_tracking): Drop.
22598 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22599 (ia64_file_start): Don't save and override flag_var_tracking.
22600 (ia64_override_options_after_change): Ditto
22601 flag_schedule_insns_after_reload.
22602 (ia64_reorg): Test original variables.
22603 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
22604 (picochip_flag_var_tracking): Drop.
22605 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
22606 (picochip_option_override): Don't save and override
22607 flag_schedule_insns_after_reload.
22608 (picochip_asm_file_start): Ditto flag_var_tracking.
22609 (picochip_reorg): Test original variables.
22610 * config/spu/spu.c (spu_flag_var_tracking): Drop.
22611 (TARGET_DELAY_VARTRACK): Define.
22612 (spu_var_tracking): New.
22613 (spu_machine_dependent_reorg): Call it.
22614 (asm_file_start): Don't save and override flag_var_tracking.
22615
22616 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
22617
22618 PR target/49163
22619 * config/sh/predicates.md (general_movsrc_operand): Return 0
22620 for memory and memory subreg of which address is an invalid
22621 indexed address for QI and HImode.
22622 (general_movdst_operand): Likewise.
22623
22624 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
22625
22626 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
22627 edges only, when there is a non-local label in the function.
22628 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
22629
22630 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
22631
22632 * config/i386/constraints.md (Y3): New register constraint.
22633 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
22634 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
22635 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
22636 *sse2_interleave_lowv2df.
22637
22638 2011-06-02 Julian Brown <julian@codesourcery.com>
22639
22640 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
22641 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
22642 (arm_cortex_a5_tune): New.
22643
22644 2011-06-02 Julian Brown <julian@codesourcery.com>
22645
22646 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
22647 * config/arm/arm.c (arm_default_branch_cost): New.
22648 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
22649 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
22650 (arm_fa726_tune): Set branch_cost field using
22651 arm_default_branch_cost.
22652 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
22653 current_tune structure.
22654 * dojump.c (tm_p.h): Include file.
22655
22656 2011-06-02 Julian Brown <julian@codesourcery.com>
22657
22658 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
22659 tuning.
22660 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
22661 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
22662 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
22663 field.
22664 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
22665 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
22666 (arm_fa726te_tune): Add prefer_constant_pool setting.
22667 (arm_v6t2_tune, arm_cortex_tune): New.
22668 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
22669 prefer_constant_pool setting.
22670
22671 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
22672
22673 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
22674 switch statement.
22675 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
22676 (*movdf_internal) <case 6,7,8>: Ditto.
22677
22678 * config/i386/constraints.md (Y4): New register constraint.
22679 * config/i386/sse.md (vec_set<mode>_0): Merge with
22680 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
22681 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
22682 *vec_extractv2di_1_sse.
22683 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
22684 and *vec_concatv2di_rex64_sse.
22685
22686 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
22687
22688 PR target/48807
22689 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
22690 of cgraph_local_info for null before attempting to use it.
22691
22692 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
22693
22694 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
22695 (current_function_dynamic_alloc_count): Delete.
22696 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
22697 (expand_builtin_nonlocal_goto): Remove obsolete comment.
22698 (expand_builtin_update_setjmp_buf): Remove dead code.
22699 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
22700 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
22701 support.
22702 * function.c (instantiate_virtual_regs): Likewise.
22703 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
22704 for a block with a single abnormal incoming edge.
22705 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
22706 (SETJMP_VIA_SAVE_AREA): Delete.
22707 * config/sparc/sparc-protos.h (load_got_register): Declare.
22708 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
22709 (load_got_register): Make global.
22710 (sparc_frame_pointer_required): Add 'static'.
22711 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
22712 (sparc_builtin_setjmp_frame_value): New function.
22713 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
22714 (save_stack_nonlocal): New expander.
22715 (restore_stack_nonlocal): Likewise.
22716 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
22717 (nonlocal_goto_internal): New insn.
22718 (goto_handler_and_restore): Delete.
22719 (builtin_setjmp_setup): Likewise.
22720 (do_builtin_setjmp_setup): Likewise.
22721 (setjmp): Likewise.
22722 (builtin_setjmp_receiver): New expander.
22723
22724 2011-06-01 David Li <davidxl@google.com>
22725
22726 PR middle-end/49261
22727 * tree-pretty-print.c (dump_function_header): Format cleanup.
22728
22729 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
22730
22731 PR target/49238
22732 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
22733 needed when original operands are used for msw_skip comparison.
22734
22735 2011-06-01 Jakub Jelinek <jakub@redhat.com>
22736
22737 PR debug/49250
22738 * var-tracking.c (add_uses, add_stores): Don't call
22739 cselib_subst_to_values on ENTRY_VALUE.
22740
22741 2011-06-01 Diego Novillo <dnovillo@google.com>
22742
22743 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
22744 output_record_start with LTO_null instead of output_zero.
22745 (lto_output_ts_binfo_tree_pointers): Likewise.
22746 (lto_output_tree): Likewise.
22747 (output_eh_try_list): Likewise.
22748 (output_eh_region): Likewise.
22749 (output_eh_lp): Likewise.
22750 (output_eh_regions): Likewise.
22751 (output_bb): Likewise.
22752 (output_function): Likewise.
22753 (output_unreferenced_globals): Likewise.
22754 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
22755 instead of NUM_TREE_CODES.
22756 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
22757 (lto_output_int_in_range): Change << to >> when shifting VAL.
22758
22759 2011-06-01 Diego Novillo <dnovillo@google.com>
22760
22761 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
22762 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
22763
22764 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
22765
22766 PR target/45074
22767 * optabs.h (valid_multiword_target_p): Declare.
22768 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
22769 doing multi-word operations.
22770 * optabs.c (expand_binop): Likewise.
22771 (expand_doubleword_bswap): Likewise.
22772 (expand_absneg_bit): Likewise.
22773 (expand_unop): Likewise.
22774 (expand_copysign_bit): Likewise.
22775 (multiword_target_p): New function.
22776
22777 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
22778
22779 PR rtl-optimization/48830
22780 PR rtl-optimization/48808
22781 PR rtl-optimization/48792
22782 * reload.c (push_reload): Check contains_reg_of_mode.
22783 * reload1.c (strip_paradoxical_subreg): New function.
22784 (gen_reload_chain_without_interm_reg_p): Use it to handle
22785 paradoxical subregs.
22786 (emit_output_reload_insns, gen_reload): Likewise.
22787
22788 2011-06-01 David Li <davidxl@google.com>
22789
22790 * predict.c : Change pass name
22791 * ipa.c: Ditto.
22792 * dce.c: Ditto.
22793 * tree-profile.c: Ditto.
22794 * except.c: Ditto.
22795
22796 2011-06-01 David Li <davidxl@google.com>
22797
22798 * tree-pretty-print.c (dump_function_header): New function.
22799 * final.c (rest_of_clean_state): Use header dumper.
22800 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
22801 * passes.c (pass_init_dump_file): Use header dumper.
22802
22803 2011-06-01 Jakub Jelinek <jakub@redhat.com>
22804
22805 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
22806 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
22807 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
22808 New functions.
22809 (mem_loc_descriptor): Use them.
22810
22811 * var-tracking.c (create_entry_value): New function.
22812 (vt_add_function_parameter): Use it.
22813
22814 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22815
22816 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
22817 Include <signal.h>, <ucontext.h>.
22818 (sigill_caught): Define.
22819 (sigill_hdlr): New function.
22820 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
22821 insns can be executed.
22822 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
22823 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
22824
22825 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22826
22827 * config/t-slibgcc-darwin: Move to ...
22828 * config/t-slibgcc-dummy: ... this. Clarify comments.
22829 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
22830 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
22831 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
22832 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
22833 Remove i386/t-crtstuff from tmake_file.
22834 (i[34567]86-*-solaris2*): Remove t-svr4,
22835 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
22836 t-slibgcc-dummy.
22837 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
22838 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
22839 sparc/t-crtfm from tmake_file.
22840 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
22841 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
22842 Remove extra_parts.
22843 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
22844 * config/i386/t-nwld (SHLIB_LINK): Remove.
22845 * config/i386/t-rtems-i386: Rename to ...
22846 * config/i386/t-rtems: ... this.
22847 ($(T)crti.o, $(T)crtn.o): Remove.
22848 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
22849 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
22850 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
22851 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
22852 EXTRA_MULTILIB_PARTS): Remove.
22853 * config/sparc/t-sol2-64: Likewise.
22854 * config/sparc/t-sol2: Remove.
22855 * config/sparc/t-crtin: Remove.
22856 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
22857 * config/i386/gmon-sol2.c: Remove.
22858 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
22859 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
22860 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
22861 * config/i386/sol2-gc1.asm: Remove.
22862 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
22863 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
22864 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
22865 * config/t-slibgcc-sld: Remove.
22866
22867 2011-06-01 Jakub Jelinek <jakub@redhat.com>
22868
22869 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
22870 base_type_for_mode with op_mode instead of mode.
22871
22872 2011-06-01 Paul Brook <paul@cpodesourcery.com>
22873
22874 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
22875 Cortex-A15.
22876 * config/arm/arm-tune.md: Regenerate.
22877 * config/arm/arm-tables.opt: Regenerate.
22878 * config/arm/arm.c (FL_DIV): Rename...
22879 (FL_THUMB_DIV): ... to this.
22880 (FL_ARM_DIV): Define.
22881 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
22882 (arm_arch_hwdiv): Remove.
22883 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
22884 (arm_issue_rate): Add cortexr5.
22885 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
22886 __ARM_ARCH_EXT_IDIV__.
22887 (TARGET_IDIV): Define.
22888 (arm_arch_hwdiv): Remove.
22889 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
22890 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
22891 (divsi3, udivsi3): New patterns.
22892 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
22893 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
22894
22895 2011-06-01 Martin Jambor <mjambor@suse.cz>
22896
22897 * ipa-utils.c (ipa_dfs_info): New field scc_no.
22898 * ipa-utils.c (searchc): Set scc_no.
22899
22900 2011-06-01 Martin Jambor <mjambor@suse.cz>
22901
22902 * ipa-utils.c (searchc_env): New field allow_overwritable.
22903 (searchc): do not ignore edges to overwritable nodes if indicated
22904 by env->allow_overwritable.
22905 (ipa_reduced_postorder): Set env.allow_overwritable.
22906
22907 2011-06-01 Richard Guenther <rguenther@suse.de>
22908
22909 * tree.c (free_lang_data): Do not reset boolean_type_node nor
22910 char_type_node.
22911 * lto-streamer.c (lto_record_common_node): Take node pointer,
22912 do not register types.
22913 (lto_preload_common_nodes): Explicitly skip preloading nodes
22914 that differ between frontends.
22915
22916 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
22917
22918 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
22919 NON_FLOAT_REGS.
22920
22921 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
22922
22923 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
22924 parameter value for dump. Dump cost on outermost call only.
22925 (rs6000_memory_move_cost): Dump cost on outermost call only.
22926
22927 2011-05-31 Jakub Jelinek <jakub@redhat.com>
22928
22929 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
22930 DW_OP_GNU_convert ops.
22931
22932 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
22933 cselib_preserve_constants.
22934 (cselib_lookup_1): If cselib_preserve_constants,
22935 a new VALUE is being created for REG and there is a VALUE for the
22936 same register in wider mode, add another loc with lowpart SUBREG of
22937 the wider VALUE.
22938 (cselib_subst_to_values): Handle ENTRY_VALUE.
22939 * var-tracking.c (replace_expr_with_values): Return NULL for
22940 ENTRY_VALUE too.
22941 * dwarf2out.c (convert_descriptor_to_signed): New function.
22942 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
22943 instead of two shifts.
22944 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
22945 the right mode if needed.
22946 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
22947 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
22948 convert_descriptor_to_signed.
22949 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
22950 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
22951
22952 PR target/48688
22953 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
22954
22955 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
22956
22957 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
22958 of X87MODEI12 and SWI48x instead of SSEMODEI24.
22959 (SWI248x): New mode iterator, rename from X87MODEI.
22960 (X87MODEI): Remove mode iterator.
22961 (X87MODEI12): Ditto.
22962 (SSEMODEI24): Ditto.
22963
22964 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
22965
22966 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
22967 * doc/invoke.texi: Document max-vartrack-expr-depth.
22968 * var-tracking.c (EXPR_DEPTH): New.
22969 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
22970
22971 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
22972
22973 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
22974 * config/i386/sse.md: Add n to negated FMA pattern names.
22975
22976 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
22977
22978 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
22979
22980 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
22981
22982 * gengtype-state.c (read_state_params_structs): Initialize previous.
22983
22984 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
22985
22986 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
22987 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
22988
22989 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
22990
22991 * config/i386/i386.md (*movtf_internal): Avoid allocating general
22992 registers. Penalize F*r->o alternative to prevent partial memory
22993 stalls. Slightly penalize *roF->*r alternative. Generate SSE
22994 CONST_DOUBLE immediates when optimizing function for size. Do not move
22995 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
22996 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
22997 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
22998 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
22999 alternatives.
23000 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
23001
23002 (fp_register_operand splitters): Use fp_register_operand
23003 constraint. Do not use FP_REG_P in insn condition.
23004 (any_fp_register_operand splitters): Use any_fp_register_operand
23005 constraint. Do not use ANY_FP_REG_P in insn condition.
23006
23007 2011-05-31 Jan Hubicka <jh@suse.cz>
23008
23009 * cgraph.h (cgraph_inline_failed_t): Give enum a name
23010 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
23011 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
23012 (lto_output_edge): Use output_enum and var_len_unsigned.
23013 (lto_output_varpool_node): Likewise.
23014 (input_overwrite_node): Do not take resolution parameter;
23015 extract it from a bitpack.
23016 (input_node): Do not read resolution; use input_enum and
23017 var_len_unsigned.
23018 (input_varpool_node): Likewise.
23019 (input_edge): Likewise.
23020 (input_cgraph_1): Likewise.
23021
23022 2011-05-31 Richard Guenther <rguenther@suse.de>
23023
23024 * gimple.c (gimple_register_canonical_type): Do not register
23025 any types via gimple_register_type.
23026
23027 2011-05-31 Jan Hubicka <jh@suse.cz>
23028
23029 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
23030 of thunks.
23031
23032 2011-05-31 Jakub Jelinek <jakub@redhat.com>
23033
23034 PR rtl-optimization/49235
23035 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
23036 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
23037
23038 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
23039
23040 PR tree-optimization/49093
23041 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
23042 data references.
23043
23044 2011-05-31 Dodji Seketeli <dodji@redhat.com>
23045
23046 PR debug/49047
23047 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
23048 for concrete functions containing the code of cloned functions.
23049
23050 2011-05-31 Richard Guenther <rguenther@suse.de>
23051
23052 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
23053 to ...
23054 (forward_propagate_into_comparison_1): ... this.
23055 (forward_propagate_comparison): Rename to ...
23056 (forward_propagate_into_comparison): ... this. Split out
23057 real forward propagation code to ...
23058 (forward_propagate_comparison): ... this.
23059 (forward_propagate_into_gimple_cond): Remove looping.
23060 (forward_propagate_into_cond): Likewise.
23061 (simplify_not_neg_expr): Return whether we have done something.
23062 (simplify_gimple_switch): Likewise.
23063 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
23064 (ssa_forward_propagate_and_combine): ... this. Re-structure
23065 to do a forward forward-propagation walk on BBs and a backward
23066 stmt combining walk on BBs. Consistently re-scan changed statements.
23067 (pass_forwprop): Adjust.
23068
23069 2011-05-30 Ian Lance Taylor <iant@google.com>
23070
23071 * godump.c (go_format_type): Correct length of name added to
23072 obstack for anonymous field.
23073
23074 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
23075
23076 PR target/49186
23077 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
23078 part of the second operand is 0.
23079
23080 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
23081
23082 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
23083 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
23084 to memory for !TARGET_MEMORY_MISMATCH_STALL.
23085 (*movdf_internal_rex64): Do not penalize F->r alternative.
23086 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
23087 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
23088 when optimizing function for size. Do not move CONST_DOUBLEs
23089 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
23090 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
23091 SUBREGs. Do not check for MEM_P operands in the insn condition,
23092 check for ANY_FP_REGNO_P instead.
23093 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
23094 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
23095 function for speed.
23096 * config/i386/i386.c (ix86_option_override_internal): Do not
23097 set TARGET_INTEGER_DFMODE_MOVES here.
23098
23099 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
23100
23101 PR target/49168
23102 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
23103
23104 2011-05-30 Jakub Jelinek <jakub@redhat.com>
23105
23106 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
23107 DW_TAG_rvalue_reference_type even for
23108 -gdwarf-4 -fno-debug-types-section.
23109
23110 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23111
23112 PR tree-optimization/46728
23113 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
23114 (build_and_insert_binop): New.
23115 (gimple_expand_builtin_pow): Reorder args for
23116 build_and_insert_call; use build_and_insert_binop; add more
23117 optimizations for fractional exponents.
23118
23119 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
23120
23121 PR bootstrap/49190
23122
23123 Revert:
23124 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
23125
23126 * tree.h (struct tree_identifier): Inherit from tree_typed, not
23127 tree_common.
23128 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
23129 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
23130 TS_BASE instead of TS_COMMON.
23131 * varasm.c (assemble_name): Remove assert.
23132
23133 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
23134
23135 * config.gcc: Keep obselete list sorted.
23136
23137 2011-05-30 Jakub Jelinek <jakub@redhat.com>
23138 Eric Botcazou <ebotcazou@adacore.com>
23139
23140 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
23141 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
23142 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
23143 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
23144 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
23145
23146 2011-05-30 Richard Guenther <rguenther@suse.de>
23147
23148 * gimple.c (gimple_types_compatible_p_1): Compare record
23149 and union type members properly.
23150
23151 2011-05-30 Richard Guenther <rguenther@suse.de>
23152
23153 PR tree-optimization/49210
23154 * ipa-split.c (split_function): Care for the case where the call
23155 result is not trivially convertible to the result holding variable.
23156
23157 2011-05-30 Richard Guenther <rguenther@suse.de>
23158
23159 PR tree-optimization/49218
23160 * tree-vrp.c (adjust_range_with_scev): Properly check whether
23161 overflow occured.
23162
23163 2011-05-30 Richard Guenther <rguenther@suse.de>
23164
23165 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
23166 New function split out from ...
23167 (forward_propagate_into_gimple_cond): ... here. Adjust.
23168 (forward_propagate_into_cond): Likewise.
23169 (forward_propagate_comparison): Also propagate into
23170 comparisons on assignment RHS. Change return value to
23171 behave similar to forward_propagate_into_cond.
23172 (tree_ssa_forward_propagate_single_use_vars): Handle
23173 strict-overflow warnings properly for forward_propagate_comparison.
23174
23175 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23176
23177 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
23178 from plugin linker.
23179 * configure: Regenerate.
23180
23181 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
23182
23183 PR tree-optimization/49199
23184 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
23185 non-reduction operands are either defined in the loop or by induction.
23186
23187 2011-05-29 Xinliang David Li <davidxl@google.com>
23188
23189 * opts-global.c (handle_common_deferred_options): Handle new options.
23190 * passes.c (register_one_dump_file): Call register_pass_name.
23191 (execute_one_pass): Check explicit enable/disable flag.
23192 (passr_hash): New function.
23193 (passr_eq): Ditto.
23194 (register_pass_name): Ditto.
23195 (get_pass_by_name): Ditto.
23196 (pass_hash): Ditto.
23197 (pass_eq): Ditto.
23198 (enable_pass): Ditto.
23199 (disable_pass): Ditto.
23200 (is_pass_explicitly_enabled_or_disabled): Ditto.
23201
23202 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
23203
23204 * config/i386/i386.md (*movoi_internal_avx): Use
23205 standard_sse_constant_opcode for alternative 0.
23206 (*movti_internal_sse): Ditto.
23207 (*movti_internal_rex64): Use standard_sse_constant_opcode for
23208 alternative 2.
23209 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
23210 sselog1 type moves.
23211 (*movsi_internal): Ditto.
23212 (*movdi_internal): Ditto. Add ssecvt type moves.
23213
23214 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
23215
23216 PR target/48830
23217 * rtlanal.c (simplify_subreg_regno): Adjust comment.
23218
23219 2011-05-29 Jakub Jelinek <jakub@redhat.com>
23220
23221 PR rtl-optimization/49095
23222 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
23223 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
23224
23225 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
23226
23227 PR target/43995
23228 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
23229 recurse_p argument. Only follow register copies if it is set,
23230 and prevent mips_find_pic_call_symbol from recursing.
23231 (mips_find_pic_call_symbol): Add a recurse_p argument.
23232 Pass it to mips_pic_call_symbol_from_set.
23233 (mips_annotate_pic_calls): Update accordingly.
23234
23235 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
23236
23237 * emit-rtl.c (try_split): Use a loop to search for
23238 NOTE_INSN_CALL_ARG_LOCATIONs.
23239
23240 2011-05-29 Richard Guenther <rguenther@suse.de>
23241
23242 PR tree-optimization/49217
23243 * ipa-pure-const.c (propagate_pure_const): Fix typos.
23244
23245 2011-05-28 Jan Hubicka <jh@suse.cz>
23246
23247 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
23248 length.
23249 (string_slot_free): Remove
23250 (create_output_block): Initialize obstack.
23251 (destroy_output_block): Free obstack.
23252 (lto_string_index): Add PERSISTENT parameter; do not duplicate
23253 the string unless it needs to be added into the hash.
23254 (lto_output_string_with_length): Add persistent attribute;
23255 handle NULL strings.
23256 (lto_output_string): Add PERSISTENT parameter.
23257 (output_string_cst, output_identifier): Simplify.
23258 (lto_output_location_bitpack): Update.
23259 (lto_output_builtin_tree): Update.
23260 * lto-streamer.h (struct output_block): Add obstack.
23261 (lto_output_string, lto_output_string_with_length): Remove
23262 declarations; functions are static now.
23263
23264 2011-05-28 Jan Hubicka <jh@suse.cz>
23265
23266 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
23267 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
23268 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
23269 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
23270 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
23271 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
23272 unpack_ts_decl_with_vis_value_fields,
23273 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
23274 lto_get_builtin_tree): Use enum and variable length i/o.
23275 * basic-block.h (profile_status_d): Add PROFILE_LAST.
23276 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
23277 New functions.
23278 (bp_pack_enum, bp_unpack_enum): New macros.
23279
23280 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23281
23282 * genrecog.c: Remove redundant forward declarations.
23283
23284 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23285
23286 * config.gcc: Deprecate mips*-*-openbsd*.
23287
23288 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23289
23290 PR bootstrap/49195
23291 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
23292 for match_op_dup.
23293
23294 2011-05-27 Andrew Pinski <pinskia@gmail.com>
23295
23296 PR middle-end/48981
23297 * gengtype.c (vec_prefix_type): New function.
23298 (note_def_vec): Use vec_prefix_type and change the length
23299 attribute to be based on the prefix.
23300 * vec.c: Include coretypes.h before vec.h.
23301 (struct vec_prefix): Remove.
23302 (vec_gc_p_reserve): Change the offsetof to sizeof.
23303 (vec_gc_p_reserve_exact): Likewise.
23304 (vec_heap_p_reserve): Likewise.
23305 (vec_heap_p_reserve_exact): Likewise.
23306 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
23307 (vec_stack_p_reserve): Change the offsetof to sizeof.
23308 (vec_stack_p_reserve_exact): Likewise.
23309 * vec.h (struct vec_prefix): New struct definition.
23310 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
23311 (VEC_T_GTY(T,B)): Likewise.
23312 (DEF_VEC_FUNC_P(T)): Use prefix field.
23313 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
23314 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
23315
23316 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23317
23318 PR tree-optimization/46728
23319 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
23320 (powi_as_mults): Add gimple_set_location.
23321 (build_and_insert_call): New.
23322 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
23323 0.5, 0.25, 0.75, 1./3., or 1./6.
23324
23325 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
23326
23327 * doc/contrib.texi: Update copyright years.
23328 (Contributors): Add Zdenek Sojka.
23329
23330 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
23331
23332 * c-decl.c (c_push_function_context): Copy the current statement
23333 list stack.
23334 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
23335 (finish_struct): Call building_stmt_list_p instead of checking
23336 cur_stmt_list.
23337 * c-parser.c (c_parser_postfix_expression): Likewise.
23338 * c-typeck.c (c_end_compound_stmt): Likewise.
23339 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
23340 * tree-iterator.c (stmt_list_cache): Change to a VEC.
23341 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
23342 (free_stmt_list): Likewise.
23343 * tree.h (struct tree_statement_list): Include typed_tree instead
23344 of tree_common.
23345 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
23346 as TS_TYPED instead of TS_COMMON.
23347
23348 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23349 Uros Bizjak <ubizjak@gmail.com>
23350
23351 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
23352 (HAVE_AS_IX86_TLSGDPTL): Define.
23353 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
23354 (HAVE_AS_IX86_TLSLDMPLT): Define.
23355 * configure: Regenerate.
23356 * config.in: Regenerate.
23357 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
23358 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
23359 TARGET_SUN_TLS, use @tlsgdplt or @plt.
23360 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
23361 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
23362 @tlsldmplt or @plt.
23363 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
23364
23365 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
23366
23367 * sched-int.h (struct _haifa_deps_insn_data): New members cond
23368 and reverse_cond.
23369 (INSN_COND, INSN_REVERSE_COND): New macros.
23370 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
23371 once.
23372 (sched_get_condition_with_rev): Cache the results, and look them up
23373 if possible.
23374 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
23375 are clobbered by the current insn.
23376 * target.def (exposed_pipline): New sched data hook.
23377 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
23378 * doc/tm.texi: Regenerate.
23379
23380 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23381
23382 PR tree-optimization/49170
23383 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
23384 sincos or cexp.
23385
23386 2011-05-27 Richard Guenther <rguenther@suse.de>
23387
23388 PR middle-end/49189
23389 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
23390 of comparisons.
23391
23392 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
23393
23394 * haifa-sched.c (sched_scan_info): Remove.
23395 (schedule_block): Call sched_extend_luids rather than sched_init_luids
23396 with NULL args.
23397 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
23398 Remove functions.
23399 (sched_scan): Remove.
23400 (sched_extend_luids): Renamed from luids_extend_insn and no longer
23401 static. All callers changed.
23402 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
23403 static. All callers changed.
23404 (sched_init_luids): Remove all arguments except the first. All
23405 callers changed. Don't use sched_scan.
23406 (haifa_init_h_i_d): Likewise.
23407 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
23408 manually rather than using sched_init_luids. Likewise with
23409 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
23410 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
23411 rather than sched_init_luids with NULL args.
23412 * sel-sched-ir.c (new_insns): Remove variable.
23413 (sched_scan): New static function, previously in haifa-sched.c. Remove
23414 all arguments but the first two; all callers changed.
23415 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
23416 rather than sched_init_luids.
23417 (sel_init_bbs): Remove second argument. All callers changed.
23418 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
23419 with NULL arguments.
23420 (create_insn_rtx_from_pattern): Likewise.
23421 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
23422 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
23423 (sched_init_insn_luid, sched_extend_luids): Declare.
23424 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
23425 declarations.
23426
23427 2011-05-27 Richard Guenther <rguenther@suse.de>
23428
23429 PR middle-end/49177
23430 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
23431 A CMP B ? (T) true : (T) false for non-integral types T again.
23432
23433 2011-05-27 Jan Hubicka <jh@suse.cz>
23434
23435 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
23436 so 0 means NULL string.
23437 (lto_output_string_with_length): ... here.
23438 (lto_output_string, output_string_cst, output_identifier): Update
23439 handling of NULL strings.
23440 (lto_output_location_bitpack): New function.
23441 (lto_output_location): Use it.
23442 (lto_output_tree_ref): Use output_record_start.
23443 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
23444 len values.
23445 * lto-streamer-in.c (string_for_index): Break out from ...; offset
23446 values by 1.
23447 (input_string_internal): ... here;
23448 (input_string_cst, input_identifier, lto_input_string): Update handling
23449 of NULL strings.
23450 (lto_input_location_bitpack): New function
23451 (lto_input_location): Use it.
23452 (unpack_ts_type_common_value_fields): Pack align & alias in var len
23453 values.
23454 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
23455 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
23456 (bp_pack_value): Sanity check the value range.
23457 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
23458 New functions.
23459 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
23460 New functions.
23461
23462 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
23463
23464 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
23465 call_arg_location instructions down the floor.
23466
23467 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
23468
23469 PR rtl-optimization/49154
23470 * ira.c (setup_pressure_classes): Process class without sublcasses
23471 as a candidate for pressure classes.
23472
23473 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
23474
23475 PR rtl-optimization/48575
23476 * genrecog.c (position_type): New enum.
23477 (position): New structure.
23478 (decision): Use position structure instead of a string.
23479 (root_pos, peep2_insn_pos_list): New variables.
23480 (next_position, compare_positions): New functions.
23481 (new_decision): Use position structures instead of strings.
23482 (maybe_both_true): Likewise.
23483 (change_state): Likewise.
23484 (write_tree): Likewise.
23485 (make_insn_sequence): Likewise.
23486
23487 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
23488
23489 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
23490 TS_BASE instead of TS_COMMON.
23491 (find_decls_types_r): Check for TS_TYPED structure before looking at
23492 TREE_TYPE.
23493 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
23494 Add chain field.
23495 (BLOCK_CHAIN): Use new chain field.
23496
23497 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
23498
23499 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
23500 moves expensive on Power7 also.
23501
23502 2011-05-26 Richard Guenther <rguenther@suse.de>
23503
23504 * fold-const.c (fold_unary_loc): Remove bogus code.
23505
23506 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
23507
23508 * tree.h (struct tree_identifier): Inherit from tree_typed, not
23509 tree_common.
23510 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
23511 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
23512 TS_BASE instead of TS_COMMON.
23513 * varasm.c (assemble_name): Remove assert.
23514
23515 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
23516
23517 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
23518 substituted first.
23519 * libgcc-std.ver: Delete file.
23520
23521 2011-05-26 Richard Guenther <rguenther@suse.de>
23522
23523 PR tree-optimization/48702
23524 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
23525 only when we know the base address is within bounds.
23526 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
23527 assume the base address of TARGET_MEM_REFs is in bounds.
23528
23529 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23530
23531 PR target/49099
23532 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
23533 declaration in TARGET_SOLARIS.
23534
23535 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
23536
23537 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
23538 The instruction is then expanded explicitly.
23539 (supported_compare): Callable instruction.
23540 (compare): Likewise.
23541
23542 2011-05-26 Jakub Jelinek <jakub@redhat.com>
23543
23544 PR c++/49165
23545 * gimplify.c (shortcut_cond_r): Don't special case
23546 COND_EXPRs if they have void type on one of their arms.
23547
23548 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
23549
23550 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
23551 to reduce duplication, and to achieve a slightly more logical order
23552 of operations.
23553
23554 2011-05-26 Jakub Jelinek <jakub@redhat.com>
23555
23556 PR tree-optimization/49161
23557 * tree-vrp.c (struct case_info): New type.
23558 (compare_case_labels): Sort case_info structs instead of
23559 trees, and not primarily by CASE_LABEL uids but by
23560 label_for_block indexes.
23561 (find_switch_asserts): Put case labels into struct case_info
23562 array instead of TREE_VEC, adjust sorting, compare label_for_block
23563 values instead of CASE_LABELs.
23564
23565 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23566
23567 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
23568 ("orndi3_neon"): Likewise.
23569 ("bic<mode>3_neon"): Likewise.
23570
23571 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
23572
23573 PR tree-optimization/49038
23574 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
23575 Ensure at least one epilogue iteration if required by data
23576 accesses with gaps.
23577 * tree-vectorizer.h (struct _loop_vec_info): Add new field
23578 to mark loops that require peeling for gaps.
23579 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
23580 (vect_get_known_peeling_cost): Take peeling for gaps into
23581 account.
23582 (vect_transform_loop): Generate epilogue if required by data
23583 access with gaps.
23584 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
23585 loop as requiring an epilogue if there are gaps in the end of
23586 the strided group.
23587
23588 2011-05-25 Ian Lance Taylor <iant@google.com>
23589
23590 * godump.c (go_format_type): Output the first field with a usable
23591 Go type, if any.
23592
23593 2011-05-25 Ian Lance Taylor <iant@google.com>
23594
23595 * godump.c (go_format_type): Check for invalid type names, pointer
23596 target types, and struct field types.
23597
23598 2011-05-25 Jason Merrill <jason@redhat.com>
23599
23600 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
23601
23602 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
23603
23604 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
23605
23606 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23607
23608 * config/i386/i386.md (*movqi_extv_1)): Put back
23609 "register_operand" check in "type" calculation.
23610 (*movqi_extzv_2): Likewise.
23611
23612 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23613
23614 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
23615
23616 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
23617
23618 PR bootstrap/49160
23619 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
23620 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
23621 __divxc3, __divtc3): Wrap definitions in #ifndef.
23622
23623 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23624
23625 PR target/49142
23626 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
23627 "register_operand" check and replace q_regs_operand with
23628 QIreg_operand in "type" calculation.
23629 (*movqi_extv_1): Likewise.
23630 (*movqi_extzv_2_rex64): Likewise.
23631 (*movqi_extzv_2): Likewise.
23632
23633 * config/i386/predicates.md (QIreg_operand): New.
23634
23635 2011-05-25 Richard Guenther <rguenther@suse.de>
23636
23637 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23638 type-based offset disambiguation, streamline MEM_REF and
23639 TARGET_MEM_REF handling.
23640
23641 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
23642
23643 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
23644 (bdesc_special_args): Add pause intrinsic.
23645
23646 * config/i386/i386.md (UNSPEC_PAUSE): New.
23647 (pause): Likewise.
23648 (*pause): Likewise.
23649 * config/i386/ia32intrin.h (__pause): Likewise.
23650
23651 * doc/extend.texi (X86 Built-in Functions): Add documentation for
23652 pause intrinsic.
23653
23654 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23655
23656 PR tree-optimization/46728
23657 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
23658 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
23659
23660 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
23661
23662 * tree.h (struct tree_exp): Inherit from struct tree_typed.
23663 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
23664 instead of TS_COMMON.
23665
23666 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
23667
23668 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
23669 LIBGCC2_GNU_PREFIX is defined.
23670 (__N): New macro.
23671 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
23672 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
23673 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
23674 __clz_tab): Define using __N.
23675 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
23676 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
23677 * target.def (libfunc_gnu_prefix): New hook.
23678 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
23679 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
23680 * doc/tm.texi: Regenerate.
23681 * system.h (LIBGCC2_GNU_PREFIX): Poison.
23682 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
23683 account.
23684 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
23685 (init_optabs): Likewise for the bswap libfuncs.
23686 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
23687 and divide.
23688 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
23689 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
23690 * libgcc-std.ver: Remove.
23691 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
23692 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
23693 libgcc-std.ver.
23694 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23695 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
23696 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
23697 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
23698 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
23699 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23700 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
23701 * config/fixed-bit.h (FIXED_OP): Define differently depending on
23702 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
23703 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
23704
23705 2011-05-25 Jan Hubicka <jh@suse.cz>
23706
23707 * lto-streamer-out.c (output_record_start): Use lto_output_enum
23708 (lto_output_tree): Use output_record_start.
23709 * lto-streamer-in.c (input_record_start): Use lto_input_enum
23710 (lto_get_pickled_tree): Use input_record_start.
23711 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
23712 (lto_value_range_error): New function.
23713 * lto-streamer.h (lto_value_range_error): Declare.
23714 (lto_output_int_in_range, lto_input_int_in_range): New functions.
23715 (lto_output_enum, lto_input_enum): New macros.
23716
23717 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
23718
23719 * common.opt (flag_stack_usage_info): New variable.
23720 (-Wstack-usage): New option.
23721 * doc/invoke.texi (Warning options): Document -Wstack-usage.
23722 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
23723 <OPT_fstack_usage>: Likewise.
23724 * toplev.c (output_stack_usage): Handle -Wstack-usage.
23725 * calls.c (expand_call): Test flag_stack_usage_info variable instead
23726 of flag_stack_usage.
23727 (emit_library_call_value_1): Likewise.
23728 * explow.c (allocate_dynamic_stack_space): Likewise.
23729 * function.c (instantiate_virtual_regs ): Likewise.
23730 (prepare_function_start): Likewise.
23731 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
23732 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
23733 * config/arm/arm.c (arm_expand_prologue): Likewise.
23734 (thumb1_expand_prologue): Likewise.
23735 * config/avr/avr.c (expand_prologue): Likewise.
23736 * config/i386/i386.c (ix86_expand_prologue): Likewise.
23737 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
23738 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
23739 * config/mips/mips.c (mips_expand_prologue): Likewise.
23740 * config/pa/pa.c (hppa_expand_prologue): Likewise.
23741 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
23742 * config/s390/s390.c (s390_emit_prologue): Likewise.
23743 * config/sh/sh.c (sh_expand_prologue): Likewise.
23744 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
23745 * config/spu/spu.c (spu_expand_prologue): Likewise.
23746
23747 2011-05-25 Richard Guenther <rguenther@suse.de>
23748
23749 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
23750 (gimple_canonical_types_compatible_p): Likewise.
23751
23752 2011-05-25 Jan Hubicka <jh@suse.cz>
23753
23754 PR middle-end/49062
23755 * ipa.c (function_and_variable_visibility): Only add to same
23756 comdat group list if DECL_ONE_ONLY.
23757
23758 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
23759
23760 PR rtl-optimization/49014
23761 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
23762
23763 2011-05-25 Jakub Jelinek <jakub@redhat.com>
23764
23765 PR target/49128
23766 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
23767
23768 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
23769
23770 PR rtl-optimization/48757
23771 * ira-build.c (loop_with_eh_edge_p): Rename to
23772 loop_with_complex_edge_p, check edges on complexity, make function
23773 conditional.
23774 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
23775 conditional.
23776
23777 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
23778
23779 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
23780 force flag_ira_share_save_slots to 0.
23781
23782 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
23783
23784 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
23785 (vt_initialize): Set PROLOGUE_BB unconditionally.
23786 Add block comment about CFA_BASE_RTX machinery.
23787 Reset FP_CFA_OFFSET to -1 on all invalid paths.
23788 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
23789
23790 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
23791
23792 PR objc/48187
23793 * c-parser.c (c_parser_objc_class_instance_variables): More robust
23794 parsing of syntax error in ObjC instance variable lists. In
23795 particular, avoid an infinite loop if there is a stray ']'.
23796 Updated error message.
23797
23798 2011-05-24 Ian Lance Taylor <iant@google.com>
23799
23800 * godump.c (go_define): Don't accept a string immediately after
23801 another operand.
23802
23803 2011-05-24 Ian Lance Taylor <iant@google.com>
23804
23805 * godump.c (struct godump_container): Add invalid_hash field.
23806 (go_format_type): Return false if type is found in invalid_hash.
23807 (go_output_typedef): Add invalid type to invalid_hash.
23808 (go_finish): Create and delete invalid_hash.
23809
23810 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23811
23812 PR tree-optimization/46728
23813 * tree-ssa-math-opts.c (powi_table): New.
23814 (powi_lookup_cost): New.
23815 (powi_cost): New.
23816 (powi_as_mults_1): New.
23817 (powi_as_mults): New.
23818 (gimple_expand_builtin_powi): New.
23819 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
23820 (gate_cse_sincos): Remove sincos/cexp restriction.
23821
23822 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23823
23824 PR target/3746
23825 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
23826 mips-tdump native.
23827 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
23828 * mips-tdump.c: Likewise.
23829
23830 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
23831
23832 PR target/49128
23833 * config/i386/driver-i386.c (host_detect_local_cpu): Always
23834 add -mno-XXX. Handle FMA.
23835
23836 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
23837
23838 PR rtl-optimization/48633
23839 * ira-build.c (loop_with_eh_edge_p): New function.
23840 (mark_loops_for_removal): Use it.
23841
23842 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
23843
23844 PR rtl-optimization/48971
23845 * ira.c (setup_pressure_classes): Don't check register move cost
23846 for classes with one registers. Don't add pressure class if there
23847 is a pressure class with the same available hard registers.
23848 Check contains_reg_of_mode. Fix a typo in collecting
23849 temp_hard_regset. Ignore hard registers not belonging to a class.
23850
23851 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
23852
23853 PR target/49133
23854 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
23855
23856 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
23857 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23858
23859 PR gcov-profile/48845
23860 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
23861
23862 2011-05-24 Richard Guenther <rguenther@suse.de>
23863
23864 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
23865 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
23866 (gimple_types_compatible_p_1): Adjust.
23867 (iterative_hash_canonical_type): Do not bother about complete vs.
23868 incomplete types.
23869 (gimple_canonical_types_compatible_p): Likewise.
23870
23871 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23872
23873 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
23874
23875 2011-05-24 Richard Guenther <rguenther@suse.de>
23876
23877 PR bootstrap/49078
23878 * gimple.c (gimple_register_canonical_type): Revert
23879 previous change.
23880 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
23881 does not for a tree for the case where it matters. Cache
23882 pointer-type alias-sets.
23883
23884 2011-05-24 Joseph Myers <joseph@codesourcery.com>
23885
23886 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
23887 (OBJS): Remove options.o, opts-common.o and prefix.o.
23888 (OBJS-libcommon-target): New.
23889 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
23890 (BACKEND): Include libcommon-target.a.
23891 (MOSTLYCLEANFILES): Include libcommon-target.a.
23892 (libcommon-target.a): New.
23893 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
23894 prefix.o.
23895
23896 2011-05-23 Joseph Myers <joseph@codesourcery.com>
23897
23898 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
23899 parts of output shared with the driver.
23900 * optc-gen.awk: Don't generate parts of output not shared with the
23901 driver.
23902 * opth-gen.awk: Remove GCC_DRIVER conditionals.
23903 * doc/options.texi (SourcerInclude): Mention options-save.c.
23904 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
23905 (OBJS): Add options-save.o.
23906 (options-save.c, options-save.o): New.
23907 (options.o): Update dependencies.
23908 (gcc-options.o): Remove.
23909 (mostlyclean): Remove options-save.c.
23910
23911 2011-05-23 Jakub Jelinek <jakub@redhat.com>
23912
23913 PR debug/49032
23914 * dbxout.c: Include cgraph.h.
23915 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
23916 and without value expr, return NULL if no varpool node exists for
23917 it or if it is not needed.
23918 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
23919
23920 PR c/49120
23921 * c-decl.c (start_decl): Convert expr to void_type_node.
23922
23923 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
23924
23925 PR rtl-optimization/48826
23926 * emit-rtl.c (try_split): When splitting a call that is followed
23927 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
23928
23929 2011-05-23 Jakub Jelinek <jakub@redhat.com>
23930
23931 * cfgexpand.c (expand_debug_expr): For unused non-addressable
23932 parameters passed in memory prefer using DECL_INCOMING_RTL over
23933 the pseudos it will be copied into.
23934
23935 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
23936
23937 PR target/47315
23938 * config/i386/i386.c (ix86_option_override_internal): Save the
23939 initial options after checking vzeroupper.
23940
23941 2011-05-23 David Li <davidxl@google.com>
23942
23943 PR tree-optimization/48988
23944 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
23945 Initialize has_valid_pred for each pred chain.
23946
23947 2011-05-23 Richard Guenther <rguenther@suse.de>
23948
23949 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
23950 (iterative_hash_gimple_type): Always hash type names.
23951
23952 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
23953
23954 * c-typeck.c (build_function_call_vec): Tweak call to
23955 check_function_arguments.
23956
23957 2011-05-23 Richard Guenther <rguenther@suse.de>
23958
23959 PR tree-optimization/49115
23960 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
23961 is not necessarily carried out, do not claim it kills the ref.
23962 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
23963
23964 2011-05-23 Richard Guenther <rguenther@suse.de>
23965
23966 PR middle-end/15419
23967 * builtins.c (fold_builtin_memory_op): Be less restrictive about
23968 what pointer types we accept for folding.
23969
23970 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23971
23972 * gthr-gnat.c: Remove.
23973 * gthr-gnat.h: Remove.
23974 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
23975 * config/t-freebsd (LIB2ADDEH): Likewise.
23976 * config/t-linux (LIB2ADDEH): Likewise.
23977 * config/t-sol2 (LIB2ADDEH): Likewise.
23978 * config/ia64/t-vms (LIB2ADDEH): Likewise.
23979 * configure.ac (target_thread_file): Remove gnat handling.
23980 * configure: Regenerate.
23981 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
23982
23983 2011-05-23 Tristan Gingold <gingold@adacore.com>
23984 Eric Botcazou <ebotcazou@adacore.com>
23985
23986 * gcov.c (create_file_names): If no object directory is specified,
23987 keep the directory of the file.
23988
23989 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23990
23991 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
23992 * configure: Regenerate.
23993
23994 2011-05-23 Jakub Jelinek <jakub@redhat.com>
23995
23996 PR middle-end/48973
23997 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
23998 failed and the comparison has a single bit signed type, use
23999 constm1_rtx instead of const1_rtx for true value.
24000 (do_store_flag): If ops->type is single bit signed type, disable
24001 signel bit test optimization and pass -1 instead of 1 as last
24002 parameter to emit_store_flag_force.
24003
24004 2011-05-23 Tom de Vries <tom@codesourcery.com>
24005
24006 PR target/45098
24007 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
24008 function.
24009 (infer_loop_bounds_from_undefined): Use new function.
24010
24011 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
24012
24013 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
24014 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
24015 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
24016 and -O0 otherwise.
24017 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
24018
24019 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
24020
24021 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
24022 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
24023 returns true.
24024
24025 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
24026
24027 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
24028
24029 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
24030
24031 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
24032 UNSPEC_MOVE_PIC pattern.
24033
24034 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
24035
24036 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
24037 (sparc-*-rtems*): Likewise.
24038 (sparc64-*-elf*): Likewise.
24039 (sparc64-*-rtems*): Likewise.
24040 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
24041 * config/sparc/t-crtin: New file.
24042 * config/sparc/t-sol2 (crti.o): Delete rule.
24043 (crtn.o): Likewise.
24044 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
24045 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
24046 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
24047 (ENDFILE_SPEC): Add crtn.o.
24048
24049 2011-05-22 Tom de Vries <tom@codesourcery.com>
24050
24051 PR middle-end/48689
24052 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
24053 CODE_CONTAINS_STRUCT (TS_COMMON).
24054
24055 2011-05-22 Jakub Jelinek <jakub@redhat.com>
24056
24057 PR middle-end/49029
24058 * expmed.c (extract_fixed_bit_field): Test whether target can be used
24059 only after deciding which mode to use.
24060
24061 2011-05-22 Tom de Vries <tom@codesourcery.com>
24062
24063 PR target/45098
24064 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
24065 for call to get_shiftadd_cost.
24066
24067 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
24068
24069 PR target/49104
24070 * config/i386/cpuid.h (bit_MMXEXT): New define.
24071
24072 2011-05-22 Nick Clifton <nickc@redhat.com>
24073
24074 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
24075 initialisation of non-existant args[2] element. Use args[] array
24076 not arg[] array to pass arguments to build_function_type_list.
24077
24078 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
24079
24080 PR tree-optimization/49087
24081 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
24082
24083 2011-05-21 Jason Merrill <jason@redhat.com>
24084
24085 PR c++/49092
24086 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
24087 static storage duration.
24088
24089 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
24090
24091 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
24092 frame pointer.
24093
24094 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
24095
24096 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
24097 false if there are call-saved registers here...
24098 (sparc_can_use_return_insn_p): ...but here instead.
24099 (save_or_restore_regs): Fix thinko.
24100 (sparc_expand_prologue): Use current_function_is_leaf.
24101 (sparc_frame_pointer_required): Likewise.
24102
24103 2011-05-21 Nick Clifton <nickc@redhat.com>
24104
24105 PR target/49098
24106 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
24107
24108 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
24109
24110 * gengtype.c (walk_type): Implemented "atomic" GTY option.
24111 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
24112
24113 2011-05-21 Joseph Myers <joseph@codesourcery.com>
24114
24115 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
24116 * optc-gen.awk: Move common code to opt-read.awk.
24117 * opth-gen.awk: Likewise.
24118 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
24119
24120 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
24121
24122 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
24123
24124 2011-05-20 Tom de Vries <tom@codesourcery.com>
24125
24126 PR target/45098
24127 * tree-ssa-loop-ivopts.c: Include expmed.h.
24128 (get_shiftadd_cost): New function.
24129 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
24130
24131 2011-05-20 Jakub Jelinek <jakub@redhat.com>
24132
24133 PR bootstrap/49086
24134 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
24135 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
24136
24137 2011-05-20 Joseph Myers <joseph@codesourcery.com>
24138
24139 * Makefile.in: Update comment referring to $(OBJS-common).
24140
24141 2011-05-20 Ian Lance Taylor <iant@google.com>
24142
24143 * godump.c (go_output_typedef): Put enum constants in the macro
24144 hash table to avoid duplicate Go const definitions.
24145
24146 2011-05-20 Joseph Myers <joseph@codesourcery.com>
24147
24148 * Makefile.in (LIBDEPS): Add libcommon.a.
24149 (LIBS): Likewise.
24150 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
24151 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
24152 pretty-print.o and version.o.
24153 (OBJS-libcommon): New.
24154 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
24155 (BACKEND): Add libcommon.a.
24156 (MOSTLYCLEANFILES): Likewise.
24157 (libcommon.a): New.
24158 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
24159 (cpp$(exeext)): Likewise.
24160 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
24161 pretty-print.o and input.o.
24162 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
24163 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
24164 (errors.o): Remove.
24165 (mips-tfile): Don't explicitly use version.o.
24166 (mips-tdump): Likewise.
24167 (gcov.o): Depend on $(DIAGNOSTIC_H).
24168 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
24169 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
24170 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
24171 * gcov-dump.c: Include intl.h and diagnostic.h.
24172 (main): Initialize diagnostics.
24173 * gcov.c: Include diagnostic.h.
24174 (fnotice): Remove.
24175 (main): Initialize diagnostics.
24176 * lto-wrapper.c: Include diagnostic.h.
24177 (main): Initialize diagnostics.
24178
24179 2011-05-20 Michael Matz <matz@suse.de>
24180
24181 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
24182
24183 2011-05-20 Michael Matz <matz@suse.de>
24184 Richard Guenther <rguenther@suse.de>
24185
24186 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
24187 use lto_streamer_cache_append directly instead of returning a VEC.
24188 (preload_common_node): Remove.
24189 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
24190 track seen nodes.
24191 (lto_streamer_cache_create): Call lto_preload_common_nodes.
24192
24193 2011-05-20 Richard Guenther <rguenther@suse.de>
24194
24195 PR tree-optimization/49079
24196 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
24197 MEM_REFs correctly for the trailing array access detection.
24198 Special case constants the same way as decls for overall size
24199 constraining.
24200
24201 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
24202
24203 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
24204 argument expansion.
24205
24206 2011-05-20 Jakub Jelinek <jakub@redhat.com>
24207
24208 PR tree-optimization/49073
24209 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
24210 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
24211 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
24212
24213 2011-05-20 Richard Guenther <rguenther@suse.de>
24214
24215 PR middle-end/48849
24216 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
24217 of pointer types the same way the middle-end does.
24218
24219 2011-05-20 Richard Guenther <rguenther@suse.de>
24220
24221 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
24222 or pointer-to chains. Delay all fixup to uniquify_nodes.
24223
24224 2011-05-19 Quentin Neill <quentin.neill@amd.com>
24225
24226 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
24227 (fma4_fmaddsub): Likewise
24228
24229 2011-05-19 Jan Hubicka <jh@suse.cz>
24230
24231 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
24232 (GIMPLE_TYPE_PAIR_SIZE): New macro.
24233 (type_pair_cache): New static var.
24234 (lookup_type_pair): Use fixed sized custom hash; make inline.
24235 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
24236 calls of lookup_type_pair.
24237 (print_gimple_types_stats): Remove cache stats.
24238 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
24239 and gtc_ob.
24240
24241 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
24242
24243 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
24244 when TARGET_RDRND is active.
24245 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
24246 Generate dummy SImode target register when target is NULL.
24247
24248 2011-05-19 Joseph Myers <joseph@codesourcery.com>
24249
24250 * config/arm/arm-fpus.def: New.
24251 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
24252 arm-fpus.def.
24253 * config/arm/arm-tables.opt: Regenerate.
24254 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
24255 (arm_option_override): Don't decode FPU name to string here.
24256 * config/arm/arm.opt (mfpu=): Use Enum.
24257 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
24258 Update dependencies.
24259
24260 2011-05-19 Joseph Myers <joseph@codesourcery.com>
24261
24262 * collect2.c: Include diagnostic.h.
24263 (fatal_perror, fatal, error, fancy_abort): Remove.
24264 (main): Set progname. Call xmalloc_set_program_name and
24265 diagnostic_initialize.
24266 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
24267 scan_libraries, resolve_lib_name): Call fatal_error instead of
24268 fatal and fatal_perror.
24269 * collect2.h (error, fatal, fatal_perror): Don't declare.
24270 * tlink.c: Include diagnostic-core.h.
24271 (recompile_files): Call fatal_error instead of fatal_perror.
24272 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
24273 pretty-print.o and input.o.
24274 (collect2.o, tlink.o): Update dependencies.
24275
24276 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24277
24278 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
24279
24280 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24281
24282 PR target/40483
24283 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
24284 COMDAT group syntax, both SPARC and x86 variants.
24285 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
24286 * configure: Regenerate.
24287 * config/sol2.h (TARGET_SOLARIS): Define.
24288 (PUSHSECTION_FORMAT): Remove.
24289 (SECTION_NAME_FORMAT): Define.
24290 * config/sol2.c: Include hashtab.h.
24291 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
24292 expansion, using SECTION_NAME_FORMAT.
24293 (solaris_comdat_htab): New variable.
24294 (struct comdat_entry): Define.
24295 (comdat_hash): New function.
24296 (comdat_eq): New function.
24297 (solaris_elf_asm_comdat_section): New function.
24298 (solaris_define_comdat_signature): New function.
24299 (solaris_code_end): New function.
24300 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
24301 (solaris_code_end): Declare.
24302 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
24303 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
24304 solaris_code_end.
24305 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
24306 Remove ATTRIBUTE_UNUSED.
24307 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
24308 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
24309 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
24310 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
24311 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
24312 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
24313 (PUSHSECTION_FORMAT): Remove.
24314 (SECTION_NAME_FORMAT): Redefine.
24315
24316 2011-05-19 Kai Tietz <ktietz@redhat.com>
24317
24318 * tree-cfg.c (verify_gimple_assign_binary): Barf on
24319 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
24320 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
24321
24322 2011-05-19 Anatoly Sokolov <aesok@post.ru>
24323 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24324
24325 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
24326
24327 2011-05-19 Richard Guenther <rguenther@suse.de>
24328
24329 PR middle-end/48985
24330 * tree-object-size.c (addr_object_size): If the pointed-to
24331 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
24332
24333 2011-05-19 Richard Guenther <rguenther@suse.de>
24334
24335 * gimple.c (gimple_types_compatible_p_1): Compare names of
24336 the types themselves.
24337 (iterative_hash_gimple_type): And hash them that way.
24338 (gimple_register_type_1): If we register a main variant properly
24339 initialize the leader to ourselves.
24340
24341 2011-05-19 Tom de Vries <tom@codesourcery.com>
24342
24343 PR target/45098
24344 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
24345 get_loop_invariant_expr_id.
24346 (get_loop_invariant_expr_id): Use get_expr_id.
24347 (parm_decl_cost): New function.
24348 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
24349 Improve bound cost estimation. Use different inv_expr_id for elim and
24350 express cases.
24351
24352 2011-05-19 Tom de Vries <tom@codesourcery.com>
24353
24354 PR target/45098
24355 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
24356 cost_base.cost == 0.
24357
24358 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
24359
24360 PR target/49002
24361 * config/i386/sse.md
24362 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
24363 load cast.
24364
24365 2011-05-18 Jakub Jelinek <jakub@redhat.com>
24366
24367 PR tree-optimization/49039
24368 * tree-vrp.c (extract_range_from_binary_expr): For
24369 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
24370 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
24371
24372 2011-05-18 Tom de Vries <tom@codesourcery.com>
24373
24374 PR target/45098
24375 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
24376
24377 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
24378
24379 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
24380 (*tls_global_dynamic_64): Ditto.
24381 (*tls_local_dynamic_base_32_gnu): Ditto.
24382 (*tls_local_dynamic_base_64): Ditto.
24383 (tls_initial_exec_64_sun): Ditto.
24384
24385 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
24386
24387 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
24388 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
24389 bf592-none.
24390 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
24391 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
24392 * config/bfin/bfin.c (bfin_cpus): Add bf592.
24393 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
24394 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
24395 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
24396 * config/bfin/elf.h (LIB_SPEC): Add bf592.
24397
24398 2011-05-18 Joseph Myers <joseph@codesourcery.com>
24399
24400 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
24401 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
24402 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
24403 target_thread_pointer, arm_structure_size_boundary, struct
24404 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
24405 struct abi_name, arm_all_abis): Remove.
24406 (arm_option_override) Don't process most enumerated option values here.
24407 Don't process target_fpe_name here. Work with integer not string for
24408 structure size boundary; use separate diagnostics for each case.
24409 * config/arm/arm.h (enum float_abi_type, enum
24410 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
24411 to arm-opts.h.
24412 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
24413 arm_structure_size_boundary): Remove.
24414 * config/arm/arm.opt (mabi=): Use Enum and Init.
24415 (arm_abi_type): New Enum and EnumValue entries.
24416 (mfloat-abi=): Use Enum and Init.
24417 (float_abi_type): New Enum and EnumValue entries.
24418 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
24419 (mfp16-format=): Use Enum and Init.
24420 (arm_fp16_format_type): New Enum and EnumValue entries.
24421 (mstructure-size-boundary=): Use UInteger and Init.
24422 (mtp=): Use Enum and Init.
24423 (arm_tp_type): New Enum and EnumValue entries.
24424
24425 2011-05-18 Richard Guenther <rguenther@suse.de>
24426
24427 PR tree-optimization/49018
24428 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
24429 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
24430 gimple_has_side_effects.
24431
24432 2011-05-18 Richard Guenther <rguenther@suse.de>
24433
24434 * gimple.c (gimple_register_type_1): New function, split out from ...
24435 (gimple_register_type): ... here. Avoid infinite recursion.
24436
24437 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
24438
24439 PR tree-optimization/41881
24440 * tree-vectorizer.h (struct _loop_vec_info): Add new field
24441 reduction_chains along with a macro for its access.
24442 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
24443 (destroy_loop_vec_info): Free reduction chains.
24444 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
24445 (vect_is_slp_reduction): New function.
24446 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
24447 (vect_create_epilog_for_reduction): Support SLP reduction chains.
24448 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
24449 definition types for reduction chains.
24450 (vect_supported_load_permutation_p): Don't allow permutations for
24451 reduction chains.
24452 (vect_analyze_slp_instance): Support reduction chains.
24453 (vect_analyze_slp): Try to build SLP instance from reduction chains.
24454 (vect_get_constant_vectors): Handle reduction chains.
24455 (vect_schedule_slp_instance): Mark the first statement of the
24456 reduction chain as reduction.
24457
24458 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
24459
24460 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
24461 names for group elements access.
24462 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
24463 reduction chains as well. Remove data reference and interleaving
24464 related words from the fields names.
24465 * tree-vect-loop.c (vect_transform_loop): Use new names for group
24466 elements access.
24467 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
24468 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
24469 vect_update_interleaving_chain, vect_same_range_drs,
24470 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
24471 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
24472 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
24473 vect_analyze_group_access, vect_analyze_data_ref_access,
24474 vect_create_data_ref_ptr, vect_transform_strided_load,
24475 vect_record_strided_load_vectors): Likewise.
24476 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
24477 vect_model_load_cost, vectorizable_store, vectorizable_load,
24478 vect_remove_stores, new_stmt_vec_info): Likewise.
24479 * tree-vect-slp.c (vect_build_slp_tree,
24480 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
24481
24482 2011-05-18 Richard Guenther <rguenther@suse.de>
24483
24484 PR middle-end/48989
24485 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
24486 operand verification.
24487 (verify_gimple_assign_binary): Likewise.
24488 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
24489 to non-1-precision BOOLEAN_TYPEs.
24490
24491 2011-05-18 Tom de Vries <tom@codesourcery.com>
24492
24493 PR target/45098
24494 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
24495
24496 2011-05-18 Jakub Jelinek <jakub@redhat.com>
24497
24498 PR tree-optimization/49000
24499 * tree-ssa.c (execute_update_addresses_taken): Call
24500 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
24501 be rewritten and decl has been marked for renaming, reset
24502 the debug stmt.
24503
24504 2011-05-17 Joseph Myers <joseph@codesourcery.com>
24505
24506 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
24507 enum_opts_set when testing if attributes have set -mfpmath=.
24508
24509 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24510
24511 * config/mips/mips.c (mips_handle_option): Remove unused variable.
24512
24513 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
24514
24515 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
24516 info->entry with 0
24517 * tree-inline.c (maybe_inline_call_in_expr): Initialize
24518 id.transform_lang_insert_block with NULL.
24519
24520 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
24521
24522 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
24523 (output_fp_compare): Change args 3 and 4 to bool.
24524 (ix86_expand_call): Change arg 6 to bool.
24525 (ix86_attr_length_immediate_default): Change arg 2 to bool.
24526 (ix86_attr_length_vex_default): Change arg 3 to bool.
24527 * config/i386/i386.md: Update all uses.
24528 * config/i386/i386.c: Ditto.
24529 (ix86_flags_dependent): Change return type to bool.
24530
24531 2011-05-17 Richard Guenther <rguenther@suse.de>
24532
24533 * gimple.c (type_hash_pair_compare): Fix comparison.
24534
24535 2011-05-17 Richard Guenther <rguenther@suse.de>
24536
24537 * gimple.c (iterative_hash_gimple_type): Simplify singleton
24538 case some more, fix final hash value of the non-singleton case.
24539
24540 2011-05-17 Richard Guenther <rguenther@suse.de>
24541
24542 PR bootstrap/49013
24543 Revert
24544 2011-05-16 Richard Guenther <rguenther@suse.de>
24545
24546 * gimple.c (gimple_types_compatible_p_1): Use names of the
24547 type itself, not its main variant.
24548 (iterative_hash_gimple_type): Likewise.
24549
24550 2011-05-17 Richard Guenther <rguenther@suse.de>
24551
24552 * gimple.c (gimple_register_canonical_type): Use the main-variant
24553 leader for computing the canonical type.
24554
24555 2011-05-17 Nick Clifton <nickc@redhat.com>
24556
24557 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
24558 moves.
24559
24560 * config/rx/rx.md: Add peephole to remove redundant extensions
24561 after loads.
24562 (bitset_in_memory): Use rx_restricted_mem_operand.
24563 (bitinvert_in_memory): Likewise.
24564 (bitclr_in_memory): Likewise.
24565
24566 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
24567 Nick Clifton <nickc@redhat.com>
24568
24569 * config/rx/rx.md: Add peepholes to match a register move followed
24570 by a comparison of the moved register. Replace these with an
24571 addition of zero that does both actions in one instruction.
24572
24573 2011-05-17 Jakub Jelinek <jakub@redhat.com>
24574
24575 PR target/48986
24576 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
24577 predicate to allow CONST_INT.
24578 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
24579
24580 2011-05-16 Joseph Myers <joseph@codesourcery.com>
24581
24582 * opts-common.c (opt_enum_arg_to_value): New.
24583 * opts.h (opt_enum_arg_to_value): Declare.
24584 * config/i386/i386.opt (fpmath): Remove.
24585 (mfpmath=): Use Enum, Init and Save.
24586 (fpmath_unit): New Enum and EnumValue entries.
24587 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
24588 name for function fpmath state.
24589 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
24590 * config/i386/i386.c: Include diagnostic.h.
24591 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
24592 (ix86_target_string): Take enum fpmath_unit value instead of string.
24593 (ix86_debug_options): Update call to ix86_target_string.
24594 (ix86_option_override_internal): Don't process fpmath strings here.
24595 (x86_function_specific_save, ix86_function_specific_restore):
24596 Don't handle fpmath state specially.
24597 (ix86_function_specific_print): Pass fpmath state to
24598 ix86_target_string instead of printing in this function.
24599 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
24600 Handle enum attributes.
24601 (IX86_ATTR_ENUM, ix86_opt_enum): New.
24602 (ix86_valid_target_attribute_tree): Update option_strings
24603 handling. Handle fpmath as enum option.
24604 (ix86_can_inline_p): Update field names for function fpmath state.
24605 (ix86_expand_builtin): Update call to ix86_target_string.
24606 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
24607 (ix86_fpmath): Remove.
24608 * config/i386/t-i386 (i386.o): Update dependencies.
24609
24610 2011-05-16 Joseph Myers <joseph@codesourcery.com>
24611
24612 PR preprocessor/48677
24613 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
24614 from decoded_options[0], not from itself.
24615
24616 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
24617
24618 * config/i386/constraints.md (z): New constraint.
24619 * config/i386/i386.c (c): New mode attribute.
24620 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
24621 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
24622 constraint for operand 0.
24623 (*call_vzeroupper): Ditto.
24624 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
24625 (*call_rex64_ms_sysv_vzeroupper): Ditto.
24626 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
24627 Use "lzm" constraint for operand 0.
24628 (*call_pop_vzeroupper): Ditto.
24629 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
24630 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
24631 constraint for operand 0.
24632 (*sibcall_vzeroupper): Ditto.
24633 (*sibcall_rex64_ms_sysv): Ditto.
24634 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
24635 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
24636 *sibcall_pop_1. Use "Uz" constraint for operand 0.
24637 (*sibcall_pop_vzeroupper): Ditto.
24638 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
24639 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
24640 mode iterator. Use "<c>zm" constraint for operand 1.
24641 (*call_value_vzeroupper): Ditto.
24642 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
24643 for operand 1.
24644 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
24645 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
24646 *call_value_pop_1. Use "lzm" constraint for operand 1.
24647 (*call_value_pop_vzeroupper): Ditto.
24648 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
24649 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
24650 mode iterator. Use "Uz" constraint for operand 1.
24651 (*sibcall_value_vzeroupper): Ditto.
24652 (*sibcall_value_rex64_ms_sysv): Ditto.
24653 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
24654 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
24655 constraint for operand 1.
24656 (*sibcall_value_pop_vzeroupper): Ditto.
24657 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
24658 and "z" constraint for operand 2.
24659 (*tls_global_dynamic_32_gnu): Ditto.
24660 (*tls_local_dynamic_base_32_gnu): Ditto.
24661 (*tls_local_dynamic_base_64): Ditto.
24662 (*tls_local_dynamic_32_once): Ditto.
24663 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
24664 Update all callers.
24665 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
24666
24667 2011-05-16 Richard Guenther <rguenther@suse.de>
24668
24669 * gimple.c (gimple_types_compatible_p_1): Use names of the
24670 type itself, not its main variant.
24671 (iterative_hash_gimple_type): Likewise.
24672
24673 2011-05-16 Richard Guenther <rguenther@suse.de>
24674
24675 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
24676 always visit pointer target and function result and argument types.
24677
24678 2011-05-16 Jason Merrill <jason@redhat.com>
24679
24680 PR c++/48999
24681 * tree-inline.c (copy_statement_list): Put back recursion.
24682
24683 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
24684
24685 PR target/27663
24686 PR target/41076
24687 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
24688 * config/avr/avr.md ("*ior<mode>qi.byte0",
24689 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
24690
24691 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
24692
24693 PR target/45099
24694 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
24695 register is needed for a function argument.
24696
24697 2011-05-16 Richard Guenther <rguenther@suse.de>
24698
24699 * gimple.c (struct type_hash_pair): New type.
24700 (type_hash_pair_compare): New function.
24701 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
24702
24703 2011-05-16 Revital Eres <revital.eres@linaro.org>
24704
24705 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
24706
24707 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
24708
24709 * config/i386/i386.md (floating point move splitters): Fix
24710 usage of standard_80387_constant_p.
24711 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
24712
24713 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
24714
24715 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
24716
24717 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
24718
24719 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
24720 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
24721 (tree_ssa_lim_finalize): Likewise.
24722
24723 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
24724
24725 * config/i386/constraint.md (Yd, Yx): New register constraints.
24726 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
24727 Yd conditional register constraint.
24728 (*movtf_internal): Use standard_sse_constant_opcode.
24729 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
24730 Yx conditional register constraint.
24731 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
24732 Yd conditional register constraint. Use standard_sse_constant_p to
24733 check for valid SSE constants and call standard_sse_constant_opcode to
24734 output SSE insn.
24735 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
24736 constants and call standard_sse_constant_opcode to output SSE insn.
24737 * config/i386/i386.c (ix86_option_ovverride_internal): Set
24738 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
24739 optimize_size is set.
24740 (standard_sse_constant_opcode): Output conditional AVX insn templates.
24741
24742 2011-05-14 Tobias Burnus <burnus@net-b.de>
24743
24744 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
24745
24746 2011-05-13 Martin Jambor <mjambor@suse.cz>
24747
24748 * ipa-prop.c (ipa_cst_from_jfunc): New function.
24749 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
24750 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
24751 (evaluate_conditions_for_ipcp_clone): Removed.
24752 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
24753 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
24754 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
24755
24756 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
24757
24758 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
24759 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
24760 lieu of MAY_HAVE_DEBUG_STMTS.
24761 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
24762 debug statements if !MAY_HAVE_DEBUG_STMTS.
24763
24764 2011-05-13 Martin Thuresson <martint@google.com>
24765
24766 PR gcov-profile/47793
24767 * libgcov.c (gcov_exit): Support relative profile paths.
24768 * doc/invoke.texi (-fprofile-dir): Update for above change.
24769
24770 2011-05-13 Richard Guenther <rguenther@suse.de>
24771
24772 * gimple.c (gimple_canonical_types_compatible_p): Do not use
24773 type-pair caching, do not compare hashes.
24774
24775 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
24776
24777 PR middle-end/48965
24778 * tree-cfg.c (edge_to_cases_cleanup): Return true.
24779 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
24780
24781 2011-05-13 Kai Tietz <ktietz@redhat.com>
24782
24783 * gimplify.c (gimplify_expr): Make sure operand is boolified.
24784 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
24785 compatible type for TRUTH_NOT_EXPR.
24786
24787 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
24788
24789 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
24790 (ix86_hard_regno_mode_ok): Change return value to bool. Use
24791 can_create_pseudo_p ().
24792
24793 2011-05-13 Richard Guenther <rguenther@suse.de>
24794
24795 PR lto/48978
24796 * gimple.c (iterative_hash_gimple_type): Revert change in
24797 pointer target and function result and argument hashing.
24798
24799 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
24800
24801 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
24802 (*movxf_internal_nointeger): Ditto.
24803 (*movdf_internal_rex64): Ditto.
24804 (*movdf_internal): Ditto.
24805 (*movdf_internal_nointeger): Ditto.
24806 (*movsf_internal): Ditto.
24807 (sincos splitters): Use can_create_pseudo ().
24808
24809 2011-05-13 Joseph Myers <joseph@codesourcery.com>
24810
24811 * config/i386/i386-opts.h: New.
24812 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
24813 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
24814 ix86_section_threshold): Remove.
24815 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
24816 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
24817 OPT_mbranch_cost_.
24818 (ix86_option_override_internal): Don't decode strings for options
24819 other than -march=, -mtune= and -mfpmath=. Don't allow for
24820 __attribute__ uses in remaining diagnostics for options with
24821 string arguments. Don't check for integer arguments being negative.
24822 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
24823 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
24824 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
24825 ix86_branch_cost, ix86_section_threshold): Remove.
24826 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
24827 HeaderInclude.
24828 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
24829 but not Var.
24830 (masm=): Use Enum and Init.
24831 (asm_dialect): New Enum and EnumValue entries.
24832 (mbranch-cost=): Use UInteger.
24833 (mlarge-data-threshold=): Use UInteger and Init.
24834 (mcmodel=): Use Enum and Init.
24835 (cmodel): New Enum and EnumValue entries.
24836 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
24837 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
24838 mregparm=): Use UInteger.
24839 (mstringop-strategy=): Use Enum and Init.
24840 (stringop_alg): New Enum and EnumValue entries.
24841 (mtls-dialect=): Use Enum and Init.
24842 (tls_dialect): New Enum and EnumValue entries.
24843 (mabi=): Use Enum and Init.
24844 (calling_abi): New Enum and EnumValue entries.
24845 (mveclibabi=): Use Enum and Init.
24846 (ix86_veclibabi): New Enum and EnumValue entries.
24847
24848 2011-05-13 Nick Clifton <nickc@redhat.com>
24849
24850 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
24851 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
24852
24853 2011-05-13 Kai Tietz <ktietz@redhat.com>
24854
24855 PR middle-end/48984
24856 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
24857 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
24858 (gimple_boolify): Check for cast for boolean_type_node instead for
24859 BOOLEAN_TYPE.
24860
24861 2011-05-13 Richard Guenther <rguenther@suse.de>
24862
24863 PR tree-optimization/48172
24864 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
24865 multiplying by number of iterations for equal step.
24866 (vect_create_cond_for_alias_checks): Likewise.
24867
24868 2011-05-13 Andreas Schwab <schwab@redhat.com>
24869
24870 * configure.ac: Use AS_HELP_STRING throughout.
24871 * configure: Regenerate.
24872
24873 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
24874
24875 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
24876 (ix86_emit_restore_regs_using_mov): Likewise.
24877 (ix86_emit_restore_sse_regs_using_mov): Likewise.
24878
24879 2011-05-12 Anatoly Sokolov <aesok@post.ru>
24880
24881 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
24882 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
24883 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
24884 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
24885 RTX_OK_FOR_OLO10_P): ...here.
24886 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
24887 SYMBOLIC_CONST.
24888
24889 2011-05-12 Kai Tietz <ktietz@redhat.com>
24890
24891 * gimplify.c (gimple_boolify): Re-boolify expression
24892 arguments even if expression type is of kind BOOLEAN_TYPE.
24893 (gimplify_boolean_expr): Removed.
24894 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
24895 and XOR. Additional take care that we keep expression's type.
24896 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
24897 of TRUTH_AND|OR|XOR_EXPR.
24898
24899 2011-05-12 Jakub Jelinek <jakub@redhat.com>
24900
24901 PR tree-optimization/48975
24902 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
24903 on all bbs here and free and clear ifc_bbs at the end.
24904
24905 2011-05-12 Richard Guenther <rguenther@suse.de>
24906
24907 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
24908 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
24909 until after simple checks.
24910 (gimple_types_compatible_p): Likewise.
24911 (iterative_hash_gimple_type): Always hash pointer targets
24912 and function return and argument types.
24913 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
24914 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
24915 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
24916 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
24917 completely in the simple compare section.
24918 (gimple_register_canonical_type): Query the cache again after
24919 registering.
24920
24921 2011-05-12 Richard Guenther <rguenther@suse.de>
24922
24923 PR tree-optimization/48172
24924 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
24925 the number of iterations from the segment size calculation.
24926 (vect_create_cond_for_alias_checks): Adjust.
24927
24928 2011-05-12 Jakub Jelinek <jakub@redhat.com>
24929
24930 PR debug/48967
24931 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
24932 if validate_subreg fails.
24933
24934 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
24935
24936 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
24937 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
24938 early.
24939
24940 2011-05-12 DJ Delorie <dj@redhat.com>
24941
24942 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
24943 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
24944 created builtin into rx_builtins array.
24945 (rx_builtin_decl): New function.
24946 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
24947
24948 2011-05-12 DJ Delorie <dj@redhat.com>
24949 Nick Clifton <nickc@redhat.com>
24950
24951 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
24952 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
24953 (rx_is_legitimate_address): Add pre-decrement and post-increment
24954 addressing in HImode and QImode. Fix test for out of range
24955 REG+INT addressing.
24956 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
24957 (rx_align_for_label): Test label before extracting its usage count.
24958 (rx_adjust_insn_lengths): Fix selection of insn codes.
24959 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
24960
24961 2011-05-11 Jason Merrill <jason@redhat.com>
24962
24963 * tree.c (type_hash_canon): Use struct tree_type_non_common.
24964
24965 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
24966
24967 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
24968 reindent the subsequent block.
24969
24970 2011-05-11 Satoru Takabayashi <satorux@google.com>
24971 Paul Pluzhnikov <ppluzhnikov@google.com>
24972
24973 * doc/install.texi (Configuration): Document --with-linker-hash-style.
24974 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
24975 * config.in: Add LINKER_HASH_STYLE.
24976 * configure.ac: Add --with-linker-hash-style.
24977 * configure: Regenerate.
24978
24979 2011-05-11 Richard Guenther <rguenther@suse.de>
24980
24981 PR middle-end/48964
24982 * gimple.c (iterative_hash_canonical_type): Fix typo.
24983
24984 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
24985
24986 * config/i386/i386.c (legitimize_tls_address)
24987 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
24988 expanders directly for TARGET_GNU2_TLS. Determine pic and
24989 __tls_get_addr symbol reference here. Update call to
24990 gen_tls_global_dynamic_{32,64} for added arguments.
24991 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
24992 expanders directly for TARGET_GNU2_TLS. Determine
24993 __tls_get_addr symbol reference here. Update call to
24994 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
24995 unique UNSPEC REG_EQUIV to libcall block.
24996 (ix86_tls_get_addr): Declare static.
24997 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
24998 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
24999 Do not determine pic and __tls_get_addr symbol reference here. Do not
25000 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
25001 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
25002 (tls_global_dynamic_64): Add operand 2. Do not determine
25003 __tls_get_addr symbol reference here. Do not call
25004 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
25005 (tls_local_dynamic_base64): Ditto for operand 1.
25006
25007 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
25008
25009 * function.c (expand_function_start): Initialize stack_check_probe_note
25010 only if the generic stack checking mechanism is used.
25011
25012 2011-05-11 Richard Guenther <rguenther@suse.de>
25013
25014 PR tree-optimization/15256
25015 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
25016 (A & B) | C, combine (A op CST1) op CST2.
25017 (tree_ssa_forward_propagate_single_use_vars): Only bother to
25018 visit assigns that have uses.
25019
25020 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
25021
25022 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
25023 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
25024 (unpack_ts_type_common_value_fields): ...this. Update comment.
25025 (unpack_value_fields): Adjust for renaming.
25026 (lto_input_ts_type_tree_pointers): Split into...
25027 (lto_input_ts_type_common_tree_pointer): ...this and...
25028 (lto_input_ts_type_non_common_tree_pointers): ...this.
25029 (lto_input_tree_pointers): Adjust for above split.
25030 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
25031 (pack_ts_type_common_value_fields): ...this. Update comment.
25032 (lto_output_ts_type_tree_pointers): Split into...
25033 (lto_output_ts_type_common_tree_pointers): ...this and...
25034 (lto_output_ts_type_non_common_tree_pointers): ...this.
25035 (lto_output_tree_pointers): Adjust for above split.
25036 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
25037 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
25038 * stor-layout.c (vector_type_mode): Adjust location of mode field.
25039 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
25040 Define.
25041 (struct tree_type): Split into...
25042 (struct tree_type_common: ...this and...
25043 (struct tree_type_with_lang_specific): ...this and...
25044 (struct tree_type_non_common): ...this. Adjust accessor macros
25045 accordingly.
25046 (TYPE_VALUES_RAW): Define.
25047 (union tree_node): Update for above changes.
25048 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
25049 TS_TYPE_NON_COMMON.
25050 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
25051 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
25052 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
25053 * treestructu.def (TS_TYPE): Remove.
25054 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
25055 Define.
25056
25057 2011-05-11 Jakub Jelinek <jakub@redhat.com>
25058
25059 PR debug/48159
25060 * tree-ssa.c (reset_debug_uses): New function.
25061 * tree-flow.h (reset_debug_uses): New prototype.
25062 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
25063 * tree-loop-distribution.c (generate_loops_for_partition): Call
25064 reset_debug_uses on the stmts that will be removed. Keep around
25065 all debug stmts, don't count them as bits in partition bitmap.
25066 (generate_builtin): Don't count debug stmts or labels as bits in
25067 partition bitmap.
25068
25069 2011-05-11 Richard Guenther <rguenther@suse.de>
25070
25071 * gimple.c (gimple_type_hash_1): Merge with ...
25072 (gimple_type_hash): ... this.
25073 (gtc_visit): Remove mode parameter and simplify accordingly.
25074 (gimple_types_compatible_p_1): Likewise.
25075 (gimple_types_compatible_p): Likewise.
25076 (iterative_hash_gimple_type): Likewise.
25077 (visit): Likewise.
25078 (gimple_type_eq): Adjust.
25079
25080 2011-05-11 Revital Eres <revital.eres@linaro.org>
25081
25082 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
25083 enters the branch create an anti edge in the opposite direction
25084 to prevent the creation of reg-moves.
25085 * modulo-sched.c: Adjust comment to reflect the fact we are
25086 scheduling closing branch.
25087 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
25088 (stage_count): New field in struct partial_schedule.
25089 (calculate_stage_count): New function.
25090 (normalize_sched_times): Rename to reset_sched_times and handle
25091 incrementing the sched time of the nodes by a constant value
25092 passed as parameter.
25093 (duplicate_insns_of_cycles): Skip closing branch.
25094 (sms_schedule_by_order): Schedule closing branch.
25095 (ps_insn_find_column): Handle closing branch.
25096 (sms_schedule): Call reset_sched_times and adjust the code to
25097 support scheduling of the closing branch.
25098 (ps_insert_empty_row): Update calls to normalize_sched_times
25099 and rotate_partial_schedule functions.
25100
25101 2011-05-11 Richard Guenther <rguenther@suse.de>
25102
25103 PR middle-end/48953
25104 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
25105
25106 2011-05-11 Joseph Myers <joseph@codesourcery.com>
25107
25108 * opts.c (finish_options): Move warning settings from process_options.
25109 * toplev.c (process_options): Move warning settings to finish_options.
25110
25111 2011-05-11 Richard Guenther <rguenther@suse.de>
25112
25113 PR tree-optimization/18041
25114 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
25115 (simplify_bitwise_binary): ... this. Handle operand conversions
25116 by applying them to the result instead.
25117 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
25118
25119 2011-05-11 Richard Guenther <rguenther@suse.de>
25120
25121 * gimple.c (gimple_canonical_types_compatible_p): Split out
25122 from gimple_types_compatible_p and friends. Do not recurse
25123 to pointed-to types.
25124 (gimple_canonical_type_eq): Use it.
25125 (iterative_hash_canonical_type): Split out from
25126 iterative_hash_gimple_type and friends. Do not recurse
25127 to pointed-to types.
25128 (gimple_canonical_type_hash): Use it, allocate the hash here.
25129
25130 2011-05-11 Revital Eres <revital.eres@linaro.org>
25131
25132 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
25133 recognizing doloop.
25134
25135 2011-05-11 Revital Eres <revital.eres@linaro.org>
25136
25137 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
25138 instead of PREV_INSN.
25139
25140 2011-05-11 Revital Eres <revital.eres@linaro.org>
25141
25142 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
25143 * loop-doloop.c (doloop_condition_get): Likewise.
25144 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
25145 (doloop_end): New.
25146 * config/arm/arm.md (*addsi3_compare0): Remove "*".
25147
25148 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
25149
25150 * tree.def (CASE_LABEL_EXPR): Add an operand.
25151 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
25152
25153 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25154
25155 * c-decl.c (c_override_global_bindings_to_false): Remove.
25156 (global_bindings_p): Don't check
25157 c_override_global_bindings_to_false.
25158 * c-tree.h (c_override_global_bindings_to_false): Remove.
25159 * c-typeck.c (composite_type): Don't set
25160 c_override_global_bindings_to_false.
25161
25162 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25163
25164 PR target/48857, 48495
25165 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
25166 (VSX_MODE): Ditto.
25167 (VSX_MOVE_MODE): Ditto.
25168 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
25169 VSX vector types. Add V2DImode.
25170 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
25171 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
25172 (MODES_TIEABLE_P): Ditto.
25173
25174 * config/rs6000/rs6000.c (rs6000_emit_move): Use
25175 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
25176 VSX_VECTOR_MODE.
25177 (init_cumulative_args): Ditto.
25178 (rs6000_function_arg_boundary): Ditto.
25179 (rs6000_function_arg_advance_1): Ditto.
25180 (rs6000_function_arg): Ditto.
25181 (rs6000_function_ok_for_sibcall): Ditto.
25182 (emit_frame_save): Ditto.
25183 (rs6000_function_value): Ditto.
25184 (rs6000_libcall_value): Ditto.
25185
25186 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25187
25188 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25189 i386/darwin-lib.h to $libgcc_tm_file.
25190 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
25191
25192 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25193
25194 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
25195
25196 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25197
25198 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
25199 * config/rs6000/rs6000-tables.opt: New file (generated).
25200 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
25201 rs6000/rs6000-tables.opt to extra_options.
25202 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
25203 * config/rs6000/rs6000.c (rs6000_select): Remove.
25204 (processor_target_table): Move contents to rs6000-cpus.def.
25205 (darwin_rs6000_override_options): Check
25206 global_options_set.x_rs6000_cpu_index instead of
25207 rs6000_select[1].string.
25208 (rs6000_option_override_internal): Likewise.
25209 (rs6000_handle_option): Don't assert that global structures are in
25210 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
25211 (rs6000_default_cpu): New variable.
25212 (rs6000_file_start): Set it instead of local default_cpu. Check
25213 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
25214 global_options_set.x_rs6000_tune_index instead of rs6000_select.
25215 (rs6000_darwin_file_start): Check rs6000_default_cpu and
25216 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
25217 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
25218 rs6000_select): Remove.
25219 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
25220 Remove.
25221 (mcpu=, mtune=): Use Var, Init, Enum and Save.
25222 * config/rs6000/t-rs6000
25223 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
25224 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
25225 global_options_set.x_rs6000_cpu_index instead of
25226 rs6000_select[1].string.
25227 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
25228 global_options_set.x_rs6000_cpu_index instead of
25229 rs6000_select[1].string.
25230
25231 2011-05-10 Joseph Myers <joseph@codesourcery.com>
25232
25233 * config.gcc (libgcc_tm_file): Define instead of including files
25234 from ../../libgcc/config/ in tm_file.
25235 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
25236 * configure: Regenerate.
25237 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
25238 libgcc_tm.h, cs-libgcc_tm.h): New.
25239 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
25240 (clean): Remove libgcc_tm.h.
25241 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
25242 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
25243 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
25244
25245 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
25246
25247 PR target/48896
25248 * config/avr/avr.c (avr_ret_register): Return unsigned int
25249 instead of int.
25250 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
25251 it to avr_libcall_value.
25252 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
25253 expand_expr.
25254 (avr_expand_binop_builtin): Ditto.
25255 (avr_expand_unop_builtin): Ditto.
25256
25257 2011-05-10 DJ Delorie <dj@redhat.com>
25258
25259 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
25260 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
25261 * config/rx/rx.c (rx_align_for_label): Add label and
25262 uses_threshold parameters. Do not align when the label is not
25263 used enough.
25264 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
25265
25266 2011-05-10 Richard Guenther <rguenther@suse.de>
25267
25268 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
25269 a series of conversions and apply foldings similar to what
25270 fold-const does.
25271 (tree_ssa_forward_propagate_single_use_vars): Call it.
25272
25273 2011-05-10 Jakub Jelinek <jakub@redhat.com>
25274
25275 PR tree-optimization/48611
25276 PR tree-optimization/48794
25277 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
25278 referenced from RESX or EH_DISPATCH arguments.
25279
25280 PR debug/48928
25281 * dfp.c (decimal_to_decnumber): Handle conversion from
25282 dconst{1,2,m1,half}.
25283
25284 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25285
25286 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
25287 for !flag_prefer_avx128.
25288 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
25289
25290 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
25291
25292 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
25293 (fold_ternary_loc): Use expr_location_or.
25294
25295 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
25296
25297 PR debug/48853
25298 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
25299 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
25300 Pmode and mem_mode is not VOIDmode.
25301
25302 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
25303
25304 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
25305 TYPE_QUAL_RESTRICT): Convert to enum.
25306
25307 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25308
25309 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
25310 (const_pow2_1_to_8_operand): Ditto.
25311 (const_pow2_1_to_128_operand): Ditto.
25312 (const_pow2_1_to_32768_operand): Ditto.
25313 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
25314 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
25315 in insn constraint to check integer value of operand 3.
25316 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
25317
25318 (PINSR_MODE): New mode iterator.
25319 (sse2p4_1): New mode attribute.
25320 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
25321 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
25322 iterator. Use const_int_operand instead of
25323 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
25324 exact_log2 in insn constraint to check integer value of operand 3.
25325
25326 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25327
25328 * config/i386/sse.md (blendbits): Remove mode attribute.
25329 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
25330 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
25331 Check integer value of operand 3 in insn constraint.
25332
25333 2011-05-09 Richard Guenther <rguenther@suse.de>
25334
25335 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
25336 for diagnostics.
25337 (lto_symtab_merge): Likewise. Do not register types here.
25338 (lto_symtab_merge_decls_2): Likewise.
25339 (lto_symtab_merge_decls_1): Likewise.
25340 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
25341 * gimple.c (enum gtc_mode): Declare.
25342 (gimple_types_compatible_p): Make static.
25343
25344 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25345
25346 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
25347 temporary register to match Pmode.
25348
25349 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25350
25351 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
25352 and *vec_concatv4si_1_avx.
25353
25354 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
25355
25356 PR rtl-optimization/48927
25357 * ira-conflicts.c (commutative_constraint_p): Use
25358 recog_data.alternative_enabled_p to disable alternatives where
25359 "enabled" attribute is false.
25360 (get_dup_num): Ditto.
25361 * ira-lives.c (single_reg_class): Ditto.
25362 (ira_implicitly_set_insn_hard_regs): Ditto.
25363
25364 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
25365
25366 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
25367 (dataflow_set_preserve_mem_locs): Likewise.
25368
25369 2011-05-09 Philipp Thomas <pth@suse.de>
25370
25371 * config/mep/mep.c (mep_validate_vliw): Syntax description
25372 should not be translated.
25373
25374 2011-05-09 Joseph Myers <joseph@codesourcery.com>
25375
25376 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
25377 * config/mips/mips-tables.opt: New file (generated).
25378 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
25379 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
25380 MIPS_ARCH_OPTION_NATIVE): Define.
25381 * config/mips/mips.c (mips_cpu_info_table): Move contents to
25382 mips-cpus.def.
25383 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
25384 mips_parse_cpu): Remove.
25385 (mips_cpu_info_from_opt, mips_default_arch): New.
25386 (mips_handle_option): Don't assert that global structures are in
25387 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
25388 (mips_option_override): Use new variables and functions to set
25389 state of these options. Use strcmp to check for individual CPU names.
25390 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
25391 definition.
25392 * config/mips/mips.opt (march=): Use ToLower and Enum.
25393 (mips): Use ToLower, Enum and Var.
25394 (mtune=): Use ToLower and Enum.
25395 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
25396
25397 2011-05-08 Jan Hubicka <jh@suse.cz>
25398
25399 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
25400 Arrange type pairs to be UID ordered.
25401 (gimple_lookup_type_leader): Make inline.
25402
25403 2011-05-09 Nick Clifton <nickc@redhat.com>
25404
25405 PR target/48899
25406 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
25407 PROCESSOR_DEFAULT.
25408
25409 PR target/48897
25410 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
25411 variable 's'.
25412
25413 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
25414
25415 * combine.c (simplify_comparison): Abstract out parts into...
25416 (simplify_compare_const): ... new function.
25417 (try_combine): Generalize parallel arithmetic/compare combining
25418 to call simplify_compare_const() and CANONICALIZE_COMPARE().
25419
25420 2011-05-08 Jan Hubicka <jh@suse.cz>
25421
25422 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
25423 (cgraph_create_virtual_clone): Call hooks once virtual clone
25424 is finished.
25425 * cgraph.h (cgraph_clone_node): Update prototype.
25426 * ipa-cp.c (ipcp_estimate_growth): Use
25427 estimate_ipcp_clone_size_and_time.
25428 * ipa-inline-transform.c (clone_inlined_nodes): Update.
25429 * lto-cgraph.c (input_node): Update.
25430 * ipa-inline.c (recursive_inlining): Update.
25431 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
25432 (evaluate_conditions_for_known_args): Break out from ...
25433 (evaluate_conditions_for_edge): ... here.
25434 (evaluate_conditions_for_ipcp_clone): New function.
25435 (inline_node_duplication_hook): Update clone summary based
25436 on parameter map.
25437 (estimate_callee_size_and_time): Rename to ...
25438 (estimate_node_size_and_time): take NODE instead of EDGE;
25439 take POSSIBLE_TRUTHS as argument.
25440 (estimate_callee_size_and_time): Update.
25441 (estimate_ipcp_clone_size_and_time): New function.
25442 (do_estimate_edge_time): Update.
25443
25444 2011-05-08 Richard Guenther <rguenther@suse.de>
25445
25446 PR middle-end/48908
25447 PR middle-end/48905
25448 * expmed.c (expand_shift_1): Compute adjusted constant shift
25449 amount manually.
25450
25451 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
25452
25453 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
25454
25455 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
25456
25457 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
25458
25459 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
25460
25461 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
25462
25463 2011-05-07 Jan Hubicka <jh@suse.cz>
25464
25465 * ipa-inline-transform.c (inline_call): Account when program size
25466 decreases.
25467 * ipa-inline.c (relative_time_benefit): New function.
25468 (edge_badness): Reorganize to be power 2 based; fix thinko when
25469 computing badness for negative growth; update comments to match
25470 reality; better dumps.
25471
25472 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
25473
25474 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
25475 type to bool and adjust comment.
25476 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
25477 (fold_mathfn_compare): Remove calls to global_bindings_p.
25478 (fold_inf_compare): Likewise.
25479 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
25480 * c-tree.h (global_bindings_p): Adjust prototype.
25481 * c-decl.c (global_bindings_p): Return bool and simplify.
25482
25483 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
25484
25485 PR tree-optimization/48837
25486 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
25487 when accumulator transformation is performed.
25488
25489 2011-05-06 Jan Hubicka <jh@suse.cz>
25490
25491 * i386.h (ix86_tune_indices): Add
25492 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
25493 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
25494 * i386.c (initial_ix86_tune_features): Add
25495 X86_SOFTARE_PREFETCHING_BENEFICIAL.
25496 (software_prefetching_beneficial_p): Remove predicate.
25497 (ix86_option_override_internal): Use new macro.
25498
25499 2011-05-06 Jan Hubicka <jh@suse.cz>
25500
25501 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
25502
25503 2011-05-06 Jan Hubicka <jh@suse.cz>
25504
25505 * cgraph.c (cgraph_add_thunk): Create real function node instead
25506 of alias node; finalize it and mark needed/reachale; arrange visibility
25507 to be right and add it into the corresponding same comdat group list.
25508 (dump_cgraph_node): Dump thunks.
25509 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
25510 cgraph_function_with_gimple_body_p,
25511 cgraph_first_function_with_gimple_body,
25512 cgraph_next_function_with_gimple_body): New functions.
25513 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
25514 New macros.
25515 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
25516 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
25517 * cgraphunit.c (cgraph_finalize_function): Only look into possible
25518 devirtualization when optimizing.
25519 (verify_cgraph_node): Verify thunks.
25520 (cgraph_analyze_function): Analyze thunks.
25521 (cgraph_mark_functions_to_output): Output thunks only in combination
25522 with function they are assigned to.
25523 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
25524 alias into normal node.
25525 (assemble_thunks): New functoin.
25526 (cgraph_expand_function): Use it.
25527 * lto-cgraph.c (lto_output_node): Stream thunks.
25528 (input_overwrite_node): Stream in thunks.
25529 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
25530 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
25531 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
25532 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
25533 (inline_analyze_function): Do not care about thunk jump functions.
25534 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
25535 * ipa-prop.c (ipa_prop_write_jump_functions): Use
25536 cgraph_function_with_gimple_body_p.
25537 * passes.c (do_per_function_toporder): Use
25538 cgraph_function_with_gimple_body_p.
25539 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
25540 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
25541 (function_called_by_processed_nodes_p): Likewise.
25542
25543 2011-05-06 Joseph Myers <joseph@codesourcery.com>
25544
25545 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
25546 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
25547 entries.
25548 (mabi=): Replace with separate entries for mabi=altivec,
25549 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
25550 mabi=ieeelongdouble and mabi=ibmlongdouble.
25551 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
25552 check for -mabi=spe without SPE ABI support here.
25553 (rs6000_handle_option): Replace OPT_mabi_ handling with
25554 OPT_mabi_altivec and OPT_mabi_spe handling.
25555
25556 2011-05-06 Cary Coutant <ccoutant@google.com>
25557
25558 * dwarf2out.c (contains_subprogram_definition): New function.
25559 (should_move_die_to_comdat): Call it.
25560
25561 2011-05-06 Jeff Law <law@redhat.com>
25562
25563 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
25564 remove_ctrl_stmt_and_useless_edges.
25565 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
25566 (fixup_template_block, thread_single_edge): Likewise.
25567 (mark_threaded_blocks): Use THREAD_TARGET.
25568
25569 2011-05-06 Alan Modra <amodra@gmail.com>
25570
25571 PR target/48900
25572 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25573 const0_rtx as the arg to the dummy __tls_get_addr libcall.
25574
25575 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
25576
25577 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
25578 constraint modifier to "r".
25579
25580 2011-05-06 Joseph Myers <joseph@codesourcery.com>
25581
25582 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
25583 fall through for OPT_mcmodel_.
25584
25585 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25586
25587 * config/s390/s390.c (s390_asm_trampoline_template): Comment
25588 instruction sizes.
25589 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
25590
25591 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25592
25593 PR target/47930
25594 * config/arm/arm.opt (marm): Document it.
25595 (mthumb): Reject negative variant.
25596
25597 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
25598
25599 PR target/48898
25600 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
25601 Fix typo in "ccvt" variable name.
25602
25603 2011-05-06 Tristan Gingold <gingold@adacore.com>
25604
25605 PR target/48895
25606 * config/vms/vms-ar.c (main): Remove cwd variable.
25607
25608 2011-05-06 Jakub Jelinek <jakub@redhat.com>
25609
25610 PR debug/48902
25611 * var-tracking.c (prepare_call_arguments): Move else before #endif.
25612
25613 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
25614
25615 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
25616 * gimplify.c (gimplify_switch_expr): Likewise.
25617 * omp-low.c (expand_omp_sections): Likewise.
25618 * tree-eh.c (lower_try_finally_switch): Likewise.
25619 (lower_eh_dispatch): Likewise.
25620 * tree.h (build_case_label): Declare.
25621 * tree.c (build_case_label): Define.
25622
25623 2011-05-05 Jason Merrill <jason@redhat.com>
25624
25625 PR c++/40975
25626 * tree-inline.c (copy_tree_r): Use copy_statement_list.
25627 (copy_statement_list): Don't recurse.
25628 * stor-layout.c (copy_self_referential_tree_r): Don't allow
25629 STATEMENT_LIST.
25630
25631 2011-05-05 Joseph Myers <joseph@codesourcery.com>
25632
25633 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
25634 through from -mfpu= handling.
25635 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
25636
25637 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
25638
25639 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
25640 POST_MODIFY.
25641
25642 2011-05-05 Steve Ellcey <sje@cup.hp.com>
25643
25644 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
25645 for 11.31.
25646 (hppa[12]*-*-hpux11*): Ditto.
25647 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
25648 * config/ia64/hpux-unix2003.h: New.
25649 * config/pa/pa-hpux1131.opt: New.
25650 * config/pa/pa-hpux1131.h: New.
25651 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
25652 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
25653 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
25654
25655 2011-05-05 Jakub Jelinek <jakub@redhat.com>
25656
25657 PR debug/48853
25658 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
25659 instead of mode as 3rd argument to recursive call.
25660 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
25661 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
25662 VOIDmode.
25663 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
25664 don't give up if mode is Pmode and mem_mode is not VOIDmode.
25665 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
25666 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
25667
25668 2011-05-05 Julian Brown <julian@codesourcery.com>
25669
25670 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
25671 parenthesis in D-register case.
25672
25673 2011-05-05 Joseph Myers <joseph@codesourcery.com>
25674
25675 * opt-functions.awk (var_type_struct): Handle Enum options.
25676 * optc-gen.awk: Don't check range of variables of character type.
25677 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
25678 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
25679 rs6000_sdata_name, rs6000_explicit_options): Remove.
25680 (rs6000_option_override_internal): Check for -malign-power here.
25681 Use global_options_set instead of rs6000_explicit_options.
25682 (rs6000_parse_fpu_option): Remove.
25683 (rs6000_handle_option): Access variables via opts and opts_set
25684 pointers. Use error_at and warning_at. Add fall-through
25685 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
25686 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
25687 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
25688 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
25689 here. Don't use rs6000_parse_fpu_option.
25690 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
25691 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
25692 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
25693 (mrecip=): Use Var.
25694 (mspe): Use Var and Save.
25695 (mtraceback=): Use Enum and Var.
25696 (rs6000_traceback_type): New Enum and EnumValue entries.
25697 (mfloat-gprs=): Use Enum, Var and Save.
25698 (rs6000_float_gprs): New Enum and EnumValue entries.
25699 (mlong-double-): use Var and Save.
25700 (msched-costly-dep=, minsert-sched-nops=): Use Var.
25701 (malign-): Use Enum and Var.
25702 (rs6000_alignment_flags): New Enum and EnumValue entries.
25703 (mfpu=): Use Enum.
25704 (fpu_type_t): New Enum and EnumValue entries.
25705 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25706 global_options_set instead of rs6000_explicit_options.
25707 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25708 global_options_set instead of rs6000_explicit_options.
25709 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25710 global_options_set instead of rs6000_explicit_options.
25711 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
25712 global_options_set instead of rs6000_explicit_options.
25713 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
25714 global_options_set instead of rs6000_explicit_options.
25715 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25716 global_options_set instead of rs6000_explicit_options.
25717 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
25718 definition.
25719 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25720 global_options_set instead of rs6000_explicit_options.
25721 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
25722 (rs6000_cmodel): New Enum and EnumValue entries.
25723 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
25724 global_options_set instead of rs6000_explicit_options.
25725 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
25726 (mtls-size=): Use Enum and Var.
25727 (rs6000_tls_size): New Enum and EnumValue entries.
25728
25729 2011-05-05 Michael Matz <matz@suse.de>
25730
25731 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
25732 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
25733 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
25734 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
25735 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
25736 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
25737 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
25738 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
25739 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
25740 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
25741 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
25742 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
25743 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
25744 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
25745 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
25746 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
25747
25748 2011-05-05 Richard Guenther <rguenther@suse.de>
25749
25750 * expmed.c (expand_variable_shift): Rename to ...
25751 (expand_shift_1): ... this. Take an expanded shift amount.
25752 For rotates recurse directly not building trees for the shift amount.
25753 (expand_variable_shift): Wrap around expand_shift_1.
25754 (expand_shift): Adjust.
25755
25756 2011-05-05 Jakub Jelinek <jakub@redhat.com>
25757
25758 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
25759
25760 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
25761
25762 * tree.h (get_pending_sizes): Remove prototype.
25763 (put_pending_size): Likewise.
25764 (put_pending_sizes): Likewise.
25765 * stor-layout.c (pending_sizes): Delete.
25766 (get_pending_sizes): Likewise.
25767 (put_pending_size): Likewise.
25768 (put_pending_sizes): Likewise.
25769 (variable_size): Do not call put_pending_size and tidy up.
25770 * function.h (struct function): Remove dont_save_pending_sizes_p.
25771 * lto-streamer-in.c (input_function): Do not stream it.
25772 * lto-streamer-out.c (output_function): Likewise.
25773 * tree-inline.c (initialize_cfun): Do not copy it.
25774 * c-decl.c (store_parm_decls): Do not set it.
25775 * omp-low.c (create_task_copyfn): Likewise.
25776 * tree-optimize.c (tree_rest_of_compilation): Likewise.
25777
25778 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
25779
25780 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
25781 conditions.
25782 (*movdf_internal): Ditto.
25783 (*movdf_internal_nointeger): Ditto.
25784 (*movsf_internal): Ditto.
25785
25786 2011-05-05 Joseph Myers <joseph@codesourcery.com>
25787
25788 * c-decl.c (finish_decl): Don't call get_pending_sizes.
25789 (grokparm): Add parameter expr. Pass it to grokdeclarator.
25790 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
25791 (c_variable_size): Remove.
25792 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
25793 call put_pending_sizes.
25794 (get_parm_info): Add parameter expr. Use it to set
25795 arg_info->pending_sizes.
25796 (store_parm_decls): Use arg_info->pending_sizes instead or calling
25797 get_pending_sizes.
25798 * c-parser.c (c_parser_parms_declarator): Update call to
25799 c_parser_parms_list_declarator.
25800 (c_parser_parms_list_declarator): Take parameter expr. Update
25801 call to push_parm_decl. Update recursive call. Don't call
25802 get_pending_sizes. Update calls to get_parm_info.
25803 (c_parser_objc_method_definition): Update calls to
25804 c_parser_objc_method_decl and objc_start_method_definition.
25805 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
25806 (c_parser_objc_method_decl): Add parameter expr. Update call to
25807 grokparm.
25808 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
25809 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
25810 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
25811
25812 2011-05-05 Michael Hope <michael.hope@linaro.org>
25813
25814 PR pch/45979
25815 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
25816 __ARM_EABI__ hosts.
25817
25818 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25819
25820 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
25821 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
25822 (spu_output_mi_thunk): New function.
25823
25824 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25825
25826 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
25827 targetm.asm_out.print_operand.
25828 * config/sol2.c: Include target.h.
25829
25830 2011-05-04 Jan Hubicka <jh@suse.cz>
25831
25832 * ipa-inline.c (reset_edge_caches): New function.
25833 (update_caller_keys): Add check_inlinablity_for; do not
25834 reset edge caches; remove now unnecesary loop.
25835 (update_callee_keys): Add comments; reset node_growth_cache of callee.
25836 (update_all_callee_keys): Likewise.
25837 (inline_small_functions): Sanity check cache; update code
25838 recomputing it.
25839
25840 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
25841
25842 PR rtl-optimization/47612
25843 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
25844 as the last insn of the sequence to be moved.
25845
25846 2011-05-04 Tobias Burnus <burnus@net-b.de>
25847
25848 PR fortran/48864
25849 * doc/invoke.texi (Ofast): Document that it
25850 enables Fortran's -fno-protect-parens.
25851
25852 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
25853
25854 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
25855
25856 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
25857
25858 * stor-layout.c (variable_size): Do not issue errors.
25859
25860 2011-05-04 Richard Guenther <rguenther@suse.de>
25861
25862 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
25863 for array-ref indices.
25864 (tree_coverage_counter_addr): Likewise.
25865 (build_fn_info_type): Use size_int for index types.
25866 (build_gcov_info): Likewise.
25867
25868 2011-05-04 Richard Guenther <rguenther@suse.de>
25869
25870 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
25871 to build_int_cst.
25872 * c-typeck.c (really_start_incremental_init): Use bitsize_int
25873 for constructor indices.
25874 (push_init_level): Likewise.
25875
25876 2011-05-04 Richard Guenther <rguenther@suse.de>
25877
25878 * explow.c (promote_mode): Move variable declarations before code.
25879
25880 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
25881
25882 * tree.h (build_function_type_array): Declare.
25883 (build_varargs_function_type_array): Declare.
25884 (build_function_type_vec, build_varargs_function_type_vec): Define.
25885 * tree.c (build_function_type_array_1): New function.
25886 (build_function_type_array): New function.
25887 (build_varargs_function_type_array): New function.
25888
25889 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
25890
25891 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
25892 before setting STMT_VINFO_TYPE.
25893
25894 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25895
25896 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
25897 instead of spu_pass_by_reference.
25898
25899 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25900
25901 * calls.c (emit_library_call_value_1): Invoke
25902 promote_function_mode hook on libcall arguments.
25903 * explow.c (promote_function_mode, promote_mode): Handle TYPE
25904 argument being NULL.
25905 * targhooks.c (default_promote_function_mode): Lisewise.
25906 * config/s390/s390.c (s390_promote_function_mode): Likewise.
25907 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
25908
25909 * doc/tm.texi: Document that TYPE argument might be NULL.
25910
25911 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
25912
25913 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
25914
25915 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
25916
25917 From Bernd Schmidt
25918 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
25919
25920 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25921
25922 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
25923 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
25924 Move ...
25925 * mips-tfile.c: ... here.
25926 Don't include coretypes.h, tm.h, filenames.h.
25927 (saber_stop): Remove definition and all calls.
25928 [__SABER__]: Remove.
25929 (__LINE__): Remove default.
25930 (Size_t, Ptrdiff_t): Remove definitions.
25931 Replace by size_t, ptrdiff_t.
25932 [!MIPS_DEBUGGING_INFO]: Remove.
25933 (SHASH_SIZE, THASH_SIZE): Remove defaults.
25934 (progname): Add const.
25935 (STATIC): Remove.
25936 Replace all uses by static.
25937 (ALIGN_SYMTABLE_OFFSET): Remove default.
25938 * mips-tdump.c: Don't include coretypes.h, tm.h.
25939 Remove !MIPS_IS_STAB guard.
25940 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
25941 $(TM_H), filenames.h dependencies.
25942 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
25943
25944 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
25945
25946 From Jie Zhang
25947 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
25948 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
25949
25950 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
25951
25952 From Bernd Schmidt
25953 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
25954 account and save/restore RETS.
25955 (PROFILE_BEFORE_PROLOGUE): Define.
25956 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
25957 the push insn to use predecrement.
25958
25959 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
25960
25961 From Jie Zhang
25962 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
25963
25964 2011-05-04 Nick Clifton <nickc@redhat.com>
25965
25966 * config/mn10300/mn10300.c: Include cfgloop.h.
25967 (DUMP): New macro.
25968 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
25969 Lcc or a FLcc insn into the instruction stream.
25970 (mn10300_block_contains_call): New function. Returns true if the
25971 given basic block contains a CALL insn.
25972 (mn10300_loop_contains_call_insn): New function. Returns true if
25973 the given loop contains a CALL insn.
25974 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
25975 to use the SETLB and Lcc or FLcc insns.
25976 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
25977 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
25978 * config/mn10300/mn10300.opt (msetlb): New option. Used to
25979 disable the SETLB optimization.
25980 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
25981 __SETLB__ or __NO_SETLB__.
25982 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
25983 (movsf_internal): Handle MDR register.
25984 (cmpsi): Make visible.
25985 (setlb): New pattern.
25986 (Lcc): New pattern.
25987 (FLcc): New pattern.
25988
25989 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
25990
25991 PR target/48860
25992 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
25993 for reg<->xmm moves.
25994 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
25995 (vec_concatv2di_rex64_sse): Ditto.
25996 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
25997 (*vec_extractv2di_1_rex64): Ditto.
25998
25999 Revert:
26000 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
26001
26002 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
26003 reg<->xmm moves.
26004 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
26005
26006 2011-05-04 Richard Guenther <rguenther@suse.de>
26007
26008 * tree.h (int_const_binop): Remove notrunc argument.
26009 * fold-const.c (int_const_binop): Remove notrunc argument. Always
26010 create integer constants that are properly truncated.
26011 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
26012 (const_binop): Remove zero notrunc argument to int_const_binop.
26013 (size_binop_loc): Likewise.
26014 (fold_div_compare): Likewise.
26015 (maybe_canonicalize_comparison_1): Likewise.
26016 (fold_comparison): Likewise.
26017 (fold_binary_loc): Likewise.
26018 (multiple_of_p): Likewise.
26019 * expr.c (store_constructor): Likewise.
26020 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26021 (maybe_fold_stmt_addition): Likewise.
26022 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
26023 * stor-layout.c (layout_type): Likewise.
26024 * tree-data-ref.c (tree_fold_divides_p): Likewise.
26025 * tree-sra.c (build_ref_for_offset): Likewise.
26026 (build_user_friendly_ref_for_offset): Likewise.
26027 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
26028 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26029 * tree-ssa-loop-niter.c (inverse): Likewise.
26030 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
26031 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
26032 * tree-switch-conversion.c (check_range): Likewise.
26033 (build_constructors): Likewise.
26034 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
26035 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
26036 (extract_range_from_assert): Likewise.
26037 (vrp_int_const_binop): Likewise.
26038 (extract_range_from_binary_expr): Likewise.
26039 (extract_range_from_unary_expr): Likewise.
26040 (check_array_ref): Likewise.
26041 (find_case_label_range): Likewise.
26042 (simplify_div_or_mod_using_ranges): Likewise.
26043 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
26044 comparing case labels for merging.
26045
26046 2011-05-03 Mark Wielaard <mjw@redhat.com>
26047
26048 * dwarf2out.c (debug_str_hash_forced): Removed.
26049 (gen_label_for_indirect_string): Removed.
26050 (get_debug_string_label): Removed.
26051 (AT_string_form): Generate label directly.
26052 (output_indirect_string): Test indirect_string_node for
26053 DW_FORM_strp instead of checking label and refcount.
26054 (prune_indirect_string): Removed.
26055 (prune_unused_types): Don't check debug_str_hash_forced or
26056 call prune_indirect_string.
26057
26058 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
26059
26060 PR other/48093
26061 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
26062
26063 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
26064
26065 PR debug/47994
26066 PR debug/47919
26067 * combine.c (try_combine): Skip debug insns at m_split tests.
26068
26069 2011-04-26 Mark Wielaard <mjw@redhat.com>
26070
26071 PR42288
26072 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
26073 when info_section_emitted.
26074
26075 2011-05-03 Joseph Myers <joseph@codesourcery.com>
26076
26077 * config/mips/mips-opts.h: New.
26078 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
26079 to mips-opts.h.
26080 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
26081 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
26082 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
26083 via opts pointer.
26084 * config/mips/mips.h (enum mips_code_readable_setting): Move to
26085 mips-opts.h.
26086 (mips_abi, mips_code_readable): Don't declare.
26087 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
26088 (mabi=): Use Enum and Var.
26089 (mips_abi): New Enum and EnumValue entries.
26090 (mcode-readable=): Use Enum and Var.
26091 (mips_code_readable_setting): New Enum and EnumValue entries.
26092 (mr10k-cache-barrier=): Use Enum and Var.
26093 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
26094
26095 2011-05-03 Jan Hubicka <jh@suse.cz>
26096
26097 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
26098 replace hash by pointer map.
26099 (cgraph_node_set_element_def, cgraph_node_set_element,
26100 const_cgraph_node_set_element, varpool_node_set_element_def,
26101 varpool_node_set_element, const_varpool_node_set_element): Remove.
26102 (free_cgraph_node_set, free_varpool_node_set): New function.
26103 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
26104 * tree-emutls.c: Free varpool node set.
26105 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
26106 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
26107 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
26108 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
26109 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
26110 Move here from ipa.c; implement using pointer_map
26111 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
26112 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
26113 debug_cgraph_node_set, varpool_node_set_new,
26114 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
26115 dump_varpool_node_set, debug_varpool_node_set):
26116 Move to ipa-uitls.c.
26117 * passes.c (ipa_write_summaries): Update.
26118
26119 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26120
26121 From Mike Frysinger:
26122 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
26123 bf542/bf544/bf547/bf548/bf549.
26124
26125 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
26126
26127 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
26128
26129 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26130
26131 From Bernd Schmidt:
26132 * config/bfin/bfin.md (MOVCC): New mode_macro.
26133 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
26134 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
26135 comments from generated assembly.
26136
26137 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26138
26139 From Bernd Schmidt
26140 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
26141 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
26142 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
26143 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
26144 * config/bfin/lib1funcs.asm (___muldi3): New function.
26145
26146 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26147
26148 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
26149 build_function_type_list instead of build_function_type.
26150 Rearrange initialization of `args' to do so.
26151
26152 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26153
26154 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
26155 instead of build_function_type.
26156
26157 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26158
26159 * config/rs6000/rs6000.c (spe_init_builtins): Call
26160 build_function_type_list instead of build_function_type.
26161 (paired_init_builtins, altivec_init_builtins): Likewise.
26162 (builtin_function_type): Likewise.
26163
26164 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26165
26166 * config/sh/sh.c (sh_media_init_builtins): Call
26167 build_function_type_list instead of build_function_type.
26168
26169 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26170
26171 * config/sparc/sparc.c (sparc_file_end): Call
26172 build_function_type_list instead of build_function_type.
26173
26174 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26175
26176 * config/alpha/alpha.c (alpha_init_builtins): Call
26177 build_function_type_list instead of build_function_type.
26178
26179 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26180
26181 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
26182 build_function_type_list instead of build_function_type.
26183
26184 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26185
26186 * config/iq2000/i2000.c (iq2000_init_builtins): Call
26187 build_function_type_list instead of build_function_type.
26188 Delete `endlink' variable.
26189
26190 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26191
26192 * config/avr/avr.c (avr_init_builtins): Call
26193 build_function_type_list instead of build_function_type.
26194
26195 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26196
26197 * config/picochip/picochip.c (picochip_init_builtins): Call
26198 build_function_type_list instead of build_function_type.
26199 Delete `endlink' variable.
26200
26201 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
26202
26203 * config/bfin/bfin.c (bfin_init_builtins): Call
26204 build_function_type_list instead of build_function_type.
26205
26206 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26207
26208 From Bernd Schmidt
26209 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
26210 that's not CONST_INT. Seemingly redundant check is due to PR39768.
26211
26212 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26213
26214 From Jie Zhang:
26215 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
26216 libbffastfp overrides libgcc when -mfast-fp.
26217
26218 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26219
26220 Originally from Bernd Schmidt
26221 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
26222 * config/bfin/bfin.c (override_options): Test it and error if
26223 TARGET_FDPIC.
26224
26225 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
26226
26227 Originally From Bernd Schmidt
26228 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
26229 FD-PIC.
26230
26231 2011-05-03 Jeff Law <law@redhat.com>
26232
26233 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
26234 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
26235 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
26236 than accessing AUX field directly. Free the AUX field before
26237 clearing it.
26238 (thread_block, thread_through_loop_header): Likewise.
26239 (thread_single_edge, mark_threaded_blocks): Likewise.
26240 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
26241 (register_jump_thread): Do not attempt to thread to a NULL edge.
26242
26243 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
26244
26245 * function.c (init_function_start): Call decide_function_section.
26246 * varasm.c (decide_function_section): New function.
26247 (assemble_start_function): When not using
26248 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
26249 or first_function_block_is_cold.
26250 * rtl.h (decide_function_section): Declare.
26251
26252 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
26253 Jakub Jelinek <jakub@redhat.com>
26254
26255 PR target/48774
26256 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
26257 only succeed if req_mode is the same as set_mode.
26258
26259 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
26260
26261 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
26262 * genemit.c (gen_exp): Handle RETURN.
26263 * emit-rtl.c (verify_rtx_sharing): Likewise.
26264 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
26265 * rtl.c (copy_rtx): RETURN is shared.
26266 * rtl.h (enum global_rtl_index): Add GR_RETURN.
26267 (ret_rtx): New.
26268 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
26269 * config/s390/s390.c (s390_emit_epilogue): Likewise.
26270 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
26271 * config/cris/cris.c (cris_expand_return): Likewise.
26272 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
26273 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
26274 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
26275 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
26276 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
26277 Likewise.
26278 * config/v850/v850.c (expand_epilogue): Likewise.
26279 * config/bfin/bfin.c (bfin_expand_call): Likewise.
26280 * config/arm/arm.md (epilogue): Likewise.
26281 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
26282 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
26283 variable to ret_reg.
26284
26285 2011-05-03 Richard Guenther <rguenther@suse.de>
26286
26287 PR lto/48846
26288 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
26289 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
26290 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26291
26292 2011-05-03 Richard Guenther <rguenther@suse.de>
26293
26294 * c-decl.c (grokdeclarator): Instead of looking at
26295 TREE_OVERFLOW check if the constant fits in the index type.
26296
26297 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
26298
26299 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
26300 (vec_store_lanes<mode><mode>): Likewise.
26301
26302 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
26303
26304 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
26305 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
26306 convert_optab_index values.
26307 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
26308 * genopinit.c (optabs): Initialize the new optabs.
26309 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
26310 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
26311 (expand_STORE_LANES): New functions.
26312 * tree.h (build_array_type_nelts): Declare.
26313 * tree.c (build_array_type_nelts): New function.
26314 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
26315 (vect_model_load_cost): Likewise.
26316 (vect_store_lanes_supported, vect_load_lanes_supported)
26317 (vect_record_strided_load_vectors): Declare.
26318 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
26319 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
26320 (vect_transform_strided_load): Split out statement recording into...
26321 (vect_record_strided_load_vectors): ...this new function.
26322 * tree-vect-stmts.c (create_vector_array, read_vector_array)
26323 (write_vector_array, create_array_ref): New functions.
26324 (vect_model_store_cost): Add store_lanes_p argument.
26325 (vect_model_load_cost): Add load_lanes_p argument.
26326 (vectorizable_store): Try to use store-lanes functions for
26327 interleaved stores.
26328 (vectorizable_load): Likewise load-lanes and loads.
26329 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
26330 to vect_model_store_cost.
26331 (vect_build_slp_tree): Likewise vect_model_load_cost.
26332
26333 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
26334
26335 * hooks.h (hook_bool_mode_uhwi_false): Declare.
26336 * hooks.c (hook_bool_mode_uhwi_false): New function.
26337 * target.def (array_mode_supported_p): New hook.
26338 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
26339 * doc/tm.texi: Regenerate.
26340 * stor-layout.c (mode_for_array): New function.
26341 (layout_type): Use it.
26342 * config/arm/arm.c (arm_array_mode_supported_p): New function.
26343 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
26344
26345 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
26346
26347 PR target/48723
26348 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
26349 for -fstack-check if the size to allocate is negative.
26350
26351 2011-05-02 Lawrence Crowl <crowl@google.com>
26352
26353 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
26354 (timevar_cond_start): New for starting a timer only when it is not
26355 already running.
26356 (timevar_cond_stop): New for stopping a timer when it was not already
26357 running.
26358
26359 * timevar.c (timevar_stop): Enable start/stop timers to start again.
26360 (timevar_cond_start): New as above.
26361 (timevar_cond_stop): New as above.
26362
26363 * timevar.def: Add start/stop timers for compiler phases,
26364 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
26365 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
26366 and TV_PHASE_FINALIZE.
26367 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
26368 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
26369 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
26370 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
26371 Make unused TV_OVERLOAD into a start/stop timer.
26372
26373 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
26374 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
26375 to indicate that they are start/stop timers.
26376
26377 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
26378 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
26379 Move initialization to do_compile.
26380 (do_compile): Add initialization from above.
26381 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
26382
26383 * c-decl.c (c_write_global_declarations): Add start/stop of
26384 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
26385
26386 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
26387 or TV_PARSE_INLINE, as appropriate.
26388 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
26389 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
26390
26391 2011-05-02 Jason Merrill <jason@redhat.com>
26392
26393 PR c++/40975
26394 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
26395
26396 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
26397
26398 PR c/35445
26399 * c-decl.c (finish_decl): Only create a composite if the types are
26400 compatible.
26401
26402 2011-05-02 Joseph Myers <joseph@codesourcery.com>
26403
26404 * config/fr30/fr30-protos.h (Mmode): Don't define.
26405 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
26406 definition where used.
26407 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
26408 define. Expand definitions where used.
26409 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
26410 Expand definitions where used.
26411 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
26412 rx_function_arg, rx_function_arg_advance,
26413 rx_function_arg_boundary): Expand definitions of those macros.
26414 * config/v850/v850-protos.h (Mmode): Don't define. Expand
26415 definition where used.
26416
26417 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
26418
26419 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
26420 reg<->xmm moves.
26421 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
26422 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
26423 with *movv2sf_internal_rex64_avx.
26424 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
26425 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
26426 Use %v prefix in insn mnemonic to handle TARGET_AVX.
26427 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
26428 "vex" in "prefix" attribute calculation.
26429 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
26430
26431 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
26432
26433 PR target/47951
26434 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
26435 inputs match the output.
26436
26437 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
26438
26439 PR target/47955
26440 * config/m68k/m68k.c (m68k_expand_prologue): Set
26441 current_function_static_stack_size.
26442
26443 2011-05-02 Jan Hubicka <jh@suse.cz>
26444
26445 * lto-streamer.c (lto_streamer_cache_insert_1,
26446 lto_streamer_cache_lookup, lto_streamer_cache_create,
26447 lto_streamer_cache_delete): Use pointer map instead of hashtable.
26448 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
26449
26450 2011-05-02 Joseph Myers <joseph@codesourcery.com>
26451
26452 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
26453 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
26454 config/m68k/t-opts: New files.
26455 * config/m68k/m68k-tables.opt: New file (generated).
26456 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
26457 extra_options and m68k/t-opts to tmake_file.
26458 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
26459 (all_isas): Initialize using m68k-isas.def.
26460 (all_microarchs): Initialize using m68k-microarchs.def.
26461 (m68k_find_selection): Remove.
26462 (m68k_handle_option): Don't assert that global structures are in
26463 use. Use error_at. Access variables via opts pointer. Don't
26464 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
26465 directly for -m68020-40 and -m68020-60.
26466 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
26467 m68k_tune_entry here.
26468 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
26469 to m68k-opts.h.
26470 (m68k_library_id_string): Remove declaration.
26471 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
26472 (m68k_library_id_string): New Variable.
26473 (march=, mcpu=, mtune=): Use Enum and Var.
26474
26475 2011-05-02 Richard Guenther <rguenther@suse.de>
26476
26477 * varasm.c (output_constructor_regular_field): Compute zero-based
26478 index with double-ints. Make sure to ICE instead of producing
26479 wrong code.
26480 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
26481 in asserts. Properly use a signed type.
26482
26483 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
26484
26485 * config/i386/sse.md (V): New mode iterator.
26486 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
26487 TARGET_SSE2.
26488 (V_256): Rename from AVX256MODE.
26489 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
26490 condition to all users.
26491 (VF1): Ditto.
26492 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
26493 condition to all users.
26494 (VF_128): Make V4SF mode unconditional.
26495 (VF_256): Rename from AVX256MODEF2P.
26496 (VI4F_128): Rename from SSEMODE4S.
26497 (VI8F_128): Rename from SSEMODE2D.
26498 (VI4F_256): Rename from AVX256MODE8P.
26499 (VI8F_256): Rename from AVX256MODE4P.
26500 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
26501 (ssescalarmodesuffix): Remove SF and DF modes.
26502 (SSEMODE124): Remove.
26503 (SSEMODE1248): Ditto.
26504 (SSEMODEF2P): Ditto.
26505 (AVXMODEF2P): Ditto.
26506 (AVXMODEFDP): Ditto.
26507 (AVXMODEFSP): Ditto.
26508 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
26509 unconditional.
26510 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
26511 unconditional.
26512 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
26513 xop_pcmov_<mode>256. Use V mode iterator.
26514
26515 Adjust RTX patterns globally for renamed mode attributes.
26516
26517 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26518
26519 * haifa-sched.c (sched_emit_insn): Emit insn before first
26520 non-scheduled insn. Inform back-end about new insn. Add
26521 new insn to scheduled_insns list.
26522
26523 2011-05-02 Richard Guenther <rguenther@suse.de>
26524
26525 PR tree-optimization/48822
26526 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
26527 (process_scc): Indicate which iteration we start.
26528
26529 2011-05-02 Jan Hubicka <jh@suse.cz>
26530
26531 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
26532 (lto_section_overrun): New.
26533 * lto-section-out.c (append_block): Rename to ...
26534 (lto_append_block): ... this one; export.
26535 (lto_output_1_stream): Move lto lto-streamer.h
26536 (lto_output_data_stream): Update.
26537 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
26538 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
26539 functions.
26540
26541 2011-05-02 Richard Guenther <rguenther@suse.de>
26542
26543 * tree.c (tree_code_counts): New global array.
26544 (record_node_allocation_statistics): Count individual tree codes.
26545 (dump_tree_statistics): Dump individual code stats.
26546
26547 2011-05-01 Jan Hubicka <jh@suse.cz>
26548
26549 * ipa-inline.c (caller_growth_limits): Fix thinko when
26550 looking for largest stack frame.
26551 * ipa-inline.h (dump_inline_summary): Declare.
26552 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
26553 on stack usage.
26554 (dump_inline_summary): Export.
26555 (debug_inline_summary): Declare as DEBUG_FUNCTION.
26556
26557 2011-05-01 Anatoly Sokolov <aesok@post.ru>
26558
26559 * reginfo.c (memory_move_cost): Change rclass argument type form
26560 'enum reg_class' to reg_class_t.
26561 * reload.h (memory_move_cost): Update prototype.
26562 * postreload.c reload_cse_simplify_set): Change type dclass var to
26563 reg_class_t.
26564 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
26565 Update prototype.
26566 (ira_allocate_and_set_costs): Change aclass argument type form
26567 'enum reg_class' to reg_class_t.
26568 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
26569 Change aclass argument type to reg_class_t.
26570 (update_conflict_hard_reg_costs): Change type aclass and pref vars
26571 to reg_class_t.
26572 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
26573 memory_move_cost call.
26574
26575 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
26576 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
26577 Change type tmp var to reg_class_t.
26578
26579 2011-04-30 Jan Hubicka <jh@suse.cz>
26580
26581 * ipa-inline.c (can_inline_edge_p): Disregard limits when
26582 inlining into function with flatten attribute.
26583 (want_inline_small_function_p): Be more realistic about inlining
26584 cold calls where callee size grows.
26585
26586 2011-04-30 Jan Hubicka <jh@suse.cz>
26587
26588 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
26589 flags.
26590
26591 2011-04-30 Anatoly Sokolov <aesok@post.ru>
26592
26593 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
26594 PRINT_OPERAND_PUNCT_VALID_P): Remove.
26595 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
26596 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
26597 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26598 (print_operand): Rename to...
26599 (sparc_print_operand): ...this. Make static. Adjust
26600 sparc_print_operand function call.
26601 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
26602 functions.
26603
26604 2011-04-30 Jan Hubicka <jh@suse.cz>
26605
26606 PR middle-end/48752
26607 * ipa-inline.c (early_inliner): Disable when doing late
26608 addition of function.
26609
26610 2011-04-30 Jakub Jelinek <jakub@redhat.com>
26611
26612 * dwarf2out.c (get_address_mode): New inline.
26613 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
26614 if not dwarf_strict emit
26615 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
26616 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
26617 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
26618 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
26619 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
26620 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
26621 mem_loc_descriptor callers.
26622 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
26623 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
26624 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
26625 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
26626 (base_types): New variable.
26627 (get_base_type_offset, calc_base_type_die_sizes,
26628 base_type_for_mode, mark_base_types, base_type_cmp,
26629 move_marked_base_types): New functions.
26630 (calc_die_sizes): Assert that die_offset is 0 or equal to
26631 next_die_offset.
26632 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
26633 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
26634 callers. If not dwarf_strict, call mem_loc_descriptor even for
26635 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
26636 (gen_subprogram_die): Don't give up on call site parameters
26637 with non-integral or large integral modes. Adjust
26638 mem_loc_descriptor callers.
26639 (prune_unused_types): Call prune_unused_types_mark on base_types
26640 vector entries.
26641 (resolve_addr): Call mark_base_types.
26642 (dwarf2out_finish): Call move_marked_base_types.
26643
26644 PR tree-optimization/48809
26645 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
26646 type.
26647 (gen_inbound_check): Don't compute index_expr - range_min in utype
26648 again, instead reuse SSA_NAME initialized in build_arrays.
26649 Remove two useless gsi_for_stmt calls.
26650
26651 2011-04-29 Jeff Law <law@redhat.com>
26652
26653 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
26654
26655 2011-04-29 Martin Jambor <mjambor@suse.cz>
26656
26657 * cgraph.h (cgraph_postorder): Remove declaration.
26658 * ipa-utils.h (ipa_free_postorder_info): Declare.
26659 (ipa_reverse_postorder): Likewise.
26660 * cgraphunit.c: Include ipa-utils.h.
26661 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
26662 * ipa-inline.c: Include ipa-utils.h.
26663 (ipa_inline): Update call to ipa_reverse_postorder.
26664 * ipa-pure-const.c (propagate_pure_const): Update call to
26665 ipa_reduced_postorder and ipa_print_order. Call
26666 ipa_free_postorder_info to clean up.
26667 (propagate_nothrow): Likewise.
26668 * ipa-reference.c (propagate): Removed a useless call to
26669 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
26670 and ipa_print_order. Call ipa_free_postorder_info to clean up.
26671 * ipa.c: Include ipa-utils.h.
26672 (ipa_profile): Update call to ipa_reverse_postorder.
26673 (cgraph_postorder): Moved to...
26674 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
26675 (ipa_utils_print_order): Renamed to ipa_print_order.
26676 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
26677 comments.
26678 (ipa_free_postorder_info): New function.
26679 * passes.c: Include ipa-utils.h.
26680 (do_per_function_toporder): Update call to ipa_reverse_postorder.
26681 (ipa_write_summaries): Likewise.
26682 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
26683 (cgraphunit.o): Likewise.
26684 (ipa.o): Likewise.
26685 (ipa-inline.o): Likewise.
26686
26687 2011-04-29 Jan Hubicka <jh@suse.cz>
26688
26689 * ipa-inline.h (clause_t): Turn into unsigned int.
26690 * ipa-inline-analysis.c (add_clause): Do more simplification.
26691 (and_predicates): Shortcut more cases.
26692 (predicates_equal_p): Move forward; check that clauses are properly
26693 ordered.
26694 (or_predicates): Shortcut more cases.
26695 (edge_execution_predicate): Rewrite as...
26696 (set_cond_stmt_execution_predicate): ... this function; handle
26697 __builtin_constant_p.
26698 (set_switch_stmt_execution_predicate): New .
26699 (compute_bb_predicates): New.
26700 (will_be_nonconstant_predicate): Update TODO.
26701 (estimate_function_body_sizes): Use compute_bb_predicates
26702 and free them later, always try to estimate if stmt is constant.
26703 (estimate_time_after_inlining, estimate_size_after_inlining):
26704 Gracefully handle optimized out edges.
26705 (read_predicate): Fix off by one error.
26706
26707 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
26708
26709 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
26710
26711 2011-04-27 Xinliang David Li <davidxl@google.com>
26712
26713 * tree-profile.c (init_ic_make_global_vars): Set
26714 tls attribute on ic vars.
26715 * coverage.c (coverage_end_function): Initialize
26716 function_list with zero.
26717
26718 2011-04-29 Richard Guenther <rguenther@suse.de>
26719
26720 * builtins.c (fold_builtin_classify_type): Use integer_type_node
26721 for the type of the result.
26722 (fold_builtin_isascii): Likewise.
26723 (fold_builtin_toascii): Use integer_type_node where appropriate.
26724 (fold_builtin_logb): Likewise.
26725 (fold_builtin_frexp): Likewise.
26726 (fold_builtin_strstr): Likewise.
26727 (fold_builtin_strpbrk): Likewise.
26728 (fold_builtin_fputs): Likewise.
26729 (fold_builtin_sprintf): Likewise.
26730 (fold_builtin_snprintf): Likewise.
26731 (fold_builtin_printf): Likewise.
26732 (do_mpfr_remquo): Use a proper type for the assigned constant.
26733 (do_mpfr_lgamma_r): Likewise.
26734 * dwarf2out.c (resolve_one_addr): Use size_int.
26735 * except.c (init_eh): Likewise.
26736 (assign_filter_values): Use integer_type_node for filter values.
26737 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
26738 indices.
26739 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
26740 for EH region numbers.
26741 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
26742 for the shift amount.
26743
26744 2011-04-29 Richard Guenther <rguenther@suse.de>
26745
26746 * expr.h (expand_shift): Rename to ...
26747 (expand_variable_shift): ... this.
26748 (expand_shift): Take a constant shift amount.
26749 * expmed.c (expand_shift): Rename to ...
26750 (expand_variable_shift): ... this.
26751 (expand_shift): New wrapper around expand_variable_shift.
26752 * expr.c (convert_move, emit_group_load_1, emit_group_store,
26753 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
26754 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
26755 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
26756 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
26757 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
26758 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
26759 emit_store_flag_1, emit_store_flag): Likewise.
26760 * builtins.c (expand_builtin_signbit): Likewise.
26761 * calls.c (load_register_parameters): Likewise.
26762 * function.c (assign_parm_setup_block): Likewise.
26763 * lower-subreg.c (resolve_shift_zext): Likewise.
26764 * optabs.c (widen_bswap, expand_abs_nojump,
26765 expand_one_cmpl_abs_nojump, expand_float): Likewise.
26766 * spu/spu.c (spu_expand_extv): Likewise.
26767 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
26768
26769 2011-04-29 Richard Guenther <rguenther@suse.de>
26770
26771 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
26772 for the remapped region number.
26773 * predict.c (build_predict_expr): Use integer_type_node for the
26774 predict kind.
26775 * fold-const.c (fold_binary_loc): Use integer_type_node for
26776 the shift amount. Use a proper type for the PLUS_EXPR operand.
26777
26778 2011-04-29 Michael Matz <matz@suse.de>
26779
26780 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
26781 other trees that just builtins.
26782 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
26783
26784 2011-04-29 Richard Guenther <rguenther@suse.de>
26785
26786 * tree-nested.c (get_trampoline_type): Use size_int.
26787 (get_nl_goto_field): Likewise.
26788 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
26789 for all indexes.
26790 (lower_eh_constructs_2): Likewise.
26791 (lower_resx): Likewise.
26792 (lower_eh_dispatch): Likewise.
26793 * tree-mudflap.c (mf_build_string): Use size_int.
26794 (mudflap_register_call): Use integer_type_node for the flag.
26795 (mudflap_enqueue_constant): Use size_int.
26796 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
26797 instead of rebuilding it.
26798
26799 2011-04-29 Richard Guenther <rguenther@suse.de>
26800
26801 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
26802 Handle OBJ_TYPE_REF.
26803 (find_func_aliases_for_call): Use it more consistently.
26804
26805 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
26806
26807 * haifa-sched.c (last_nondebug_scheduled_insn): New.
26808 (rank_for_schedule): Use it.
26809 (schedule_block): Set it.
26810
26811 2011-04-28 David Li <davidxl@google.com>
26812
26813 * tree.c (crc32_string): Use crc32_byte.
26814 (crc32_byte): New function.
26815 * tree.h (crc32_byte): New function.
26816 * gcov.c (read_graph_file): Handle new cfg_cksum.
26817 (read_count_file): Ditto.
26818 * profile.c (instrument_values): Ditto.
26819 (get_exec_counts): Ditto.
26820 (read_profile_edge_counts): Ditto.
26821 (compute_branch_probabilities): Ditto.
26822 (compute_value_histograms): Ditto.
26823 (branch_prob): Ditto.
26824 (end_branch_prob): Ditto.
26825 * coverage.c (read_counts_file): Ditto.
26826 (get_coverage_counts): Ditto.
26827 (tree_coverage_counter_addr): Ditto.
26828 (coverage_checksum_string): Ditto.
26829 (coverage_begin_output): Ditto.
26830 (coverage_end_function): Ditto.
26831 (build_fn_info_type): Ditto.
26832 (build_fn_info_value): Ditto.
26833 * libgcov.c (gcov_exit): Ditto.
26834 * gcov-dump.c (tag_function): Ditto.
26835 (compute_checksum): Remove.
26836
26837 2011-04-29 Alan Modra <amodra@gmail.com>
26838
26839 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26840 unspec plus offset. Tidy macho code.
26841
26842 2011-04-29 Martin Jambor <mjambor@suse.cz>
26843
26844 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
26845 node instead of a decl. Update all callers.
26846 * cgraph.h: Update declaration.
26847
26848 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
26849
26850 PR tree-optimization/48765
26851 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
26852 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
26853 to indicate if loop aware SLP is being used. Scan the statements
26854 and update the vectorization factor according to the type of
26855 vectorization before statement analysis.
26856 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
26857 pass it to vect_analyze_loop_operations.
26858 (vectorizable_reduction): Set number of copies to 1 in case of pure
26859 SLP statement.
26860 * tree-vect-stmts.c (vectorizable_conversion,
26861 vectorizable_assignment, vectorizable_shift,
26862 vectorizable_operation, vectorizable_type_demotion,
26863 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
26864 Likewise.
26865 (vectorizable_condition): Move the check that it is not SLP
26866 vectorization before the number of copies check.
26867 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
26868 to vectorize the loop using SLP.
26869
26870 2011-04-28 Jakub Jelinek <jakub@redhat.com>
26871
26872 PR middle-end/48597
26873 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
26874 inline asm.
26875
26876 2011-04-28 Joseph Myers <joseph@codesourcery.com>
26877
26878 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
26879 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
26880 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26881 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26882 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
26883 linux*.h headers.
26884 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
26885 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26886 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26887 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26888 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
26889 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
26890 REG_NAME.
26891 * config/i386/linux.h (REG_NAME): Don't define.
26892 * config/i386/linux64.h (REG_NAME): Don't define.
26893 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
26894 Undefine before defining.
26895
26896 2011-04-28 Jan Hubicka <jh@suse.cz>
26897
26898 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
26899 nonconstant_names array.
26900 (estimate_function_body_sizes): Build nonconstant_names array; handle
26901 BUILT_IN_CONSTANT_P.
26902
26903 2011-04-28 Richard Guenther <rguenther@suse.de>
26904
26905 PR bootstrap/48804
26906 Revert
26907 2011-04-28 Richard Guenther <rguenther@suse.de>
26908
26909 * tree-ssa-structalias.c (solve_constraints): Build succ graph
26910 as late as possible.
26911
26912 2011-04-28 Richard Guenther <rguenther@suse.de>
26913
26914 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
26915 (debug_constraint): Do it here.
26916 (dump_constraints): And here.
26917 (rewrite_constraints): And here.
26918 (dump_constraint_edge): Remove.
26919 (dump_constraint_graph): Rewrite to produce DOT output.
26920 (solve_constraints): Build succ graph as late as possible.
26921 Dump constraint graphs before and after solving.
26922
26923 2011-04-28 Richard Guenther <rguenther@suse.de>
26924
26925 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26926 New function split out from ...
26927 (find_func_aliases): ... here. Call it.
26928 (find_func_aliases_for_call): Likewise.
26929
26930 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
26931
26932 * internal-fn.h (internal_fn_name_array): Declare.
26933 (internal_fn_flags_array): Likewise.
26934
26935 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
26936
26937 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
26938 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
26939 Move from sse.md.
26940 (ssemodefsuffix): Remove.
26941 (ssevecmodesuffix): New mode attribute.
26942 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
26943 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
26944 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
26945 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
26946 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
26947 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
26948 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
26949 ssemodesuffix mode attribute.
26950 (float splitters): Use ssevecmodesuffix mode attribute.
26951 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
26952 (sseinsmode): Rename from avxvecmode.
26953 (avxsizesuffix): Rename from avxmodesuffix.
26954 (sseintvecmode): Rename from avxpermvecmode.
26955 (ssedoublevecmode): Rename from ssedoublesizemode.
26956 (ssehalfvecmode): Rename from avxhalfvecmode.
26957 (ssescalarmode): Rename from avxscalarmode.
26958 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
26959 templates for ssemodesuffix mode attribute.
26960 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
26961 mode attribute.
26962
26963 Adjust RTX patterns globally for renamed mode attributes.
26964
26965 2011-04-27 Jan Hubcika <jh@suse.cz>
26966
26967 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
26968 * ipa-inline-analysis.c: Include alloc-pool.h.
26969 (edge_predicate_pool): New.
26970 (trye_predicate_p): New function
26971 (false_predicate_p): New function.
26972 (add_clause): Sanity check that false clauses are "optimized";
26973 never add clauses to predicate that is already known to be false.
26974 (and_predicate): Use flase_predicate_p.
26975 (evaulate_predicate): Rename to ...
26976 (evaluate_predicate): ... this one; update all callers; assert
26977 that false is not listed among possible truths.
26978 (dump_predicate): Use true_predicate_p.
26979 (account_size_time): Use false_predicate_p.
26980 (evaulate_conditions_for_edge): Rename to ...
26981 (evaluate_conditions_for_edge) ... this one.
26982 (edge_set_predicate): New function.
26983 (inline_edge_duplication_hook): Duplicate edge predicates.
26984 (inline_edge_removal_hook): Free edge predicates.
26985 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
26986 (dump_inline_summary): Update.
26987 (estimate_function_body_sizes): Set edge predicates.
26988 (estimate_calls_size_and_time): Handle predicates.
26989 (estimate_callee_size_and_time): Update.
26990 (remap_predicate): Add toplev_predicate; update comment.
26991 (remap_edge_predicates): New function.
26992 (inline_merge_summary): Compute toplev predicate; update.
26993 (read_predicate): New function.
26994 (read_inline_edge_summary): Use it.
26995 (inline_read_section): Likewise.
26996 (write_predicate): New function.
26997 (write_inline_edge_summary): Use it.
26998 (inline_write_summary): Likewise.
26999 (inline_free_summary): Free alloc pool and edge summary vec.
27000
27001 2011-04-27 Richard Guenther <rguenther@suse.de>
27002
27003 * tree-ssa-structalias.c (changed_count): Remove.
27004 (changed): Use a bitmap.
27005 (unify_nodes): Adjust.
27006 (do_sd_constraint): Likewise.
27007 (do_ds_constraint): Likewise.
27008 (do_complex_constraint): Likewise.
27009 (solve_graph): Likewise.
27010
27011 2011-04-27 Jan Hubicka <jh@suse.cz>
27012
27013 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
27014
27015 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
27016
27017 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
27018 (avx_vperm2f128_*_operand): Ditto.
27019 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
27020 Use avx_vpermilp_parallel in insn condition.
27021 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
27022 Use avx_vperm2f128_parallel in insn condition.
27023
27024 2011-04-27 Richard Guenther <rguenther@suse.de>
27025
27026 * Makefile.in (tree-ssa-structalias.o): Remove
27027 gt-tree-ssa-structalias.h dependency.
27028 (GTFILES): Remove tree-ssa-structalias.c.
27029 * tree.c (allocate_decl_uid): New function.
27030 (make_node_stat): Use it.
27031 (copy_node_stat): Likewise.
27032 * tree.h (allocate_decl_uid): Declare.
27033 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
27034 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
27035 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
27036 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
27037 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
27038 (struct heapvar_map): Likewise.
27039 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
27040 heapvar_insert): Likewise.
27041 (make_heapvar_for): Rename to ...
27042 (make_heapvar): ... this. Simplify.
27043 (fake_var_decl_obstack): New global var.
27044 (build_fake_var_decl): New function.
27045 (make_constraint_from_heapvar): Adjust.
27046 (handle_lhs_call): Likewise.
27047 (create_function_info_for): Likewise.
27048 (intra_create_variable_infos): Likewise.
27049 (init_alias_vars): Allocate fake_var_decl_obstack.
27050 (init_alias_heapvars, delete_alias_heapvars): Remove.
27051 (compute_points_to_sets): Do not call init_alias_heapvars.
27052 (ipa_pta_execute): Likewise.
27053 (delete_points_to_sets): Free fake_var_decl_obstack.
27054
27055 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27056
27057 * config/spu/divmovti4.c (union qword_UTItype): New data type.
27058 (si_from_UTItype, si_to_UTItype): New functions.
27059 (__udivmodti4): Use them to implement type-punning.
27060 * config/spu/multi3.c (union qword_TItype): New data type.
27061 (si_from_TItype, si_to_TItype): New functions.
27062 (__multi3): Use them to implement type-punning.
27063
27064 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27065
27066 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
27067
27068 2011-04-27 Jan Hubicka <jh@suse.cz>
27069
27070 * ipa-prop.c (function_insertion_hook_holder): New holder.
27071 (ipa_add_new_function): New function.
27072 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
27073 Register/deregister holder.
27074
27075 2011-04-27 Richard Guenther <rguenther@suse.de>
27076
27077 PR tree-optimization/48772
27078 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
27079
27080 2011-04-27 Richard Guenther <rguenther@suse.de>
27081
27082 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
27083 TARGET_MEM_REF handling.
27084
27085 2011-04-27 Nick Clifton <nickc@redhat.com>
27086
27087 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
27088 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
27089 (REG_CLASS_NAMES): Likewise.
27090 (REG_CLASS_CONTENTS): Likewise.
27091 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
27092 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
27093 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
27094 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
27095 (EVEN_REGS): New macro. Alias for QUAD_REGS.
27096 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
27097 duplicate register classes.
27098 (frv_class_likely_spilled_p): Likewise.
27099 (frv_register_move_cost): Likewise.
27100
27101 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
27102 end of the regno_reg_class array.
27103
27104 2011-04-27 Jakub Jelinek <jakub@redhat.com>
27105
27106 PR c/48742
27107 * c-typeck.c (build_binary_op): Don't wrap arguments if
27108 int_operands is true.
27109
27110 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
27111
27112 PR target/48767
27113 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
27114 targetm.calls.must_pass_in_stack for void type.
27115
27116 2011-04-26 Jan Hubicka <jh@suse.cz>
27117
27118 * cgraphbuild.c (build_cgraph_edges): Update call
27119 of cgraph_create_edge and cgraph_create_indirect_edge.
27120 * cgraph.c (cgraph_create_edge_including_clones,
27121 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
27122 cgraph_update_edges_for_call_stmt_node): Do not take nest
27123 argument; do not initialize call_stmt_size/time.
27124 (dump_cgraph_node): Do not dump nest.
27125 (cgraph_clone_edge): Do not take loop_nest argument;
27126 do not propagate it; do not clone call_stmt_size/time.
27127 (cgraph_clone_node): Likewise.
27128 (cgraph_create_virtual_clone): Update.
27129 * cgraph.h (struct cgraph_edge): Remove
27130 call_stmt_size/call_stmt_time/loop_nest.
27131 (cgraph_create_edge, cgraph_create_indirect_edge,
27132 cgraph_create_edge_including_clones, cgraph_clone_node): Update
27133 prototype.
27134 * tree-emutls.c (gen_emutls_addr): Update.
27135 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
27136 loop_nest; handle indirect calls, too.
27137 (clone_inlined_nodes): Do not care about updating inline summaries.
27138 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
27139 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
27140 stream call_stmt_size/call_stmt_time/loop_nest.
27141 * ipa-inline.c (edge_badness): Update.
27142 (ipa_inline): dump summaries after inlining.
27143 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
27144 New.
27145 (inline_edge_summary): New function.
27146 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
27147 (inline_edge_removal_hook): Handle edge summaries.
27148 (inline_edge_duplication_hook): New hook.
27149 (inline_summary_alloc): Alloc hooks.
27150 (initialize_growth_caches): Do not register removal hooks.
27151 (free_growth_caches); Do not free removal hook.
27152 (dump_inline_edge_summary): New function.
27153 (dump_inline_summary): Use it.
27154 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
27155 (inline_update_callee_summaries): New function.
27156 (inline_merge_summary): Use it.
27157 (do_estimate_edge_time, do_estimate_edge_growth): Update.
27158 (read_inline_edge_summary): New function.
27159 (inline_read_section): Use it.
27160 (write_inline_edge_summary): New function.
27161 (inline_write_summary): Use it.
27162 (inline_free_summary): Free edge new holders.
27163 * tree-inline.c (copy_bb): Update.
27164
27165 2011-04-26 Jason Merrill <jason@redhat.com>
27166
27167 * tree-eh.c (lower_try_finally_switch): Create the label along with
27168 the CASE_LABEL_EXPR.
27169
27170 2011-04-26 David S. Miller <davem@davemloft.net>
27171 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27172
27173 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
27174 * configure: Regenerate.
27175
27176 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
27177
27178 PR target/48258
27179 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
27180 reduction.
27181 (VEC_reduc): New code iterator and splitters for vector reduction.
27182 (VEC_reduc_name): Ditto.
27183 (VEC_reduc_rtx): Ditto.
27184 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
27185 (reduc_<VEC_reduc_name>_v4sf): Ditto.
27186
27187 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27188 support for extracting SF on VSX.
27189
27190 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
27191 generating xscvspdp.
27192 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
27193 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
27194 double add, minimum, maximum vector reduction.
27195 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
27196 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
27197 optimize double vector reduction.
27198 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
27199
27200 2011-04-26 Joseph Myers <joseph@codesourcery.com>
27201
27202 * config/fr30/fr30.h (inhibit_libc): Don't define.
27203 * config/m32r/m32r-protos.h: Correct comment.
27204 * config/v850/v850.h (GHS_default_section_names,
27205 GHS_current_section_names): Use tree, not union tree_node *.
27206
27207 2011-04-26 Xinliang David Li <davidxl@google.com>
27208
27209 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
27210 * c-family/c-opts.c (c_common_handle_option): Set
27211 warn_maybe_uninitialized.
27212 * opts.c (common_handle_option): Ditto.
27213 * common.opt: New option.
27214 * tree-ssa.c (warn_uninit): Add one more parameter.
27215 (warn_uninitialized_var): Pass warning code.
27216 * tree-flow.h: Interface change.
27217
27218 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27219
27220 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
27221 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
27222 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
27223
27224 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27225
27226 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
27227 * config/mips/mips.opt (mmips-tfile): Remove.
27228
27229 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
27230 mips-tdump reference to ...
27231 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
27232 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
27233 reference by Tru64 UNIX.
27234
27235 2011-04-26 Jakub Jelinek <jakub@redhat.com>
27236
27237 PR debug/48768
27238 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
27239 is error_mark_node, set value to NULL.
27240
27241 PR tree-optimization/48734
27242 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
27243 if return value from maybe_fold_*_comparsions isn't something
27244 the code is prepared to handle.
27245
27246 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
27247
27248 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
27249 mode check.
27250 (ext_QIreg_nomode_operands): Remove.
27251 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
27252 (*andsi_1): Ditto.
27253 (*andhi_1): Ditto.
27254
27255 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
27256
27257 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
27258
27259 2011-04-26 Richard Guenther <rguenther@suse.de>
27260
27261 * c-typeck.c (build_unary_op): Do not expand array-refs via
27262 pointer arithmetic. Only adjust qualifiers for function types.
27263
27264 2011-04-26 Richard Guenther <rguenther@suse.de>
27265
27266 PR middle-end/48694
27267 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
27268 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
27269 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
27270 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
27271
27272 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
27273
27274 * doc/extend.texi: Document __underlying_type.
27275
27276 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
27277
27278 * config/rs6000/titan.md (automata_option "progress"): Remove.
27279
27280 2011-04-25 Jeff Law <law@redhat.com>
27281
27282 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
27283
27284 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
27285
27286 * system.h (ENUM_BITFIELD): Remove.
27287
27288 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
27289 Eric Botcazou <ebotcazou@adacore.com>
27290
27291 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
27292 for STORE_FLAG_VALUE==-1 case.
27293
27294 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
27295
27296 PR target/43804
27297 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
27298 LEGITIMATE_PIC_OPERAND_P.
27299
27300 2011-04-24 Jan Hubicka <jh@suse.cz>
27301
27302 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
27303 WPA hack.
27304 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
27305 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
27306 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
27307 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
27308 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
27309 Sanity check predicate length.
27310 (remap_predicate): Likewise; sanity check jump functions.
27311 (inline_read_section, inline_write_summary): Sanity check
27312 predicate length.
27313
27314 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27315
27316 PR other/48748
27317 * doc/extend.texi (Type Traits): Document __is_standard_layout,
27318 __is_literal_type, and __is_trivial; update throughout about
27319 possibly cv-qualified void types.
27320
27321 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
27322
27323 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
27324 testsuite and make it version agnostic.
27325
27326 2011-04-22 Jan Hubicka <jh@suse.cz>
27327
27328 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
27329
27330 2011-04-23 Jakub Jelinek <jakub@redhat.com>
27331
27332 PR c/48685
27333 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
27334 to VOID_TYPE even around MODIFY_EXPR.
27335
27336 2011-04-22 Mike Stump <mikestump@comcast.net>
27337
27338 * gensupport.c (read_md_rtx): Fix typo in comment.
27339 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
27340 comment.
27341
27342 2011-04-22 Jan Hubicka <jh@suse.cz>
27343
27344 * gengtype.c (open_base_files): Add ipa-inline.h include.
27345 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
27346 ipa-prop.c; update all uses.
27347 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
27348 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
27349 merge summary of inlined function into former caller.
27350 * ipa-inline.c (max_benefit): Remove.
27351 (edge_badness): Compensate for removal of benefits.
27352 (update_caller_keys): Use
27353 reset_node_growth_cache/reset_edge_growth_cache.
27354 (update_callee_keys): Likewise.
27355 (update_all_callee_keys): Likewise.
27356 (inline_small_functions): Do not collect max_benefit; do not reset
27357 estimated_growth; call free_growth_caches and initialize_growth_caches.
27358 * ipa-inline.h (struct condition, type clause_t, struct predicate,
27359 struct size_time_entry): New structures.
27360 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
27361 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
27362 and estimated_growth.
27363 (edge_growth_cache_entry): New structure.
27364 (node_growth_cache, edge_growth_cache): New global vars.
27365 (estimate_growth): Turn into inline.
27366 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
27367 initialize_growth_caches, free_growth_caches): Declare.
27368 (estimate_edge_growth): Rewrite.
27369 (estimate_edge_time): Implement as inline cache lookup.
27370 (reset_node_growth_cache, reset_edge_growth_cache): New inline
27371 functions.
27372 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
27373 (NUM_CONDITIONS): New constant.
27374 (predicate_conditions): New enum.
27375 (IS_NOT_CONSTANT): New constant.
27376 (edge_removal_hook_holder): New var.
27377 (node_growth_cache, edge_growth_cache): New global vars.
27378 (true_predicate, single_cond_predicate, false_predicate,
27379 not_inlined_predicate, add_condition, add_clause, and_predicates,
27380 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
27381 dump_clause, dump_predicate, account_size_time,
27382 evaulate_conditions_for_edge): New functions.
27383 (inline_summary_alloc): Move to heap.
27384 (inline_node_removal_hook): Clear condition and entry vectors.
27385 (inline_edge_removal_hook): New function.
27386 (initialize_growth_caches, free_growth_caches): New function.
27387 (dump_inline_summary): Update.
27388 (edge_execution_predicate): New function.
27389 (will_be_nonconstant_predicate): New function.
27390 (estimate_function_body_sizes): Compute BB and constantness predicates.
27391 (compute_inline_parameters): Do not clear estimated_growth.
27392 (estimate_edge_size_and_time): New function.
27393 (estimate_calls_size_and_time): New function.
27394 (estimate_callee_size_and_time): New function.
27395 (remap_predicate): New function.
27396 (inline_merge_summary): New function.
27397 (do_estimate_edge_time): New function based on...
27398 (estimate_edge_time): ... this one.
27399 (do_estimate_edge_growth): New function.
27400 (do_estimate_growth): New function based on....
27401 (estimate_growth): ... this one.
27402 (inline_analyze_function): Analyze after deciding on jump functions.
27403 (inline_read_section): New function.
27404 (inline_read_summary): Use it.
27405 (inline_write_summary): Write all the new data.
27406 * ipa-prop.c (ipa_get_param_decl_index): Export.
27407 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
27408 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
27409 Declare.
27410 (ipa_get_lattice): Move here from ipa-cp.c
27411 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
27412 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
27413 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
27414 cgraph_edge_inlinable_p): Remove.
27415 * cgraphunit.c: Include ipainline.h
27416 (cgraph_process_new_functions): Update call of
27417 compute_inline_parameters.
27418
27419 2011-04-22 Richard Guenther <rguenther@suse.de>
27420
27421 * tree.c (build_int_cst): Properly create canonicalized integer
27422 constants.
27423 (build_int_cst_type): Remove scary comments.
27424
27425 2011-04-22 Xinliang David Li <davidxl@google.com>
27426
27427 * toplev.c (process_options): Enable -Werror=coverage-mismatch
27428 by default when -Wno-error is not specified.
27429 * opts-global.c (decode_options): Remove call to
27430 control_warning_options.
27431
27432 2011-04-22 Jakub Jelinek <jakub@redhat.com>
27433
27434 PR tree-optimization/48717
27435 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
27436 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
27437
27438 2011-04-22 Joseph Myers <joseph@codesourcery.com>
27439
27440 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
27441 definition where used.
27442
27443 2011-04-22 Jakub Jelinek <jakub@redhat.com>
27444
27445 PR c/48716
27446 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
27447 TREE_STATIC variables declared inside of some OpenMP construct.
27448
27449 2011-04-22 Martin Jambor <mjambor@suse.cz>
27450
27451 PR middle-end/48585
27452 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
27453
27454 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
27455
27456 PR c/36750
27457 * c-typeck.c (pop_init_level): Do not warn about initializing
27458 with ` = {0}'.
27459
27460 2011-04-22 Alan Modra <amodra@gmail.com>
27461
27462 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
27463 when returning call_cookie.
27464 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
27465 pointers, to functions with no more vector args than the current
27466 function, and some non-local calls for ABI_V4.
27467 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
27468 sibcall_nonlocal_aix64): Combine to ..
27469 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
27470 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
27471 (sibcall_value_nonlocal_aix<mode>): ..likewise.
27472 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
27473 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
27474 operand.
27475 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
27476 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
27477 sibcall_value_symbolic_64): Delete.
27478
27479 2011-04-21 Xinliang David Li <davidxl@google.com>
27480
27481 * cgraph.h: Remove pid.
27482 * cgraph.c: Remove pid.
27483 * value-prof.c (init_node_map): New function.
27484 (del_node_map): New function.
27485 (find_func_by_funcdef_no): New function.
27486 (gimple_ic_transform): Call new function.
27487 * cgraphunit.c (cgraph_finalize_function): Remove pid.
27488 * function.c (get_last_funcdef_no): New function.
27489 * function.h (get_last_funcdef_no): New function.
27490 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
27491 to libgcov function.
27492 (tree-profiling): Call node map init and delete function.
27493
27494 2011-04-21 Ian Lance Taylor <iant@google.com>
27495
27496 * godump.c (go_format_type): Use exported Go name for anonymous
27497 field name.
27498
27499 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27500
27501 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
27502 Call builtin_function_type_list instead of builtin_function_type.
27503 (UNARY, BINARY, TRINARY, QUAD): Likewise.
27504
27505 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27506
27507 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
27508 build_function_type_list instead of build_function_type.
27509 Delete variable `endlink'.
27510
27511 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27512
27513 * config/s390/s390.c (s390_init_builtins): Call
27514 build_function_type_list instead of build_function_type.
27515
27516 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
27517
27518 * config/ia64/ia64.c (ia64_init_builtins): Call
27519 build_function_type_list instead of builtin_function_type.
27520
27521 2011-04-21 Easwaran Raman <eraman@google.com>
27522
27523 * cfgexpand.c (stack_var): Remove OFFSET...
27524 (add_stack_var): ...and its reference here...
27525 (expand_stack_vars): ...and here.
27526 (stack_var_cmp): Sort by descending order of size.
27527 (partition_stack_vars): Change heuristic.
27528 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
27529 (dump_stack_var_partition): Add newline after each partition.
27530
27531 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
27532 Jeff Law <law@redhat.com>
27533
27534 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
27535 * gengtype.c (matching_file_name_substitute): Likewise.
27536
27537 2011-04-21 Richard Guenther <rguenther@suse.de>
27538
27539 PR lto/48703
27540 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
27541
27542 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
27543
27544 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
27545
27546 2011-04-21 Richard Guenther <rguenther@suse.de>
27547
27548 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
27549 file name.
27550
27551 2011-04-21 Richard Guenther <rguenther@suse.de>
27552
27553 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
27554 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
27555 Use DECL_P, not SSA_VAR_P.
27556 (ptr_derefs_may_alias_p): Likewise.
27557 (ptr_deref_may_alias_ref_p_1): Likewise.
27558 (decl_refs_may_alias_p): Likewise.
27559 (refs_may_alias_p_1): Likewise.
27560 (ref_maybe_used_by_call_p_1): Likewise.
27561 (call_may_clobber_ref_p_1): Likewise.
27562 (indirect_ref_may_alias_decl_p): Assume indirect refrences
27563 are either MEM_REF or TARGET_MEM_REF.
27564 (indirect_refs_may_alias_p): Likewise.
27565 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
27566 for MEM_EXPR of indirect calls.
27567
27568 2011-04-21 Tristan Gingold <gingold@adacore.com>
27569
27570 * vmsdbgout.c (write_srccorr): Compute file length from the string.
27571 (dst_file_info_struct): Remove flen field.
27572 (lookup_filename): Remove code that set flen field.
27573
27574 2011-04-21 Tristan Gingold <gingold@adacore.com>
27575
27576 * config/ia64/ia64.c (ia64_start_function): Add a guard.
27577
27578 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
27579
27580 PR target/48708
27581 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
27582 vec_extract and vec_concat for non-SSE4_1 targets.
27583
27584 2011-04-21 Richard Guenther <rguenther@suse.de>
27585
27586 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
27587 return statements.
27588
27589 2011-04-21 Joseph Myers <joseph@codesourcery.com>
27590
27591 * config/i386/cygming.h (union tree_node, TREE): Don't define or
27592 undefine.
27593 (FILE): Don't undefine.
27594
27595 2011-04-21 Joseph Myers <joseph@codesourcery.com>
27596
27597 * config/alpha/alpha.c (struct machine_function): Use rtx, not
27598 struct rtx_def *.
27599 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
27600 struct rtx_def *.
27601 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
27602 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
27603 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
27604 rtx_def *.
27605 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
27606 definitions where used.
27607 * config/microblaze/microblaze.h (struct microblaze_args): Use
27608 rtx, not struct rtx_def *.
27609 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
27610 rtx_def *.
27611 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
27612 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
27613 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
27614 not struct rtx_def *.
27615 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
27616 struct rtx_def *.
27617 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
27618 rtx_def *.
27619 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
27620
27621 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27622
27623 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
27624 operand_equal_p to compare DR_BASE_ADDRESSes.
27625 (vect_check_interleaving): Likewise.
27626
27627 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27628
27629 PR target/46329
27630 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
27631 for all Neon struct constants.
27632
27633 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27634
27635 * target.def (legitimate_constant_p): New hook.
27636 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
27637 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
27638 * doc/tm.texi: Regenerate.
27639 * hooks.h (hook_bool_mode_rtx_true): Declare.
27640 * hooks.c (hook_bool_mode_rtx_true): Define.
27641 * system.h (LEGITIMATE_CONSTANT_P): Poison.
27642 * calls.c (precompute_register_parameters): Replace uses of
27643 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
27644 (emit_library_call_value_1): Likewise.
27645 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
27646 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
27647 * ira-costs.c (scan_one_insn): Likewise.
27648 * recog.c (general_operand, immediate_operand): Likewise.
27649 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
27650 * reload1.c (init_eliminable_invariants): Likewise.
27651
27652 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
27653 mode argument.
27654 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
27655 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
27656 argument.
27657 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27658 * config/alpha/predicates.md (input_operand): Update call to
27659 alpha_legitimate_constant_p.
27660
27661 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
27662 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
27663 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
27664 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27665 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
27666 (arm_legitimate_constant_p): New functions.
27667 (arm_cannot_force_const_mem): Make static.
27668
27669 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
27670
27671 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
27672 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
27673 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
27674 instead of bfin_legitimate_constant_p.
27675 (bfin_legitimate_constant_p): Make static. Add a mode argument.
27676 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27677
27678 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
27679
27680 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
27681
27682 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
27683 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
27684 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27685 (frv_legitimate_constant_p): Make static. Add a mode argument.
27686
27687 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
27688 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
27689 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
27690
27691 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
27692 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
27693 * config/i386/i386.c (legitimate_constant_p): Rename to...
27694 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
27695 argument.
27696 (ix86_cannot_force_const_mem): Update accordingly.
27697 (ix86_legitimate_address_p): Likewise.
27698 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27699 * config/i386/i386.md: Update commentary.
27700
27701 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
27702 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
27703 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27704 (ia64_legitimate_constant_p): Make static. Add a mode argument.
27705
27706 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
27707
27708 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
27709 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
27710 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27711 (lm32_legitimate_constant_p): Make static. Add a mode argument.
27712
27713 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
27714 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
27715 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
27716
27717 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
27718 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27719 (m32r_legitimate_constant_p): New function.
27720
27721 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
27722 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
27723 LEGITIMATE_CONSTANT_P.
27724 (LEGITIMATE_CONSTANT_P): Delete.
27725 * config/m68k/m68k.c (m68k_expand_prologue): Call
27726 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
27727 (m68k_legitimate_constant_p): New function.
27728 * config/m68k/m68k.md: Update comments.
27729
27730 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
27731 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27732 (mcore_legitimate_constant_p): New function.
27733
27734 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
27735 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
27736 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
27737 Add a mode argument.
27738 (mep_legitimate_address): Update accordingly.
27739 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27740
27741 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
27742 Delete.
27743 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
27744 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
27745 static. Check OP's mode for VOIDmode.
27746 (microblaze_legitimate_constant_p): New function.
27747 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27748
27749 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
27750 * config/mips/mips.c (mips_legitimate_constant_p): New function.
27751 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
27752 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27753 * config/mips/predicates.md: Update comments.
27754
27755 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
27756 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
27757 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27758 (mmix_legitimate_constant_p): Make static, return a bool, and take
27759 a mode argument.
27760 (mmix_print_operand_address): Update accordingly.
27761
27762 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
27763 Delete.
27764 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
27765 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
27766 static. Add a mode argument.
27767 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27768
27769 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
27770
27771 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
27772 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27773 (pa_legitimate_constant_p): New function.
27774
27775 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
27776
27777 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
27778 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27779 (pdp11_legitimate_constant_p): New function.
27780
27781 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
27782 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27783 (rs6000_legitimate_constant_p): New function.
27784
27785 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
27786 (rx_legitimate_constant_p): ...this.
27787 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
27788 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
27789 (rx_legitimate_constant_p): ...this.
27790 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27791 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
27792
27793 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
27794 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
27795 * config/s390/s390.c (legitimate_constant_p): Rename to...
27796 (s390_legitimate_constant_p): ...this. Make static, return a bool,
27797 and add a mode argument.
27798 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27799
27800 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
27801
27802 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
27803 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27804 (sh_legitimate_constant_p): New function.
27805
27806 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
27807 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
27808 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27809 (legitimate_constant_p): Rename to...
27810 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
27811 argument.
27812 (constant_address_p): Update accordingly.
27813
27814 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
27815 argument and return a bool.
27816 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
27817 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27818 (spu_legitimate_constant_p): Add a mode argument and return a bool.
27819 (spu_rtx_costs): Update accordingly.
27820 * config/spu/predicates.md (vec_imm_operand): Likewise.
27821
27822 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
27823
27824 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
27825 * config/v850/v850.c (v850_legitimate_constant_p): New function.
27826 (TARGET_LEGITIMATE_CONSTANT_P): Define.
27827
27828 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
27829 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
27830 * config/vax/vax.c (legitimate_constant_p): Likewise.
27831
27832 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
27833 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
27834 (xtensa_legitimate_constant_p): New function.
27835
27836 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
27837
27838 * target.def (cannot_force_const_mem): Add a mode argument.
27839 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
27840 * doc/tm.texi: Regenerate.
27841 * hooks.h (hook_bool_mode_rtx_false): Declare.
27842 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
27843 (hook_bool_mode_const_rtx_true): Likewise.
27844 (hook_bool_mode_rtx_false): New function.
27845 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
27846 to be non-VOID. Update call to cannot_force_const_mem.
27847 (find_reloads): Update accordingly.
27848 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
27849 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
27850 argument.
27851 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
27852 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
27853 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
27854 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
27855 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
27856 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
27857 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
27858 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
27859 (m68k_cannot_force_const_mem): ...this new function.
27860 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
27861 argument.
27862 (mips_const_insns, mips_legitimize_const_move): Update calls.
27863 (mips_secondary_reload_class): Likewise.
27864 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
27865 (pa_cannot_force_const_mem): ...this new function.
27866 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
27867 (rs6000_cannot_force_const_mem): ...this new function.
27868 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
27869 argument.
27870 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
27871 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
27872 to...
27873 (xtensa_cannot_force_const_mem): ...this new function.
27874
27875 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
27876
27877 * config/mips/mips.c (mips16_build_function_stub): Call
27878 build_function_type_list instead of build_function_type.
27879 (mips16_build_call_stub): Likewise.
27880
27881 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
27882
27883 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
27884 instead of build_function_type.
27885
27886 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
27887
27888 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
27889 instead of build_function_type.
27890
27891 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
27892
27893 PR target/48678
27894 * config/i386/i386.md (insv): Change operand 0 constraint to
27895 "register_operand". Change operand 1 and 2 constraint to
27896 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
27897 * config/i386/sse.md (sse4_1_pinsrb): Export.
27898 (sse2_pinsrw): Ditto.
27899 (sse4_1_pinsrd): Ditto.
27900 (sse4_1_pinsrq): Ditto.
27901 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
27902 * config/i386/i386.c (ix86_expand_pinsr): New.
27903
27904 2011-04-20 Easwaran Raman <eraman@google.com>
27905
27906 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
27907 containing union type only with -fstrict-aliasing.
27908
27909 2011-04-20 Jim Meyering <meyering@redhat.com>
27910
27911 Remove useless if-before-free tests.
27912 * calls.c (expand_call, save_area): Likewise.
27913 * cfgcleanup.c (try_forward_edges): Likewise.
27914 * collect2.c (collect_execute): Likewise.
27915 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
27916 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
27917 * coverage.c (coverage_checksum_string): Likewise.
27918 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
27919 * cselib.c (cselib_init): Likewise.
27920 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
27921 (df_set_clean_cfg): Likewise.
27922 * function.c (free_after_compilation): Likewise.
27923 * gcc.c (do_spec_1, main): Likewise.
27924 * gcov.c (create_file_names): Likewise.
27925 * gensupport.c (identify_predicable_attribute): Likewise.
27926 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
27927 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
27928 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
27929 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
27930 * ipa-pure-const.c (local_pure_const): Likewise.
27931 * ipa-reference.c (propagate): Likewise.
27932 * ira-costs.c (free_ira_costs): Likewise.
27933 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
27934 * matrix-reorg.c (mat_free): Likewise.
27935 * prefix.c (get_key_value): Likewise.
27936 * profile.c (compute_value_histograms): Likewise.
27937 * reload1.c (free_reg_equiv): Likewise.
27938 * sched-deps.c (free_deps): Likewise.
27939 * sel-sched-ir.c (fence_clear): Likewise.
27940 * sese.c (set_rename, if_region_set_false_region): Likewise.
27941 * tree-data-ref.c (free_rdg): Likewise.
27942 * tree-eh.c (lower_try_finally): Likewise.
27943 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
27944 * tree-ssa-live.c (delete_var_map): Likewise.
27945 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
27946 * tree-ssa-pre.c (phi_trans_add): Likewise.
27947
27948 2011-04-20 Jakub Jelinek <jakub@redhat.com>
27949
27950 PR tree-optimization/48611
27951 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
27952 beyond ERT_MUST_NOT_THROW region.
27953
27954 2011-04-20 Catherine Moore <clm@codesourcery.com>
27955
27956 * config/mips/mips.opt (mfix-24k): New.
27957 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
27958 * config/mips/mips.md (length): Increase by 4 for stores if
27959 fixing 24K errata.
27960 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
27961 all noreorder if fixing 24K errata.
27962 * doc/invoke.texi: Document mfix-24k.
27963
27964 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
27965
27966 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
27967 quad-word modes, reduce to 9-bit index range when above 1016 limit.
27968
27969 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
27970
27971 * config/arm/arm.c (arm_gen_constant): Move movw support ....
27972 (const_ok_for_op): ... to here.
27973
27974 2011-04-20 Kai Tietz <ktietz@redhat.com>
27975
27976 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
27977 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
27978
27979 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
27980
27981 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
27982
27983 2011-04-20 Richard Guenther <rguenther@suse.de>
27984
27985 PR tree-optimization/47892
27986 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
27987 are if-convertible.
27988
27989 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
27990
27991 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
27992
27993 2011-04-20 Tristan Gingold <gingold@adacore.com>
27994
27995 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
27996
27997 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
27998
27999 PR target/18145
28000
28001 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
28002 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
28003 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28004 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
28005 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
28006
28007 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
28008 New prototype.
28009
28010 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
28011 (avr_asm_named_section, avr_asm_output_aligned_common,
28012 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
28013 New functions to update...
28014 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
28015 (avr_asm_init_sections): Overwrite section callbacks for
28016 data_section, bss_section.
28017 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
28018 from here to...
28019 (avr_file_end): ...here.
28020
28021 2011-04-20 Richard Guenther <rguenther@suse.de>
28022
28023 PR middle-end/48695
28024 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
28025 objects and types here. Adjust for their offset before comparing.
28026
28027 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
28028
28029 * tree-vect-stmts.c (vectorizable_store): Only chain one related
28030 statement per copy.
28031
28032 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
28033
28034 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
28035 (GIMPLE_H): Include $(INTERNAL_FN_H).
28036 (OBJS-common): Add internal-fn.o.
28037 (internal-fn.o): New rule.
28038 * internal-fn.def: New file.
28039 * internal-fn.h: Likewise.
28040 * internal-fn.c: Likewise.
28041 * gimple.h: Include internal-fn.h.
28042 (GF_CALL_INTERNAL): New gf_mask.
28043 (gimple_statement_call): Put fntype into a union with a new
28044 internal_fn field.
28045 (gimple_build_call_internal): Declare.
28046 (gimple_build_call_internal_vec): Likewise.
28047 (gimple_call_same_target_p): Likewise.
28048 (gimple_call_internal_p): New function.
28049 (gimple_call_internal_fn): Likewise.
28050 (gimple_call_fntype): Return null for internal calls.
28051 (gimple_call_set_fntype): Assert that the function is not internal.
28052 (gimple_call_set_fn): Likewise.
28053 (gimple_call_set_fndecl): Likewise.
28054 (gimple_call_set_internal_fn): New function.
28055 (gimple_call_addr_fndecl): Handle null functions.
28056 (gimple_call_return_type): Likewise null types.
28057 * gimple.c (gimple_build_call_internal_1): New function.
28058 (gimple_build_call_internal): Likewise.
28059 (gimple_build_call_internal_vec): Likewise.
28060 (gimple_call_same_target_p): Likewise.
28061 (gimple_call_flags): Handle calls to internal functions.
28062 (gimple_call_fnspec): New function.
28063 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
28064 (gimple_has_side_effects): Handle null functions.
28065 (gimple_rhs_has_side_effects): Likewise.
28066 (gimple_call_copy_skip_args): Handle calls to internal functions.
28067 * cfgexpand.c (expand_call_stmt): Likewise.
28068 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
28069 * gimple-fold.c (gimple_fold_call): Handle null functions.
28070 (gimple_fold_stmt_to_constant_1): Don't fold
28071 calls to internal functions.
28072 * gimple-low.c (gimple_check_call_args): Handle calls to internal
28073 functions.
28074 * gimple-pretty-print.c (dump_gimple_call): Likewise.
28075 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
28076 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
28077 (do_warn_unused_result): Likewise.
28078 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
28079 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
28080 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
28081 the target of a call.
28082 (initialize_hash_element): Update accordingly.
28083 (hashable_expr_equal_p): Use gimple_call_same_target_p.
28084 (iterative_hash_hashable_expr): Handle calls to internal functions.
28085 (print_expr_hash_elt): Likewise.
28086 * tree-ssa-pre.c (can_value_number_call): Likewise.
28087 (eliminate): Handle null functions.
28088 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
28089 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
28090 (find_func_aliases): Likewise.
28091 * value-prof.c (gimple_ic_transform): Likewise.
28092 (gimple_indirect_call_to_profile): Likewise.
28093 * lto-streamer-in.c (input_gimple_stmt): Likewise.
28094 * lto-streamer-out.c (output_gimple_stmt): Likewise.
28095
28096 2011-04-19 Jan Hubicka <jh@suse.cz>
28097
28098 * ipa-inline-transform.c (save_inline_function_body): Add comments.
28099 * ipa-inline.c (inline_small_functions): Compute summaries first,
28100 populate heap later.
28101
28102 2011-04-19 Jan Hubicka <jh@suse.cz>
28103
28104 * cgraph.h (save_inline_function_body): Remove.
28105 * ipa-inline-transform.c: New file, broke out of...
28106 * ipa-inline.c: ... this one; Update toplevel comment.
28107 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
28108 make global.
28109 (update_noncloned_frequencies): Move to ipa-inline-transform.c
28110 (cgraph_mark_inline_edge): Rename to inline_call; move to
28111 ipa-inline-transform.c.
28112 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
28113 move to ipa-inline-transform.c
28114 (recursive_inlining, inline_small_functions, flatten_function,
28115 ipa_inline, inline_always_inline_functions,
28116 early_inline_small_functions): Update.
28117 (inline_transform): Move to ipa-inline-transform.c.
28118 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
28119 Declare.
28120 * Makefile.in (ipa-inline-transform.o): New file.
28121 * cgraphunit.c (save_inline_function_body): Move to
28122 ipa-inline-transform.c
28123
28124 2011-04-19 DJ Delorie <dj@redhat.com>
28125
28126 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
28127 registers if we already know there aren't any.
28128 (m32c_emit_epilogue): Don't emit a barrier here.
28129 (m32c_emit_eh_epilogue): Likewise.
28130 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
28131 operands at expand time.
28132 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
28133 int" wchar type.
28134 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
28135 duplicates. Provide aliases instead.
28136 * config/m32c/prologue.md (eh_return): Emit a barrier here.
28137 (eh_epilogue): Add a "(return)" here as a hint to other parts of
28138 the compiler.
28139
28140 2011-04-19 Anatoly Sokolov <aesok@post.ru>
28141
28142 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
28143 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
28144 (general_or_i64_p, sparc_register_move_cost): New function.
28145
28146 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28147
28148 * doc/install.texi (Configuration, --enable-threads): Remove mach.
28149 Add lynx, mipssde. Sort table.
28150
28151 2011-04-19 Xinliang David Li <davidxl@google.com>
28152
28153 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
28154 not negative.
28155
28156 2011-04-19 Jakub Jelinek <jakub@redhat.com>
28157
28158 PR target/48678
28159 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
28160 is a SUBREG with non-MODE_INT mode inside of it.
28161
28162 2011-04-19 Martin Jambor <mjambor@suse.cz>
28163
28164 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
28165 also according to actual contants.
28166 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
28167 (gimple_fold_call): Use it.
28168 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
28169
28170 2011-04-19 Martin Jambor <mjambor@suse.cz>
28171
28172 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
28173 non-pointer assignments.
28174
28175 2011-04-19 Martin Jambor <mjambor@suse.cz>
28176
28177 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
28178 account anc_offset and otr_type from the indirect edge info.
28179 * ipa-prop.c (get_ancestor_addr_info): New function.
28180 (compute_complex_ancestor_jump_func): Assignment analysis moved to
28181 get_ancestor_addr_info, call it.
28182 (ipa_note_param_call): Do not initialize information about polymorphic
28183 calls, return the indirect call graph edge. Remove the last
28184 parameter, adjust all callers.
28185 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
28186 parameters. Initialize polymorphic information in the indirect edge.
28187
28188 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
28189
28190 PR lto/48148
28191 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
28192 the types if they have different enumeration identifiers.
28193
28194 2011-04-19 Jan Hubicka <jh@suse.cz>
28195
28196 * cgraph.h (cgraph_optimize_for_size_p): Declare.
28197 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
28198 * predict.c (cgraph_optimize_for_size_p): Break out from ...
28199 (optimize_function_for_size_p) ... here.
28200
28201 2011-04-19 Richard Guenther <rguenther@suse.de>
28202
28203 PR lto/48207
28204 * tree.c (free_lang_data): Do not reset the decl-assembler-name
28205 langhook.
28206
28207 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
28208
28209 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
28210 if DECL_NO_INLINE_WARNING_P is set on the function.
28211
28212 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
28213
28214 PR fortran/47976
28215 * reload1.c (inc_for_reload): Return void. All callers changed.
28216 (emit_input_reload_insns): Don't try to delete previous output
28217 reloads to a register, or record spill_reg_store for autoincs.
28218
28219 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
28220
28221 * gengtype.h: Updated copyright year.
28222 (struct input_file_st): Add inpisplugin field.
28223 (type_fileloc): New function.
28224 * gengtype.c
28225 (write_typed_struct_alloc_def): Add gcc_assert.
28226 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
28227 (write_typed_alloc_defns): Don't output for plugin files.
28228 (input_file_by_name): Clear inpisplugin field.
28229 (main): Set inpisplugin field for plugin files.
28230
28231 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
28232
28233 * gengtype-state.c (string_eq): New.
28234 (read_state): Use string_eq instead of strcmp when creating the
28235 state_ident_tab.
28236
28237 2011-04-19 Wei Guozhi <carrot@google.com>
28238
28239 PR target/47855
28240 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
28241 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
28242 linkage.
28243 * config/arm/constraints.md (Uu): New constraint.
28244 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
28245
28246 2011-04-19 Tristan Gingold <gingold@adacore.com>
28247
28248 * config.gcc (-*-*-*vms): Added.
28249 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
28250 definitions moved.
28251 * config/vms/vms-ld.c: New file.
28252 * config/vms/vms-ar.c: New file.
28253 * config/vms/t-vmsnative: New file.
28254
28255 2011-04-18 Xinliang David Li <davidxl@google.com>
28256
28257 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
28258
28259 2011-04-18 Jakub Jelinek <jakub@redhat.com>
28260
28261 PR middle-end/48661
28262 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
28263 if TREE_TYPE (v) is non-NULL.
28264
28265 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
28266 gimple_get_virt_mehtod_for_binfo.
28267 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
28268 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
28269 callers.
28270 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28271
28272 2011-04-18 Michael Matz <matz@suse.de>
28273 Steve Ellcey <sje@cup.hp.com>
28274
28275 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
28276 use its mode as source mode if it isn't VOIDmode.
28277
28278 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
28279
28280 * doc/passes.texi: Fill crossref nodes.
28281
28282 2011-04-18 Jim Meyering <meyering@redhat.com>
28283
28284 Fix doubled-word typos in comments and strings
28285 * config/alpha/vms-unwind.h: s/for for/for/
28286 * config/arm/unwind-arm.h: Likewise.
28287 * config/microblaze/microblaze.c: Likewise.
28288 * config/sh/constraints.md: s/in in/in/
28289 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
28290
28291 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
28292
28293 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
28294 (AVX_FLOAT_MODE_P): Ditto.
28295 (AVX128_VEC_FLOAT_MODE_P): Ditto.
28296 (AVX256_VEC_FLOAT_MODE_P): Ditto.
28297 (AVX_VEC_FLOAT_MODE_P): Ditto.
28298 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
28299 (UNSPEC_MASKSTORE): Ditto.
28300 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
28301 Merge from <sse>_movmsk<ssemodesuffix> and
28302 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
28303 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
28304 iterator.
28305 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
28306 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
28307 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
28308
28309 2011-04-18 Jan Hubicka <jh@suse.cz>
28310
28311 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
28312
28313 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
28314 (want_inline_function_called_once_p): Break out the logic from
28315 ipa_inline.
28316 (edge_badness): Ensure that profile is not misupdated.
28317 (lookup_recursive_calls): Prioritize by call frequencies.
28318 (inline_small_functions): Move program size estimates here;
28319 actually process whole queue even when unit growth has been
28320 met. (to properly compute inline_failed reasons and for the
28321 case unit size decrease.) Revisit comments on recursive inlining.
28322 (ipa_inline): Remove unit summary code; first inline hot calls
28323 of functions called once, cold calls next.
28324 (order, nnodes): Remove unused variables.
28325 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
28326 (GTFILES): Remove ipa-inline.c
28327 * sel-sched.c (fill_insns): Silence uninitialized var warning.
28328
28329 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
28330
28331 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
28332
28333 2011-04-18 Jie Zhang <jie@codesourcery.com>
28334 Richard Earnshaw <rearnsha@arm.com>
28335
28336 * arm.c (neon_builtin_type_bits): Remove.
28337 (typedef enum neon_builtin_mode): New.
28338 (T_MAX): Don't define.
28339 (typedef enum neon_builtin_datum): Remove bits, codes[],
28340 num_vars and base_fcode. Add mode, code and fcode.
28341 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
28342 VAR10): Change accordingly.
28343 (neon_builtin_data[]): Change accordingly
28344 (arm_init_neon_builtins): Change accordingly.
28345 (neon_builtin_compare): Remove.
28346 (locate_neon_builtin_icode): Remove.
28347 (arm_expand_neon_builtin): Change accordingly.
28348
28349 * arm.h (enum arm_builtins): Move to ...
28350 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
28351
28352 * arm.c (arm_builtin_decl): Declare.
28353 (TARGET_BUILTIN_DECL): Define.
28354 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
28355 (arm_builtin_decls[]): New.
28356 (arm_init_neon_builtins): Store builtin declarations in
28357 arm_builtin_decls[].
28358 (arm_init_tls_builtins): Likewise.
28359 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
28360 (arm_builtin_decl): New.
28361
28362 2011-04-18 Richard Guenther <rguenther@suse.de>
28363
28364 * tree.c (upper_bound_in_type): Build properly canonicalized
28365 INTEGER_CSTs.
28366 (lower_bound_in_type): Likewise.
28367
28368 2011-04-18 Richard Guenther <rguenther@suse.de>
28369
28370 * gimple.h (gimple_call_addr_fndecl): New function.
28371 (gimple_call_fndecl): Use it.
28372 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
28373 for direct calls.
28374 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
28375 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
28376
28377 2011-04-18 Richard Guenther <rguenther@suse.de>
28378
28379 PR middle-end/48650
28380 * tree.c (build_string): STRING_CST is now derived from tree_typed.
28381
28382 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
28383
28384 PR lto/48492
28385 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
28386 DECL_IN_CONSTANT_POOL without RTL.
28387
28388 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
28389 Ira Rosen <ira.rosen@linaro.org>
28390
28391 PR target/48252
28392 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
28393 to match neon_vzip/vuzp/vtrn_internal.
28394 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
28395 outputs explicitly dependent on both inputs.
28396 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
28397
28398 2011-04-18 Jakub Jelinek <jakub@redhat.com>
28399
28400 PR tree-optimization/48616
28401 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
28402 whether the shift is by scalar or vector based on whether all SLP
28403 scalar stmts have the same rhs.
28404
28405 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
28406
28407 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
28408 memory operands.
28409
28410 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
28411
28412 PR target/43700
28413 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
28414 registers.
28415
28416 2011-04-17 Jan Hubicka <jh@suse.cz>
28417
28418 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
28419 * cgrpahunit.c (cgraph_finalize_function): Do not set
28420 finalized_by_frontend.
28421 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
28422 finalized_by_frontend.
28423
28424 2011-04-17 Jan Hubicka <jh@suse.cz>
28425
28426 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
28427 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
28428 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
28429 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
28430 method.
28431 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
28432 gimple-fold.c
28433 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
28434
28435 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
28436
28437 PR lto/48538
28438 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
28439 is non-null before accessing it.
28440 (input_cgraph): Remove trailing spaces.
28441
28442 2011-04-17 Revital Eres <revital.eres@linaro.org>
28443
28444 * params.def (sms-min-sc): New param flag.
28445 * modulo-sched.c (sms_schedule): Use it.
28446 * doc/invoke.texi (sms-min-sc): Document it.
28447
28448 2011-04-17 Jan Hubicka <jh@suse.cz>
28449
28450 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
28451 present, also set gimple_call_set_cannot_inline.
28452 * ipa-inline.c: Update toplevel comment.
28453 (MAX_TIME): Remove.
28454 (cgraph_clone_inlined_nodes): Fix linebreaks.
28455 (cgraph_check_inline_limits): Restructure to ...
28456 (caller_growth_limits): ... this one; be more tolerant
28457 on growth in nested inline chains; add explanatory comment;
28458 fix stack accounting thinko introduced by previous patch.
28459 (cgraph_default_inline_p): Remove.
28460 (report_inline_failed_reason): New function.
28461 (can_inline_edge_p): New function.
28462 (can_early_inline_edge_p): New function.
28463 (leaf_node_p): Move upwards in file.
28464 (want_early_inline_function_p): New function.
28465 (want_inline_small_function_p): New function.
28466 (want_inline_self_recursive_call_p): New function.
28467 (cgraph_edge_badness): Rename to ...
28468 (edge_badness) ... this one; fix linebreaks.
28469 (update_edge_key): Update call of edge_baddness; add
28470 detailed dump about queue updates.
28471 (update_caller_keys): Use can_inline_edge_p and
28472 want_inline_small_function_p.
28473 (cgraph_decide_recursive_inlining): Rename to...
28474 (recursive_inlining): Use can_inline_edge_p and
28475 want_inline_self_recursive_call_p; simplify and remove no longer
28476 valid FIXME.
28477 (cgraph_set_inline_failed): Remove.
28478 (add_new_edges_to_heap): Use can_inline_edge_p and
28479 want_inline_small_function_p.
28480 (cgraph_decide_inlining_of_small_functions): Rename to ...
28481 (inline_small_functions): ... this one; cleanup; use
28482 can/want predicates; cleanup debug ouput; work edges till fibheap
28483 is exhausted and do not stop once unit growth is reached; remove
28484 later loop processing remaining edges.
28485 (cgraph_flatten): Rename to ...
28486 (flatten_function): ... this one; use can_inline_edge_p
28487 and can_early_inline_edge_p predicates.
28488 (cgraph_decide_inlining): Rename to ...
28489 (ipa_inline): ... this one; remove unreachable nodes before
28490 inlining functions called once; simplify the pass.
28491 (cgraph_perform_always_inlining): Rename to ...
28492 (inline_always_inline_functions): ... this one; use
28493 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
28494 (cgraph_decide_inlining_incrementally): Rename to ...
28495 (early_inline_small_functions): ... this one; simplify
28496 using new predicates; cleanup; make dumps prettier.
28497 (cgraph_early_inlining): Rename to ...
28498 (early_inliner): newer inline regular functions into always-inlines;
28499 fix updating of call stmt summaries.
28500 (pass_early_inline): Update for new names.
28501 (inline_transform): Fix formating.
28502 (gate_cgraph_decide_inlining): Rename to ...
28503 (pass_ipa_inline): ... this one.
28504 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
28505 * ipa-inline-analysis.c (dump_inline_summary): Update.
28506 (compute_inline_parameters): Do not compute disregard_inline_limits;
28507 look for mismatching arguments.
28508 (estimate_growth): Fix handlig of non-trivial self recursion.
28509 (inline_read_summary): Do not read info->disregard_inline_limits.
28510 (inline_write_summary): Do not write info->disregard_inline_limits.
28511 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
28512 and move all checks into can_inline_edge_p predicate; re-enable code
28513 comparing optimization levels.
28514 (expand_call_inline): Do not test inline_forbidden_into_p.
28515 * Makefile.in (ipa-inline.o): Update arguments.
28516
28517 2011-04-17 Revital Eres <revital.eres@linaro.org>
28518
28519 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
28520
28521 2011-04-17 Revital Eres <revital.eres@linaro.org>
28522
28523 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
28524
28525 2011-04-17 Michael Matz <matz@suse.de>
28526
28527 PR tree-optimization/48622
28528 PR lto/48645
28529 * ipa-inline-analysis.c (inline_read_summary): Read size/time
28530 in same order as they're written.
28531
28532 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28533
28534 * config/pa/predicates.md: Reorganize and simplify predicates.
28535 Eliminate duplicate code checks.
28536 (arith_operand): Rename to arith14_operand
28537 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
28538 * config/pa/pa.md: Use renamed operands.
28539 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
28540 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
28541 arith11_operand, adddi3_operand, indexed_memory_operand,
28542 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
28543 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
28544 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
28545 move_dest_operand, move_src_operand, prefetch_cc_operand,
28546 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
28547 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
28548 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
28549 div_operand, int5_operand, movb_comparison_operator,
28550 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
28551 arith_double_operand, ireg_operand, lhs_lshift_operand,
28552 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
28553 integer_store_memory_operand): Likewise.
28554 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
28555 (integer_store_memory_operand, read_only_operand,
28556 function_label_operand, borx_reg_operand,
28557 non_hard_reg_operand): Likewise.
28558 (eq_neq_comparison_operator): Delete unused operator.
28559 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
28560 function_label_operand.
28561 (emit_move_sequence): Likewise.
28562
28563 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
28564
28565 * config/i386/sse.md (sseunpackmode): New mode attribute.
28566 (ssepackmode): Ditto.
28567 (vec_pack_trunc_<mode>): Macroize expander from
28568 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
28569 (vec_unpacks_lo_<mode>): Macroize expander from
28570 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28571 (vec_unpacks_hi_<mode>): Macroize expander from
28572 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28573 (vec_unpacku_lo_<mode>): Macroize expander from
28574 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28575 (vec_unpacku_hi_<mode>): Macroize expander from
28576 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
28577 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
28578 ix86_expand_sse4_unpack.
28579 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
28580
28581 2011-04-16 Jan Hubicka <jh@suse.cz>
28582
28583 * cgraphbuild.c: Include ipa-inline.h.
28584 (reset_inline_failed): Use initialize_inline_failed.
28585 * cgraph.c: Include ipa-inline.h.
28586 (cgraph_create_node_1): Do not initialize estimated_growth.
28587 (initialize_inline_failed): More to ipa-inline-analysis.c
28588 (dump_cgraph_node): Do not dump inline flags.
28589 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
28590 and disregard_inline_limits flags.
28591 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
28592 time, size, estimated_growth.
28593 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
28594 Update.
28595 * cgraphunit.c (cgraph_decide_is_function_needed): Use
28596 DECL_DISREGARD_INLINE_LIMITS.
28597 (cgraph_analyze_function): Do not initialize
28598 node->local.disregard_inline_limits.
28599 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
28600 inlinable, versionable and disregard_inline_limits.
28601 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
28602 cgraph_check_inline_limits, cgraph_default_inline_p,
28603 cgraph_edge_badness, update_caller_keys, update_callee_keys,
28604 add_new_edges_to_heap): Update.
28605 (cgraph_decide_inlining_of_small_function): Update; set
28606 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
28607 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
28608 cgraph_decide_inlining_incrementally): Update.
28609 * ipa-inline.h (inline_summary): Add inlinable, versionable,
28610 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
28611 time, size and estimated_growth parameters.
28612 (estimate_edge_growth): Update.
28613 (initialize_inline_failed): Declare.
28614 * ipa-split.c: Include ipa-inline.h
28615 (execute_split_functions): Update.
28616 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
28617 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
28618 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
28619 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
28620 estimated_growth to INT_MIN.
28621 (inline_node_duplication_hook): Likewise.
28622 (dump_inline_summary): Dump new fields.
28623 (compute_inline_parameters): Update.
28624 (estimate_edge_time, estimate_time_after_inlining,
28625 estimate_size_after_inlining, estimate_growth, inline_read_summary,
28626 inline_write_summary):
28627 (initialize_inline_failed): Move here from cgraph.c.
28628 * tree-sra.c: Include ipa-inline.h.
28629 (ipa_sra_preliminary_function_checks): Update.
28630 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
28631 ipa-inline.h.
28632
28633 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
28634
28635 * config/i386/sse.md (V16): New mode iterator.
28636 (VI1, VI8): Ditto.
28637 (AVXMODEQI, AVXMODEDI): Remove.
28638 (sse2, sse3): New mode attribute.
28639 (mov<mode>): Use V16 mode iterator.
28640 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
28641 (push<mode>1): Use V16 mode iterator.
28642 (movmisalign<mode>): Ditto.
28643 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
28644 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
28645 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
28646 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
28647 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
28648 avx_movdqu<avxmodesuffix>.
28649 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
28650 *avx_movdqu<avxmodesuffix>.
28651 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
28652 avx_lddqu<avxmodesuffix>.
28653 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
28654 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
28655 avx_movnt<AVXMODEDI:mode>.
28656 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
28657 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
28658
28659 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
28660
28661 PR target/48629
28662 * haifa-sched.c (prune_ready_list, schedule_block): Use
28663 sched_pressure_p rather than flag_sched_pressure.
28664
28665 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
28666
28667 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
28668 cgraph_get_node instead of cgraph_get_create_node.
28669
28670 2011-04-15 Jakub Jelinek <jakub@redhat.com>
28671
28672 * cfgexpand.c (expand_debug_expr): Use
28673 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
28674
28675 2011-04-15 Michael Matz <matz@suse.de>
28676
28677 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
28678 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
28679 * function.c (gimplify_parameters): Ditto.
28680 * gimplify.c (gimplify_vla_decl): Ditto.
28681
28682 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
28683 (gimple_call_set_alloca_for_var): New inline function.
28684 (gimple_call_alloca_for_var_p): Ditto.
28685 * gimple.c (gimple_build_call_from_tree): Remember
28686 CALL_ALLOCA_FOR_VAR_P state.
28687 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
28688
28689 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
28690 calls if they were for VLA objects.
28691
28692 2011-04-15 Martin Jambor <mjambor@suse.cz>
28693
28694 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
28695 of ADR_EXPRs.
28696
28697 2011-04-15 Martin Jambor <mjambor@suse.cz>
28698
28699 PR middle-end/48601
28700 * tree-emutls.c (lower_emutls_function_body): Call
28701 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
28702 result is non-NULL.
28703
28704 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
28705
28706 * c-decl.c (detect_field_duplicates): Call
28707 objc_detect_field_duplicates instead of objc_get_interface_ivars.
28708
28709 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
28710
28711 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
28712 * gimple.c (gimple_asm_clobbers_memory_p): Define.
28713 * ipa-pure-const.c (check_stmt): Call it.
28714 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
28715
28716 2011-04-15 Richard Guenther <rguenther@suse.de>
28717
28718 PR tree-optimization/48290
28719 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
28720 Properly decide inhibiting propagation based on the valueized
28721 operand. Do loop-closed SSA form preserving here ...
28722 (init_copy_prop): ... not here.
28723
28724 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
28725
28726 PR target/48612
28727 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
28728 (*ieee_smax<mode>3): Likewise.
28729
28730 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28731
28732 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
28733 Replace match_operand with match_dup for the third operand in
28734 these expanders.
28735
28736 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
28737
28738 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
28739 to track processing of conditionals. Update all callers.
28740 (try_combine, simplify_if_then_else): Update.
28741
28742 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
28743
28744 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
28745 -fsched-pressure.
28746
28747 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
28748
28749 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
28750 instead of match_operand for operand 3.
28751
28752 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
28753
28754 * recog.h (insn_operand_data): Add an "allows_mem" field.
28755 * genoutput.c (output_operand_data): Initialize it.
28756 * optabs.c (maybe_legitimize_operand_same_code): New function.
28757 (maybe_legitimize_operand): Use it when matching the original
28758 op->value.
28759
28760 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
28761
28762 * gimplify.c: Fix issues in comments throughout.
28763 (voidify_wrapper_expr): Fix long line.
28764 (build_stack_save_restore): Likewise.
28765 (gimplify_loop_expr): Likewise.
28766 (gimplify_compound_lval): Likewise.
28767 (gimplify_init_ctor_eval): Likewise.
28768 (gimplify_modify_expr_rhs): Likewise.
28769 (omp_notice_threadprivate_variable): Likewise.
28770
28771 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
28772
28773 * cfgexpand.c (expand_call_stmt): Convert the function type to the
28774 original one if this is not a builtin function.
28775
28776 2011-04-14 Jakub Jelinek <jakub@redhat.com>
28777
28778 PR target/48605
28779 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
28780 offset it as needed based on top 2 bits in operands[3], change
28781 MEM mode to SFmode and mask those 2 bits away from operands[3].
28782
28783 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
28784
28785 * c-parser.c (c_parser_objc_protocol_definition): Updated for
28786 change from objc_declare_protocols() to objc_declare_protocol().
28787
28788 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
28789
28790 * config/i386/sse.md (sse4_1): New mode attribute.
28791 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
28792 avx_blend<ssemodesuffix><avxmodesuffix> and
28793 sse4_1_blend<ssemodesuffix> using VF mode iterator.
28794 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
28795 avx_blendv<ssemodesuffix><avxmodesuffix> and
28796 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
28797 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
28798 avx_dp<ssemodesuffix><avxmodesuffix> and
28799 sse4_1_dp<ssemodesuffix> using VF mode iterator.
28800 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
28801 (sse4_1_packusdw): Merge with *avx_packusdw.
28802 (sse4_1_pblendvb): Merge with *avx_pblendvb.
28803 (sse4_1_pblendw): Merge with *avx_pblendw.
28804 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
28805 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
28806 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
28807 VF mode iterator.
28808 (sse4_1_round<ssescalarmodesuffix>): Merge with
28809 *avx_round<ssescalarmodesuffix>.
28810 (aesenc): Merge with *avx_aesenc.
28811 (aesenclast): Merge with *avx_aesenclast.
28812 (aesdec): Merge with *avx_aesdec.
28813 (aesdeclast): Merge with *avx_aesdeclast.
28814 (pclmulqdq): Merge with *pclmulqdq.
28815 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
28816 New predicate.
28817 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
28818
28819 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
28820
28821 PR middle-end/48608
28822 * cfgexpand.c (get_decl_align_unit): Renamed to ...
28823 (align_local_variable): This. Update DECL_ALIGN.
28824 (add_stack_var): Updated.
28825 (expand_one_stack_var): Likewise.
28826
28827 2011-04-14 Richard Guenther <rguenther@suse.de>
28828
28829 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
28830 Remove.
28831 (dse_initialize_block_local_data, dse_leave_block,
28832 record_voperand_set, get_stmt_uid): Likewise.
28833 (dse_possible_dead_store_p): Allow any kind of killing stmt.
28834 (dse_optimize_stmt): Remove voperand set handling code.
28835 Simplify and improve to handle any kind of killing stmt.
28836 (dse_record_phi): Remove.
28837 (dse_enter_block): Simplify.
28838 (tree_ssa_dse): Likewise.
28839 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
28840
28841 2011-04-14 Jan Hubicka <jh@suse.cz>
28842
28843 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
28844 * cgraph.h (struct inline_summary): Move to ipa-inline.h
28845 (cgraph_local_info): Remove inline_summary.
28846 * ipa-cp.c: Include ipa-inline.h.
28847 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
28848 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
28849 accesor.
28850 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
28851 (input_overwrite_node): Do not set inline summary.
28852 (input_node): Do not stream inline summary.
28853 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
28854 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
28855 growth; we do not have inline parameters computed for that anyway.
28856 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
28857 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
28858 (inline_summary_t): New type and VECtor.
28859 (debug_inline_summary, dump_inline_summaries): Declare.
28860 (inline_summary): Use VOCtor.
28861 (estimate_edge_growth): Kill hack computing call stmt size directly.
28862 * lto-section-in.c (lto_section_name): Add inline section.
28863 * ipa-inline-analysis.c: Include lto-streamer.h
28864 (node_removal_hook_holder, node_duplication_hook_holder): New holders
28865 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
28866 (inline_summary_vec): Define.
28867 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
28868 dump_inline_summaries): New functions.
28869 (estimate_function_body_sizes): Properly compute size/time of outgoing
28870 calls.
28871 (compute_inline_parameters): Alloc inline_summary; do not compute
28872 size/time of incomming calls.
28873 (estimate_edge_time): Avoid missing time summary hack.
28874 (inline_read_summary): Read inline summary info.
28875 (inline_write_summary): Write inline summary info.
28876 (inline_free_summary): Free all hooks and inline summary vector.
28877 * lto-streamer.h: Add LTO_section_inline_summary section.
28878 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
28879 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
28880
28881 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
28882
28883 * tree-vectorizer.h (vect_strided_store_supported): Add a
28884 HOST_WIDE_INT argument.
28885 (vect_strided_load_supported): Likewise.
28886 (vect_permute_store_chain): Return void.
28887 (vect_transform_strided_load): Likewise.
28888 (vect_permute_load_chain): Delete.
28889 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
28890 count argument. Check that the count is a power of two.
28891 (vect_strided_load_supported): Likewise.
28892 (vect_permute_store_chain): Return void. Update after above changes.
28893 Assert that the access is supported.
28894 (vect_permute_load_chain): Likewise.
28895 (vect_transform_strided_load): Return void.
28896 * tree-vect-stmts.c (vectorizable_store): Update calls after
28897 above interface changes.
28898 (vectorizable_load): Likewise.
28899 (vect_analyze_stmt): Don't check for strided powers of two here.
28900
28901 2011-04-14 Richard Guenther <rguenther@suse.de>
28902
28903 PR tree-optimization/48590
28904 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28905 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
28906 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
28907 BUILT_IN_STACK_SAVE.
28908 * tree-ssa-dce.c (propagate_necessity): Handle
28909 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
28910
28911 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
28912
28913 * c-parser.c (c_parser_objc_class_declaration): Updated call to
28914 objc_declare_class.
28915
28916 2011-04-14 Richard Guenther <rguenther@suse.de>
28917
28918 * tree.h (get_object_alignment_1): Declare.
28919 * builtins.c (get_object_alignment_1): Split out worker from ...
28920 (get_object_alignment): ... here.
28921 * fold-const.c (get_pointer_modulus_and_residue): Use
28922 get_object_alignment_1.
28923
28924 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
28925
28926 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
28927 type parameter.
28928 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
28929 parameter. Generalise code to handle arrays as well as vectors.
28930 (vect_setup_realignment): Update accordingly.
28931 * tree-vect-stmts.c (vectorizable_store): Likewise.
28932 (vectorizable_load): Likewise.
28933
28934 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
28935
28936 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
28937 within the per-copy loop.
28938
28939 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
28940
28941 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
28942 in the dump file.
28943
28944 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
28945
28946 * doc/options.texi (Negative): Explicitly mention that the
28947 Negative chain must be circular.
28948
28949 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
28950
28951 * function.h (block_chainon): Declare.
28952 * function.c (block_chainon): Define.
28953
28954 2011-04-14 Anatoly Sokolov <aesok@post.ru>
28955 Eric Weddington <eric.weddington@atmel.com>
28956 Georg-Johann Lay <avr@gjlay.de>
28957
28958 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
28959 New Includes
28960 (avr_init_builtins, avr_expand_builtin,
28961 avr_expand_delay_cycles, avr_expand_unop_builtin,
28962 avr_expand_binop_builtin ): New functions.
28963 (avr_builtin_id): New enum
28964 (struct avr_builtin_description): New struct
28965 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
28966 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
28967
28968 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
28969 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
28970 UNSPECV_DELAY_CYCLES): new enumeration values
28971 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
28972 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
28973 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
28974 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
28975 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
28976 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
28977 "fmulsu"): New insns
28978
28979 * config/avr/avr-c.c: fix line endings
28980 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
28981 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
28982 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
28983 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
28984 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
28985
28986 * doc/extend.texi (AVR Built-in Functions): New node
28987 (Target Builtins): Add documentation of AVR
28988 built-in functions.
28989
28990 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
28991
28992 PR target/44643
28993 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
28994 alone. Error if non-const data has attribute progmem.
28995
28996 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
28997
28998 * tree.h (struct tree_constructor): Include tree_typed instead of
28999 tree_common.
29000 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
29001 TS_TYPED instead of TS_COMMON.
29002
29003 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
29004
29005 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
29006 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
29007 (sse2_psadbw): Merge with *avx_psadbw.
29008 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
29009 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
29010 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
29011 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
29012 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
29013 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
29014 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
29015 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
29016 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
29017 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
29018 (ssse3_palignrti): Merge with *avx_palignrti.
29019
29020 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29021
29022 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
29023 * tree-ssanames.c (fini_ssanames): VEC_free it.
29024 (make_ssa_name_fn): Update for VECness of free_ssanames.
29025 (release_ssa_name, release_dead_ssa_names): Likewise.
29026 * tree.h (struct tree_ssa_name): Include tree_typed instead of
29027 tree_common.
29028 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
29029 TS_TYPED instead of TS_COMMON.
29030
29031 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29032
29033 * postreload-gcse.c (gcse_after_reload_main): Add calls to
29034 statistics_counter_event.
29035 * tree-ssa-copyrename.c (stats): Define.
29036 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
29037 statistics_counter_event.
29038 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
29039 (bswap_stats, widen_mul_stats): Define.
29040 (insert_reciprocals): Increment rdivs_inserted.
29041 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
29042 rfuncs_inserted. Add calls to statistics_counter_event.
29043 (execute_cse_sincos_1): Increment inserted.
29044 (execute_cse_sincos): Zeroize sincos_stats. Add call to
29045 statistics_counter_event.
29046 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
29047 of bswap_stats. Add calls to statistics_counter_event.
29048 (convert_mult_to_widen): Increment widen_mults_inserted.
29049 (convert_plusminus_to_widen): Increment maccs_inserted.
29050 (convert_mult_to_fma): Increment fmas_inserted.
29051 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
29052 calls to statistics_counter_event.
29053
29054 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
29055
29056 PR rtl-optimization/48455
29057 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
29058 `temp_costs->mem_cost'.
29059
29060 2011-04-13 Jan Hubicka <jh@suse.cz>
29061
29062 * ipa-inline.h: New file.
29063 * ipa-inline-analysis.c: New file. Broken out of ...
29064 * ipa-inline.c: ... this file; update toplevel comment;
29065 include ipa-inline.h
29066 (inline_summary): Move to ipa-inline.h
29067 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
29068 ipa-inline-analysis.c.
29069 (cgraph_estimate_time_after_inlining): Rename to
29070 estiamte_time_after_inlining; move to ipa-inline-analysis.c
29071 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
29072 to estimate_edge_growth.
29073 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
29074 rename to estimate_size_after_inlining.
29075 (cgraph_mark_inline_edge): Update for new naming convention.
29076 (cgraph_check_inline_limits): Likewise.
29077 (cgraph_edge_badness): Likewise.
29078 (cgraph_decide_recursive_inlining): Likewise.
29079 (cgraph_decide_inlining_of_small_functions): Likewise.
29080 (cgraph_decide_inlining_incrementally): Likewise.
29081 (cgraph_estimate_growth): Rename to estimate_growth; move to
29082 ipa-inline-analysis.c.
29083 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
29084 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
29085 (compute_inline_parameters): Likewise.
29086 (compute_inline_parameters_for_current): Likewise.
29087 (pass_inline_parameters): Likewise.
29088 (inline_indirect_intraprocedural_analysis): Likewise.
29089 (analyze_function): Rename to inline_analyze_function; likewise.
29090 (add_new_function): Move to ipa-inline-analysis.c.
29091 (inline_generate_summary): Likewise.
29092 (inline_read_summary): Likewise.
29093 (inline_write_summary): Likewise.
29094 * Makefile.in (ipa-inline-analysis.c): New file.
29095
29096 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29097
29098 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
29099 * configure: Regenerate.
29100
29101 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
29102
29103 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
29104 instead of tree_common.
29105 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
29106 Likewise.
29107 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
29108 TS_TYPED rather than TS_COMMON.
29109 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
29110
29111 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
29112
29113 PR target/45263
29114 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
29115 r20 around calls of __tablejump_elpm__
29116
29117 2011-04-13 Jakub Jelinek <jakub@redhat.com>
29118
29119 PR middle-end/48591
29120 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
29121 NULL.
29122 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
29123
29124 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
29125
29126 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
29127 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
29128 (cfi_vec): New typedef.
29129 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
29130 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
29131 (cie_cfi_vec): New static variable.
29132 (cie_cfi_head): Delete.
29133 (add_cfi): Accept a cfi_vec * as first argument. All callers and
29134 declaration changed. Use vector rather than list operations.
29135 (new_cfi): Don't initialize the dw_cfi_next field.
29136 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
29137 rather than list operations.
29138 (lookup_cfa): Use vector rather than list operations.
29139 (output_cfis): New argument upto. Accept a cfi_vec rather than
29140 a dw_cfi_ref list head as argument. All callers changed.
29141 Iterate over the vector using upto as a maximum index.
29142 (output_all_cfis): New static function.
29143 (output_fde): Use vector rather than list operations. Use the
29144 new upto argument for output_cfis rather than manipulating a
29145 list.
29146 (dwarf2out_begin_prologue): Change initializations to match
29147 new struct members.
29148 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
29149 from the vector length rather than searching for the end of a list.
29150 Use output_all_cfis.
29151 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
29152
29153 2011-04-13 Nick Clifton <nickc@redhat.com>
29154
29155 * config/rx/rx.md (movmemsi): Do not use this pattern when
29156 volatile pointers are involved.
29157
29158 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
29159
29160 * config/i386/sse.md (pinsrbits): Remove.
29161 (sse2_packsswb): Merge with *avx_packsswb.
29162 (sse2_packssdw): Merge with *avx_packssdw.
29163 (sse2_packuswb): Merge with *avx_packuswb.
29164 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
29165 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
29166 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
29167 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
29168 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
29169 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
29170 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
29171 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
29172 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
29173 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
29174 (sse2_loadld): Merge with *avx_loadld.
29175 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
29176 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
29177 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
29178 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
29179 (vec_concatv2di): Merge with *vec_concatv2di_avx.
29180
29181 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
29182
29183 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
29184 calling TREE_CHAIN.
29185 * print-tree.c (print_node): Likewise.
29186 * tree-inline.c (copy_tree_r): Likewise.
29187 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
29188 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
29189 instead of TS_COMMON.
29190 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
29191 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
29192 (copy_node_stat): Zero TREE_CHAIN only if necessary.
29193 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
29194 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
29195 ...and these...
29196 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
29197 * tree.h: ...here.
29198 (TREE_CHAIN): Check for a TS_COMMON structure.
29199 (TREE_TYPE): Check for a TS_TYPED structure.
29200
29201 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
29202
29203 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
29204 cgraph_get_create_node instead of cgraph_node.
29205
29206 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
29207
29208 * c-parser.c (c_parser_initelt): Updated call to
29209 objc_build_message_expr.
29210 (c_parser_postfix_expression): Likewise.
29211
29212 2011-04-12 Kai Tietz <ktietz@redhat.com>
29213
29214 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
29215 MASK_MS_BITFIELD_LAYOUT bit.
29216
29217 2011-04-12 Jakub Jelinek <jakub@redhat.com>
29218
29219 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
29220 assert it is always true.
29221 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
29222 moves.
29223
29224 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
29225
29226 * c-parser.c (c_lex_one_token): Rewritten conditional used when
29227 compiling Objective-C to be more efficient.
29228
29229 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
29230
29231 * opts-common.c (decode_cmdline_options_to_array): Remove variable
29232 argv_copied.
29233
29234 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29235
29236 * recog.h, genoutput.c, optabs.c: Revert last patch.
29237
29238 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29239
29240 PR target/48090
29241 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
29242
29243 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29244
29245 * recog.h (insn_operand_data): Add an "allows_mem" field.
29246 * genoutput.c (output_operand_data): Initialize it.
29247 * optabs.c (maybe_legitimize_operand_same_code): New function.
29248 (maybe_legitimize_operand): Use it when matching the original
29249 op->value.
29250
29251 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29252
29253 * genpreds.c (process_define_predicate): Move most processing
29254 to gensupport.c. Continue to validate the expression.
29255 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
29256 (process_define_predicate): Move processing to gensupport.c.
29257 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
29258 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
29259 (compute_predicate_codes): Moved from genrecog.c. Add lineno
29260 argument.
29261 (valid_predicate_name_p): New function, split out from old
29262 genpreds.c:process_define_predicate.
29263 (process_define_predicate): New function, combining code from
29264 old genpreds.c and genrecog.c functions.
29265 (process_rtx): Call it for DEFINE_PREDICATE and
29266 DEFINE_SPECIAL_PREDICATE.
29267
29268 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
29269
29270 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
29271 size of a '%A' memory reference.
29272 (T_DREG, T_QREG): New neon_builtin_type_bits.
29273 (arm_init_neon_builtins): Assert that the load and store operands
29274 are neon_struct_operands.
29275 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
29276 (NEON_ARG_MEMORY): New builtin_arg.
29277 (neon_dereference_pointer): New function.
29278 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
29279 Handle NEON_ARG_MEMORY.
29280 (arm_expand_neon_builtin): Update after above interface changes.
29281 Use NEON_ARG_MEMORY for loads and stores.
29282 * config/arm/predicates.md (neon_struct_operand): New predicate.
29283 * config/arm/iterators.md (V_two_elem): Tweak formatting.
29284 (V_three_elem): Use BLKmode for accesses that have no associated mode.
29285 (V_four_elem): Tweak formatting.
29286 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
29287 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
29288 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
29289 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
29290 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
29291 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
29292 (neon_vst4<mode>): Replace pointer operand with a memory operand.
29293 Use %A in the output template.
29294 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
29295 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
29296 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
29297 the width of the memory access. Remove post-increment.
29298 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
29299
29300 2011-04-12 Nick Clifton <nickc@redhat.com>
29301
29302 * config/v850/v850.c (expand_prologue): Do not use the CALLT
29303 instruction for interrupt handlers if the target is the basic V850
29304 architecture.
29305 (expand_epilogue): Likewise.
29306
29307 2011-04-12 Jakub Jelinek <jakub@redhat.com>
29308
29309 PR rtl-optimization/48549
29310 * combine.c (propagate_for_debug): Also stop after BB_END of
29311 this_basic_block. Process LAST and just stop processing after it.
29312 (combine_instructions): If last_combined_insn has been deleted,
29313 set last_combined_insn to its PREV_INSN.
29314
29315 2011-04-12 Richard Guenther <rguenther@suse.de>
29316
29317 PR tree-optimization/46076
29318 * gimple.h (struct gimple_statement_call): Add fntype field.
29319 (gimple_call_fntype): Adjust.
29320 (gimple_call_set_fntype): New function.
29321 * gimple.c (gimple_build_call_1): Set the call function type.
29322 * gimplify.c (gimplify_call_expr): Preserve the function
29323 type the frontend used for the call.
29324 (gimplify_modify_expr): Likewise.
29325 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
29326 function type.
29327 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
29328 function type.
29329 * tree-ssa.c (useless_type_conversion_p): Function pointer
29330 conversions are useless.
29331
29332 2011-04-12 Martin Jambor <mjambor@suse.cz>
29333
29334 * cgraph.h (cgraph_node): Remove function declaration.
29335 (cgraph_create_node): Declare.
29336 (cgraph_get_create_node): Likewise.
29337 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
29338 Updated all callers.
29339 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
29340 the decl does not already exist. Call cgraph_get_create_node instead
29341 of cgraph_node.
29342 (cgraph_get_create_node): New function.
29343 (cgraph_same_body_alias): Update comment.
29344 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
29345 assert it does not return NULL.
29346 (cgraph_update_edges_for_call_stmt): Likewise.
29347 (cgraph_clone_edge): Likewise.
29348 (cgraph_create_virtual_clone): Likewise.
29349 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
29350 instead of cgraph_node.
29351 (cgraph_add_new_function): Call cgraph_create_node or
29352 cgraph_get_create_node instead of cgraph_node.
29353 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
29354 instead of cgraph_node.
29355 (record_eh_tables): Likewise.
29356 (mark_address): Likewise.
29357 (mark_load): Likewise.
29358 (build_cgraph_edges): Call cgraph_get_create_node instead
29359 of cgraph_node.
29360 (rebuild_cgraph_edges): Likewise.
29361 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
29362 instead of cgraph_node.
29363 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
29364 cgraph_node.
29365 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
29366 cgraph_create_node instead of cgraph_node.
29367 * c-decl.c (finish_function): Call cgraph_get_create_node instead
29368 of cgraph_node.
29369 * lto-cgraph.c (input_node): Likewise.
29370 * lto-streamer-in.c (input_function): Likewise.
29371 * varasm.c (mark_decl_referenced): Likewise.
29372 (assemble_alias): Likewise.
29373
29374 2011-04-12 Martin Jambor <mjambor@suse.cz>
29375
29376 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
29377 instead of cgraph_node and assert it does not return NULL.
29378 * lto-streamer-in.c (lto_read_body): Likewise.
29379 * omp-low.c (new_omp_context): Likewise.
29380 (create_task_copyfn): Likewise.
29381 * tree-emutls.c (lower_emutls_function_body): Likewise.
29382 * matrix-reorg.c (transform_allocation_sites): Likewise.
29383
29384 2011-04-12 Jakub Jelinek <jakub@redhat.com>
29385
29386 PR c/48552
29387 * c-typeck.c (build_asm_expr): Error out on attempts to use
29388 void type outputs or inputs for constraints that allow reg or
29389 don't allow memory.
29390
29391 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
29392 Richard Earnshaw <rearnsha@arm.com>
29393
29394 PR target/48250
29395 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
29396 to use sign-magnitude offsets. Reject unsupported unaligned
29397 cases. Add detailed description in comments.
29398 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
29399 condition from TARGET_32BIT to TARGET_ARM.
29400
29401 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
29402
29403 * tree.h (struct typed_tree): New.
29404 (struct tree_common): Include it instead of tree_base.
29405 (TREE_TYPE): Update for new location of type field.
29406 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
29407 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
29408 (union tree_node): Add typed field.
29409 * treestruct.def (TS_TYPED): New.
29410 * lto-streamer.c (check_handled_ts_structures): Handle it.
29411 * tree.c (MARK_TS_TYPED): New macro.
29412 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
29413
29414 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
29415
29416 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
29417 (force_nonfallthru): Do not alter the loop nest if no basic block
29418 was created.
29419
29420 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
29421
29422 * config/i386/sse.md (VI): New mode iterator.
29423 (SSEMODEI): Remove.
29424 (AVX256MODEI): Ditto.
29425 (AVXMODEF4P): Ditto.
29426 (avxvecpsmode): Ditto.
29427 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
29428 (sse2_andnot<mode>3): New expander.
29429 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
29430 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
29431 (<any_logic:code><mode>3): Use VI mode iterator.
29432 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
29433 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
29434 (*andnottf3): Handle AVX three-operand constraints.
29435 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
29436
29437 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29438 Robert Millan <rmh@gnu.org>
29439
29440 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
29441 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
29442 GNU_USER_DYNAMIC_LINKER64): Define.
29443 (REG_NAME): Don't undefine.
29444 (MD_UNWIND_SUPPORT): Undefine.
29445 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
29446 (REG_NAME): Don't undefine.
29447 (MD_UNWIND_SUPPORT): Undefine.
29448 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
29449
29450 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29451
29452 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
29453 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
29454
29455 2011-04-11 Xinliang David Li <davidxl@google.com>
29456
29457 * value-profile.c (check_ic_target): New function.
29458 (gimple_ic_transform): Sanity check indirect call target.
29459 * gimple-low.c (gimple_check_call_args): Interface change.
29460 (gimple_check_call_matching_types): New function.
29461 * tree-inline.c (tree_can_inline_p): Call new function.
29462
29463 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
29464
29465 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
29466 tree-pretty-print.h & realmpfr.h.
29467
29468 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
29469
29470 PR middle-end/48464
29471 * ira.c (setup_pressure_classes): Fix typo in loop condition.
29472 (setup_allocno_and_important_classes): Ditto.
29473
29474 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29475
29476 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
29477 GNU_USER_DYNAMIC_LINKER.
29478 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
29479 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29480 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
29481 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29482 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29483 GNU_USER_TARGET_OS_CPP_BUILTINS.
29484 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
29485 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29486 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29488 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
29489 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29490 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29491 GNU_USER_TARGET_OS_CPP_BUILTINS.
29492 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29493 GNU_USER_DYNAMIC_LINKER.
29494 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29495 GNU_USER_TARGET_OS_CPP_BUILTINS.
29496 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
29497 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29498 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
29499 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29500 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
29501 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
29502 GNU_USER_DYNAMIC_LINKER64): Remove.
29503 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
29504 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29505 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29506 GNU_USER_DYNAMIC_LINKER.
29507 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29508 GNU_USER_TARGET_OS_CPP_BUILTINS.
29509 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29510 GNU_USER_TARGET_OS_CPP_BUILTINS.
29511 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
29512 to GNU_USER_TARGET_OS_CPP_BUILTINS.
29513 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
29514 GNU_USER_TARGET_OS_CPP_BUILTINS.
29515 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
29516 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
29517 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
29518 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
29519 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29520 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29521 GNU_USER_DYNAMIC_LINKER.
29522 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
29523 GNU_USER_TARGET_OS_CPP_BUILTINS.
29524 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
29525 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29526 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29527 GNU_USER_DYNAMIC_LINKER.
29528 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29529 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29530 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
29531 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29532 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29533 GNU_USER_DYNAMIC_LINKER.
29534 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
29535 GNU_USER_DYNAMIC_LINKERN32.
29536 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
29537 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
29538 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
29539 GNU_USER_DYNAMIC_LINKER32.
29540 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
29541 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29542 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29543 GNU_USER_DYNAMIC_LINKER.
29544 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
29545 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29546 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
29547 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29548 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29549 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
29550 GNU_USER_DYNAMIC_LINKER32.
29551 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
29552 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
29553 GNU_USER_DYNAMIC_LINKER.
29554 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
29555 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29556 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
29557 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
29558 GNU_USER_DYNAMIC_LINKER64.
29559 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
29560 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29561 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29562 GNU_USER_DYNAMIC_LINKER.
29563 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
29564 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29565 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
29566 GNU_USER_DYNAMIC_LINKER.
29567 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
29568 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29569 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
29570 GNU_USER_DYNAMIC_LINKER32.
29571 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
29572 GNU_USER_DYNAMIC_LINKER64.
29573 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
29574 GNU_USER_DYNAMIC_LINKER64.
29575 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
29576 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29577 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
29578 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
29579 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
29580
29581 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29582
29583 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
29584 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
29585 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
29586 GNU_USER_DYNAMIC_LINKER.
29587 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
29588 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
29589 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
29590 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
29591 GNU_USER_DYNAMIC_LINKER64.
29592 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
29593 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
29594 GNU_USER_LINK_EMULATION.
29595 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
29596 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
29597 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
29598 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
29599 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
29600 CPP_SPEC, CC1_SPEC): Remove.
29601 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
29602 (GNU_USER_DYNAMIC_LINKER): Define.
29603 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
29604 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
29605 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
29606 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
29607 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
29608 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
29609 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
29610 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
29611 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
29612 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
29613 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
29614 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
29615 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
29616 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
29617 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
29618 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
29619 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29620 GNU_USER_DYNAMIC_LINKER.
29621 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29622 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
29623 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29624 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
29625 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
29626 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
29627 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
29628 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
29629 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
29630 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
29631
29632 2011-04-11 Kai Tietz <ktietz@redhat.com>
29633
29634 PR target/9601
29635 PR target/11772
29636 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
29637 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
29638 comment.
29639 (ix86_is_msabi_thiscall): Removed.
29640 (ix86_is_type_thiscall): Likewise.
29641 (ix86_get_callcvt): New function.
29642 (ix86_comp_type_attributes): Simplify check.
29643 (ix86_function_regparm): Use ix86_get_callcvt for calling
29644 convention attribute checks.
29645 (ix86_return_pops_args): Likewise.
29646 (ix86_static_chain): Likewise.
29647 (x86_this_parameter): Likewise.
29648 (x86_output_mi_thunk): Likewise.
29649 (ix86_function_type_abi): Optimize check for types without attributes.
29650 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
29651 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
29652 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
29653 by flag-values.
29654 (IX86_BASE_CALLCVT): Helper macro.
29655 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
29656 Use ix86_get_callcvt for calling convention attribute checks and avoid
29657 symbol-decoration for stdcall in TARGET_RTD case.
29658 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
29659 Likewise.
29660 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
29661 for declaration.
29662
29663 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
29664
29665 * config/i386/sse.md (VI_128): New mode iterator.
29666 (VI12_128): Rename from SSEMODE12.
29667 (VI14_128): Rename from SSEMODE14.
29668 (VI124_128): New mode iterator.
29669 (VI24_128): Rename from SSEMODE248.
29670 (VI248_128): Rename from SSEMODE248.
29671 (SSEMODE124C8): Remove.
29672 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
29673 (*sse2_<plusminus_insn><mode>3): Merge with
29674 *avx_<plusminus_insn><mode>3.
29675 (*mulv8hi3): Merge with *avx_mulv8hi3.
29676 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
29677 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
29678 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
29679 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
29680 (ashr<mode>3): Merge with *avx_ashr<mode>3.
29681 (lshr<mode>3): Merge with *avx_lshr<mode>3.
29682 (ashl<mode>3): Merge with *avx_ashl<mode>3.
29683 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
29684 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
29685 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
29686 (*<smaxmin:code>v8hi3): Ditto.
29687 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
29688 (*<smaxmin:code>v16qi3): Ditto.
29689 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
29690 (*sse2_eq<mode>3): Ditto.
29691 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
29692 (*sse2_gt<mode>3): Ditto.
29693 (vcondv2di): Split out of vcond<mode>.
29694 (vconduv2di): Split out of vcondu<mode>.
29695
29696 2011-04-11 Richard Guenther <rguenther@suse.de>
29697
29698 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
29699 before calling tree_low_cst.
29700
29701 2011-04-11 Richard Guenther <rguenther@suse.de>
29702
29703 * stor-layout.c (layout_type): Compute all array index size operations
29704 in the original type.
29705 (initialize_sizetypes): Add comment.
29706 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
29707
29708 2011-04-11 Joseph Myers <joseph@codesourcery.com>
29709
29710 * common.opt (Tbss=, Tdata=, Ttext=): New options.
29711
29712 2011-04-11 Martin Jambor <mjambor@suse.cz>
29713
29714 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
29715 of cgraph_node, handle NULL return value.
29716 (cgraph_global_info): Likewise.
29717 (cgraph_rtl_info): Likewise.
29718 * tree-inline.c (estimate_num_insns): Likewise.
29719 * gimplify.c (unshare_body): Likewise.
29720 (unvisit_body): Likewise.
29721 (gimplify_body): Likewise.
29722 * predict.c (optimize_function_for_size_p): Likewise.
29723 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29724 (call_may_clobber_ref_p_1): Likewise.
29725 * varasm.c (function_section_1): Likewise.
29726 (assemble_start_function): Likewise.
29727
29728 2011-04-11 Martin Jambor <mjambor@suse.cz>
29729
29730 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
29731 of cgraph_node.
29732 * final.c (rest_of_clean_state): Likewise.
29733 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
29734 * passes.c (pass_init_dump_file): Likewise.
29735 (execute_all_ipa_transforms): Likewise.
29736 (function_called_by_processed_nodes_p): Likewise.
29737 * predict.c (maybe_hot_frequency_p): Likewise.
29738 (probably_never_executed_bb_p): Likewise.
29739 (compute_function_frequency): Likewise.
29740 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
29741 (unnest_nesting_tree_1): Likewise.
29742 (lower_nested_functions): Likewise.
29743 * tree-optimize.c (execute_fixup_cfg): Likewise.
29744 (tree_rest_of_compilation): Likewise.
29745 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
29746 * tree-sra.c (ipa_early_sra): Likewise.
29747 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
29748 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
29749 * ipa.c (record_cdtor_fn): Likewise.
29750 * ipa-inline.c (cgraph_early_inlining): Likewise.
29751 (compute_inline_parameters_for_current): Likewise.
29752 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29753 * ipa-pure-const.c (local_pure_const): Likewise.
29754 * ipa-split.c (split_function): Likewise.
29755 (execute_split_functions): Likewise.
29756 * cgraphbuild.c (build_cgraph_edges): Likewise.
29757 (rebuild_cgraph_edges): Likewise.
29758 (cgraph_rebuild_references): Likewise.
29759 (remove_cgraph_callee_edges): Likewise.
29760 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
29761 (verify_cgraph_node): Likewise.
29762 (cgraph_analyze_functions): Likewise.
29763 (cgraph_preserve_function_body_p): Likewise.
29764 (save_inline_function_body): Likewise.
29765 (save_inline_function_body): Likewise.
29766 * tree-inline.c (copy_bb): Likewise.
29767 (optimize_inline_calls): Likewise.
29768
29769 2011-04-11 Martin Jambor <mjambor@suse.cz>
29770
29771 PR tree-optimization/48195
29772 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
29773 ipa_check_create_edge_args.
29774 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
29775 ipa_check_create_edge_args.
29776 * ipa-inline.c (inline_generate_summary): Do not call
29777 ipa_check_create_node_params and ipa_check_create_edge_args.
29778 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
29779 ipa_check_create_edge_args.
29780
29781 2011-04-09 Anatoly Sokolov <aesok@post.ru>
29782
29783 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
29784 instead of loop.
29785 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
29786 * function.c (record_hard_reg_sets): Likewise.
29787 * ira.c (compute_regs_asm_clobbered): Likewise.
29788 * sched-deps.c (sched_analyze_1): Likewise.
29789 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
29790
29791 2011-04-09 Xinliang David Li <davidxl@google.com>
29792
29793 PR tree-optimization/PR48484
29794 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
29795 has_valid_pred lazily
29796
29797 2011-04-09 Duncan Sands <baldrick@free.fr>
29798
29799 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
29800
29801 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
29802
29803 * combine.c (combine_validate_cost): Adjust comments. Set registered
29804 cost of I0 to zero at the end, if any.
29805
29806 2011-04-08 Xinliang David Li <davidxl@google.com>
29807
29808 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
29809 to insane profile data.
29810
29811 2011-04-08 Xinliang David Li <davidxl@google.com>
29812
29813 * ipa-cp.c (ipcp_update_profiling): Correct
29814 negative scale factor due to insane profile data.
29815
29816 2011-04-08 Xinliang David Li <davidxl@google.com>
29817
29818 * final.c (dump_basic_block_info): New function.
29819 (final): Dump basic block.
29820 (final_scan_insn): Remove old dump.
29821
29822 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
29823
29824 PR target/47829
29825 * config.gcc (i386-*-freebsd): Disable unwind table generation for
29826 crtbegin/crtend.
29827
29828 2011-04-08 Michael Matz <matz@suse.de>
29829
29830 PR middle-end/48389
29831 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
29832 functions.
29833 (rebuild_jump_labels): Call rebuild_jump_labels_1.
29834 * rtl.h (rebuild_jump_labels_chain): Declare.
29835 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
29836 insns inserted on edges.
29837
29838 2011-04-08 Joseph Myers <joseph@codesourcery.com>
29839
29840 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
29841 * config/arm/arm-arches.def: New.
29842 * config/arm/arm-opts.h: New.
29843 * config/arm/genopt.sh: New.
29844 * config/arm/arm-tables.opt: New (generated).
29845 * config/arm/arm.c (arm_handle_option, arm_target_help,
29846 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
29847 (all_architectures): Get most table contents from arm-arches.def.
29848 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
29849 arm_selected_tune here.
29850 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
29851 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
29852 (march=, mcpu=, mtune=): Use Enum and Var.
29853 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
29854 (arm.o): Update dependencies.
29855
29856 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
29857
29858 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
29859 of header_file.
29860 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
29861 (write_typed_alloc_defns): Likewise.
29862 (main): Calls write_typed_alloc_defns with output_header.
29863
29864 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
29865
29866 PR inline-asm/48435
29867 * ira-color.c (setup_profitable_hard_regs): Add comments.
29868 Don't take prohibited hard regs into account.
29869 (setup_conflict_profitable_regs): Rename to
29870 get_conflict_profitable_regs.
29871 (check_hard_reg_p): Check prohibited hard regs.
29872
29873 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
29874
29875 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
29876 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
29877 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
29878
29879 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29880
29881 PR target/48366
29882 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
29883 move from floating point to shift amount register.
29884 (emit_move_sequence): Remove secondary reload support for floating
29885 point to shift amount amount register copies.
29886 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
29887 amount register copies.
29888 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
29889 register, return false if mode isn't a scalar integer mode.
29890 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
29891
29892 2011-04-08 Richard Guenther <rguenther@suse.de>
29893
29894 * gimple.c (gimple_call_flags): Remove kludge.
29895
29896 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
29897
29898 * sel-sched.c (sel_region_init): Move call to
29899 sel_setup_region_sched_flags after setup_current_loop_nest.
29900
29901 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
29902
29903 PR rtl-optimization/48272
29904 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
29905 init_insn_reg_pressure_info. Adjust a caller.
29906 * sched-int.h (init_insn_reg_pressure_info): Declare.
29907 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
29908 when sched-pressure is enabled.
29909
29910 2011-04-08 Richard Guenther <rguenther@suse.de>
29911
29912 * gimple.c (gimple_set_modified): Do not queue calls to
29913 MODIFIED_NORETURN_CALLS here ...
29914 * tree-ssa-operands.c (update_stmt_operands): ... but here.
29915
29916 2011-04-08 Richard Guenther <rguenther@suse.de>
29917
29918 PR lto/48467
29919 * toplev.c (lang_dependent_init): Do not open asm_out_file
29920 in WPA mode, nor perform debug machinery initialization.
29921 (finalize): Do not unlink asm_out_file in WPA mode.
29922
29923 2011-04-08 Richard Guenther <rguenther@suse.de>
29924
29925 * gimple.h (gimple_call_fntype): New function.
29926 (gimple_call_return_type): Use it.
29927 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
29928 * gimple-low.c (gimple_check_call_args): Likewise.
29929 * gimple.c (gimple_call_flags): Likewise.
29930 (gimple_call_arg_flags): Likewise.
29931 (gimple_call_return_flags): Likewise.
29932 * tree-cfg.c (verify_gimple_call): Likewise.
29933 (do_warn_unused_result): Likewise.
29934 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
29935 * value-prof.c (gimple_ic_transform): Fix fndecl check.
29936
29937 2011-04-08 Dmitry Melnik <dm@ispras.ru>
29938
29939 PR rtl-optimization/48235
29940 * sel-sched.c (code_motion_process_successors): Recompute the last
29941 insn in basic block if control flow changed.
29942 (code_motion_path_driver): Ditto. Recompute the first insn as well.
29943 Update condition for ilist_remove.
29944
29945 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
29946
29947 PR rtl-optimization/48302
29948 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
29949 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
29950 it to record added preheader blocks.
29951 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
29952 on to sel_add_loop_preheaders.
29953 (sel_region_init): Move call to setup_current_loop_nest after
29954 sel_init_bbs.
29955
29956 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
29957
29958 PR target/48273
29959 * cfgloop.h (loop_has_exit_edges): New helper.
29960 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
29961 non-clonable.
29962 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
29963 that have no exit edges.
29964
29965 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
29966
29967 PR rtl-optimization/48442
29968 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
29969 all callers. Adjust assert.
29970
29971 2011-04-08 Jakub Jelinek <jakub@redhat.com>
29972
29973 PR tree-optimization/48377
29974 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
29975 is_packed to true even for types with smaller TYPE_ALIGN than
29976 TYPE_SIZE.
29977
29978 2011-04-08 Richard Guenther <rguenther@suse.de>
29979
29980 PR bootstrap/48513
29981 * doc/tm.texi: Re-generate.
29982
29983 2011-04-08 Wei Guozhi <carrot@google.com>
29984
29985 PR target/47855
29986 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
29987 * config/arm/arm.c (arm_attr_length_push_multi): New function.
29988 * config/arm/arm.md (*push_multi): Change the length computation to
29989 call a C function.
29990
29991 2011-04-08 Anatoly Sokolov <aesok@post.ru>
29992
29993 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
29994 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
29995 * doc/tm.texi: Regenerate.
29996 * system.h (ASM_OUTPUT_BSS): Poison.
29997 * varasm.c (asm_output_bss): Remove function.
29998 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
29999
30000 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
30001 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
30002 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
30003 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30004 Likewise.
30005 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30006 Likewise.
30007 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
30008 Likewise.
30009 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
30010
30011 2011-04-07 Joseph Myers <joseph@codesourcery.com>
30012
30013 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
30014 EnumValue lines.
30015
30016 2011-04-07 Joseph Myers <joseph@codesourcery.com>
30017
30018 * config/m68k/m68k.c (m68k_handle_option): Don't handle
30019 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
30020 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
30021 OPT_mcpu32.
30022 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
30023 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
30024 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
30025 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
30026 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
30027 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
30028 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
30029 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
30030 options. Don't map other m68k options manually. Don't handle
30031 old-style options as canonical.
30032 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
30033 * doc/install.texi (m68k-*-*): Document binutils version requirement.
30034
30035 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
30036
30037 * basic-block.h (force_nonfallthru): Move to...
30038 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
30039 (force_nonfallthru): ...here.
30040 * cfghooks.c (force_nonfallthru): New function.
30041 * cfgrtl.c (force_nonfallthru): Rename into...
30042 (rtl_force_nonfallthru): ...this.
30043 (commit_one_edge_insertion): Do not set AUX field.
30044 (commit_edge_insertions): Do not discover new basic blocks.
30045 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
30046 (cfg_layout_rtl_cfg_hooks): Likewise.
30047 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
30048 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
30049 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
30050
30051 2011-04-07 Anatoly Sokolov <aesok@post.ru>
30052
30053 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
30054 Remove macros.
30055
30056 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
30057
30058 * config/i386/sse.md: Update copyright year.
30059 (avxcvtvecmode): Remove.
30060 (sse_movhlps): Merge with *avx_movhlps.
30061 (sse_movlhps): Merge with *avx_movlhps.
30062 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
30063 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
30064 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
30065 (sse_loadhps): Merge with *avx_loadhps.
30066 (sse_storelps): Merge with *avx_storelps.
30067 (sse_loadlps): Merge with *avx_loadlps.
30068 (sse_movss): Merge with *avx_movss.
30069 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
30070 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
30071 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
30072 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
30073 (vec_set<mode>_0): Ditto.
30074 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
30075 (sse4_1_insertps): Merge with *avx_insertps.
30076 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
30077 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
30078 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
30079 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
30080 (sse2_storehpd): Merge with *avx_storehpd.
30081 (sse2_loadhpd): Merge with *avx_loadhpd.
30082 (sse2_loadlpd): Merge with *avx_loadlpd.
30083 (sse2_movsd): Merge with *avx_movsd.
30084 (*vec_concatv2df): Merge with *vec_concatv2df.
30085
30086 2011-04-07 Jakub Jelinek <jakub@redhat.com>
30087
30088 PR debug/48343
30089 * combine.c (combine_instructions): Add last_combined_insn,
30090 update it if insn is after it, pass it to all try_combine calls.
30091 (try_combine): Add last_combined_insn parameter, pass it instead of
30092 i3 to propagate_for_debug.
30093
30094 2011-04-07 Nick Clifton <nickc@redhat.com>
30095
30096 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
30097 to handle MDR <-> data register transfers.
30098 (movhi_internal): Likewise.
30099
30100 2011-04-07 Alan Modra <amodra@gmail.com>
30101
30102 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
30103 previous stack info.
30104
30105 2011-04-07 Tom de Vries <tom@codesourcery.com>
30106
30107 PR target/43920
30108 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
30109 flow_find_cross_jump. Swap variables to implement backward replacement.
30110 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
30111
30112 2011-04-07 Tom de Vries <tom@codesourcery.com>
30113
30114 PR target/43920
30115 * cfgcleanup.c (walk_to_nondebug_insn): New function.
30116 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
30117 and bb2.
30118 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
30119 src1 or src2. Redirect edges to the last basic block. Update
30120 frequency and count on multiple basic blocks in case of fallthru.
30121
30122 2011-04-07 Tom de Vries <tom@codesourcery.com>
30123
30124 PR target/43920
30125 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
30126 function.
30127 (old_insns_match_p): Change return type. Replace return false/true
30128 with return dir_none/dir_both. Use can_replace_by.
30129 (flow_find_cross_jump): Add dir_p parameter. Init replacement
30130 direction from dir_p. Register replacement direction in dir, last_dir
30131 and afterlast_dir. Handle new return type of old_insns_match_p using
30132 merge_dir. Return replacement direction in dir_p.
30133 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
30134 return type of old_insns_match_p.
30135 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
30136 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
30137 flow_find_cross_jump.
30138 * basic-block.h (enum replace_direction): New type.
30139 (flow_find_cross_jump): Add parameter to declaration.
30140
30141 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
30142
30143 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
30144 (AVXMODEDCVTPS2DQ): Ditto.
30145 (VEC_FLOAT_MODE): Ditto.
30146 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
30147 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
30148 (<any_logic:code><mode>3): Use VF mode iterator.
30149 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
30150 Use VF mode iterator.
30151 (copysign<mode>3): Use VF mode iterator.
30152 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
30153 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
30154 (*<any_logic:code><MODEF:mode>3): Merge with
30155 *avx_<any_logic:code><MODEF:mode>3.
30156 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
30157 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
30158 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
30159 (avx_cvtdq2ps<avxmodesuffix>): Remove.
30160 (sse2_cvtdq2ps): Use %v modifier.
30161 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
30162 (avx_cvtps2dq<avxmodesuffix>): Remove.
30163 (sse2_cvtps2dq): Use %v modifier.
30164 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
30165 (avx_cvttps2dq<avxmodesuffix>): Remove.
30166 (sse2_cvttps2dq): Use %v modifier.
30167 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
30168 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
30169 (sse2_cvtsd2siq): Fix insn template.
30170 (sse2_cvtsd2siq_2): Ditto.
30171 (sse2_cvttsd2siq): Ditto.
30172 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
30173 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
30174
30175 2011-04-06 Joseph Myers <joseph@codesourcery.com>
30176
30177 * gcov-io.c: Use GCC Runtime Library Exception.
30178
30179 2011-04-06 Jakub Jelinek <jakub@redhat.com>
30180
30181 PR debug/48466
30182 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
30183 as base_reg whatever register reg has been eliminated to, instead
30184 of hardcoding STACK_POINTER_REGNUM.
30185
30186 2011-04-06 Joseph Myers <joseph@codesourcery.com>
30187
30188 * doc/tm.texi.in: Document C target hooks as separate from general
30189 target hooks.
30190 * doc/tm.texi: Regenerate.
30191 * genhooks.c (struct hook_desc): Add docname field.
30192 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
30193 docname field.
30194 (hook_array): Include c-target.def.
30195 (emit_documentation): Use docname field in output.
30196 (emit_init_macros): Take docname argument. Only emit definitions
30197 for hooks matching docname.
30198 (main): Expect additional arguments in all cases. Pass argument
30199 to emit_init_macros.
30200 * target.def: Move initial macro definitions and comments to
30201 target-hooks-macros.h.
30202 (gcc_targetcm): Move to c-family/c-target.def.
30203 * target.h (targetcm): Move declaration to c-family/c-target.h.
30204 * targhooks.c (default_handle_c_option): Move to
30205 c-family/c-opts.c.
30206 * targhooks.h (default_handle_c_option): Move declaration to
30207 c-family/c-common.h.
30208 * target-hooks-macros.h: New file.
30209 * config.gcc (target_has_targetcm): Define and use to add to
30210 c_target_objs and cxx_target_objs.
30211 * config/default-c.c: New file.
30212 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
30213 of target.h and target-def.h.
30214 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
30215 (darwin_objc_construct_string, darwin_cfstring_ref_p,
30216 darwin_check_cfstring_format_arg): Make static.
30217 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
30218 TARGET_STRING_OBJECT_REF_TYPE_P,
30219 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
30220 * config/darwin-protos.h (darwin_objc_construct_string,
30221 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
30222 declare.
30223 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
30224 TARGET_STRING_OBJECT_REF_TYPE_P,
30225 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
30226 * config/t-darwin (darwin-c.o): Update dependencies.
30227 * system.h (TARGET_HAS_TARGETCM): Poison.
30228 * Makefile.in (TARGET_H): Update.
30229 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
30230 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
30231 (default-c.o): New target.
30232 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
30233 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
30234 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
30235 c-target.def.
30236 (build/genhooks.o): Update dependencies.
30237
30238 2011-04-06 Richard Guenther <rguenther@suse.de>
30239
30240 * ipa-inline.c (enum inlining_mode): Remove.
30241 (cgraph_flatten): Use some other token.
30242 (cgraph_edge_early_inlinable_p): New function, split out from ...
30243 (cgraph_perform_always_inlining): New function, split out from ...
30244 (cgraph_decide_inlining_incrementally): ... here.
30245 (cgraph_mark_inline_edge): Adjust.
30246 (cgraph_early_inlining): Re-structure.
30247 (pass_early_inline): Require SSA form.
30248
30249 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
30250 Julian Brown <julian@codesourcery.com>
30251 Mark Shinwell <shinwell@codesourcery.com>
30252
30253 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
30254 LO_REGS only for Thumb-1.
30255 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
30256 be used in short instructions when optimising for size on Thumb-2.
30257
30258 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
30259
30260 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
30261 associated with user returns to be preserved.
30262
30263 2011-04-06 Tristan Gingold <gingold@adacore.com>
30264
30265 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
30266 symbol_queue_size, DBXOUT_DECR_NESTING,
30267 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
30268 if XCOFF_DEBUGGING_INFO.
30269
30270 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
30271
30272 * config/i386/i386.md (attribute isa): New.
30273 (attribute enabled): New.
30274 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
30275 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
30276 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
30277 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
30278 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
30279 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30280 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
30281 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
30282
30283 * config/i386/sse.md (VF): New mode iterator.
30284 (VF1): Ditto.
30285 (VF2): Ditto.
30286 (VF_128): Ditto.
30287 (SSEMODEF4): Remove.
30288 (attribute sse): Handle V8SF and V4DF modes.
30289 (<absneg:code><mode>2): Use VF mode iterator.
30290 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
30291 mode iterator.
30292 (<plusminus_insn><mode>3): Use VF mode iterator.
30293 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
30294 Use VF mode iterator.
30295 (<sse>_vm<plusminus_insn><mode>3): Merge with
30296 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
30297 (mul<mode>3): Use VF mode iterator.
30298 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
30299 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
30300 mode iterator.
30301 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
30302 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
30303 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
30304 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
30305 mode iterator.
30306 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
30307 Use VF1 mode iterator.
30308 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
30309 (sqrt<VF2:mode>2): New expander.
30310 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
30311 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
30312 and sqrtv2df2. Use VF mode iterator.
30313 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
30314 mode iterator.
30315 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
30316 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
30317 Use VF1 mode iterator.
30318 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
30319 (<smaxmin:code><mode>3): Use VF mode iterator.
30320 (*<smaxmin:code><mode>3_finite): Merge with
30321 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
30322 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30323 (<sse>_vm<smaxmin:code><mode>2): Merge with
30324 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
30325 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
30326 mode iterator.
30327 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
30328 mode iterator.
30329 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
30330 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
30331 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
30332 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
30333 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
30334 VF mode iterator.
30335 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
30336 Use VF_128 mode iterator.
30337 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
30338 mode iterator.
30339 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
30340 VF_128 mode iterator.
30341 (vcond<mode>): Use VF mode iterator.
30342 * config/i386/predicates.md (sse_comparison_operator): Merge with
30343 avx_comparison_float_operator. Do not declare as special_predicate.
30344 * config/i386/i386.c (struct builtin_description): Update for renamed
30345 compare patterns.
30346 (ix86_expand_args_builtin): Ditto.
30347 (ix86_expand_sse_compare_mask): Ditto.
30348
30349 2011-04-06 Richard Guenther <rguenther@suse.de>
30350
30351 * tree-inline.c (estimate_num_insns): For calls simply account
30352 for all passed arguments and a used return value.
30353
30354 2011-04-06 Richard Guenther <rguenther@suse.de>
30355
30356 PR tree-optimization/47663
30357 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
30358 call_stmt_time fields.
30359 (cgraph_edge_inlinable_p): Declare.
30360 (cgraph_edge_recursive_p): New inline function.
30361 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
30362 (cgraph_clone_edge): Copy it.
30363 * ipa-inline.c (cgraph_estimate_edge_time): New function.
30364 Account for call stmt time.
30365 (cgraph_estimate_time_after_inlining): Take edge argument.
30366 (cgraph_estimate_edge_growth): Account call stmt size.
30367 (cgraph_estimate_size_after_inlining): Take edge argument.
30368 (cgraph_mark_inline_edge): Adjust.
30369 (cgraph_check_inline_limits): Likewise.
30370 (cgraph_recursive_inlining_p): Remove.
30371 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
30372 (cgraph_decide_recursive_inlining): Take edge argument and
30373 adjust.
30374 (cgraph_decide_inlining_of_small_functions): Do not avoid
30375 diags for recursive inlining here.
30376 (cgraph_flatten): Adjust.
30377 (cgraph_decide_inlining_incrementally): Likewise.
30378 (estimate_function_body_sizes): Remove call cost handling.
30379 (compute_inline_parameters): Initialize caller edge call costs.
30380 (cgraph_estimate_edge_growth): New function.
30381 (cgraph_estimate_growth): Use it.
30382 (cgraph_edge_badness): Likewise.
30383 (cgraph_check_inline_limits): Take an edge argument.
30384 (cgraph_decide_inlining_of_small_functions): Adjust.
30385 (cgraph_decide_inlining): Likewise.
30386 * tree-inline.c (estimate_num_insns): Only account for call
30387 return value if it is used.
30388 (expand_call_inline): Avoid diagnostics on recursive inline
30389 functions here.
30390 * lto-cgraph.c (lto_output_edge): Output edge call costs.
30391 (input_edge): Input edge call costs.
30392
30393 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30394
30395 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
30396
30397 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
30398
30399 * doc/invoke.texi (Spec Files): Fix typo.
30400
30401 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
30402
30403 * profile.c (branch_prob): Move declaration of local variable. Remove
30404 obsolete ??? comment. Expand the location explicitly instead of using
30405 the LOCATION_FILE and LOCATION_LINE macros.
30406
30407 2011-04-06 Wei Guozhi <carrot@google.com>
30408
30409 PR target/47855
30410 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
30411 (arm_cond_branch): Likewise.
30412 (arm_cond_branch_reversed): Likewise.
30413 (arm_jump): Likewise.
30414 (push_multi): Likewise.
30415 * config/arm/constraints.md (Py): New constraint.
30416
30417 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30418
30419 PR bootstrap/48471
30420 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
30421 Move these...
30422 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
30423 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
30424 #ifdef DBX_DEBUGGING_INFO.
30425
30426 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
30427
30428 PR bootstrap/48403
30429 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
30430 if old and new states differ.
30431
30432 2011-04-05 Joseph Myers <joseph@codesourcery.com>
30433
30434 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
30435 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
30436 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
30437 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
30438 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
30439 mcfv4e): Use Alias.
30440 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
30441 ColdFire options to -mcpu= options.
30442
30443 2011-04-05 Jeff Law <law@redhat.com>
30444
30445 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
30446 check if BB is a successor of LOOP->header and return
30447 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
30448
30449 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
30450
30451 * cprop.c (struct reg_use): Remove.
30452 (reg_use_table): Make an array of RTX.
30453 (find_used_regs, constprop_register, local_cprop_pass,
30454 bypass_block): Simplify users of reg_use_table.
30455 (cprop_insn): Likewise. Iterate if copy propagation succeeded
30456 on one of the uses found by find_used_regs.
30457
30458 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30459
30460 PR bootstrap/48469
30461 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
30462 declaration.
30463
30464 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30465
30466 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
30467 as an rtx.
30468 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
30469
30470 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
30471
30472 PR middle-end/48441
30473 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
30474
30475 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30476
30477 * combine.c: Include obstack.h.
30478 (struct insn_link): Define.
30479 (uid_log_links): Adjust type.
30480 (FOR_EACH_LOG_LINK): New macro.
30481 (insn_link_obstack): Declare.
30482 (alloc_insn_link): Define.
30483 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
30484 type of link variables.
30485 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
30486 (try_combine, record_promoted_values, distribute_notes): Likewise.
30487 (distribute_links): Likewise. Tweak prototype.
30488 (clear_log_links): Delete.
30489 (adjust_for_new_dest): Call alloc_insn_link.
30490 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
30491
30492 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30493
30494 * gcse.c (modify_mem_list): Convert to an array of VECs.
30495 (canon_modify_mem_list, compute_transp): Tweak formatting.
30496 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
30497 (load_killed_in_block_p): Likewise.
30498 (record_last_mem_set_info): Likewise.
30499 (clear_modify_mem_tables): Likewise.
30500
30501 2011-04-05 Tom de Vries <tom@codesourcery.com>
30502
30503 PR middle-end/48461
30504 * function.c (emit_use_return_register_into_block): Only define if
30505 HAVE_return.
30506
30507 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
30508
30509 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
30510
30511 2011-04-05 Joseph Myers <joseph@codesourcery.com>
30512
30513 * config/rx/rx-opts.h: New.
30514 * config/rx/rx.c (rx_cpu_type): Remove.
30515 (rx_handle_option): Don't assert that global structures are in
30516 use. Access variables via opts pointer. Defer most handling of
30517 OPT_mint_register_. Use error_at.
30518 (rx_option_override): Handle deferred OPT_mint_register_ here.
30519 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
30520 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
30521 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
30522 (rx_cpu_types): New Enum and EnumValue entries.
30523 (mint-register=): Use Defer and use Var accordingly.
30524
30525 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30526
30527 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
30528 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
30529 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
30530 Move these...
30531 (debug_free_queue, debug_nesting, symbol_queue_index):
30532 ...and these...
30533 * dbxout.c: ...to here. Make static.
30534
30535 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
30536
30537 * gcse.c (modify_pair): Define. Define a VEC of it.
30538 (canon_modify_mem_list): Convert to an array of VECs.
30539 (free_insn_expr_list_list): Delete.
30540 (clear_modify_mem_tables): Call VEC_free instead.
30541 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
30542 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
30543 (canon_list_insert, compute_transp): Likewise.
30544
30545 2011-04-05 Tom de Vries <tom@codesourcery.com>
30546
30547 PR target/43920
30548 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
30549 for size.
30550
30551 2011-04-05 Tom de Vries <tom@codesourcery.com>
30552
30553 PR target/43920
30554 * function.c (emit_use_return_register_into_block): New function.
30555 (thread_prologue_and_epilogue_insns): Use
30556 emit_use_return_register_into_block.
30557
30558 2011-04-05 Tom de Vries <tom@codesourcery.com>
30559
30560 PR target/43920
30561 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
30562 insn.
30563
30564 2011-04-05 Tom de Vries <tom@codesourcery.com>
30565
30566 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
30567
30568 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
30569
30570 * config/arm/arm.md (define_constants for unspec): Replace with
30571 define_c_enum.
30572 (define_constants for unspecv): Replace with define_c_enum.
30573 * config/arm/neon.md (define_constants for unspec): Replace with
30574 define_c_enum.
30575
30576 2011-04-04 Richard Henderson <rth@redhat.com>
30577
30578 PR bootstrap/48400
30579 * dwarf2out.c (output_line_info): Always emit line info from
30580 at least one section.
30581 (dwarf2out_init): Create text_section_line_info here ...
30582 (set_cur_line_info_table): ... not here.
30583
30584 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
30585
30586 PR target/48380
30587 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
30588 not called.
30589
30590 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
30591
30592 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
30593
30594 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
30595 (expr_equiv_p): Remove.
30596 (insert_set_in_table): Look at <dest, src> pair instead of expr.
30597 (hash_scan_set): Update call to insert_set_in_table.
30598 (dump_hash_table): Dump <dest, src> pair.
30599 (lookup_set): Simplify. Lookup <dest, src> pair.
30600 (compute_transp): Remove, fold heavily simplified code into...
30601 (compute_local_properties): ...here. Expect COMP and TRANSP
30602 unconditionally.
30603 (find_avail_set): Take set directly from struct expr.
30604 (find_bypass-set): Likewise.
30605 (bypass_block): Likewise.
30606 (cprop_insn): Likewise. Remove redundant INSN_P test.
30607
30608 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
30609 checks on form of COND from find_implicit_sets to here.
30610 (find_implicit_sets): Cleanup control flow. Split critical edges
30611 if it exposes implicit sets. Allocate/resize implicit_sets as
30612 necessary.
30613 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
30614 changed something. Run df_analyze after find_implicit_sets if any
30615 edges were split. Do not allocate implicit_sets here.
30616
30617 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
30618 (gcse_obstack): Renamed to cprop_obstack.
30619 (GNEW, GNEWVEC, GNEWVAR): Remove.
30620 (gmalloc): Remove.
30621 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
30622 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
30623 (gcse_alloc): Likewise, and rename to cprop_alloc.
30624 (alloc_gcse_men, free_gcse_mem): Remove.
30625 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
30626 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
30627 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
30628
30629 * cprop.c (oprs_not_set_p): Remove.
30630 (mark_set, mark_clobber): Remove.
30631 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
30632 (reg_not_set_p): New function.
30633 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
30634 (cprop_insn): Likewise.
30635 (cprop_jump): Use FOR_EACH_EDGE.
30636
30637 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
30638
30639 PR bootstrap/48403
30640 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
30641 (rank_for_schedule): Use scheduled_insns vector instead of
30642 last_scheduled_insn.
30643 (ok_for_early_queue_removal): Likewise.
30644 (queue_to_ready): Search forward in nonscheduled_insns_begin if
30645 we have a dbg_cnt.
30646 (choose_ready): Likewise.
30647 (commit_schedule): Use VEC_iterate.
30648 (schedule_block): Initialize nonscheduled_insns_begin. If we have
30649 a dbg_cnt, use it and ensure the first insn is in the ready list.
30650 (haifa_sched_init): Allocate scheduled_insns.
30651 (sched_extend_ready_list): Don't allocate it; reserve space.
30652 (haifa_sched_finish): Free it.
30653
30654 2011-04-04 Joseph Myers <joseph@codesourcery.com>
30655
30656 * optc-gen.awk: Always remove type from Variable entry before
30657 recording in var_seen.
30658
30659 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
30660
30661 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
30662 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
30663 call to tidy_fallthru_edges.
30664
30665 2011-04-04 Joseph Myers <joseph@codesourcery.com>
30666
30667 * doc/options.texi (ToLower): Document.
30668 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
30669 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
30670 * opts.h (cl_option): Add cl_tolower field.
30671 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
30672 arguments with lowercase strings.
30673 * config/rx/rx.opt (mcpu=): Add ToLower.
30674 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
30675 argument.
30676
30677 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
30678
30679 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
30680
30681 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
30682
30683 * config/vax/vax.c: Include reload.h.
30684
30685 2011-04-04 Anatoly Sokolov <aesok@post.ru>
30686
30687 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
30688 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
30689 (sparc_preferred_reload_class): New function.
30690
30691 2011-04-04 Jakub Jelinek <jakub@redhat.com>
30692
30693 PR debug/48401
30694 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
30695 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
30696
30697 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
30698
30699 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
30700 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
30701
30702 2011-04-03 Anatoly Sokolov <aesok@post.ru>
30703
30704 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
30705 (ASM_OUTPUT_ALIGNED_BSS): Define.
30706
30707 2011-04-03 Michael Matz <matz@suse.de>
30708
30709 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
30710 and next_slot members.
30711 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
30712 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
30713 (lto_streamer_cache_append): Declare.
30714 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
30715 unsigned index, remove offset parameter, ensure that we append
30716 or update existing entries.
30717 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
30718 parameter, update next_slot for append.
30719 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
30720 parameter.
30721 (lto_streamer_cache_insert_at): Likewise.
30722 (lto_streamer_cache_append): New function.
30723 (lto_streamer_cache_lookup): Use unsigned index.
30724 (lto_streamer_cache_get): Likewise.
30725 (lto_record_common_node): Don't test tree_node_can_be_shared.
30726 (preload_common_node): Adjust call to lto_streamer_cache_insert.
30727 (lto_streamer_cache_delete): Don't free offsets member.
30728 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
30729 (lto_output_string_with_length): Use lto_output_data_stream.
30730 (lto_output_tree_header): Remove ix parameter, don't write it.
30731 (lto_output_builtin_tree): Likewise.
30732 (lto_write_tree): Adjust callers to above, don't track and write
30733 offset, write unsigned index.
30734 (output_unreferenced_globals): Don't emit all global vars.
30735 (write_global_references): Use unsigned indices.
30736 (lto_output_decl_state_refs): Likewise.
30737 (write_symbol): Likewise.
30738 * lto-streamer-in.c (lto_input_chain): Move earlier.
30739 (input_function): Use unsigned index.
30740 (input_alias_pairs): Don't read and then ignore all global vars.
30741 (lto_materialize_tree): Remove ix_p parameter, don't read index,
30742 don't pass it back, use lto_streamer_cache_append.
30743 (lto_register_var_decl_in_symtab): Use unsigned index.
30744 (lto_register_function_decl_in_symtab): Likewise.
30745 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
30746 index.
30747 (lto_get_builtin_tree): Don't read index, use
30748 lto_streamer_cache_append.
30749 (lto_read_tree): Adjust call to lto_materialize_tree.
30750
30751 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
30752 don't use function calls in arguments to MIN.
30753
30754 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
30755 twice.
30756
30757 * gimple.c (gimple_type_leader_entry): Mark deletable.
30758
30759 2011-04-03 Alan Modra <amodra@gmail.com>
30760
30761 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
30762
30763 2011-04-03 Michael Matz <matz@suse.de>
30764
30765 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
30766 an integer.
30767 * tree.h (tree_decl_non_common.vindex): Adjust comment.
30768
30769 2011-04-03 Michael Matz <matz@suse.de>
30770
30771 * cgraphbuild.c (record_reference): Canonicalize constructor values.
30772 * gimple-fold.c (canonicalize_constructor_val): Accept being called
30773 without function context.
30774 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
30775 current_function_decl and cfun.
30776
30777 2011-04-03 Michael Matz <matz@suse.de>
30778
30779 * tree.c (decl_init_priority_insert): Don't create entry for
30780 default priority.
30781 (decl_fini_priority_insert): Ditto.
30782 (fields_compatible_p, find_compatible_field): Remove.
30783 * tree.h (fields_compatible_p, find_compatible_field): Remove.
30784 * gimple.c (gimple_compare_field_offset): Adjust block comment.
30785
30786 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
30787
30788 * combine.c (try_combine): Remove useless local variable.
30789
30790 2011-04-03 Richard Guenther <rguenther@suse.de>
30791 Ira Rosen <ira.rosen@linaro.org>
30792
30793 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
30794 non-variable offsets and compare the remaining bases of the two
30795 accesses instead of looking for exact same data-ref.
30796
30797 2011-04-02 Kai Tietz <ktietz@redhat.com>
30798
30799 PR target/48416
30800 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
30801
30802 * i386.c (ix86_is_msabi_thiscall): New helper function.
30803 (ix86_is_type_thiscall): New helper function.
30804 (ix86_comp_type_attributes): Handle thiscall for method-functions
30805 special.
30806 (init_cumulative_args): Likewise.
30807 (find_drap_reg): Likewise.
30808 (ix86_static_chain): Likewise.
30809 (x86_this_parameter): Likewise.
30810 (x86_output_mi_thunk): Likewise.
30811
30812 2011-04-01 Olivier Hainque <hainque@adacore.com>
30813 Nicolas Setton <setton@adacore.com>
30814 Eric Botcazou <ebotcazou@adacore.com>
30815
30816 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
30817 (add_gnat_descriptive_type_attribute): New function.
30818 (gen_array_type_die): Call it.
30819 (gen_enumeration_type_die): Likewise.
30820 (gen_struct_or_union_type_die): Likewise.
30821 (modified_type_die): Likewise.
30822 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
30823 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
30824 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
30825
30826 2011-04-01 Jakub Jelinek <jakub@redhat.com>
30827
30828 PR bootstrap/48148
30829 * dwarf2out.c (resolve_addr): Don't call force_decl_die
30830 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
30831
30832 Revert:
30833 2011-03-17 Richard Guenther <rguenther@suse.de>
30834
30835 PR bootstrap/48148
30836 * lto-cgraph.c (input_overwrite_node): Clear the abstract
30837 origin for decls in other ltrans units.
30838 (input_varpool_node): Likewise.
30839
30840 2011-04-01 Jakub Jelinek <jakub@redhat.com>
30841
30842 PR middle-end/48335
30843 * expr.c (expand_assignment): Handle all possibilities
30844 if TO_RTX is CONCAT.
30845 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
30846 (store_split_bit_field): If SUBREG_REG (op0) or
30847 op0 itself has smaller mode than word, return it
30848 for offset 0 and const0_rtx for out-of-bounds stores.
30849 If word is const0_rtx, skip it.
30850
30851 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
30852
30853 * config/h8300/h8300.c (print_operand_address): Rename to...
30854 (h8300_print_operand_address): ...this. Make static. Adjust comments.
30855 Call h8300_print_operand and h8300_print_operand_address instead of
30856 print_operand and print_operand_address. Declare.
30857 (print_operand): Renake to...
30858 (h8300_print_operand): ...this. Make static. Adjust comments.
30859 Call h8300_print_operand instead of print_operand. Declare.
30860 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
30861 (h8300_register_move_cost): Likewise.
30862 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
30863 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
30864 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
30865 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
30866 * config/h8300/h8300-protos.h (print_operand): Delete.
30867 (print_operand_address): Delete.
30868
30869 2011-04-01 Richard Henderson <rth@redhat.com>
30870
30871 PR 48400
30872 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
30873 in strict mode before dwarf4. Re-order tests to early out
30874 before switching sections.
30875
30876 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
30877
30878 * config/h8300/constraints.md: New file.
30879 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
30880 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
30881 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
30882 * config/h8300/predicates.md (bit_operand): Likewise.
30883 (incdec_operand): Use satisfies_constraint_M and
30884 satisfies_constraint_O. Don't use C code block.
30885 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
30886 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
30887 (compute_mov_length): Use satisfies_constraint_G.
30888 (fix_bit_operand): Use satisfies_constraint_U.
30889 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
30890 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
30891 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
30892 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
30893 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
30894 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
30895 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30896 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
30897 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
30898 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
30899 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
30900 (EXTRA_MEMORY_CONSTRAINT): Delete.
30901
30902 2011-04-01 Andrew Pinski <pinskia@gmail.com>
30903 Michael Meissner <meissner@linux.vnet.ibm.com>
30904
30905 PR target/48262
30906 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
30907 operands, as per the specifications.
30908
30909 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
30910 (vec_extract_evenv4sf): Ditto.
30911 (vec_extract_evenv8hi): Ditto.
30912 (vec_extract_evenv16qi): Ditto.
30913 (vec_extract_oddv4si): Ditto.
30914
30915 2011-03-31 Mark Wielaard <mjw@redhat.com>
30916
30917 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
30918 high_pc attribute if the CU has no associated code. Only output
30919 DW_AT_entry_pc for CU if not generating strict dwarf and
30920 dwarf_version < 4.
30921
30922 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
30923
30924 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
30925 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
30926 out of ...
30927 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
30928 * final.c (final_start_function): Call the new function rather
30929 than using a NULL argument for dwarf2out_frame_debug.
30930
30931 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
30932 that contains the prologue.
30933
30934 * haifa-sched.c (queue_insn): New arg REASON. All callers
30935 changed. Print it in debugging output.
30936
30937 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
30938
30939 * sched-ebb.c (begin_schedule_ready): Remove second argument.
30940 Split most of the code into...
30941 (begin_move_insn): ... here. New function.
30942 (ebb_sched_info): Add a pointer to it.
30943 * haifa-sched.c (scheduled_insns): New static variable.
30944 (sched_extend_ready_list): Allocate it.
30945 (schedule_block): Use it to record the order of scheduled insns.
30946 Perform RTL changes to move insns only after all scheduling
30947 decisions have been made.
30948 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
30949 begin_move_insn field.
30950 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
30951 * sched-int.h (struct haifa_sched_info): Remove second argument
30952 from begin_schedule_ready hook. Add new member begin_move_insn.
30953 * sched-rgn.c (begin_schedule_ready): Remove second argument.
30954 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
30955
30956 * haifa-sched.c (prune_ready_list): New function, broken out of
30957 schedule_block.
30958 (schedule_block): Use it.
30959
30960 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30961
30962 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
30963
30964 2011-04-01 Kai Tietz <ktietz@redhat.com>
30965
30966 * config.gcc (*-*-mingw*): Allow as option the
30967 posix threading model.
30968 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
30969 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
30970 definition.
30971 (CPP_SPEC): Add pthread/no-pthread handling.
30972 (LIB_SPEC): Likewise.
30973 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
30974 (LIB_SPEC): Likewise.
30975 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
30976 flag to pass -pthread option for shared libgcc build.
30977 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
30978 for shared libgcc build.
30979 * config/i386/t-mingw-pthread: New file.
30980 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
30981 New define to enable use of library pthread by default.
30982 * config/i386/mingw.opt (pthread): New driver option.
30983 (no-pthread): New driver option.
30984 * config/i386/cygming.opt: Make sure trailing empty line is retained.
30985 * config/i386/mingw-w64.opt: Likewise.
30986
30987 2011-04-01 Gary Funck <gary@intrepid.com>
30988
30989 * c-decl.c (grokdeclarator): Fix formatting.
30990
30991 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
30992
30993 * expr.c (emit_block_move_via_movmem): Use n_generator_args
30994 instead of n_operands.
30995 (set_storage_via_setmem): Likewise.
30996 * optabs.c (maybe_gen_insn): Likewise.
30997 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
30998 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
30999 (mips_expand_builtin_direct): Likewise.
31000 * config/spu/spu.c (expand_builtin_args): Likewise.
31001
31002 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
31003
31004 * recog.h (insn_data_d): Add n_generator_args.
31005 * genoutput.c (data): Likewise.
31006 (output_insn_data): Print it.
31007 (max_opno, num_dups): Delete.
31008 (scan_operands): Just fill in "d->operand[...]".
31009 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
31010
31011 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
31012
31013 * gensupport.h (pattern_stats): New structure.
31014 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
31015 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
31016 (max_operand_1, max_operand_vec): Delete.
31017 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
31018
31019 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
31020
31021 * emit-rtl.c (emit_pattern_after_setloc): New function.
31022 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
31023 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
31024 (emit_pattern_after): New function.
31025 (emit_insn_after, emit_jump_insn_after): Call it.
31026 (emit_call_insn_after, emit_debug_insn_after): Likewise.
31027 (emit_pattern_before_setloc): New function.
31028 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
31029 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
31030 Likewise.
31031 (emit_pattern_before): New function.
31032 (emit_insn_before, emit_jump_insn_before): Call it.
31033 (emit_call_insn_before, emit_debug_insn_before): Likewise.
31034
31035 2011-03-31 Richard Henderson <rth@redhat.com>
31036
31037 * dwarf2out.c (dw_separate_line_info_ref): Remove.
31038 (dw_separate_line_info_entry): Remove.
31039 (enum dw_line_info_opcode): New.
31040 (dw_line_info_entry): Use it.
31041 (dw_line_info_table, dw_line_info_table_p): New.
31042 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
31043 (line_info_table, line_info_label_num): Remove.
31044 (line_info_table_in_use): Remove.
31045 (separate_line_info_table): Remove.
31046 (separate_line_info_table_allocated): Remove.
31047 (separate_line_info_table_in_use): Remove.
31048 (LINE_INFO_TABLE_INCREMENT): Remove.
31049 (line_info_label_num): New.
31050 (cur_line_info_table): New.
31051 (text_section_line_info, cold_text_section_line_info): New.
31052 (separate_line_info): New.
31053 (SEPARATE_LINE_CODE_LABEL): Remove.
31054 (print_dwarf_line_table): Remove.
31055 (debug_dwarf): Don't dump it.
31056 (output_one_line_info_table): New.
31057 (output_line_info): Use it.
31058 (new_line_info_table): New.
31059 (set_cur_line_info_table): New.
31060 (dwarf2out_switch_text_section): Use it.
31061 (dwarf2out_begin_function): Likewise.
31062 (push_dw_line_info_entry): New.
31063 (dwarf2out_source_line): Rewrite for new line info tables.
31064 (dwarf2out_init): Remove dead initailizations.
31065
31066 2011-03-31 Joseph Myers <joseph@codesourcery.com>
31067
31068 * opts.h (cl_option): Add comments to fields. Add bit-fields for
31069 various flags.
31070 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
31071 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
31072 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
31073 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
31074 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
31075 * opt-functions.awk (flag_init, switch_bit_fields): New.
31076 (switch_flags): Don't handle flags moved to bit-fields. Don't
31077 generate CL_MISSING_OK or CL_SAVE.
31078 * optc-gen.awk: Update to generate bit-field output as well as
31079 flags field.
31080 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
31081 bit-field instead of CL_REJECT_DRIVER flag.
31082 * opts-common.c (generate_canonical_option,
31083 decode_cmdline_option): Use bit-fields instead of CL_* flags.
31084 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
31085 instead of CL_REJECT_NEGATIVE flag.
31086 * toplev.c (print_switch_values): Use cl_report bit-field instead
31087 of CL_REPORT flag.
31088
31089 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
31090
31091 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
31092 a zero minimum index only if it is redundant.
31093
31094 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
31095
31096 PR rtl-optimization/48381
31097 * ira-color.c (assign_hard_reg): Use hard reg set intersection
31098 instead of ira_class_hard_reg_index for calculating conflicting
31099 hard registers.
31100
31101 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
31102
31103 * cprop.c: Clean up hash table building.
31104 (reg_avail_info): Remove.
31105 (oprs_available_p): Remove.
31106 (record_last_reg_set_info): Remove.
31107 (record_last_set_info): Remove.
31108 (reg_available_p): New function.
31109 (gcse_constant_p): Do not treat unfolded conditions as constants.
31110 (make_set_regs_unavailable): New function.
31111 (hash_scan_set): Simplify with new reg_available_p.
31112 (compute_hash_table_work): Traverse insns stream only once.
31113 Do not compute reg_avail_info. Traverse insns in reverse order.
31114 Record implicit sets after recording explicit sets from the block.
31115
31116 2011-03-31 Michael Matz <matz@suse.de>
31117
31118 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
31119
31120 2011-03-31 Anatoly Sokolov <aesok@post.ru>
31121
31122 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
31123 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
31124 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
31125 (h8300_mode_dependent_address_p): New function.
31126 (h8300_get_index): Make static.
31127
31128 2011-03-31 Jeff Law <law@redhat.com>
31129
31130 * reload1.c (elimination_effects): Fix typo in recent change.
31131
31132 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
31133 typo potentially leading to null pointer dereference.
31134
31135 * caller-save.c (new_saved_hard_reg): Eliminate return value.
31136 (setup_save_areas): Corresponding changes to avoid useless
31137 assignments.
31138
31139 * jump.c (reversed_comparison_code_parts): Avoid successive return
31140 statements when REVERSE_CONDITION is defined.
31141
31142 * expr.c (expand_assignment): Avoid useless assignments.
31143 (expand_expr_real_1): Likewise.
31144 (expand_expr_real_2): Avoid useless statements.
31145
31146 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
31147
31148 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
31149
31150 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
31151 statements.
31152
31153 * stmt.c (expand_expr_stmt): Avoid useless assignment.
31154
31155 2011-03-31 Joseph Myers <joseph@codesourcery.com>
31156
31157 PR target/47109
31158 * doc/tm.texi.in (TARGET_VERSION): Remove.
31159 * doc/tm.texi: Regenerate.
31160 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
31161 * collect2.c (main): Don't use TARGET_VERSION.
31162 * mips-tdump.c (main): Don't use TARGET_VERSION.
31163 * mips-tfile.c (main): Don't use TARGET_VERSION.
31164 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
31165 * config/rs6000/vxworksae.h: Remove.
31166 * config/alpha/alpha.h (TARGET_VERSION): Remove.
31167 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
31168 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
31169 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
31170 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
31171 * config/arm/arm.h (TARGET_VERSION): Remove.
31172 * config/arm/coff.h (TARGET_VERSION): Remove.
31173 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
31174 * config/arm/elf.h (TARGET_VERSION): Remove.
31175 * config/arm/freebsd.h (TARGET_VERSION): Remove.
31176 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
31177 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
31178 * config/arm/pe.h (TARGET_VERSION): Remove.
31179 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
31180 * config/arm/semi.h (TARGET_VERSION): Remove.
31181 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
31182 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
31183 * config/arm/vxworks.h (TARGET_VERSION): Remove.
31184 * config/avr/avr.h (TARGET_VERSION): Remove.
31185 * config/bfin/bfin.h (TARGET_VERSION): Remove.
31186 * config/fr30/fr30.h (TARGET_VERSION): Remove.
31187 * config/frv/frv.h (TARGET_VERSION): Remove.
31188 * config/h8300/h8300.h (TARGET_VERSION): Remove.
31189 * config/i386/cygwin.h (TARGET_VERSION): Remove.
31190 * config/i386/darwin.h (TARGET_VERSION): Remove.
31191 * config/i386/darwin64.h (TARGET_VERSION): Remove.
31192 * config/i386/djgpp.h (TARGET_VERSION): Remove.
31193 * config/i386/freebsd.h (TARGET_VERSION): Remove.
31194 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
31195 * config/i386/gnu.h (TARGET_VERSION): Remove.
31196 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
31197 * config/i386/i386elf.h (TARGET_VERSION): Remove.
31198 * config/i386/linux.h (TARGET_VERSION): Remove.
31199 * config/i386/linux64.h (TARGET_VERSION): Remove.
31200 * config/i386/lynx.h (TARGET_VERSION): Remove.
31201 * config/i386/mingw32.h (TARGET_VERSION): Remove.
31202 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
31203 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
31204 * config/i386/netware.h (TARGET_VERSION): Remove.
31205 * config/i386/nto.h (TARGET_VERSION): Remove.
31206 * config/i386/openbsd.h (TARGET_VERSION): Remove.
31207 * config/i386/vxworks.h (TARGET_VERSION): Remove.
31208 * config/ia64/elf.h (TARGET_VERSION): Remove.
31209 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
31210 * config/ia64/hpux.h (TARGET_VERSION): Remove.
31211 * config/ia64/linux.h (TARGET_VERSION): Remove.
31212 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
31213 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
31214 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
31215 * config/lm32/lm32.h (TARGET_VERSION): Remove.
31216 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
31217 * config/m32c/m32c.h (TARGET_VERSION): Remove.
31218 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
31219 * config/m32r/m32r.h (TARGET_VERSION): Remove.
31220 * config/m68k/linux.h (TARGET_VERSION): Remove.
31221 * config/m68k/m68k.h (TARGET_VERSION): Remove.
31222 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
31223 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
31224 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
31225 * config/mep/mep.h (TARGET_VERSION): Remove.
31226 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
31227 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
31228 * config/mips/iris6.h (MACHINE_TYPE): Remove.
31229 * config/mips/linux.h (TARGET_VERSION): Remove.
31230 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
31231 * config/mips/vxworks.h (TARGET_VERSION): Remove.
31232 * config/mmix/mmix.h (TARGET_VERSION): Remove.
31233 * config/mn10300/linux.h (TARGET_VERSION): Remove.
31234 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
31235 * config/pa/pa.h (TARGET_VERSION): Remove.
31236 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
31237 * config/picochip/picochip.h (TARGET_VERSION): Remove.
31238 * config/rs6000/aix.h (TARGET_VERSION): Remove.
31239 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
31240 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
31241 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
31242 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
31243 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
31244 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
31245 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
31246 * config/rs6000/linux.h (TARGET_VERSION): Remove.
31247 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
31248 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
31249 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
31250 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
31251 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
31252 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
31253 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
31254 * config/s390/linux.h (TARGET_VERSION): Remove.
31255 * config/s390/s390.h (TARGET_VERSION): Remove.
31256 * config/s390/tpf.h (TARGET_VERSION): Remove.
31257 * config/score/score.h (TARGET_VERSION): Remove.
31258 * config/sh/linux.h (TARGET_VERSION): Remove.
31259 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
31260 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
31261 * config/sh/sh.h (TARGET_VERSION): Remove.
31262 * config/sh/sh64.h (TARGET_VERSION): Remove.
31263 * config/sh/superh.h (TARGET_VERSION): Remove.
31264 * config/sh/vxworks.h (TARGET_VERSION): Remove.
31265 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
31266 * config/sparc/linux.h (TARGET_VERSION): Remove.
31267 * config/sparc/linux64.h (TARGET_VERSION): Remove.
31268 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
31269 TARGET_NAME32, TARGET_NAME): Remove.
31270 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
31271 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
31272 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
31273 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
31274 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
31275 * config/spu/spu.h (TARGET_VERSION): Remove.
31276 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
31277 * config/v850/v850.h (TARGET_VERSION): Remove.
31278 * config/vax/linux.h (TARGET_VERSION): Remove.
31279 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
31280 * config/xtensa/elf.h (TARGET_VERSION): Remove.
31281 * config/xtensa/linux.h (TARGET_VERSION): Remove.
31282
31283 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
31284
31285 PR target/48142
31286 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
31287 frame-related from frame-unrelated adjustments to the stack pointer.
31288
31289 2011-03-31 Jakub Jelinek <jakub@redhat.com>
31290
31291 * common.opt (fdebug-types-section): Move earlier.
31292 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
31293
31294 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
31295
31296 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
31297 var.
31298
31299 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
31300
31301 * tree.h (CASE_CHAIN): Define.
31302 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
31303 (gimple_redirect_edge_and_branch): Likewise.
31304
31305 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
31306
31307 PR middle-end/48367
31308 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
31309 calculation.
31310
31311 2011-03-30 Jeff Law <law@redhat.com>
31312
31313 * PR bootstrap/48371
31314 * reload1.c (reload): Fix botch in last change.
31315
31316 * reload.h (struct reload): Fix typo introduced in last change.
31317
31318 2011-03-30 Joseph Myers <joseph@codesourcery.com>
31319
31320 * config/arm/arm.opt (mhard-float, msoft-float): Mark
31321 Undocumented. Remove help text.
31322 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
31323 -mhard-float.
31324
31325 2011-03-30 Joseph Myers <joseph@codesourcery.com>
31326
31327 * doc/options.texi (NegativeAlias): Document.
31328 (Alias): Mention NegativeAlias.
31329 * opt-functions.awk: Handle NegativeAlias.
31330 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
31331 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
31332 * opts.h (CL_NEGATIVE_ALIAS): Define.
31333 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
31334 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
31335 OPT_mspe_.
31336 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
31337 Alias entries.
31338 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
31339 mno-spe and mno-isel instead of mspe=no and -misel=no.
31340
31341 2011-03-29 Mark Wielaard <mjw@redhat.com>
31342
31343 * common.opt (fdebug-types-section): New flag.
31344 * doc/invoke.texi: Document new -fno-debug-types-section flag.
31345 * dwarf2out.c (use_debug_types): New define.
31346 (struct die_struct): Mark die_id with GTY desc use_debug_types.
31347 (print_die): Guard output of type unit signatures using
31348 use_debug_types.
31349 (build_abbrev_table): Replace assert of dwarf_version >= 4
31350 with assert on use_debug_types.
31351 (size_of_die): Likewise.
31352 (unmark_dies): Likewise.
31353 (value_format): Decide AT_ref_external form on use_debug_types.
31354 (output_die): Replace dwarf_version version check guard with
31355 use_debug_types where appropriate.
31356 (modified_type_die): Likewise.
31357 (gen_reference_type_die): Likewise.
31358 (dwarf2out_start_source_file): Likewise.
31359 (dwarf2out_end_source_file): Likewise.
31360 (prune_unused_types_walk_attribs): Likewise.
31361 (dwarf2out_finish): Likewise.
31362
31363 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
31364
31365 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
31366
31367 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
31368
31369 PR rtl-optimization/48332
31370 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
31371 mode of input operand N and modeN to its actual mode.
31372
31373 2011-03-30 Jeff Law <law@redhat.com>
31374
31375 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
31376 define accessor macro.
31377 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
31378 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
31379 (reg_equiv_init): Likewise.
31380 (reg_equivs_size): New variable.
31381 (reg_equiv_init_size): Remove.
31382 (allocate_initial_values): Move prototype to here from....
31383 * integrate.h (allocate_initial_values): Remove prototype.
31384 * integrate.c: Include reload.h.
31385 (allocate_initial_values): Corresponding changes.
31386 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
31387 (fix_reg_equiv_init, no_equiv): Corresponding changes.
31388 (update_equiv_regs): Corresponding changes.
31389 (ira): Corresponding changes.
31390 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
31391 (push_secondary_reload): Corresponding changes.
31392 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
31393 (make_memloc, find_reloads_address): Corresponding changes.
31394 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
31395 (find_reloads_address_1): Corresponding changes.
31396 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
31397 (refers_to_regno_for_reload_p): Corresponding changes.
31398 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
31399 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
31400 * reload1.c: Include ggc.h.
31401 (grow_reg_equivs): New function.
31402 (replace_pseudos_in, reload): Corresponding changes.
31403 (calculate_needs_all_insns, alter_regs): Corresponding changes.
31404 (eliminate_regs_1, elimination_effects): Corresponding changes.
31405 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
31406 (delete_output_reload): Likewise.
31407 * caller-save.c (mark_referenced_regs): Corresponding changes.
31408 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
31409 * frv/predicates.md (frv_load_operand): Corresponding changes.
31410 * microblaze/microblaze.c (double_memory_operand): Corresponding
31411 changes.
31412 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
31413 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
31414 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
31415 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
31416 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
31417 changes.
31418 * pa/pa.c (emit_move_sequence): Corresponding changes.
31419 * vax/vax.c (nonindexed_address_p): Corresponding changes.
31420
31421 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
31422
31423 PR target/47551
31424 * config/arm/arm.c (coproc_secondary_reload_class): Handle
31425 structure modes. Don't check neon_vector_mem_operand for
31426 vector or structure modes.
31427
31428 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
31429 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31430
31431 PR target/43590
31432 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
31433 operand 1 and reshuffle the operands to match.
31434 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
31435
31436 2011-03-30 Christian Schüler <cschueler@gmx.de>
31437
31438 PR driver/48208
31439 * config/c.opt (F): Added 'Driver' to -F option.
31440
31441 PR driver/48260
31442 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
31443 handler function.
31444 * config/darwin.opt: Added '-arch' option.
31445
31446 2011-03-30 Nick Clifton <nickc@redhat.com>
31447
31448 * config/rx/rx.md: Add peepholes and patterns to combine
31449 extending loads and simple arithmetic instructions.
31450 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
31451 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
31452 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
31453 modes to use pre-decrement and post-increment addressing.
31454 (rx_is_restricted_memory_address): Add range checking of REG+INT
31455 addresses.
31456 (rx_print_operand): Add support for %Q. Fix handling of %Q.
31457 (rx_memory_move_cost): Adjust cost of stores.
31458 (rx_adjust_insn_length): New function.
31459
31460 2011-03-30 Jakub Jelinek <jakub@redhat.com>
31461
31462 PR c/48305
31463 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
31464 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
31465 matching arg00/arg01 types.
31466
31467 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
31468
31469 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
31470 last_location to UNKNOWN_LOCATION.
31471
31472 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
31473
31474 PR target/48349
31475 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
31476 FLOAT_SSE_REGS.
31477
31478 2011-03-30 Joseph Myers <joseph@codesourcery.com>
31479 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31480
31481 PR bootstrap/48337
31482 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
31483 Init(PROCESSOR_V7).
31484 (sparc_cpu): Likewise.
31485 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
31486 PROCESSOR_V7.
31487
31488 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
31489
31490 PR target/48336
31491 PR middle-end/48342
31492 PR rtl-optimization/48345
31493 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
31494 hard regs for given mode from profitable regs when doing secondary
31495 allocation.
31496
31497 2011-03-29 Jeff Law <law@redhat.com>
31498
31499 PR bootstrap/48327
31500 * tree-ssa-threadupdate.c (struct redirection_data): Remove
31501 do_not_duplicate field.
31502 (lookup_redirection_data): Corresponding changes.
31503 (create_duplicates): Always create a template block.
31504 (redirect_edges): Remove code which reused the original block
31505 when it was going to become unreachable code.
31506 (thread_block): Don't set do_not_duplicate field.
31507
31508 2011-03-29 Joseph Myers <joseph@codesourcery.com>
31509
31510 * lto-opts.c (register_user_option_p, lto_register_user_option):
31511 Make type argument unsigned.
31512 * lto-streamer.h (lto_register_user_option): Make type argument
31513 unsigned.
31514 * opth-gen.awk: Make CL_* macros unsigned.
31515 * opts-common.c (find_opt): Make lang_mask argument unsigned.
31516 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
31517 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
31518 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
31519 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
31520 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
31521 (find_opt): Make lang_mask argument unsigned.
31522
31523 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
31524
31525 PR rtl-optimization/48331
31526 PR rtl-optimization/48334
31527 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
31528 for any used algorithm.
31529
31530 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
31531
31532 * ira-conflicts.c (build_object_conflicts): Add unused attribute
31533 to parent_max.
31534
31535 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
31536
31537 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
31538 (alpha_option_override): Don't set alpha_sr_alias_set.
31539 (emit_frame_store_1): Use gen_frame_mem rather than calling
31540 set_mem_alias_set.
31541 (alpha_expand_epilogue): Ditto.
31542
31543 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
31544
31545 PR tree-optimization/48290
31546 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
31547 vectorization, check that relevant phis in the basic block after
31548 the inner loop are really inner loop's exit phis.
31549
31550 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
31551
31552 PR debug/48190
31553 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
31554 (cached_dw_loc_list_def): New structure.
31555 (cached_dw_loc_list): New typedef.
31556 (cached_dw_loc_list_table): New variable.
31557 (cached_dw_loc_list_table_hash): New function.
31558 (cached_dw_loc_list_table_eq): Likewise.
31559 (add_location_or_const_value_attribute): Take a bool cache_p.
31560 Cache the list when the parameter is true.
31561 (gen_formal_parameter_die): Update caller.
31562 (gen_variable_die): Likewise.
31563 (dwarf2out_finish): Likewise.
31564 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
31565 while generating debug info for the decl.
31566 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
31567 (dwarf2out_init): Initialize cached_dw_loc_list_table.
31568 (resolve_addr): Cache the result of resolving a chain of
31569 location lists.
31570
31571 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
31572
31573 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
31574 conflict object hard regset nodes have intersecting hard reg sets.
31575
31576 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
31577 after regstat_init_n_sets_and_refs.
31578
31579 * ira.c: Add more comments at the top.
31580 (setup_stack_reg_pressure_class, setup_pressure_classes):
31581 Add comments how we compute the register pressure classes.
31582 (setup_allocno_and_important_classes): Add more comments.
31583 (setup_class_translate_array, reorder_important_classes)
31584 (setup_reg_class_relations): Add comments.
31585
31586 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
31587 start of the file.
31588
31589 * ira-color.c: Add 2011 to the Copyright line.
31590 (assign_hard_reg): Add more comments.
31591 (improve_allocation): Ditto.
31592
31593 * ira-costs.c: Add 2011 to the Copyright line.
31594 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
31595 comments.
31596 (setup_regno_cost_classes_by_mode): Ditto.
31597
31598 Initial patches from ira-improv branch:
31599
31600 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
31601
31602 * ira-build.c (ira_create_object): Remove initialization of
31603 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
31604 (ira_create_allocno): Remove initialization of
31605 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
31606 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
31607 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
31608 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
31609 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
31610 Initialize ALLOCNO_ADD_DATA.
31611 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
31612 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
31613 ALLOCNO_REG.
31614 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
31615 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
31616
31617 * ira.c (ira_reallocate): Remove.
31618 (setup_pressure_classes): Call
31619 ira_init_register_move_cost_if_necessary. Use
31620 ira_register_move_cost instead of ira_get_register_move_cost.
31621 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
31622 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
31623
31624 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
31625 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
31626 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
31627 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
31628 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
31629 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
31630 Fix formatting.
31631 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
31632 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
31633 (struct allocno_color_data): New.
31634 (allocno_color_data_t): New typedef.
31635 (allocno_color_data): New definition.
31636 (ALLOCNO_COLOR_DATA): New macro.
31637 (struct object_color_data): New.
31638 (object_color_data_t): New typedef.
31639 (object_color_data): New definition.
31640 (OBJECT_COLOR_DATA): New macro.
31641 (update_copy_costs, calculate_allocno_spill_cost): Call
31642 ira_init_register_move_cost_if_necessary. Use
31643 ira_register_move_cost instead of ira_get_register_move_cost.
31644 (move_spill_restore, update_curr_costs): Ditto.
31645 (allocno_spill_priority): Make it inline.
31646 (color_pass): Allocate and free allocno_color_dat and object_color_data.
31647 (struct coalesce_data, coalesce_data_t): New.
31648 (allocno_coalesce_data): New definition.
31649 (ALLOCNO_COALESCE_DATA): New macro.
31650 (merge_allocnos, coalesced_allocno_conflict_p): Use
31651 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
31652 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
31653 (coalesce_allocnos): Ditto.
31654 (setup_coalesced_allocno_costs_and_nums): Ditto.
31655 (collect_spilled_coalesced_allocnos): Ditto.
31656 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
31657 (setup_slot_coalesced_allocno_live_ranges): Ditto.
31658 (coalesce_spill_slots): Ditto.
31659 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
31660 free allocno_coalesce_data.
31661
31662 * ira-conflicts.c: Fix formatting.
31663 (process_regs_for_copy): Call
31664 ira_init_register_move_cost_if_necessary. Use
31665 ira_register_move_cost instead of ira_get_register_move_cost.
31666 (build_object_conflicts): Optimize.
31667
31668 * ira-costs.c (record_reg_classes): Optimize. Call
31669 ira_init_register_move_cost_if_necessary. Use
31670 ira_register_move_cost, ira_may_move_in_cost, and
31671 ira_may_move_out_cost instead of ira_get_register_move_cost and
31672 ira_get_may_move_cost.
31673 (record_address_regs): Ditto.
31674 (scan_one_insn): Optimize.
31675 (find_costs_and_classes): Optimize.
31676 (process_bb_node_for_hard_reg_moves): Call
31677 ira_init_register_move_cost_if_necessary. Use
31678 ira_register_move_cost instead of ira_get_register_move_cost.
31679
31680 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
31681 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
31682 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
31683 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
31684 definitions.
31685 (ira_initiate_emit_data, ira_finish_emit_data)
31686 (create_new_allocno): New functions.
31687 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
31688 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
31689 Use ira_register_move_cost instead of ira_get_register_move_cost.
31690
31691 * ira-int.h: Fix some comments.
31692 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
31693 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
31694 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
31695 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
31696 add_data.
31697 (struct ira_allocno): Make mode and aclass a bitfield. Move other
31698 bitfield after mode. Make hard_regno a short int. Make
31699 hard_regno short. Remove first_coalesced_allocno and
31700 next_coalesced_allocno. Move mem_optimized_dest_p,
31701 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
31702 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
31703 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
31704 temp, colorable_p. Add new member add_data.
31705 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
31706 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
31707 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
31708 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
31709 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
31710 (ALLOCNO_ADD_DATA): New macro.
31711 (ira_emit_data_t): New typedef.
31712 (struct ira_emit_data): New. Move mem_optimized_dest_p,
31713 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
31714 from struct ira_allocno.
31715 (ALLOCNO_EMIT_DATA): New macro.
31716 (ira_allocno_emit_data, allocno_emit_reg): New.
31717 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
31718 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
31719 (OBJECT_ADD_DATA): New macro.
31720 (ira_reallocate): Remove.
31721 (ira_initiate_emit_data, ira_finish_emit_data): New.
31722 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
31723 (ira_init_register_move_cost_if_necessary): New.
31724 (ira_object_conflict_iter_next): Merge into
31725 ira_object_conflict_iter_cond.
31726 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
31727
31728 * ira-live.c (process_single_reg_class_operands): Call
31729 ira_init_register_move_cost_if_necessary. Use
31730 ira_register_move_cost instead of ira_get_register_move_cost.
31731
31732 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
31733
31734 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
31735
31736 * ira-costs.c: Fix formatting.
31737 (cost_classes, cost_classes_num): Remove.
31738 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
31739 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
31740 (cost_classes_del, cost_classes_htab): New.
31741 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
31742 (initiate_regno_cost_classes, setup_cost_classes): New.
31743 (setup_regno_cost_classes_by_aclass): New.
31744 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
31745 (record_reg_classes): Use regno_cost_classes instead of
31746 cost_classes. Move checking opposite operand up.
31747 (record_address_regs): Use regno_cost_classes
31748 instead of cost_classes.
31749 (scan_one_insn): Ditto. Use always general register.
31750 (print_allocno_costs): Use regno_cost_classes instead of
31751 cost_classes.
31752 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
31753 (find_costs_and_classes): Set up cost classes for each registers.
31754 Use also their mode for this. Use regno_cost_classes instead of
31755 cost_classes.
31756 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
31757 cost_classes.
31758 (free_ira_costs, ira_init_costs): Don't use cost_classes.
31759 (ira_costs, ira_set_pseudo_classes): Call
31760 initiate_regno_cost_classes and finish_regno_cost_classes.
31761
31762 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
31763
31764 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
31765
31766 * target.def (ira_cover_classes): Remove.
31767
31768 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
31769
31770 * doc/tm.texi.in: Ditto.
31771
31772 * ira-conflicts.c: Remove mentioning cover classes from the file.
31773 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
31774 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
31775
31776 * targhooks.c (default_ira_cover_classes): Remove.
31777
31778 * targhooks.h (default_ira_cover_classes): Ditto.
31779
31780 * haifa-sched.c: Remove mentioning cover classes from the file.
31781 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
31782 ira_pressure_classes and ira_pressure_classes_num instead of
31783 ira_reg_class_cover_size and ira_reg_class_cover. Use
31784 sched_regno_pressure_class instead of sched_regno_cover_class.
31785 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
31786 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
31787
31788 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
31789 classes from the file.
31790 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
31791 (struct object_hard_regs, struct object_hard_regs_node): New.
31792 (struct ira_object): New members profitable_hard_regs,
31793 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
31794 (struct ira_allocno): Rename cover_class to aclass. Rename
31795 cover_class_cost and updated_cover_class_cost to class_cost and
31796 updated_class_cost. Remove splay_removed_p and
31797 left_conflict_size. Add new members colorable_p.
31798 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
31799 (ALLOCNO_COLORABLE_P): New macro.
31800 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
31801 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
31802 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
31803 (OBJECT_...): Rename parameter C to O.
31804 (OBJECT_PROFITABLE_HARD_REGS): New macro.
31805 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
31806 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
31807 (struct target_ira_int): New members x_ira_max_memory_move_cost,
31808 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
31809 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
31810 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
31811 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
31812 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
31813 x_ira_reg_class_subunion.
31814 (ira_max_memory_move_cost, ira_max_register_move_cost)
31815 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
31816 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
31817 (ira_important_class_nums, ira_reg_class_superunion): New macros.
31818 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
31819 (ira_reg_class_union): Rename to ira_reg_class_subunion.
31820 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
31821 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
31822 (ira_tune_allocno_costs_and_cover_classes): Rename to
31823 ira_tune_allocno_costs.
31824 (ira_debug_hard_regs_forest): New.
31825 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
31826 (ira_object_conflict_iter_next): Fix comments.
31827 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
31828 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
31829 cover_class to aclass.
31830 (ira_allocate_and_accumulate_costs): Ditto.
31831 (ira_allocate_and_set_or_copy_costs): Ditto.
31832
31833 * opts.c (decode_options): Remove ira_cover_class check.
31834
31835 * ira-color.c: Remove mentioning cover classes from the file. Use
31836 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
31837 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
31838 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
31839 (splay-tree.h): Remove include.
31840 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
31841 before copy_freq_compare_func.
31842 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
31843 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
31844 New definitions.
31845 (hard_regs_roots, hard_regs_node_vec): Ditto.
31846 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
31847 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
31848 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
31849 (create_new_object_hard_regs_node): Ditto.
31850 (add_new_object_hard_regs_node_to_forest): Ditto.
31851 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
31852 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
31853 Ditto.
31854 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
31855 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
31856 (remove_unused_object_hard_regs_nodes): Ditto.
31857 (enumerate_object_hard_regs_nodes): Ditto.
31858 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
31859 (object_hard_regs_subnode_t): Ditto.
31860 (struct object_hard_regs_subnode): Ditto.
31861 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
31862 (setup_object_hard_regs_subnode_index): Ditto.
31863 (get_object_hard_regs_subnodes_num): Ditto.
31864 (form_object_hard_regs_nodes_forest): Ditto.
31865 (finish_object_hard_regs_nodes_tree): Ditto.
31866 (finish_object_hard_regs_nodes_forest): Ditto.
31867 (allocnos_have_intersected_live_ranges_p): Rename to
31868 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
31869 (pseudos_have_intersected_live_ranges_p): Rename to
31870 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
31871 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
31872 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
31873 (update_copy_costs): Remove assert. Skip cost update if the hard
31874 reg does not belong the class.
31875 (assign_hard_reg): Process only profitable hard regs.
31876 (uncolorable_allocnos_num): Make it scalar.
31877 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
31878 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
31879 and ira_reg_class_max_nregs.
31880 (bucket_allocno_compare_func): Check frequency first.
31881 (sort_bucket): Add compare function as a parameter.
31882 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
31883 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
31884 (push_allocno_to_stack): Rewrite for checking new allocno
31885 colorability.
31886 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
31887 (push_only_colorable): Pass new parameter to sort_bucket.
31888 (push_allocno_to_spill): Remove.
31889 (allocno_spill_priority_compare): Make it inline and rewrite.
31890 (splay_tree_allocate, splay_tree_free): Remove.
31891 (allocno_spill_sort_compare): New function.
31892 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
31893 build and use splay tree. Choose first allocno in uncolorable
31894 allocno bucket to spill. Remove setting spill cost.
31895 (all_conflicting_hard_regs): Remove.
31896 (setup_allocno_available_regs_num): Check only profitable hard
31897 regs. Print info about hard regs nodes.
31898 (setup_allocno_left_conflicts_size): Remove.
31899 (put_allocno_into_bucket): Don't call
31900 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
31901 (improve_allocation): New.
31902 (color_allocnos): Call setup_profitable_hard_regs,
31903 form_object_hard_regs_nodes_forest, improve_allocation,
31904 finish_object_hard_regs_nodes_forest. Setup spill cost.
31905 (print_loop_title): Use pressure classes.
31906 (color_allocnso): Ditto.
31907 (do_coloring): Remove allocation and freeing splay_tree_node_pool
31908 and allocnos_for_spilling.
31909 (ira_sort_regnos_for_alter_reg): Don't setup members
31910 {first,next}_coalesced_allocno.
31911 (color): Remove allocating and freeing removed_splay_allocno_vec.
31912 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
31913 prohibited_class_mode_regs.
31914
31915 * ira-lives.c: Remove mentioning cover classes from the file. Fix
31916 formatting.
31917 (update_allocno_pressure_excess_length): Use pressure classes.
31918 (inc_register_pressure, dec_register_pressure): Check for pressure
31919 class.
31920 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
31921 pressure class. Use ira_reg_class_nregs instead of
31922 ira_reg_class_max_nregs.
31923 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
31924 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
31925 (single_reg_class): Use ira_reg_class_nregs instead of
31926 ira_reg_class_max_nregs.
31927 (process_bb_node_lives): Use pressure classes.
31928
31929 * ira-emit.c: Remove mentioning cover classes from the file. Use
31930 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
31931 (change_loop): Use pressure classes.
31932 (modify_move_list): Call ira_set_allocno_class instead of
31933 ira_set_allocno_cover_class.
31934
31935 * ira-build.c: Remove mentioning cover classes from the file. Use
31936 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
31937 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
31938 ALLOCNO_UPDATED_CLASS_COST instead of
31939 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
31940 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
31941 (ira_create_allocno): Remove initialization of
31942 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
31943 ALLOCNO_COLORABLE_P.
31944 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
31945 Update conflict regs for the objects.
31946 (create_cap_allocno): Remove assert. Don't propagate
31947 ALLOCNO_AVAILABLE_REGS_NUM.
31948 (ira_free_allocno_costs): New function.
31949 (finish_allocno): Change a part of code into call of
31950 ira_free_allocno_costs.
31951 (low_pressure_loop_node_p): Use pressure classes.
31952 (object_range_compare_func): Don't compare classes.
31953 (setup_min_max_conflict_allocno_ids): Ditto.
31954
31955 * loop-invariant.c: Remove mentioning cover classes from the file.
31956 Use ira_pressure_classes and ira_pressure_classes_num instead of
31957 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
31958 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
31959 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
31960 Use reg_allocno_class instead of reg_cover_class.
31961 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
31962 STACK_REG_COVER_CLASS.
31963 (get_regno_cover_class): Rename to get_regno_pressure_class.
31964 (move_loop_invariants): Initialize and finalize regstat.
31965
31966 * ira.c: Remove mentioning cover classes from the file. Add
31967 comments about coloring without cover classes. Use ALLOCNO_CLASS
31968 instead of ALLOCNO_COVER_CLASS. Fix formatting.
31969 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
31970 setup_class_subset_and_memory_move_costs.
31971 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
31972 (setup_cover_and_important_classes): Rename to
31973 setup_allocno_and_important_classes.
31974 (setup_class_translate_array): New.
31975 (setup_class_translate): Call it for allocno and pressure classes.
31976 (cover_class_order): Rename to allocno_class_order.
31977 (comp_reg_classes_func): Use ira_allocno_class_translate instead
31978 of ira_class_translate.
31979 (reorder_important_classes): Set up ira_important_class_nums.
31980 (setup_reg_class_relations): Set up ira_reg_class_superunion.
31981 (print_class_cover): Rename to print_classes. Add parameter.
31982 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
31983 Print pressure classes too.
31984 (find_reg_class_closure): Rename to find_reg_classes. Don't call
31985 setup_reg_subclasses.
31986 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
31987 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
31988 (setup_prohibited_class_mode_regs): Use
31989 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
31990 (clarify_prohibited_class_mode_regs): New function.
31991 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
31992 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
31993 (ira_init_once): Initialize them.
31994 (free_register_move_costs): Process them.
31995 (ira_init): Move calls of find_reg_classes and
31996 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
31997 Call clarify_prohibited_class_mode_regs.
31998 (ira_no_alloc_reg): Remove.
31999 (too_high_register_pressure_p): Use pressure classes.
32000
32001 * sched-deps.c: Remove mentioning cover classes from the file.
32002 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
32003 ira_pressure_classes and ira_pressure_classes_num instead of
32004 ira_reg_class_cover_size and ira_reg_class_cover.
32005 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
32006 sched_regno_pressure_class instead of sched_regno_cover_class.
32007 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
32008 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32009
32010 * ira.h: Add 2010 to Copyright.
32011 (ira_no_alloc_reg): Remove external.
32012 (struct target_ira): Rename x_ira_hard_regno_cover_class,
32013 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
32014 x_ira_class_translate to x_ira_hard_regno_allocno_class,
32015 x_ira_allocno_classes_num, x_ira_allocno_classes, and
32016 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
32017 x_ira_pressure_classes, x_ira_pressure_class_translate, and
32018 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
32019 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
32020 x_ira_no_alloc_regs.
32021 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
32022 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
32023 ira_allocno_classes_num and ira_allocno_classes.
32024 (ira_class_translate): Rename to ira_allocno_class_translate.
32025 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
32026 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
32027 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
32028 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
32029 (ira_no_alloc_regs): New.
32030
32031 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
32032 classes from the file. Use ALLOCNO_CLASS instead of
32033 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
32034 ALLOCNO_COVER_CLASS_COST.
32035 (regno_cover_class): Rename to regno_aclass.
32036 (record_reg_classes): Use ira_reg_class_subunion instead of
32037 ira_reg_class_union.
32038 (record_address_regs): Check overflow.
32039 (scan_one_insn): Ditto.
32040 (print_allocno_costs): Print total mem cost fore regional allocation.
32041 (print_pseudo_costs): Use REG_N_REFS.
32042 (find_costs_and_classes): Use classes intersected with them on the
32043 1st pass. Check overflow. Use ira_reg_class_subunion instead of
32044 ira_reg_class_union. Use ira_allocno_class_translate and
32045 regno_aclass instead of ira_class_translate and regno_cover_class.
32046 Modify code for finding regno_aclass. Setup preferred classes for
32047 the next pass.
32048 (setup_allocno_cover_class_and_costs): Rename to
32049 setup_allocno_class_and_costs. Use regno_aclass instead of
32050 regno_cover_class. Use ira_set_allocno_class instead of
32051 ira_set_allocno_cover_class.
32052 (init_costs, finish_costs): Use regno_aclass instead of
32053 regno_cover_class.
32054 (ira_costs): Use setup_allocno_class_and_costs instead of
32055 setup_allocno_cover_class_and_costs.
32056 (ira_tune_allocno_costs_and_cover_classes): Rename to
32057 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
32058 by processing objects. Use ira_reg_class_max_nregs instead of
32059 ira_reg_class_nregs.
32060
32061 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
32062
32063 * sched-int.h: Remove mentioning cover classes from the file.
32064 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
32065
32066 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
32067 classes from the file.
32068 (struct reg_pref): Rename coverclass into allocnoclass.
32069 (reg_cover_class): Rename to reg_allocno_class.
32070
32071 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
32072
32073 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
32074
32075 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
32076
32077 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
32078
32079 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
32080
32081 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
32082
32083 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
32084
32085 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
32086
32087 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
32088
32089 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
32090
32091 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
32092 (i386_ira_cover_classes): Ditto.
32093
32094 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
32095
32096 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
32097
32098 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
32099
32100 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
32101
32102 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
32103
32104 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
32105
32106 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
32107 (mips_ira_cover_classes): Ditto.
32108
32109 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
32110
32111 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
32112
32113 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
32114
32115 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
32116
32117 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
32118
32119 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
32120 (IRA_COVER_CLASSES_VSX): Ditto.
32121
32122 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
32123 (rs6000_ira_cover_classes): Ditto.
32124
32125 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
32126
32127 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
32128
32129 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
32130
32131 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
32132
32133 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
32134
32135 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
32136
32137 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
32138
32139 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
32140
32141 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
32142
32143 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
32144
32145 2011-03-29 Jakub Jelinek <jakub@redhat.com>
32146
32147 PR debug/48253
32148 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
32149 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
32150 dw_fde_unlikely_section_end_label, cold_in_std_section,
32151 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
32152 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
32153 fields.
32154 (output_fde): Use dw_fde_second_{begin,end} if second is
32155 true, otherwise dw_fde_{begin,end}.
32156 (output_call_frame_info): Test dw_fde_second_begin != NULL
32157 instead of dw_fde_switched_sections.
32158 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
32159 fields, initialize new fields. Initialize in_std_section
32160 unconditionally from the first partition.
32161 (dwarf2out_end_epilogue): Don't override dw_fde_end when
32162 dw_fde_second_begin is non-NULL.
32163 (dwarf2out_switch_text_section): Stop initializing removed
32164 dw_fde_struct fields, initialize new fields, initialize
32165 also dw_fde_end here. Set dw_fde_switch_cfi even when
32166 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
32167 (struct var_loc_list_def): Add last_before_switch field.
32168 (arange_table, arange_table_allocated, arange_table_in_use,
32169 ARANGE_TABLE_INCREMENT, add_arange): Removed.
32170 (size_of_aranges): Count !in_std_section and !second_in_std_section
32171 hunks in fdes, instead of looking at arange_table_in_use.
32172 (output_aranges): Add aranges_length argument, don't call
32173 size_of_aranges here. Instead of using aranges_table*
32174 emit ranges for fdes when !in_std_section resp.
32175 !second_in_std_section.
32176 (dw_loc_list): Break ranges crossing section switch.
32177 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
32178 use dw_fde_second_end instead of dw_fde_end as end of last range.
32179 (gen_subprogram_die): Don't call add_arange. Use
32180 dw_fde_{begin,end} for first partition and if switched
32181 section dw_fde_second_{begin,end} for the second.
32182 (var_location_switch_text_section_1,
32183 var_location_switch_text_section): New functions.
32184 (dwarf2out_begin_function): Initialize cold_text_section even
32185 when function_section () isn't text_section.
32186 (prune_unused_types): Don't walk arange_table.
32187 (dwarf2out_finish): Don't needlessly test
32188 flag_reorder_blocks_and_partition when testing cold_text_section_used.
32189 If info_section_emitted, call size_of_aranges and if it indicates
32190 non-empty .debug_aranges, call output_aranges with the computed
32191 size. Stop using removed dw_fde_struct fields, use
32192 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
32193 for second.
32194
32195 PR debug/48203
32196 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
32197 create ENTRY_VALUE if incoming or address of incoming's MEM
32198 is a hard REG.
32199 * dwarf2out.c (mem_loc_descriptor): Don't emit
32200 DW_OP_GNU_entry_value of DW_OP_fbreg.
32201 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
32202 on ENTRY_VALUE is able to find the canonical parameter VALUE.
32203 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
32204 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
32205 ENTRY_VALUE_EXPs.
32206 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
32207 is a REG_P or MEM_P with REG_P address, compute hash directly
32208 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
32209 (preserve_only_constants): Don't clear VALUES forwaring
32210 ENTRY_VALUE to some other VALUE.
32211
32212 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
32213
32214 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
32215 instead of GEN_INT.
32216
32217 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
32218
32219 * cfgexpand.c (expand_gimple_cond): Always set the source location and
32220 block before expanding the statement.
32221 (expand_gimple_stmt_1): Likewise. Set them here...
32222 (expand_gimple_stmt): ...and not here. Tidy.
32223 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
32224 unknown.
32225
32226 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
32227
32228 * Makefile.in: New rule for cprop.o.
32229 * gcse.c: Move constant/copy propagation to cprop.c.
32230 (compute_local_properties): Only handle expression tables.
32231 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
32232 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
32233 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
32234 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
32235 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
32236 compute_cprop_data, find_used_regs, try_replace_reg,
32237 find_avail_set, cprop_jump, constprop_register, cprop_insn,
32238 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
32239 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
32240 find_bypass_set, reg_killed_on_edge, bypass_block,
32241 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
32242 execute_rtl_cprop, pass_rtl_cprop): Move to...
32243 * cprop.c: ...here. New file, constant/copy propagation for RTL
32244 moved from gcse.c to here with minor cleanups in duplicated code.
32245
32246 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
32247
32248 * config/i386/i386.c (flag_opts): Fix a typo in
32249 -mavx256-split-unaligned-store.
32250
32251 2011-03-28 Anatoly Sokolov <aesok@post.ru>
32252
32253 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
32254 LIBCALL_VALUE): Remove macros.
32255 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32256 TARGET_FUNCTION_VALUE_REGNO_P): Define.
32257 (h8300_function_value, h8300_libcall_value,
32258 h8300_function_value_regno_p): New functions.
32259
32260 2011-03-28 Anatoly Sokolov <aesok@post.ru>
32261
32262 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
32263
32264 2011-03-28 Jeff Law <law@redhat.com>
32265
32266 * tree-ssa-threadupdate.c (redirect_edges): Call
32267 create_edge_and_update_destination_phis as needed.
32268 (create_edge_and_update_destination_phis): Accept new BB argument.
32269 All callers updated.
32270 (thread_block): Do not update the profile when threading around
32271 intermediate blocks.
32272 (thread_single_edge): Likewise.
32273 (determine_bb_domination_status): If BB is not a successor of the
32274 loop header, return NONDOMINATING.
32275 (register_jump_thread): Note when we register a jump thread around
32276 an intermediate block.
32277 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
32278 (thread_across_edge): Use it.
32279
32280 2011-03-28 Tristan Gingold <gingold@adacore.com>
32281
32282 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
32283 when for_return is 2.
32284
32285 2011-03-28 Jeff Law <law@redhat.com>
32286
32287 * var-tracking.c (canonicalize_values_mark): Delete unused
32288 lhs assignment.
32289 (canonicalize_values_star, set_variable_part): Likewise.
32290 (clobber_variable_part, delete_variable_part): Likewise.
32291
32292 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
32293
32294 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
32295
32296 2011-03-28 Martin Jambor <mjambor@suse.cz>
32297
32298 * tree-inline.c (expand_call_inline): Do not check that destination
32299 node is analyzed.
32300 (optimize_inline_calls): Assert that destination node is analyzed.
32301 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
32302 not call tree_lowering_passes.
32303 * cgraph.h (cgraph_analyze_function): Declare.
32304 * cgraphunit.c (cgraph_analyze_function): Make public.
32305
32306 2011-03-28 Joseph Myers <joseph@codesourcery.com>
32307
32308 * config/sparc/sparc-opts.h: New.
32309 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
32310 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
32311 (sparc_option_override): Store processor_type enumeration rather
32312 than string in cpu_default. Remove name and enumeration from
32313 cpu_table. Directly default -mcpu then default -mtune from -mcpu
32314 without using sparc_select. Use target_flags_explicit instead of
32315 fpu_option_set.
32316 * config/sparc/sparc.h (enum processor_type): Move to
32317 sparc-opts.h.
32318 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
32319 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
32320 HeaderInclude entry.
32321 (mcpu=, mtune=): Use Var and Enum.
32322 (sparc_processor_type): New Enum and EnumValue entries.
32323
32324 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32325 Iain Sandoe <iains@gcc.gnu.org>
32326
32327 PR target/48245
32328 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
32329
32330 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
32331
32332 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
32333 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
32334 Insert new statements at it in lieu of STMT.
32335 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
32336 * tree-vect-stmts.c (vectorizable_store): Likewise.
32337 (vectorizable_load): Likewise.
32338
32339 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
32340
32341 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
32342 (divtf3): Ditto.
32343 (multf3): Ditto.
32344 (subtf3): Ditto.
32345
32346 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
32347
32348 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
32349 unaligned 256bit load/store.
32350 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
32351 (*avx_movdqu<avxmodesuffix>): Likewise.
32352
32353 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32354
32355 PR target/48288
32356 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
32357 * config/pa/pa.md (iordi3): Use new predicate in expander.
32358 (iorsi3): Likewise.
32359
32360 2011-03-27 Anatoly Sokolov <aesok@post.ru>
32361
32362 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
32363 FUNCTION_VALUE_REGNO_P): Remove macros.
32364 * config/mips/mips-protos.h (mips_function_value): Remove.
32365 * config/mips/mips.c (mips_function_value): Rename to...
32366 (mips_function_value_1): ... this. Make static. Handle receiving
32367 the function type in 'fn_decl_or_type' argument.
32368 (mips_function_value, mips_libcall_value,
32369 mips_function_value_regno_p): New function.
32370 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32371 TARGET_FUNCTION_VALUE_REGNO_P): Define.
32372
32373 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
32374
32375 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
32376 and -mavx256-split-unaligned-store.
32377 (ix86_option_override_internal): Split 32-byte AVX unaligned
32378 load/store by default.
32379 (ix86_avx256_split_vector_move_misalign): New.
32380 (ix86_expand_vector_move_misalign): Use it.
32381
32382 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
32383 -mavx256-split-unaligned-store.
32384
32385 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
32386 256bit load/store. Generate unaligned store on misaligned memory
32387 operand.
32388 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
32389 256bit load/store.
32390 (*avx_movdqu<avxmodesuffix>): Likewise.
32391
32392 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
32393 -mavx256-split-unaligned-store.
32394
32395 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
32396
32397 PR target/38598
32398 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
32399 Update commentary.
32400
32401 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
32402
32403 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
32404 opno arguments with an expand_operand. Use create_input_operand.
32405 (mips_prepare_builtin_target): Delete.
32406 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
32407 functions.
32408 (mips_expand_builtin_direct): Use create_output_operand and
32409 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
32410 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
32411 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
32412
32413 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
32414
32415 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
32416 function.
32417 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
32418
32419 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
32420
32421 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
32422 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
32423 basic blocks and call commit_edge_insertions directly.
32424 (fixup_abnormal_edges): Move from here to...
32425 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
32426 on the edges and return whether some have actually been inserted.
32427 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
32428 compensation code.
32429
32430 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
32431
32432 PR rtl-optimization/48144
32433 * sel-sched-ir.c (merge_history_vect): Factor out from ...
32434 (merge_expr_data): ... here.
32435 (av_set_intersect): Rename to av_set_code_motion_filter.
32436 Update all callers. Call merge_history_vect when an expression
32437 is found in both sets.
32438 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
32439
32440 2011-03-26 Alan Modra <amodra@gmail.com>
32441
32442 * config/rs6000/predicates.md (word_offset_memref_op): Handle
32443 cmodel medium addresses.
32444 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
32445 64-bit gpr loads and stores.
32446 (rs6000_secondary_reload_ppc64): New function.
32447 * config/rs6000/rs6000-protos.h: Declare it.
32448 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
32449
32450 2011-03-26 Alan Modra <amodra@gmail.com>
32451
32452 PR target/47487
32453 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
32454 GNU Go in traceback table.
32455
32456 2011-03-25 Richard Henderson <rth@redhat.com>
32457
32458 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
32459 if there are exactly 6 operands.
32460 (set_storage_via_setmem): Similarly.
32461
32462 2011-03-25 Kai Tietz <ktietz@redhat.com>
32463
32464 * collect2.c (write_c_file_stat): Handle backslash
32465 as right-hand directory separator.
32466 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
32467 checking just for slash.
32468 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
32469 instead of checking for trailing slash.
32470 * gcc.c (record_temp_file): Use filename_cmp instead
32471 of strcmp.
32472 (do_spec_1): Likewise.
32473 (replace_outfile_spec_function): Likewise.
32474 (is_directory): Use filename_ncmp instead of strncmp.
32475 (print_multilib_info): Likewise.
32476 * gcov.c (find_source): Use filename_cmp instead
32477 instead of strcmp.
32478 (make_gcov_file_name): Fix order of slash/backslash
32479 checks.
32480 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
32481 (add_standard_paths): Likewise.
32482 * mips-tfile.c (saber_stop): Handle backslash.
32483 * prefix.c (update_path): Use filename_ncmp instead of
32484 strncmp.
32485 * profile.c (output_location): Use filename_cmp instead
32486 of strcmp.
32487 * read-md.c (handle_toplevel_file): Handle backslash.
32488 * tlink.c (frob_extension): Likewise.
32489 * tree-cfg.c (same_line_p): Use filename_cmp instead of
32490 strcmp.
32491 * tree-dump.c (dequeue_and_dump): Handle backslash.
32492 * tree.c (get_file_function_name): Likewise.
32493 * gengtype.c (read_input_list): Likewise.
32494 (get_file_realbasename): Likewise.
32495 (get_output_file_with_visibility): Use filename_cmp
32496 instead of strcmp.
32497
32498 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
32499
32500 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
32501 case to VFPv1.
32502
32503 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
32504
32505 * fold-const.c (expr_location_or): New function.
32506 (fold_truth_not_expr): Call it.
32507
32508 2011-03-25 Jeff Law <law@redhat.com>
32509
32510 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
32511 va_end.
32512 * c-family/c-common.c (def_fn_type): Likewise.
32513 * emit-rtl.c (gen_rtvec): Likewise.
32514 * lto/lto-lang.c (def_fn_type): Likewise.
32515
32516 2011-03-25 Richard Guenther <rguenther@suse.de>
32517
32518 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
32519 also generate copies.
32520 (fini_copy_prop): Handle constant values properly.
32521
32522 2011-03-25 Jakub Jelinek <jakub@redhat.com>
32523
32524 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
32525 mode size instead of bitsize with DWARF2_ADDR_SIZE.
32526 (hash_loc_operands, compare_loc_operands): Handle
32527 DW_OP_GNU_entry_value.
32528
32529 2011-03-25 Kai Tietz <ktietz@redhat.com>
32530
32531 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
32532 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
32533 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
32534 comment and use macro TARGET_64BIT_MS_ABI instead.
32535 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
32536 and change default behavior for 32-bit MS_ABI.
32537 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
32538 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
32539 32-bit, too.
32540 (ix86_cfun_abi): Likewise.
32541 (ix86_maybe_switch_abi): Adjust comment.
32542 (init_cumulative_args): Check for bit-ness in MS_ABI case.
32543 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
32544 instead of checking for SYSV_ABI.
32545 (ix86_nsaved_sseregs): Likewise.
32546 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
32547 to 16 bytes.
32548 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
32549 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
32550 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
32551 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
32552 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
32553
32554 2011-03-25 Richard Guenther <rguenther@suse.de>
32555
32556 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
32557 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
32558 (verify_gimple): Remove.
32559 * tree-cfg.c (verify_gimple_call): Merge verification
32560 from verify_stmts.
32561 (verify_gimple_phi): Merge verification from verify_stmts.
32562 (verify_gimple_label): New function.
32563 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
32564 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
32565 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
32566 (verify_stmts): Rename to verify_gimple_in_cfg.
32567 (verify_gimple_in_cfg): New function.
32568 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
32569 * tree-ssa.c (verify_ssa): Likewise.
32570 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
32571
32572 2011-03-25 Richard Guenther <rguenther@suse.de>
32573
32574 * passes.c (init_optimization_passes): Add FRE pass after
32575 early SRA.
32576
32577 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
32578 Andrew Stubbs <ams@codesourcery.com>
32579
32580 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
32581 for Cortex-A8.
32582 (arm_movdi_vfp_cortexa8): New pattern.
32583 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
32584 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
32585 instructions when tuning for Cortex-A8. Set attribute "arch".
32586 * config/arm/arm.md: Move include arm-tune.md up a bit.
32587 (define_attr "arch"): Add "onlya8" and "nota8" values.
32588 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
32589
32590 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
32591
32592 PR bootstrap/48282
32593 Revert:
32594 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32595
32596 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
32597 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
32598 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
32599 * passes.c (init_optimization_passes): Move
32600 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
32601
32602 2011-03-25 Kai Tietz <ktietz@redhat.com>
32603
32604 * c-typeck.c (comptypes_internal): Replace target
32605 hook call of comp_type_attributes by version in tree.c file.
32606 * gimple.c (gimple_types_compatible_p_1): Likewise.
32607 * tree-ssa.c (useless_type_conversion_p): Likewise.
32608 * tree.c (build_type_attribute_qual_variant): Likewise.
32609 (attribute_value_equal): New static helper function.
32610 (comp_type_attributes): New function.
32611 (merge_attributes): Use attribute_value_equal for comparison.
32612 (attribute_list_contained): Likewise.
32613 * tree.h (comp_type_attributes): New prototype.
32614
32615 2011-03-25 Richard Guenther <rguenther@suse.de>
32616
32617 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
32618 of complex types at -O0.
32619 (verify_gimple_assign_binary): Likewise.
32620 (verify_gimple_assign_ternary): Likewise.
32621
32622 2011-03-24 Mark Wielaard <mjw@redhat.com>
32623
32624 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
32625 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
32626
32627 2011-03-24 Mark Wielaard <mjw@redhat.com>
32628
32629 PR debug/48041
32630 * dwarf2out.c (output_abbrev_section): Only write table when
32631 abbrev_die_table_in_use > 1.
32632
32633 2011-02-24 Richard Henderson <rth@redhat.com>
32634
32635 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
32636 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
32637 (alpha_expand_unaligned_load_words): Use extql.
32638 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
32639 (emit_insxl): Handle all modes for consistency.
32640
32641 2011-02-24 Richard Henderson <rth@redhat.com>
32642
32643 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
32644 (alpha_expand_unaligned_load): Likewise.
32645 (alpha_expand_unaligned_store): Likewise.
32646 (alpha_expand_unaligned_load_words): Likewise.
32647 (alpha_expand_unaligned_store_words): Likewise.
32648 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
32649 (alpha_split_lock_test_and_set_12): Likewise.
32650 (print_operand, alpha_fold_builtin_extxx): Likewise.
32651 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
32652 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
32653 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
32654 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
32655 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
32656 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
32657 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
32658 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
32659 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
32660 (extwl, extll, extql): Similarly.
32661 (inswh, inslh, insqh): Similarly.
32662 (mskbl, mskwl, mskll, mskql): Similarly.
32663 (mskwh, msklh, mskqh): Similarly.
32664
32665 2011-02-24 Richard Henderson <rth@redhat.com>
32666
32667 * config/alpha/alpha.md (attribute isa): Add er, ner.
32668 (attribute enabled): Handle them.
32669 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
32670
32671 2011-02-24 Richard Henderson <rth@redhat.com>
32672
32673 * config/alpha/alpha.md (attribute isa): Add vms.
32674 (attribute enabled): Handle it.
32675 (*movsf): Merge *movsf_{nofix,fix,nofp}.
32676 (*movdf): Merge *movdf_{nofix,fix,nofp}.
32677 (*movtf): Rename from *movtf_internal for consistency.
32678 (*movsi): Merge with *movsi_nt_vms.
32679 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
32680 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
32681 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
32682 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
32683
32684 2011-02-24 Richard Henderson <rth@redhat.com>
32685
32686 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
32687 (extendqisi2, extendhisi2): Likewise.
32688 (extendqidi2): Simplify BWX/non-BWX expansions.
32689 (extendhidi2): Similarly.
32690
32691 2011-02-24 Richard Henderson <rth@redhat.com>
32692
32693 * config/alpha/alpha.md (attribute isa): New.
32694 (attribute enabled): New.
32695 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
32696 (zero_extendqisi2, zero_extendqidi2): Similarly.
32697 (zero_extendhisi2, zero_extendhidi2): Similarly.
32698 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
32699
32700 2011-02-24 Richard Henderson <rth@redhat.com>
32701
32702 * config/alpha/predicates.md (input_operand): Revert last change;
32703 update comment to mention 32-bit VMS rather than Windows.
32704
32705 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32706
32707 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
32708 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
32709 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
32710 * passes.c (init_optimization_passes): Move
32711 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
32712
32713 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
32714
32715 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
32716
32717 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
32718
32719 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
32720 correctly.
32721
32722 2011-03-24 Jakub Jelinek <jakub@redhat.com>
32723
32724 PR debug/48204
32725 * simplify-rtx.c (simplify_const_unary_operation): Call
32726 real_convert when changing mode class with FLOAT_EXTEND.
32727
32728 2011-03-24 Nick Clifton <nickc@redhat.com>
32729
32730 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
32731 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
32732 * config/rx/rx.c (rx_option_override): Set align_jumps,
32733 align_loops and align_labels if not set by the user.
32734 (rx_align_for_label): New function.
32735 (rx_max_skip_for_label): New function.
32736 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
32737 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
32738 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
32739 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
32740 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
32741
32742 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
32743
32744 PR rtl-optimization/48263
32745 * optabs.c (expand_binop_directly): Reinstate convert_modes code
32746 and original commutative_p handling. Use maybe_gen_insn.
32747
32748 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32749
32750 * reload.c (find_reloads_subreg_address): Add address_reloaded
32751 parameter and return true there if the full address has been
32752 reloaded.
32753 (find_reloads_toplev): Pass address_reloaded flag.
32754 (find_reloads_address_1): Don't use address_reloaded parameter.
32755
32756 2011-03-24 Jeff Law <law@redhat.com>
32757
32758 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
32759 unused variable "ann".
32760 (remove_unused_locals): Likewise.
32761
32762 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
32763 statement.
32764
32765 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
32766 after it is freed.
32767
32768 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32769
32770 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
32771 for invalid symbolic addresses.
32772 (s390_secondary_reload): Don't use s390_check_symref_alignment for
32773 larl operands.
32774
32775 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
32776
32777 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
32778 the argument in calls to fold_truth_not_expr.
32779
32780 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32781
32782 * tree.c (record_node_allocation_statistics): New function.
32783 (make_node_stat, copy_node_stat, build_string): Call it.
32784 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
32785 (build1_stat, build_omp_clause): Likewise.
32786
32787 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
32788
32789 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
32790 last commit.
32791
32792 2011-03-24 Richard Guenther <rguenther@suse.de>
32793
32794 PR tree-optimization/48271
32795 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
32796 blocks that still exist.
32797
32798 2011-03-24 Richard Guenther <rguenther@suse.de>
32799
32800 PR tree-optimization/48270
32801 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
32802 not free datarefs before ddrs.
32803
32804 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
32805
32806 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
32807 from the address built for a reference with variable offset.
32808
32809 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
32810
32811 PR target/48237
32812 * config/i386/i386.md (*movdf_internal_rex64): Do not split
32813 alternatives that can be handled with movq or movabsq insn.
32814 (*movdf_internal): Disable for !TARGET_64BIT.
32815 (*movdf_internal_nointeger): Ditto.
32816 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
32817
32818 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
32819
32820 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
32821 (FUNCTION_ARG_ADVANCE): Likewise.
32822 * tm.texi.in: Change references to them to hook references.
32823 * tm.texi: Regenerate.
32824 * targhooks.c (default_function_arg): Eliminate check for target macro.
32825 (default_function_incoming_arg): Likewise.
32826 (default_function_arg_advance): Likewise.
32827 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
32828 (function_arg_advance): Likewise.
32829 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
32830
32831 2011-03-24 Richard Guenther <rguenther@suse.de>
32832
32833 PR middle-end/48269
32834 * tree-object-size.c (addr_object_size): Do not double-account
32835 for MEM_REF offsets.
32836
32837 2011-03-24 Diego Novillo <dnovillo@google.com>
32838
32839 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
32840 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
32841 (lto_input_data_block): Move from lto-opts.c. Make extern.
32842 Update all users.
32843 (lto_input_string): Rename from input_string. Make extern.
32844 Update all users.
32845 * lto-streamer-out.c (lto_output_string_with_length): Rename from
32846 output_string_with_length.
32847 Output 0 to indicate a non-NULL string. Update all callers to
32848 not emit 0.
32849 (lto_output_string): Rename from output_string. Make extern.
32850 Update all users.
32851 (lto_output_decl_state_streams): Make extern.
32852 (lto_output_decl_state_refs): Make extern.
32853 * lto-streamer.h (lto_input_string): Declare.
32854 (lto_input_data_block): Declare.
32855 (lto_output_string): Declare.
32856 (lto_output_string_with_length): Declare.
32857 (lto_output_decl_state_streams): Declare.
32858 (lto_output_decl_state_refs): Declare.
32859
32860 2011-03-24 Richard Guenther <rguenther@suse.de>
32861
32862 PR tree-optimization/46562
32863 * tree.c (build_invariant_address): New function.
32864 * tree.h (build_invariant_address): Declare.
32865 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
32866 a renamed function moved ...
32867 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
32868 Take valueization callback parameter.
32869 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
32870 * gimple-fold.h: New file.
32871 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
32872 (ccp_fold, fold_const_aggregate_ref,
32873 fold_ctor_reference, fold_nonarray_ctor_reference,
32874 fold_array_ctor_reference, fold_string_cst_ctor_reference,
32875 get_base_constructor): Move ...
32876 * gimple-fold.c: ... here.
32877 (gimple_fold_stmt_to_constant_1): New function
32878 split out from ccp_fold. Take a valueization callback parameter.
32879 Valueize all operands.
32880 (gimple_fold_stmt_to_constant): New wrapper function.
32881 (fold_const_aggregate_ref_1): New function split out from
32882 fold_const_aggregate_ref. Take a valueization callback parameter.
32883 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
32884 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
32885 invariant POINTER_PLUS_EXPRs to invariant form.
32886 (vn_valueize): New function.
32887 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
32888 * tree-vrp.c (vrp_valueize): New function.
32889 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
32890 to fold statements to constants.
32891 * tree-ssa-pre.c (eliminate): Properly guard propagation of
32892 function declarations.
32893 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
32894 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
32895
32896 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
32897
32898 * config/h8300/predicates.md (jump_address_operand): Fix register
32899 mode check.
32900
32901 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
32902
32903 * doc/invoke.texi (max-stores-to-sink): Document.
32904 * params.h (MAX_STORES_TO_SINK): Define.
32905 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
32906 if either vectorization or if-conversion is disabled.
32907 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
32908 tree-vect-data-refs.c vect_equal_offsets.
32909 (dr_equal_offsets_p): New function.
32910 (find_data_references_in_bb): Remove static.
32911 * tree-data-ref.h (find_data_references_in_bb): Declare.
32912 (dr_equal_offsets_p): Likewise.
32913 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
32914 (vect_drs_dependent_in_basic_block): Update calls to
32915 vect_equal_offsets.
32916 (vect_check_interleaving): Likewise.
32917 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
32918 (cond_if_else_store_replacement): Rename to...
32919 (cond_if_else_store_replacement_1): ... this. Change arguments and
32920 documentation.
32921 (cond_if_else_store_replacement): New function.
32922 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
32923 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
32924
32925 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
32926
32927 PR target/46934
32928 * config/arm/arm.md (casesi): Use the gen_int_mode() function
32929 to subtract lower bound instead of GEN_INT().
32930
32931 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
32932
32933 PR other/48179
32934 PR other/48221
32935 PR other/48234
32936 * doc/extend.texi (Alignment): Move section to match order in TOC.
32937 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
32938 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
32939
32940 2011-03-23 Jeff Law <law@redhat.com>
32941
32942 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
32943 before removing the edge.
32944
32945 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
32946 it may have been freed by redirect_branch_edge or
32947 redirect_edge_succ_nodup.
32948
32949 2011-03-23 Richard Guenther <rguenther@suse.de>
32950
32951 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
32952 (check_va_list_escapes): Likewise.
32953 (check_all_va_list_escapes): Likewise.
32954
32955 2011-03-23 Richard Guenther <rguenther@suse.de>
32956
32957 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
32958 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
32959 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
32960 (alias.o): Likewise.
32961 (ipa-type-escape.o): Remove.
32962 (ipa-struct-reorg.o): Likewise.
32963 (GTFILES): Remove ipa-struct-reorg.c.
32964 * alias.c: Do not include ipa-type-escape.h.
32965 * tree-ssa-alias.c: Likewise.
32966 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
32967 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
32968 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
32969 and ipa-type-escape passes.
32970 * tree-pass.h (pass_ipa_type_escape): Remove.
32971 (pass_ipa_struct_reorg): Likewise.
32972 * ipa-struct-reorg.h: Remove.
32973 * ipa-struct-reorg.c: Likewise.
32974 * ipa-type-escape.h: Likewise.
32975 * ipa-type-escape.c: Likewise.
32976 * doc/invoke.texi (-fipa-struct-reorg): Remove.
32977 (--param struct-reorg-cold-struct-ratio): Likewise.
32978 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
32979 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
32980 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
32981
32982 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32983
32984 * config/s390/2084.md: Enable all insn reservations also for z9_ec
32985 cpu attribute value.
32986 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
32987 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
32988 * config/s390/s390.c (processor_flags_table): New constant array.
32989 (s390_handle_arch_option): Remove.
32990 (s390_handle_option): Remove s390_handle_arch_option invocations
32991 and OPT_mwarn_framesize_ handling.
32992 (s390_option_override): Remove s390_handle_arch_option invocation.
32993 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
32994 warnings.
32995 * config/s390/s390.md (cpu attribute): Add z9_ec value.
32996 * config/s390/s390.opt (s390_tune, s390_arch)
32997 (march=): Replace s390_arch_option enum and values with
32998 processor_type. Set variable name to s390_arch. Set
32999 initialization value.
33000 (mtune=): Replace s390_arch_option with processor_type. Set
33001 variable name to s390_tune. Set initialization value.
33002
33003 2011-03-23 Julian Brown <julian@codesourcery.com>
33004
33005 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
33006 accesses which are not naturally aligned.
33007
33008 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
33009
33010 PR target/47553
33011 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
33012
33013 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
33014
33015 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
33016 parameter from "int" to "enum insn_code".
33017 (expand_operand_type): New enum.
33018 (expand_operand): New structure.
33019 (create_expand_operand): New function.
33020 (create_fixed_operand, create_output_operand): Likewise
33021 (create_input_operand, create_convert_operand_to): Likewise.
33022 (create_convert_operand_from, create_address_operand): Likewise.
33023 (create_integer_operand): Likewise.
33024 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
33025 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
33026 (expand_insn, expand_jump_insn): Likewise.
33027 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
33028 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
33029 (expand_movstr, expand_builtin___clear_cache): Likewise.
33030 (expand_builtin_lock_release): Likewise.
33031 * explow.c (allocate_dynamic_stack_space): Likewise.
33032 (probe_stack_range): Likewise. Allow check_stack to FAIL,
33033 and use the default handling in that case.
33034 * expmed.c (check_predicate_volatile_ok): Delete.
33035 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
33036 (emit_cstore): Likewise.
33037 * expr.c (emit_block_move_via_movmem): Likewise.
33038 (set_storage_via_setmem, expand_assignment): Likewise.
33039 (emit_storent_insn, try_casesi): Likewise.
33040 (emit_single_push_insn): Likewise. Allow the expansion to fail.
33041 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
33042 (expand_vec_shift_expr, expand_binop_directly): Likewise.
33043 (expand_twoval_unop, expand_twoval_binop): Likewise.
33044 (expand_unop_direct, emit_indirect_jump): Likewise.
33045 (emit_conditional_move, vector_compare_rtx): Likewise.
33046 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
33047 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
33048 (expand_sync_lock_test_and_set): Likewise.
33049 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
33050 (emit_unop_insn): Likewise.
33051 (expand_copysign_absneg): Change icode to an insn_code.
33052 (create_convert_operand_from_type): New function.
33053 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
33054 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
33055 (expand_insn, expand_jump_insn): Likewise.
33056 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
33057 than const_int_operand for operand 2.
33058
33059 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33060
33061 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
33062 if possible.
33063
33064 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33065
33066 * emit-rtl.c (emit_pattern_before_noloc): New function.
33067 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
33068 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
33069 (emit_pattern_after_noloc): New function.
33070 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
33071 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
33072
33073 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33074
33075 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
33076 (__ffsDI2): Likewise.
33077
33078 2011-03-22 Richard Henderson <rth@redhat.com>
33079
33080 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
33081 of !TARGET_ABI_OPEN_VMS.
33082 (alpha_trampoline_init, alpha_start_function): Likewise.
33083 (alpha_expand_epilogue, alpha_file_start): Likewise.
33084 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
33085 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
33086 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
33087 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
33088 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
33089
33090 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33091
33092 * config/s390/s390-opts.h: New.
33093 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
33094 s390_arch_flags, s390_warn_framesize, s390_stack_size,
33095 s390_stack_guard): Remove.
33096 (s390_handle_arch_option): Return void. Take enum
33097 s390_arch_option value instead of string and searching array.
33098 (s390_handle_option): Don't assert that global structures are in
33099 use. Access variables via opts pointer. Use error_at. Don't use
33100 sscanf for -mstack-guard= or -mstack-size=. Update call to
33101 s390_handle_arch_option.
33102 (s390_option_override): Update call to s390_handle_arch_option.
33103 (s390_emit_prologue): Use %d format for s390_stack_size in
33104 diagnostic. Use %wd for HOST_WIDE_INT.
33105 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
33106 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
33107 * config/s390/s390.opt (config/s390/s390-opts.h): New
33108 HeaderInclude entry.
33109 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
33110 s390_arch_flags, s390_warn_framesize): New Variable entries.
33111 (s390_arch_option): New Enum and EnumValue entries.
33112 (march=): Use Enum instead of Var.
33113 (mstack-guard=, mstack-size=): Use UInteger and Var.
33114 (mtune=): Use Enum.
33115
33116 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33117
33118 * config/score/score.c (score_handle_option): Don't assert that
33119 global structures are in use. Access target_flags via opts
33120 pointer. Use value of -march= option to determine target_flags
33121 settings.
33122 * config/score/score.opt (march=): Use Enum.
33123 (score_arch): New Enum and EnumValue entries.
33124
33125 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33126
33127 * config/mep/mep.c (option_mtiny_specified): Remove.
33128 (mep_option_override): Move register handling for -mivc2 from
33129 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
33130 instead of option_mtiny_specified.
33131 (mep_handle_option): Access target_flags via opts pointer. Don't
33132 assert that global structures are in use. Defer part of -mivc2
33133 handling and move it to mep_option_override.
33134 * config/mep/mep.opt (IVC2): New Mask entry.
33135 (mivc2): Use Var and Defer instead of Mask.
33136
33137 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33138
33139 * config/v850/v850-opts.h: New.
33140 * config/v850/v850.c (small_memory): Replace with
33141 small_memory_physical_max array. Make that array static const.
33142 (v850_handle_memory_option): Take integer value of argument. Take
33143 gcc_options pointer, option text and location. Return void.
33144 Update for changes to small memory structures.
33145 (v850_handle_option): Access target_flags via opts pointer. Don't
33146 assert that global structures are in use. Update calls to
33147 v850_handle_memory_option.
33148 (v850_encode_data_area): Update references to small memory settings.
33149 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
33150 (enum small_memory_type): Move to v850-opts.h.
33151 * config/v850/v850.opt (config/v850/v850-opts.h): New
33152 HeaderInclude entry.
33153 (small_memory_max): New Variable entry.
33154 (msda): Replace by pair of options msda= and msda-. Use UInteger.
33155 (mtda, mzda): Likewise.
33156
33157 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33158
33159 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
33160 pointer. Don't assert that global structures are in use.
33161
33162 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33163
33164 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
33165 via opts pointer. Don't assert that global structures are in use.
33166
33167 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33168
33169 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
33170 (munix=93): Use Var.
33171 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
33172 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
33173 * config/pa/pa-opts.h: New.
33174 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
33175 (pa_handle_option): Don't assert that global structures are in
33176 use. Access target_flags via opts pointer. Don't handle
33177 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
33178 OPT_munix_98 here.
33179 (pa_option_override): Handle deferred OPT_mfixed_range_.
33180
33181 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33182
33183 * config/mn10300/mn10300-opts.h: New.
33184 * config/mn10300/mn10300.c (mn10300_processor,
33185 mn10300_tune_string): Remove.
33186 (mn10300_handle_option): Don't assert that global structures are
33187 in use. Access mn10300_processor via opts pointer. Don't handle
33188 OPT_mtune_ here.
33189 * config/mn10300/mn10300.h (enum processor_type): Move to
33190 mn10300-opts.h.
33191 (mn10300_processor): Remove.
33192 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
33193 HeaderInclude entry.
33194 (mn10300_processor): New Variable entry.
33195 (mtune=): Use Var.
33196
33197 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33198
33199 * config/microblaze/microblaze.c: Don't include opts.h.
33200 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
33201 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
33202 (mno-clearbss): Use Var and Warn.
33203
33204 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33205
33206 * config/m32r/m32r-opts.h: New.
33207 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
33208 (m32r_handle_option): Don't assert that global structures are in
33209 use. Access target_flags and m32r_cache_flush_func via opts
33210 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
33211 OPT_mno_flush_trap here.
33212 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
33213 include of m32r-opts.h.
33214 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
33215 HeaderInclude entry.
33216 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
33217 (mmodel=): Use Enum and Var.
33218 (m32r_model): New Enum and EnumValue entries.
33219 (mno-flush-trap): Use Var.
33220 (msdata=): Use Enum and Var.
33221 (m32r_sdata): New Enum and EnumValue entries.
33222
33223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33224
33225 * config/m32c/m32c.c: Don't include opts.h.
33226 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
33227 m32c_handle_option): Remove.
33228 (m32c_option_override): Check global_options_set.x_target_memregs
33229 instead of target_memregs_set.
33230 * config/m32c/m32c.h (target_memregs): Remove.
33231 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
33232 variable.
33233
33234 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33235
33236 * config/iq2000/iq2000-opts.h: New.
33237 * config/iq2000/iq2000.c: Don't include opts.h.
33238 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
33239 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
33240 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
33241 HeaderInclude entry.
33242 (iq2000_tune): New Variable entry.
33243 (march=): Add comment. Use Enum.
33244 (iq2000_arch): New Enum and EnumValue entries.
33245 (mcpu=): Use Enum and Var.
33246 (iq2000_tune): New Enum and EnumValue entries.
33247
33248 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33249
33250 * config/ia64/ia64-opts.h: New.
33251 * config/ia64/ia64.c (ia64_tune): Remove.
33252 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
33253 here. Use error_at.
33254 (ia64_option_override): Handle deferred OPT_mfixed_range_.
33255 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
33256 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
33257 HeaderInclude entry.
33258 (ia64_tune): New Variable entry.
33259 (mfixed-range=): Use Defer and Var.
33260 (mtune=): Use Enum and Var.
33261 (ia64_tune): New Enum and EnumValue entries.
33262
33263 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33264
33265 * config/frv/frv-opts.h: New.
33266 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
33267 frv-opts.h.
33268 (frv_cpu_type): Remove.
33269 * config/frv/frv.c: Don't include opts.h.
33270 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
33271 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
33272 (frv_cpu_type): New Variable entry.
33273 (frv_cpu): New Enum and EnumValue entries.
33274
33275 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33276
33277 * config/cris/cris.c (cris_handle_option): Access target_flags via
33278 opts pointer. Don't assert that global structures are in use.
33279 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
33280 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
33281
33282 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33283
33284 * config/bfin/bfin-opts.h: New.
33285 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
33286 bfin_si_revision, bfin_workarounds): Remove.
33287 (bfin_cpus): Make static const.
33288 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
33289 not bfin_lib_id_given.
33290 (bfin_handle_option): Don't set bfin_lib_id_given. Access
33291 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
33292 pointer. Use error_at. Don't assert that global structures are in use.
33293 * config/bfin/bfin.h: Include bfin-opts.h.
33294 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
33295 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
33296 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
33297 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
33298 entries.
33299
33300 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33301
33302 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
33303 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
33304 or -msoft-float here.
33305 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
33306 -msoft-float and -mhard-float.
33307 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
33308 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
33309 msoft-float.
33310 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
33311 -msoft-float.
33312 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
33313 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
33314 not mhard-float.
33315 (LIBGCC_SPEC): Don't handle -msoft-float.
33316 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
33317 -mhard-float.
33318 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
33319 msoft-float.
33320 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
33321 -mfloat-abi=*, not -msoft-float and -mhard-float.
33322 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
33323 -msoft-float.
33324 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
33325 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
33326 mhard-float and msoft-float.
33327 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
33328 mfloat-abi=soft in comments, not mhard-float and msoft-float.
33329 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
33330 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
33331 mhard-float.
33332 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
33333 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
33334 msoft-float.
33335 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
33336 not mhard-float.
33337 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
33338 not msoft-float.
33339
33340 2011-03-22 Richard Henderson <rth@redhat.com>
33341
33342 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
33343 TARGET_ABI_WINDOWS_NT.
33344 (alpha_output_function_end_prologue): Likewise.
33345 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
33346 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
33347 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
33348 (trap, *movsi_nt_vms): Likewise.
33349 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
33350 (*tablejump_osf_nt_internal): Remove.
33351 * config/alpha/predicates.md (input_operand): Only test Pmode.
33352
33353 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33354
33355 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
33356 via opts pointer. Use error_at. Don't assert that global
33357 structures are in use.
33358
33359 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33360
33361 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
33362 (ix86_handle_option): Access ix86_isa_flags and
33363 ix86_isa_flags_explicit via opts pointer. Don't assert that
33364 global structures are in use.
33365 (ix86_function_specific_save, ix86_function_specific_restore):
33366 Update ix86_isa_flags_explicit field name.
33367 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
33368 (ix86_isa_flags_explicit): Rename TargetSave entry to
33369 x_ix86_isa_flags_explicit.
33370
33371 2011-03-22 Richard Henderson <rth@redhat.com>
33372
33373 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
33374 (alpha_option_override, direct_return): Likewise.
33375 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
33376 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
33377 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
33378 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
33379 (alpha_expand_epilogue, alpha_end_function): Likewise.
33380 (alpha_init_libfuncs): Likewise.
33381 (struct machine_function): Remove unicosmk members.
33382 (print_operand) ['t']: Remove.
33383 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
33384 unicosmk_output_module_name, unicosmk_output_common,
33385 current_section_align, unicosmk_output_text_section_asm_op,
33386 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
33387 unicosmk_section_type_flags, unicosmk_unique_section,
33388 unicosmk_asm_named_section, unicosmk_insert_attributes,
33389 unicosmk_output_align, unicosmk_defer_case_vector,
33390 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
33391 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
33392 unicosmk_output_ssib, unicosmk_add_call_info_word,
33393 unicosmk_extern_head, unicosmk_output_default_externs,
33394 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
33395 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
33396 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
33397 * config/alpha/alpha-protos.h: Update.
33398 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
33399 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
33400 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
33401 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
33402 (*mulsi_se, mulvsi3): Likewise.
33403 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
33404 (*divmodsi_internal, call, call_value, realign): Likewise.
33405 (moddi3, umoddi3): Likewise; remove duplicate expander.
33406 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
33407 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
33408 (*movdi_nofix): Remove r/U alternative.
33409 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
33410 * config/alpha/constraints.md ("U"): Remove.
33411 * config/alpha/predicates.md (call_operand"): Don't test
33412 TARGET_ABI_UNICOSMK.
33413
33414 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33415
33416 * target.def (handle_option): Take gcc_options and
33417 cl_decoded_option pointers and location_t.
33418 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
33419 * doc/tm.texi: Regenerate.
33420 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
33421 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
33422 * lto-opts.c (lto_reissue_options): Generate option structure for
33423 targetm.handle_option call.
33424 * opts.c (target_handle_option): Update call to
33425 targetm.handle_option. Remove assertions about values now passed
33426 down to hook.
33427 * targhooks.c (default_target_handle_option): New.
33428 * targhooks.h (default_target_handle_option): Declare.
33429 * config/alpha/alpha.c: Include opts.h.
33430 (alpha_handle_option): Update to new hook interface.
33431 * config/arm/arm.c: Include opts.h.
33432 (arm_handle_option): Update to new hook interface.
33433 * config/arm/t-arm (arm.o): Update dependencies.
33434 * config/bfin/bfin.c: Include opts.h.
33435 (bfin_handle_option): Update to new hook interface.
33436 * config/cris/cris.c: Include opts.h.
33437 (cris_handle_option): Update to new hook interface.
33438 * config/frv/frv.c: Include opts.h.
33439 (frv_handle_option): Update to new hook interface.
33440 * config/i386/i386.c: Include opts.h.
33441 (ix86_handle_option): Update to new hook interface.
33442 (ix86_valid_target_attribute_inner_p): Generate option structure
33443 for call to ix86_handle_option.
33444 * config/i386/t-i386 (i386.o): Update dependencies.
33445 * config/ia64/ia64.c: Include opts.h.
33446 (ia64_handle_option): Update to new hook interface.
33447 * config/ia64/t-ia64 (ia64.o): Update dependencies.
33448 * config/iq2000/iq2000.c: Include opts.h.
33449 (iq2000_handle_option): Update to new hook interface.
33450 * config/m32c/m32c.c: Include opts.h.
33451 (m32c_handle_option): Update to new hook interface.
33452 * config/m32r/m32r.c: Include opts.h.
33453 (m32r_handle_option): Update to new hook interface.
33454 * config/m68k/m68k.c: Include opts.h.
33455 (m68k_handle_option): Update to new hook interface.
33456 * config/mep/mep.c: Include opts.h.
33457 (mep_handle_option): Update to new hook interface.
33458 * config/microblaze/microblaze.c: Include opts.h.
33459 (microblaze_handle_option): Update to new hook interface.
33460 * config/mips/mips.c: Include opts.h.
33461 (mips_handle_option): Update to new hook interface.
33462 * config/mn10300/mn10300.c: Include opts.h.
33463 (mn10300_handle_option): Update to new hook interface.
33464 * config/pa/pa.c: Include opts.h.
33465 (pa_handle_option): Update to new hook interface.
33466 * config/pdp11/pdp11.c: Include opts.h.
33467 (pdp11_handle_option): Update to new hook interface.
33468 * config/rs6000/rs6000.c: Include opts.h.
33469 (rs6000_handle_option): Update to new hook interface.
33470 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
33471 * config/rx/rx.c: Include opts.h.
33472 (rx_handle_option): Update to new hook interface.
33473 * config/s390/s390.c: Include opts.h.
33474 (s390_handle_option): Update to new hook interface.
33475 * config/score/score.c: Include opts.h.
33476 (score_handle_option): Update to new hook interface.
33477 * config/sh/sh.c: Include opts.h.
33478 (sh_handle_option): Update to new hook interface.
33479 * config/sparc/sparc.c: Include opts.h.
33480 (sparc_handle_option): Update to new hook interface.
33481 * config/v850/v850.c: Include opts.h.
33482 (v850_handle_option): Update to new hook interface.
33483
33484 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33485
33486 * gcc.c (driver_unknown_option_callback): Only permit and save
33487 unknown -Wno- options.
33488 (driver_wrong_lang_callback): Save options directly instead of via
33489 driver_unknown_option_callback.
33490
33491 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
33492
33493 * combine.c (simplify_set): Try harder to find the best CC mode when
33494 simplifying a nested COMPARE on the RHS.
33495
33496 2011-03-22 Joseph Myers <joseph@codesourcery.com>
33497
33498 * config/alpha/gnu.h: Remove.
33499 * config/arc: Remove directory.
33500 * config/arm/netbsd.h: Remove.
33501 * config/arm/t-pe: Remove.
33502 * config/crx: Remove directory.
33503 * config/i386/netbsd.h: Remove.
33504 * config/m68hc11: Remove directory.
33505 * config/m68k/uclinux-oldabi.h: Remove.
33506 * config/mcore/mcore-pe.h: Remove.
33507 * config/mcore/t-mcore-pe: Remove.
33508 * config/netbsd-aout.h: Remove.
33509 * config/rs6000/gnu.h: Remove.
33510 * config/sh/sh-symbian.h: Remove.
33511 * config/sh/symbian-base.c: Remove.
33512 * config/sh/symbian-c.c: Remove.
33513 * config/sh/symbian-cxx.c: Remove.
33514 * config/sh/symbian-post.h: Remove.
33515 * config/sh/symbian-pre.h: Remove.
33516 * config/sh/t-symbian: Remove.
33517 * config/svr3.h: Remove.
33518 * config/vax/netbsd.h: Remove.
33519 * config.build: Don't handle i[34567]86-*-pe.
33520 * config.gcc: Remove handling of deprecations for most deprecated
33521 targets.
33522 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
33523 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
33524 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
33525 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
33526 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
33527 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
33528 Remove cases.
33529 * config.host: Don't handle i[34567]86-*-pe.
33530 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
33531 (ASM_SPEC32): Don't handle -mcall-gnu.
33532 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
33533 -mcall-gnu.
33534 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
33535 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
33536 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
33537 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
33538 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
33539 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
33540 conditional on SYMBIAN.
33541 * configure.ac: Don't handle powerpc*-*-gnu*.
33542 * configure: Regenerate.
33543 * doc/extend.texi (interrupt attribute): Don't mention CRX.
33544 * doc/install-old.texi (m6811, m6812): Don't mention.
33545 * doc/install.texi (arc-*-elf*): Don't document multilib option.
33546 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
33547 (m68k-uclinuxoldabi): Don't mention.
33548 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
33549 Remove.
33550 (-mcall-gnu): Remove.
33551 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
33552 families): Remove constraint documentation.
33553
33554 2011-03-22 Marius Strobl <marius@FreeBSD.org>
33555
33556 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
33557 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
33558 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
33559
33560 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
33561
33562 PR target/48226
33563 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
33564 vector when peeking at the next token for vector, don't expand the
33565 keywords.
33566
33567 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
33568
33569 * config/avr/avr-protos.h (expand_epilogue): Change prototype
33570 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
33571 * config/avr/avr.c (init_cumulative_args)
33572 (avr_function_arg_advance): Use it.
33573 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
33574 sibcall epilogues.
33575 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
33576 (avr_function_ok_for_sibcall): ...this new function.
33577 (avr_lookup_function_attribute1): New static Function.
33578 (avr_naked_function_p, interrupt_function_p)
33579 (signal_function_p, avr_OS_task_function_p)
33580 (avr_OS_main_function_p): Use it.
33581 * config/avr/avr.md ("sibcall", "sibcall_value")
33582 ("sibcall_epilogue"): New expander.
33583 ("*call_insn", "*call_value_insn"): New insn.
33584 ("call_insn", "call_value_insn"): Remove
33585 ("call", "call_value", "epilogue"): Change expander to handle
33586 sibling calls.
33587
33588 2011-03-21 Nick Clifton <nickc@redhat.com>
33589
33590 * doc/invoke.texi (Overall Options): Move closing brace to end of
33591 options list.
33592 (Optimization Options): Add missing @gol.
33593 (Directory Options): Likewise.
33594 (i386 and x86-64 Options): Likewise.
33595 (RS6000 and PowerPC Options): Likewise.
33596 (i386 and x86-64 Windows Options): Likewise.
33597 (V850 Options): Add text missing from descriptions.
33598
33599 2011-03-22 Richard Henderson <rth@redhat.com>
33600
33601 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
33602 (avr_incoming_return_addr_rtx): New.
33603 (emit_push_byte): New.
33604 (expand_prologue): Use it. Remove incorrect dwarf annotation for
33605 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
33606 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
33607 (emit_pop_byte): New.
33608 (expand_epilogue): Use it. Pop frame pointer by bytes.
33609 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
33610 (INCOMING_RETURN_ADDR_RTX): New.
33611 (INCOMING_FRAME_SP_OFFSET): New.
33612 (ARG_POINTER_CFA_OFFSET): New.
33613 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
33614 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
33615 (pophi): Remove.
33616
33617 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
33618
33619 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33620
33621 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
33622 (FUNCTION_ARG_ADVANCE): Likewise.
33623 * tm.texi.in: Change references to them to hook references.
33624 * tm.texi: Regenerate.
33625 * targhooks.c (default_function_arg): Eliminate check for target
33626 macro.
33627 (default_function_incoming_arg): Likewise.
33628 (default_function_arg_advance): Likewise.
33629 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
33630 (function_arg_advance): Likewise.
33631 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
33632
33633 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
33634
33635 * tree.c (build_call_1): New function.
33636 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
33637
33638 2011-03-22 Richard Guenther <rguenther@suse.de>
33639
33640 PR tree-optimization/48228
33641 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
33642 for single-arg PHIs.
33643
33644 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
33645
33646 PR rtl-optimization/48143
33647 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
33648 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
33649 sse2_cvtps2pd): Likewise.
33650
33651 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33652
33653 * recog.c (canonicalize_change_group): Use validate_unshare_change.
33654
33655 2011-03-22 Richard Guenther <rguenther@suse.de>
33656
33657 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
33658 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
33659 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
33660 and REALIGN_LOAD_EXPR.
33661 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
33662 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
33663 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
33664 DOT_PROD_EXPR case ...
33665 (expand_expr_real_2): ... here.
33666 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
33667 and REALIGN_LOAD_EXPR.
33668 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
33669 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
33670 (vect_create_epilog_for_reduction): Likewise.
33671 (vectorizable_reduction): Likewise.
33672 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
33673 * tree-vect-stmts.c (vectorizable_load): Likewise.
33674
33675 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
33676
33677 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
33678
33679 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33680
33681 * config/s390/s390.c (s390_delegitimize_address): Fix offset
33682 handling for PLTOFF/GOTOFF.
33683
33684 2011-03-22 Nick Clifton <nickc@redhat.com>
33685
33686 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
33687 trailing backslash from the end of the macro definition.
33688
33689 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33690
33691 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
33692 and PLT unspecs.
33693
33694 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
33695
33696 * expr.h (prepare_operand): Move to...
33697 * optabs.h (prepare_operand): ...here and change the insn code
33698 parameter from "int" to "enum insn_code".
33699 (insn_operand_matches): Declare.
33700 * expr.c (init_expr_target): Use insn_operand_matches.
33701 (compress_float_constant): Likewise.
33702 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
33703 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
33704 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
33705 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
33706 Likewise.
33707 (gen_cond_trap): Likewise.
33708 (prepare_operand): Likewise. Change icode to an insn_code.
33709 (insn_operand_matches): New function.
33710 * reload.c (find_reloads_address_1): Use insn_operand_matches.
33711 * reload1.c (gen_reload): Likewise.
33712 * targhooks.c (default_secondary_reload): Likewise.
33713
33714 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
33715
33716 * config/alpha/alpha.md (unspec): New define_c_enum.
33717 (unspecv): Ditto.
33718
33719 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
33720
33721 PR debug/48214
33722 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
33723 between a call and its CALL_ARG_LOCATION note.
33724
33725 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
33726
33727 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
33728
33729 2011-03-21 Jakub Jelinek <jakub@redhat.com>
33730
33731 PR c/42544
33732 PR c/48197
33733 * c-common.c (shorten_compare): If primopN is first sign-extended
33734 to opN and then zero-extended to result type, set primopN to opN.
33735
33736 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
33737
33738 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
33739 for barrier handlers.
33740
33741 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
33742
33743 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
33744 UNSPEC constants to be in the unspec enumeration, and redefine
33745 all UNSPECV constants to be in the unspecv enumeration, so that
33746 dumps print which unspec/unspec_volatile this is.
33747 * config/rs6000/vector.md (UNSPEC_*): Ditto.
33748 * config/rs6000/paired.md (UNSPEC_*): Ditto.
33749 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
33750 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
33751 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
33752
33753 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
33754 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
33755 UNSPECV_LWSYNC, since these are used as unspec_volatile.
33756 * config/rs6000/sync.md (isync, lwsync): Ditto.
33757
33758 2011-03-21 Richard Guenther <rguenther@suse.de>
33759
33760 * params.def (lto-min-partition): Fix typo.
33761
33762 2011-03-21 Richard Guenther <rguenther@suse.de>
33763
33764 PR c/47939
33765 * c-decl.c (grokdeclarator): Drop to the main variant only
33766 for array types. Drop flag_gen_aux_info check.
33767
33768 2011-03-21 Richard Guenther <rguenther@suse.de>
33769
33770 PR translation/47911
33771 * params.def (lto-partitions): Fix typo.
33772 (lto-min-partition): Fix wording.
33773
33774 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
33775
33776 * config/rs6000/t-freebsd: Remove duplication from file.
33777
33778 2011-03-21 Richard Guenther <rguenther@suse.de>
33779
33780 PR middle-end/47661
33781 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
33782
33783 2011-03-21 Richard Guenther <rguenther@suse.de>
33784
33785 PR lto/48210
33786 * params.def (lto-partitions): Require at least 1 partition.
33787
33788 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33789
33790 * gthr-solaris.h: Remove.
33791 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
33792 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
33793 (LIB_SPEC): Likewise.
33794 * config/sol2.opt (threads): Remove.
33795 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
33796 (sparc*-*-solaris2*): Likewise.
33797 * configure.ac (enable_threads): Enable solaris support.
33798 * configure: Regenerate.
33799 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
33800 * doc/install.texi (Configuration, --enable-threads=lib): Remove
33801 solaris.
33802
33803 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33804
33805 * config.gcc: Obsolete *-*-solaris2.8*.
33806 * doc/install.texi (Specific, *-*-solaris2*): Document it.
33807
33808 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33809
33810 PR bootstrap/48135
33811 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
33812 reference. Solaris 8 perl works.
33813
33814 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33815
33816 PR bootstrap/48135
33817 * doc/install.texi (Prerequisites): Move jar etc. up.
33818 Explain support library version requirements.
33819
33820 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33821
33822 PR bootstrap/48135
33823 * doc/install.texi (Prerequisites): Move Perl to build
33824 requirements. Always necessary on Solaris 2 with Sun ld.
33825
33826 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33827
33828 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
33829 binutils 2.21.
33830 (Specific, i?86-*-solaris2.[89]): Likewise.
33831 (Specific, i?86-*-solaris2.10): Likewise.
33832 (Specific, mips-sgi-irix6): Likewise.
33833 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
33834 Update for binutils 2.21.
33835
33836 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33837
33838 * configure.ac (gcc_cv_lto_plugin): Fix typo.
33839 Allow -fuse-linker-plugin for non-default plugin linker.
33840 * configure: Regenerate.
33841
33842 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
33843
33844 PR bootstrap/48167
33845 * gengtype.c (files_rules): Added rule for cp/parser.h.
33846
33847 2011-03-21 Jakub Jelinek <jakub@redhat.com>
33848
33849 PR target/48213
33850 * config/s390/s390.c (s390_delegitimize_address): Don't call
33851 lowpart_subreg if orig_x has BLKmode.
33852
33853 2011-03-21 Kai Tietz <ktietz@redhat.com>
33854
33855 PR target/12171
33856 * doc/plugins.texi: Adjust documentation for plugin register_callback.
33857 * tree.h (attribute_spec): Add new member affects_type_identity.
33858 * attribs.c (empty_attribute_table): Adjust attribute_spec
33859 initializers.
33860 * config/alpha/alpha.c: Likewise.
33861 * config/arc/arc.c: Likewise.
33862 * config/arm/arm.c: Likewise.
33863 * config/avr/avr.c: Likewise.
33864 * config/bfin/bfin.c: Likewise.
33865 * config/crx/crx.c: Likewise.
33866 * config/darwin.h: Likewise.
33867 * config/h8300/h8300.c: Likewise.
33868 * config/i386/cygming.h: Likewise.
33869 * config/i386/i386.c: Likewise.
33870 * config/ia64/ia64.c: Likewise.
33871 * config/m32c/m32c.c: Likewise.
33872 * config/m32r/m32r.c: Likewise.
33873 * config/m68hc11/m68hc11.c: Likewise.
33874 * config/m68k/m68k.c: Likewise.
33875 * config/mcore/mcore.c: Likewise.
33876 * config/mep/mep.c: Likewise.
33877 * config/microblaze/microblaze.c: Likewise.
33878 * config/mips/mips.c: Likewise.
33879 * config/rs6000/rs6000.c: Likewise.
33880 * config/rx/rx.c: Likewise.
33881 * config/sh/sh.c: Likewise.
33882 * config/sol2.h: Likewise.
33883 * config/sparc/sparc.c: Likewise.
33884 * config/spu/spu.c: Likewise.
33885 * config/stormy16/stormy16.c: Likewise.
33886 * config/v850/v850.c: Likewise.
33887
33888 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
33889
33890 * simplify-rtx.c (simplify_binary_operation_1): Handle
33891 (xor (and A B) C) case when B and C are both constants.
33892
33893 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
33894
33895 * tree-dfa.c (add_referenced_var): Fix typo in comment.
33896
33897 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
33898
33899 PR bootstrap/48168
33900 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
33901
33902 2011-03-20 Jakub Jelinek <jakub@redhat.com>
33903
33904 PR rtl-optimization/48156
33905 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
33906 assume df and df_lr are not NULL.
33907
33908 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
33909
33910 PR debug/48023
33911 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
33912 between a call and its CALL_ARG_LOCATION note.
33913
33914 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
33915
33916 PR debug/48178
33917 * config/sh/sh.c (find_barrier): Don't emit a constant pool
33918 between a call and its corresponding CALL_ARG_LOCATION note.
33919
33920 2011-03-19 Anatoly Sokolov <aesok@post.ru>
33921
33922 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
33923 instead of loop. Use HARD_REGISTER_NUM_P predicate.
33924 * haifa-sched.c (setup_ref_regs): Ditto.
33925 * caller-save.c (add_used_regs_1): Ditto.
33926 * dse.c (look_for_hardregs): Ditto.
33927 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
33928 * sched-rgn.c (check_live_1): Ditto.
33929
33930 2011-03-18 Joseph Myers <joseph@codesourcery.com>
33931
33932 * c-decl.c (diagnose_mismatched_decls): Give an error for
33933 redefining a typedef with variably modified type.
33934
33935 2011-03-18 Joseph Myers <joseph@codesourcery.com>
33936
33937 * c-decl.c (grokfield): Don't allow typedefs for structures or
33938 unions with no tag by default.
33939 * doc/extend.texi (Unnamed Fields): Update.
33940
33941 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
33942
33943 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
33944 Rewrite using indirect functions.
33945 (lwp_slwpcb): Ditto.
33946 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
33947 (avx_vinsertf128<mode>): Ditto.
33948
33949 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33950
33951 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
33952 unspecs.
33953
33954 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33955
33956 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
33957 splitting between a call and its corresponding CALL_ARG_LOCATION note.
33958
33959 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
33960
33961 PR rtl-optimization/48170
33962 * gcse.c (hoist_code): Remove bogus asserts.
33963
33964 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
33965
33966 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
33967 computation for prologue/epilogue.
33968
33969 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33970
33971 * Makefile.in (check-consistency): Remove.
33972
33973 2011-03-18 Jakub Jelinek <jakub@redhat.com>
33974
33975 PR debug/48176
33976 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
33977 arange_table_in_use is 0, but either text_section_used or
33978 cold_text_section_used is true. Don't call it if
33979 !info_section_emitted.
33980
33981 2011-03-18 Anatoly Sokolov <aesok@post.ru>
33982
33983 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
33984 FUNCTION_VALUE_REGNO_P): Remove.
33985 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
33986 Remove.
33987 * config/avr/avr.c (avr_ret_register): Make static inline.
33988 (avr_function_value_regno_p): New function.
33989 (avr_libcall_value): Make static. Add 'func' argument.
33990 (avr_function_value): Make static. Rename 'func' argument to
33991 'fn_decl_or_type', forward it to avr_libcall_value. Call
33992 avr_ret_register function instead of RET_REGISTER macro.
33993 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
33994
33995 2011-03-18 Jason Merrill <jason@redhat.com>
33996
33997 PR c++/23372
33998 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
33999
34000 2011-03-18 Richard Guenther <rguenther@suse.de>
34001
34002 * doc/install.texi (--enable-gold): Remove.
34003 (--with-plugin-ld): Document.
34004 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
34005
34006 2011-03-18 Andrew Pinski <pinskia@gmail.com>
34007
34008 PR middle-end/47790
34009 * expr.c (optimize_bitfield_assignment_op): Revamp to work
34010 again after expansion changes.
34011
34012 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
34013
34014 * combine.c (try_combine): Do simplification only call of
34015 subst() on i2 even when i1 is present. Update comments.
34016
34017 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
34018
34019 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
34020 and UNSPEC_PCREL_SYMOFF.
34021
34022 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34023
34024 * config/s390/s390.md: Use define_c_enum for the unspec constant
34025 definitions.
34026
34027 2011-03-18 Richard Henderson <rth@redhat.com>
34028 Jakub Jelinek <jakub@redhat.com>
34029
34030 PR bootstrap/48161
34031 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
34032 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
34033
34034 2011-03-17 Anatoly Sokolov <aesok@post.ru>
34035
34036 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
34037 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
34038 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
34039 Change return type to bool.
34040 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
34041
34042 2011-03-17 Jakub Jelinek <jakub@redhat.com>
34043
34044 PR debug/48163
34045 * var-tracking.c (prepare_call_arguments): If CALL target
34046 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
34047 pc instead of looking it up using cselib_lookup and use
34048 Pmode for it if x has VOIDmode.
34049 * dwarf2out.c (gen_subprogram_die): If also both first and
34050 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
34051
34052 PR debug/48163
34053 * function.c (assign_parms): For data.passed_pointer parms
34054 use MEM of data.entry_parm instead of data.entry_parm itself
34055 as DECL_INCOMING_RTL.
34056 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
34057 also when passed and declared mode is the same, DECL_RTL
34058 is a MEM with pseudo as address and DECL_INCOMING_RTL is
34059 a MEM too.
34060
34061 2011-03-16 Jeff Law <law@redhat.com>
34062
34063 PR rtl-optimization/37273
34064 * ira-costs.c (scan_one_insn): Detect constants living in memory and
34065 handle them like argument loads from stack slots. Do not double
34066 count memory for memory constants and argument loads from stack slots.
34067
34068 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
34069
34070 PR debug/48160
34071 * var-tracking.c (prepare_call_arguments): Check SUBREG.
34072
34073 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
34074
34075 PR target/48171
34076 * config/i386/i386.opt: Add Save to -mavx and -mfma.
34077
34078 2011-03-17 Jakub Jelinek <jakub@redhat.com>
34079
34080 PR bootstrap/48153
34081 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
34082 if dwarf_strict.
34083 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
34084 Clear call_arg_locations and call_arg_loc_last always.
34085
34086 PR middle-end/48152
34087 * var-tracking.c (prepare_call_arguments): If argument needs to be
34088 passed by reference, adjust argtype and mode.
34089
34090 2011-03-17 Richard Guenther <rguenther@suse.de>
34091
34092 PR middle-end/48134
34093 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
34094 a value make sure to fold the statement.
34095
34096 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
34097
34098 PR target/43872
34099 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
34100 return condition with !cfun->calls_alloca.
34101
34102 2011-03-17 Richard Guenther <rguenther@suse.de>
34103
34104 PR bootstrap/48148
34105 * lto-cgraph.c (input_overwrite_node): Clear the abstract
34106 origin for decls in other ltrans units.
34107 (input_varpool_node): Likewise.
34108
34109 2011-03-17 Richard Guenther <rguenther@suse.de>
34110
34111 PR middle-end/48165
34112 * tree-object-size.c (compute_object_offset): Properly return
34113 the offset operand of MEM_REFs as sizetype.
34114
34115 2011-03-17 Jakub Jelinek <jakub@redhat.com>
34116
34117 PR rtl-optimization/48141
34118 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
34119 * dse.c: Include params.h.
34120 (active_local_stores_len): New variable.
34121 (add_wild_read, dse_step1): Clear it when setting active_local_stores
34122 to NULL.
34123 (record_store, check_mem_read_rtx): Decrease it when removing
34124 from the chain.
34125 (scan_insn): Likewise. Increase it when adding to chain, if it
34126 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
34127 set active_local_stores to NULL before the addition.
34128 * Makefile.in (dse.o): Depend on $(PARAMS_H).
34129
34130 PR rtl-optimization/48141
34131 * dse.c (record_store): If no positions are needed in an insn
34132 that cannot be deleted, at least unchain it from active_local_stores.
34133
34134 2011-03-16 Dodji Seketeli <dodji@redhat.com>
34135
34136 PR debug/47510
34137 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
34138 (lookup_type_die_strip_naming_typedef): ... here.
34139 (get_context_die): Use it.
34140 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
34141 the anonymous struct named by the naming typedef.
34142
34143 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
34144
34145 PR target/48154
34146 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
34147 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
34148
34149 2011-03-16 Jeff Law <law@redhat.com>
34150
34151 * tree-vrp.c (identify_jump_threads): Slightly simplify type
34152 check for operands of conditional. Allow type to be a pointer.
34153
34154 2011-03-16 Richard Guenther <rguenther@suse.de>
34155
34156 PR tree-optimization/48149
34157 * fold-const.c (fold_binary_loc): Fold
34158 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
34159
34160 2011-03-16 Richard Guenther <rguenther@suse.de>
34161
34162 PR tree-optimization/26134
34163 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
34164 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
34165 (non_rewritable_mem_ref_base): Handle complex type component
34166 accesses, constrain offsets for vector and complex extracts
34167 more properly.
34168
34169 2011-03-16 Richard Guenther <rguenther@suse.de>
34170
34171 PR tree-optimization/48146
34172 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
34173 operands avoiding the need for renaming.
34174
34175 2011-03-16 Richard Guenther <rguenther@suse.de>
34176
34177 * gimple-fold.c (maybe_fold_reference): Open-code relevant
34178 constant folding. Move MEM_REF canonicalization first.
34179 Rely on fold_const_aggregate_ref for initializer folding.
34180 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
34181
34182 2011-03-16 Jakub Jelinek <jakub@redhat.com>
34183
34184 PR middle-end/48136
34185 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
34186 arg0/arg1 or their arguments are always fold converted to matching
34187 types.
34188
34189 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
34190 to nargs.
34191
34192 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34193
34194 PR lto/46944
34195 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
34196 Handle in-tree gold.
34197 (ld_vers): Extract binutils version for gold.
34198 (gcc_cv_ld_hidden): Handle gold here.
34199 (gcc_cv_lto_plugin): Determine level of linker plugin support.
34200 * configure: Regenerate.
34201 * config.in: Regenerate.
34202 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
34203 -fuse-linker-plugin otherwise.
34204 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
34205 (LINK_COMMAND_SPEC): Use it.
34206 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
34207
34208 2011-03-16 Jakub Jelinek <jakub@redhat.com>
34209
34210 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
34211 * calls.c: Remove debug.h include.
34212 (emit_call_1): Don't call virtual_call_token debug hook.
34213 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
34214 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
34215 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
34216 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
34217 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
34218 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
34219 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
34220 dwarf2out_virtual_call): Remove.
34221 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
34222 copy_call_info and virtual_call hooks.
34223 (dwarf2out_init): Don't initialize vcall_insn_table,
34224 debug_dcall_section and debug_vcall_section.
34225 (prune_unused_types): Don't mark nodes from dcall_table.
34226 (dwarf2out_finish): Don't output dcall or vcall tables.
34227 * final.c (final_scan_insn): Don't call direct_call or
34228 virtual_call debug hooks.
34229 * debug.h (struct gcc_debug_hooks): Remove direct_call,
34230 virtual_call_token, copy_call_info and virtual_call hooks.
34231 (debug_nothing_uid): Remove prototype.
34232 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
34233 copy_call_info and virtual_call hooks.
34234 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
34235 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
34236 * debug.c (do_nothing_debug_hooks): Likewise.
34237 (debug_nothing_uid): Remove.
34238 * doc/invoke.texi (-fenable-icf-debug): Remove.
34239 * common.opt (-fenable-icf-debug): Likewise.
34240
34241 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
34242 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
34243 call's MEM. Handle functions returning aggregate through a hidden
34244 first pointer. For virtual calls add clobbered pc to call arguments
34245 chain.
34246 * dwarf2out.c (gen_subprogram_die): Emit
34247 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
34248 can't be emitted.
34249
34250 PR debug/45882
34251 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
34252 * rtl.h (ENTRY_VALUE_EXP): Define.
34253 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
34254 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
34255 * print-rtl.c (print_rtx): Likewise.
34256 * gengtype.c (adjust_field_rtx_def): Likewise.
34257 * var-tracking.c (vt_add_function_parameter): Adjust
34258 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
34259 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
34260 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
34261 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
34262 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
34263
34264 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
34265 Call var_location debug hook even on CALL_INSNs.
34266 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
34267 * rtl.def (ENTRY_VALUE): New.
34268 * dwarf2out.c: Include cfglayout.h.
34269 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
34270 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
34271 (struct call_arg_loc_node): New type.
34272 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
34273 tail_call_site_count): New variables.
34274 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
34275 DW_TAG_GNU_call_site_parameter.
34276 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
34277 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
34278 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
34279 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
34280 and DW_AT_GNU_all_source_call_sites.
34281 (mem_loc_descriptor): Handle ENTRY_VALUE.
34282 (add_src_coords_attributes): Don't add enything if
34283 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
34284 (dwarf2out_abstract_function): Save and clear call_arg_location,
34285 call_site_count and tail_call_site_count around dwarf2out_decl call.
34286 (gen_call_site_die): New function.
34287 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
34288 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
34289 (dwarf2out_function_decl): Clear call_arg_locations,
34290 call_arg_loc_last, set call_site_count and tail_call_site_count
34291 to -1 and free block_map.
34292 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
34293 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
34294 followed by any real instructions.
34295 (dwarf2out_begin_function): Set call_site_count and
34296 tail_call_site_count to 0.
34297 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
34298 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
34299 attempt to force a DIE for it and worst case remove the attribute.
34300 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
34301 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
34302 the decl itself.
34303 * var-tracking.c: Include tm_p.h.
34304 (vt_stack_adjustments): For calls call note_register_arguments.
34305 (argument_reg_set): New variable.
34306 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
34307 ensure the VALUE is resolved.
34308 (call_arguments): New variable.
34309 (prepare_call_arguments): New function.
34310 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
34311 (struct expand_loc_callback_data): Add ignore_cur_loc field.
34312 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
34313 always use the best expression.
34314 (vt_expand_loc): Add ignore_cur_loc argument.
34315 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
34316 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
34317 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
34318 note for all calls.
34319 (vt_add_function_parameter): Use cselib_lookup_from_insn.
34320 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
34321 argument. Don't call cselib_preserve_only_values and
34322 cselib_reset_table.
34323 (note_register_arguments): New function.
34324 (vt_initialize): Compute argument_reg_set. Call
34325 vt_add_function_parameters before processing basic blocks instead of
34326 afterwards. For calls call prepare_call_arguments before calling
34327 cselib_process_insn.
34328 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
34329 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
34330 (var-tracking.o): Depend on $(TM_P_H).
34331 * cfglayout.h (insn_scope): New prototype.
34332 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
34333 * cfglayout.c (insn_scope): No longer static.
34334 * insn-notes.def (CALL_ARG_LOCATION): New.
34335 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
34336 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
34337 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
34338 nothing for DECL_EXTERNAL BLOCK_VARS.
34339
34340 2011-03-16 Alan Modra <amodra@gmail.com>
34341
34342 PR target/45844
34343 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
34344 create invalid offset address for vsx splat insn.
34345 * config/rs6000/predicates.md (splat_input_operand): New.
34346 * config/rs6000/vsx.md (vsx_splat_*): Use it.
34347
34348 2011-03-15 Xinliang David Li <davidxl@google.com>
34349
34350 PR c/47837
34351 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
34352 (normalize_preds): New function.
34353 (is_use_properly_guarded): Normalize def predicates.
34354
34355 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34356
34357 PR target/46788
34358 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
34359 in the output template.
34360
34361 2011-03-15 Richard Guenther <rguenther@suse.de>
34362
34363 PR middle-end/47650
34364 * tree-pretty-print.c (dump_function_declaration): Properly
34365 dump unprototyped and varargs function types.
34366
34367 2011-03-15 Richard Guenther <rguenther@suse.de>
34368
34369 PR tree-optimization/13954
34370 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
34371 and friends.
34372
34373 2011-03-15 Richard Guenther <rguenther@suse.de>
34374
34375 PR tree-optimization/48037
34376 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
34377 selects into BIT_FIELD_REFs.
34378 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
34379 vector select.
34380
34381 2011-03-15 Jakub Jelinek <jakub@redhat.com>
34382
34383 PR tree-optimization/48129
34384 * builtins.c (fold_builtin_snprintf): Convert to type of
34385 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
34386 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
34387
34388 2011-03-15 Richard Guenther <rguenther@suse.de>
34389
34390 PR tree-optimization/41490
34391 * tree-ssa-dce.c (propagate_necessity): Handle returns without
34392 value but with VUSE.
34393 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
34394 return statements.
34395 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
34396 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
34397 * tree-tailcall.c (find_tail_calls): Ignore returns.
34398
34399 2011-03-15 Richard Guenther <rguenther@suse.de>
34400
34401 PR middle-end/48031
34402 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
34403 or variable-indexed array accesses when in gimple form.
34404
34405 2011-03-15 Richard Guenther <rguenther@suse.de>
34406
34407 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
34408
34409 2011-03-15 Alan Modra <amodra@gmail.com>
34410
34411 PR target/48032
34412 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
34413 presume symbol_refs without a symbol_ref_decl are suitably
34414 aligned, nor other trees we may see here. Handle anchor symbols.
34415 (legitimate_constant_pool_address_p): Comment. Add mode param.
34416 Check cmodel=medium addresses. Adjust all calls.
34417 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
34418 creating cmodel=medium optimized access to locals.
34419 * config/rs6000/constraints.md (R): Pass QImode to
34420 legitimate_constant_pool_address_p.
34421 * config/rs6000/predicates.md (input_operand): Pass mode to
34422 legitimate_constant_pool_address_p.
34423 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
34424 Update prototype.
34425
34426 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34427
34428 PR target/48053
34429 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
34430 64-bit constants being loaded into registers other than GPRs such
34431 as loading 0 into a VSX register.
34432
34433 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34434
34435 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
34436
34437 2011-03-14 Jakub Jelinek <jakub@redhat.com>
34438
34439 PR middle-end/47917
34440 * builtins.c (fold_builtin_snprintf): New function.
34441 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
34442 (fold_builtin_4): Likewise.
34443
34444 PR middle-end/38878
34445 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
34446 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
34447 and C - X == X also strip nops from +/-/p+ operand.
34448 When optimizing -X == C, fold C to arg0's type.
34449
34450 PR debug/47946
34451 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
34452 emit it as add_AT_int instead of add_AT_unsigned.
34453
34454 2011-03-14 Tom Tromey <tromey@redhat.com>
34455
34456 * unwind-dw2.c: Include sys/sdt.h if it exists.
34457 (_Unwind_DebugHook): Use STAP_PROBE2.
34458 * config.in, configure: Rebuild.
34459 * configure.ac: Check for sys/sdt.h.
34460
34461 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
34462
34463 * config/i386/i386.md (ROUND_FLOOR): New constant.
34464 (ROUND_CEIL): Ditto.
34465 (ROUND_TRUNC): Ditto.
34466 (ROUND_MXCSR): Ditto.
34467 (ROUND_NO_EXC): Ditto.
34468 (rint<mode>2): Use new defines instead of numerical constants.
34469 (floor<mode>2): Ditto.
34470 (ceil<mode>2): Ditto.
34471 (btrunc<mode>2): Ditto.
34472 * config/i386/i386-builtin-types.def: Define ROUND function type
34473 aliases.
34474 * config/i386/i386.c (enum ix86_builtins): Add
34475 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
34476 (struct builtin_description): Add
34477 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
34478 (ix86_expand_sse_round): New static function.
34479 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
34480 function types.
34481 (ix86_builtin_vectorized_function): Handle
34482 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
34483
34484 2011-03-14 Tom Tromey <tromey@redhat.com>
34485
34486 * c-parser.c (c_parser_asm_string_literal): Clear
34487 warn_overlength_strings.
34488
34489 2011-03-14 Tom Tromey <tromey@redhat.com>
34490
34491 * c-parser.c (disable_extension_diagnostics): Save
34492 warn_overlength_strings.
34493 (restore_extension_diagnostics): Restore warn_overlength_strings.
34494
34495 2011-03-14 Jakub Jelinek <jakub@redhat.com>
34496
34497 * BASE-VER: Change to 4.7.0.
34498
34499 2011-03-14 Richard Guenther <rguenther@suse.de>
34500
34501 PR middle-end/48098
34502 * tree.c (build_vector_from_val): Adjust assert to requirements
34503 and reality.
34504
34505 2011-03-14 Jakub Jelinek <jakub@redhat.com>
34506
34507 PR bootstrap/48102
34508 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
34509
34510 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
34511
34512 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
34513 terms of target_flags_explicit. Adjust copyright year.
34514
34515 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
34516 * config/rs6000/t-freebsd: New file. Add override for
34517 LIB2FUNCS_EXTRA.
34518
34519 2011-03-13 Chris Demetriou <cgd@google.com>
34520
34521 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
34522 (-fno-diagnostics-show-option): this, to reflect current default.
34523 (-Werror=): Update text about -fno-diagnostics-show-option.
34524
34525 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
34526
34527 PR target/48053
34528 * config/rs6000/predicates.md (easy_vector_constant_add_self,
34529 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
34530 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
34531 mode is not V2DImode or V2DFmode.
34532 (vspltis_constant): Do not handle V2DImode and V2DFmode.
34533 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
34534 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
34535 registers to 0.
34536 (movdi_internal64): Likewise.
34537
34538 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
34539
34540 PR tree-optimization/47127
34541 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
34542 parameter.
34543 (set_cloog_options): Same.
34544 (scop_to_clast): Same.
34545 (print_clast_stmt): Do not call cloog_state_malloc and
34546 cloog_state_free.
34547 (print_generated_program): Same.
34548 (gloog): Same.
34549 * graphite-clast-to-gimple.h (cloog_state): Declared.
34550 (scop_to_clast): Adjust declaration.
34551 * graphite.c (cloog_state): Defined here.
34552 (graphite_initialize): Call cloog_state_malloc.
34553 (graphite_finalize): Call cloog_state_free.
34554
34555 2011-03-11 Jason Merrill <jason@redhat.com>
34556
34557 * attribs.c (lookup_attribute_spec): Take const_tree.
34558 * tree.h: Adjust.
34559
34560 2011-03-11 Joseph Myers <joseph@codesourcery.com>
34561
34562 * config/sparc/sparc.c (sparc_option_override): Use
34563 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
34564
34565 2011-03-11 Richard Guenther <rguenther@suse.de>
34566
34567 PR tree-optimization/48067
34568 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
34569 multiplication result will be only used once on the target
34570 stmt.
34571
34572 2011-03-11 Richard Guenther <rguenther@suse.de>
34573
34574 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
34575
34576 2011-03-11 Richard Guenther <rguenther@suse.de>
34577
34578 PR lto/48073
34579 * tree.c (find_decls_types_r): Do not walk types only reachable
34580 from IDENTIFIER_NODEs.
34581
34582 2011-03-11 Jakub Jelinek <jakub@redhat.com>
34583
34584 PR middle-end/48044
34585 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
34586 all vnode->force_output nodes as needed.
34587
34588 2011-03-11 Jason Merrill <jason@redhat.com>
34589
34590 PR c++/48069
34591 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
34592 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
34593
34594 2011-03-11 Martin Jambor <mjambor@suse.cz>
34595
34596 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
34597 cgraph_node.
34598
34599 2011-03-11 Jakub Jelinek <jakub@redhat.com>
34600
34601 PR tree-optimization/48063
34602 * ipa-inline.c (cgraph_decide_inlining): Don't try to
34603 inline functions called once if !tree_can_inline_p (node->callers).
34604
34605 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
34606
34607 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
34608 extra_objs.
34609 * config/score/score3.c: Delete.
34610 * config/score/score3.h: Delete.
34611 * config/score/mul-div.S: Delete.
34612 * config/score/sfp-machine.h: Add new file.
34613 * config/score/constraints.md: Add new file.
34614 * config/score/t-score-softfp: Add new file.
34615 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
34616 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
34617 (score7_extra_constraint): Delete.
34618 (score7_option_override): Remove unused code.
34619 * config/score/score.c: Remove score3 and score5 define and code.
34620 * config/score/score.h: Remove score3 and score5 define and code.
34621 * config/score/score.md: Remove score3 template and unusual insn.
34622 * config/score/score.opt: Remove score3 and score5 options.
34623
34624 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34625
34626 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
34627 when _HPUX_SOURCE is defined.
34628 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
34629
34630 2011-03-10 Jason Merrill <jason@redhat.com>
34631
34632 PR c++/48029
34633 * stor-layout.c (layout_type): Don't set structural equality
34634 on arrays of incomplete type.
34635 * tree.c (type_hash_eq): Handle comparing them properly.
34636
34637 2011-03-10 Jakub Jelinek <jakub@redhat.com>
34638
34639 PR debug/48043
34640 * config/s390/s390.c (s390_delegitimize_address): Make sure the
34641 result mode matches original rtl mode.
34642
34643 2011-03-10 Nick Clifton <nickc@redhat.com>
34644
34645 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
34646 (andsi3, andsi3_flags): Fix timings for three operand alternative.
34647
34648 2011-03-09 Jakub Jelinek <jakub@redhat.com>
34649
34650 PR rtl-optimization/47866
34651 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
34652 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
34653 if target wasn't scalar.
34654 * function.c (assign_stack_temp_for_type): Assert that neither
34655 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
34656 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
34657 macro.
34658 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
34659
34660 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34661
34662 * config/s390/s390-protos.h (s390_label_align): New prototype.
34663 * config/s390/s390.c (s390_label_align): New function.
34664 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
34665
34666 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34667
34668 PR target/47755
34669 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
34670 V2DI/V2DF constants. Only all 0's or all 1's are easy.
34671 (output_vec_const_move): Ditto.
34672
34673 2011-03-08 Anatoly Sokolov <aesok@post.ru>
34674
34675 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
34676 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
34677 * config/mips/mips.c (mips_preferred_reload_class): Make static.
34678 Change 'rclass' argument and result type to reg_class_t.
34679 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34680
34681 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
34682
34683 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
34684 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
34685 (TARGET_MEMORY_MOVE_COST): Define.
34686 (avr_register_move_cost, avr_memory_move_cost): New Functions.
34687
34688 2011-03-08 Jakub Jelinek <jakub@redhat.com>
34689
34690 PR debug/47881
34691 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
34692 removed anything.
34693
34694 PR tree-optimization/48022
34695 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
34696 for EQ/NE_EXPR.
34697
34698 2011-03-07 Jakub Jelinek <jakub@redhat.com>
34699
34700 PR debug/47991
34701 * var-tracking.c (find_use_val): Return NULL for
34702 cui->sets && cui->store_p BLKmode MEMs.
34703
34704 2011-03-07 Anatoly Sokolov <aesok@post.ru>
34705
34706 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
34707 Remove.
34708 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
34709 xstormy16_print_operand_address): Remove.
34710 * config/stormy16/stormy16.c (xstormy16_print_operand,
34711 xstormy16_print_operand_address): Make static.
34712 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
34713
34714 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
34715
34716 PR target/47862
34717 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
34718 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
34719 before definition.
34720
34721 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
34722
34723 PR bootstrap/48000
34724 * cfgloopmanip.c (fix_bb_placements): Return immediately
34725 if FROM is BASE_LOOP's header.
34726
34727 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
34728
34729 * gimplify.c (gimplify_function_tree): Fix building calls
34730 to __builtin_return_address.
34731
34732 2011-03-07 Alan Modra <amodra@gmail.com>
34733
34734 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
34735 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
34736 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
34737 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
34738 return_mode args.
34739 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
34740 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
34741 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
34742 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
34743 * config/rs6000/rs6000.c
34744 (rs6000_elf_end_indicate_exec_stack): Rename to..
34745 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
34746 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
34747 (rs6000_file_start): ..here.
34748 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
34749 file scope variables.
34750 (call_ABI_of_interest): New function.
34751 (init_cumulative_args): Set above vars when function return value
34752 is a float, vector, or small struct.
34753 (rs6000_function_arg_advance_1): Likewise for function args.
34754 (rs6000_va_start): Set rs6000_passes_float if variable arg function
34755 references float args.
34756
34757 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
34758
34759 * doc/cfg.texi: Remove "See" before @ref.
34760 * doc/invoke.texi: Likewise.
34761
34762 2011-03-05 Jason Merrill <jason@redhat.com>
34763
34764 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
34765
34766 2011-03-05 Anthony Green <green@moxielogic.com>
34767
34768 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
34769
34770 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
34771
34772 PR rtl-optimization/47899
34773 * cfgloopmanip.c (fix_bb_placements): Fix first argument
34774 to flow_loop_nested_p when moving the loop upward.
34775
34776 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
34777
34778 PR target/47719
34779 * arm.md (movhi_insn_arch4): Accept any immediate constant.
34780
34781 2011-03-05 Jakub Jelinek <jakub@redhat.com>
34782
34783 PR tree-optimization/47967
34784 * ipa-cp.c (build_const_val): Return NULL instead of creating
34785 VIEW_CONVERT_EXPR for mismatching sizes.
34786 (ipcp_create_replace_map): Return NULL if build_const_val failed.
34787 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
34788 give up on versioning.
34789
34790 2011-03-05 Alan Modra <amodra@gmail.com>
34791
34792 PR target/47986
34793 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
34794 full cmodel medium/large lo_sum + high addresses.
34795
34796 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34797
34798 * config/s390/s390.c (s390_decompose_address): Reject non-literal
34799 pool references in UNSPEC_LTREL_OFFSET.
34800
34801 2011-03-04 Jan Hubicka <jh@suse.cz>
34802
34803 PR lto/47497
34804 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
34805 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
34806 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
34807 Add node pointers.
34808 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
34809 cgraph_add_thunk): Add node pointers.
34810 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
34811 associated to right node.
34812 (input_node): Update use of cgraph_same_body_alias
34813 and cgraph_add_thunk.
34814
34815 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
34816
34817 * config/i386/i386.opt (mprefer-avx128): New flag.
34818 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
34819 modes when the flag -mprefer-avx128 is on.
34820
34821 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
34822
34823 * dwarf2out.c (compare_loc_operands): Fix address handling.
34824
34825 2011-03-04 Alan Modra <amodra@gmail.com>
34826
34827 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
34828
34829 2011-03-04 Richard Guenther <rguenther@suse.de>
34830
34831 PR middle-end/47968
34832 * expmed.c (extract_bit_field_1): Prefer vector modes that
34833 vec_extract patterns can handle.
34834
34835 2011-03-04 Richard Guenther <rguenther@suse.de>
34836
34837 PR middle-end/47975
34838 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
34839
34840 2011-03-04 Richard Henderson <rth@redhat.com>
34841
34842 * explow.c (emit_stack_save): Remove 'after' parameter.
34843 (emit_stack_restore): Likewise.
34844 * expr.h: Update to match.
34845 * builtins.c, calls.c, stmt.c: Likewise.
34846 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
34847 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
34848 * function.c (expand_function_end): Insert the emit_stack_save
34849 sequence before parm_birth_insn instead of after.
34850
34851 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
34852
34853 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
34854 (ssse3_pmaddubsw128): Ditto.
34855 (ssse3_pmaddubsw): Ditto.
34856
34857 2011-03-03 Steve Ellcey <sje@cup.hp.com>
34858
34859 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
34860
34861 2011-03-03 Jakub Jelinek <jakub@redhat.com>
34862
34863 PR c/47963
34864 * gimplify.c (omp_add_variable): Only call omp_notice_variable
34865 on TYPE_SIZE_UNIT if it is a DECL.
34866
34867 PR debug/47283
34868 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
34869 first operand is not is_gimple_mem_ref_addr, try to fold it.
34870 If the operand still isn't is_gimple_mem_ref_addr, clear
34871 MEM_EXPR on op0.
34872
34873 2011-03-03 Richard Guenther <rguenther@suse.de>
34874
34875 PR middle-end/47283
34876 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
34877 match comment.
34878 (refs_may_alias_p_1): For release branches return true if
34879 we are confused by our input.
34880
34881 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34882
34883 * config/s390/s390.c (s390_function_value): Rename to ...
34884 (s390_function_and_libcall_value): ... this.
34885 (s390_function_value): New function.
34886 (s390_libcall_value): New function.
34887 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
34888 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
34889 target macro definitions.
34890 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
34891
34892 2011-03-02 Joseph Myers <joseph@codesourcery.com>
34893
34894 * config/i386/freebsd64.h (CC1_SPEC): Define.
34895 * config/i386/linux64.h (CC1_SPEC): Define.
34896 * config/i386/x86-64.h (CC1_SPEC): Don't define.
34897
34898 2011-03-02 Anatoly Sokolov <aesok@post.ru>
34899
34900 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
34901 Remove.
34902 * config/stormy16/stormy16.c: Include reload.h.
34903 (xstormy16_memory_move_cost): New function.
34904 (TARGET_MEMORY_MOVE_COST): Define.
34905
34906 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
34907
34908 PR rtl-optimization/47925
34909 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
34910 with side effects. Remove the more-specific check for volatile asms.
34911
34912 2011-03-02 Alan Modra <amodra@gmail.com>
34913
34914 PR target/47935
34915 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
34916 toc relative addresses for valid offsets.
34917
34918 2011-03-01 Richard Guenther <rguenther@suse.de>
34919
34920 PR tree-optimization/47890
34921 * tree-vect-loop.c (get_initial_def_for_induction): Set
34922 related stmt properly.
34923
34924 2011-03-01 Richard Guenther <rguenther@suse.de>
34925
34926 PR lto/47924
34927 * lto-streamer.c (lto_record_common_node): Also register
34928 the canonical type.
34929
34930 2011-03-01 Richard Guenther <rguenther@suse.de>
34931
34932 PR lto/46911
34933 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
34934 Do not stream DECL_ABSTRACT_ORIGIN.
34935 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
34936 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
34937 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
34938 Do not stream DECL_ABSTRACT_ORIGIN.
34939 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
34940 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
34941
34942 2011-02-28 Anatoly Sokolov <aesok@post.ru>
34943
34944 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
34945 FUNCTION_VALUE_REGNO_P): Remove.
34946 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
34947 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
34948 Add 'outgoing' argument.
34949 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
34950 function.
34951 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
34952 TARGET_FUNCTION_VALUE_REGNO_P): Define.
34953
34954 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
34955
34956 PR debug/28047
34957 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
34958 (lookup_filename): Likewise.
34959 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
34960
34961 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
34962 Jakub Jelinek <jakub@redhat.com>
34963
34964 PR middle-end/47893
34965 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
34966 (assign_stack_local_1): Change last argument type to int.
34967 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
34968 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
34969 don't record padding space into frame_space_list nor use those areas.
34970 (assign_stack_local): Adjust caller.
34971 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
34972 of assign_stack_local, pass 0 as last argument.
34973 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
34974 callers.
34975
34976 2011-02-28 Jakub Jelinek <jakub@redhat.com>
34977
34978 PR debug/47283
34979 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
34980 Use target address_mode and pointer_mode hooks instead of hardcoded
34981 Pmode and ptr_mode. Handle some simple cases of extending if
34982 POINTERS_EXTEND_UNSIGNED < 0.
34983 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
34984 Call convert_debug_memory_address.
34985 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
34986 convert_debug_memory_address.
34987
34988 PR middle-end/46790
34989 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
34990 * configure: Regenerated.
34991 * config.in: Regenerated.
34992 * varasm.c (default_function_section): Return NULL
34993 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
34994
34995 2011-02-28 Martin Jambor <mjambor@suse.cz>
34996
34997 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
34998 the description to match the printed values.
34999
35000 2011-02-28 Richard Guenther <rguenther@suse.de>
35001
35002 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
35003 of the copied scope tree.
35004
35005 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35006
35007 * doc/extend.texi (Function Attributes): Avoid deeply (and
35008 wrongly) nested tables.
35009
35010 2011-02-27 Jakub Jelinek <jakub@redhat.com>
35011
35012 PR middle-end/47903
35013 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
35014 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
35015 r isn't op0 nor op1.
35016
35017 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
35018
35019 * config/avr/avr.md: Remove magic comment for emacs.
35020
35021 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
35022
35023 PR target/45261
35024 * config/avr/avr.c (avr_option_override): Use error on bad options.
35025 (avr_help): New function.
35026 (TARGET_HELP): Define.
35027
35028 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
35029
35030 PR target/42240
35031 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
35032 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
35033
35034 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
35035
35036 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
35037 (ARM Options): Ditto.
35038 (i386 and x86-64 Options): Ditto.
35039 (RX Options): Ditto.
35040 (SPARC Options): Ditto.
35041
35042 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
35043
35044 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
35045 FreeBSD 6 and later. Generally use cpu generic.
35046
35047 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
35048
35049 * doc/cpp.texi: Update copyright years.
35050
35051 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
35052
35053 PR target/46898
35054 * config/lm32/lm32.md (ashrsi3): Added needed variable.
35055
35056 2011-02-25 Jon Beniston <jon@beniston.com>
35057
35058 PR target/46898
35059 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
35060 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
35061 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
35062 (lm32_block_move_inline): Add type cast to remove warning.
35063 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
35064 (gen_int_relational): Move declarations to start of function.
35065
35066 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
35067
35068 PR tree-optimization/45470
35069 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
35070 can throw internally only.
35071 * tree-vect-stmts.c (vectorizable_call): Likewise.
35072
35073 2011-02-24 Anatoly Sokolov <aesok@post.ru>
35074
35075 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
35076 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
35077 * config/stormy16/stormy16-protos.h
35078 (xstormy16_preferred_reload_class): Remove.
35079 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
35080 static. Change 'rclass' argument and return type to reg_class_t.
35081 (TARGET_PREFERRED_RELOAD_CLASS,
35082 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
35083
35084 2011-02-24 Richard Guenther <rguenther@suse.de>
35085
35086 * lto-streamer-in.c (input_bb): Do not find referenced vars
35087 in debug statements.
35088
35089 2011-02-23 Jason Merrill <jason@redhat.com>
35090
35091 * common.opt (fabi-version): Document v5 and v6.
35092
35093 2011-02-23 Richard Guenther <rguenther@suse.de>
35094
35095 PR tree-optimization/47849
35096 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
35097
35098 2011-02-23 Jie Zhang <jie@codesourcery.com>
35099
35100 * opts-common.c (decode_cmdline_option): Print empty string
35101 argument as "" in decoded->orig_option_with_args_text.
35102 * gcc.c (execute): Print empty string argument as ""
35103 in the verbose output.
35104 (do_spec_1): Keep empty string argument.
35105
35106 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
35107
35108 * config.gcc: Declare score-* and crx-* obsolete.
35109
35110 2011-02-23 Jie Zhang <jie@codesourcery.com>
35111
35112 PR rtl-optimization/47763
35113 * web.c (web_main): Ignore naked clobber when replacing register.
35114
35115 2011-02-22 Anatoly Sokolov <aesok@post.ru>
35116
35117 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
35118 Remove.
35119
35120 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
35121
35122 PR doc/47848
35123 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
35124
35125 2011-02-22 Mike Stump <mikestump@comcast.net>
35126
35127 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
35128 assembler.
35129 * configure: Regenerate.
35130
35131 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
35132
35133 PR rtl-optimization/46002
35134 * ira-color.c (update_copy_costs): Change class intersection
35135 test to reg_class_contents[] test of 'hard_regno'.
35136
35137 2011-02-21 Joseph Myers <joseph@codesourcery.com>
35138
35139 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
35140 than Driver option.
35141 * config/hpux11.opt (mt): Likewise.
35142 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
35143 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
35144 * config/vax/elf.opt (mno-asm-pic): Likewise.
35145 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
35146
35147 2011-02-21 Mike Stump <mikestump@comcast.net>
35148
35149 PR target/47822
35150 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
35151 tree so we can get save the type.
35152 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
35153 for CFString instead of trying to use past the end of the builtins.
35154 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
35155 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
35156 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
35157 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
35158 Rename to darwin_builtin_cfstring.
35159 (darwin_init_cfstring_builtins): Return the built type.
35160
35161 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
35162
35163 PR target/47840
35164 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
35165 (_mm256_insert_epi64): Use _mm_insert_epi64.
35166
35167 2011-02-21 Anatoly Sokolov <aesok@post.ru>
35168
35169 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35170 * config/stormy16/stormy16-protos.h
35171 (xstormy16_mode_dependent_address_p): Remove.
35172 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
35173 Make static. Change return type to bool. Change argument type to
35174 const_rtx. Remove dead code.
35175 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35176
35177 2011-02-21 Richard Guenther <rguenther@suse.de>
35178
35179 PR lto/47820
35180 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
35181 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
35182 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
35183 TUs context.
35184 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
35185 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
35186
35187 2011-02-20 Richard Guenther <rguenther@suse.de>
35188
35189 PR lto/47822
35190 * tree.c (free_lang_data_in_decl): Clean builtins from
35191 the TU decl BLOCK_VARS.
35192
35193 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
35194
35195 PR debug/47620
35196 PR debug/47630
35197 * haifa-sched.c (fix_tick_ready): Skip tick computation
35198 for debug insns.
35199
35200 2011-02-19 Richard Guenther <rguenther@suse.de>
35201
35202 PR lto/47647
35203 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
35204 Remove lazy BLOCK_VARS streaming.
35205 (lto_input_ts_block_tree_pointers): Likewise.
35206 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
35207
35208 2011-02-19 Joseph Myers <joseph@codesourcery.com>
35209
35210 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
35211
35212 2011-02-19 Joseph Myers <joseph@codesourcery.com>
35213
35214 * config/i386/biarch32.h, config/i386/mach.h,
35215 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
35216
35217 2011-02-19 Jakub Jelinek <jakub@redhat.com>
35218
35219 PR target/47800
35220 * config/i386/i386.md (peephole2 for shift and plus): Use
35221 operands[1] original mode in the first insn.
35222
35223 2011-02-18 Mike Stump <mikestump@comcast.net>
35224
35225 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
35226
35227 2011-02-18 Jan Hubicka <jh@suse.cz>
35228
35229 PR middle-end/47788
35230 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
35231 to zero when the function is not inlinable at all.
35232
35233 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35234
35235 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
35236 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
35237 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
35238 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
35239 * config/pa/t-pa64: Likewise.
35240 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
35241
35242 2011-02-18 Jakub Jelinek <jakub@redhat.com>
35243
35244 PR driver/47787
35245 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
35246
35247 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35248
35249 PR target/47792
35250 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
35251
35252 2011-02-18 Anatoly Sokolov <aesok@post.ru>
35253
35254 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
35255 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
35256 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
35257 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
35258 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
35259 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
35260 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
35261 m32r_load_postinc_p, m32r_store_preinc_predec_p,
35262 m32r_legitimate_address_p): New functions.
35263 * config/m32r/constraints.md (constraint "S"): Don't use
35264 STORE_PREINC_PREDEC_P.
35265 (constraint "U"): Don't use LOAD_POSTINC_P.
35266
35267 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
35268
35269 PR rtl-optimization/46178
35270 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
35271 compute ira_hard_regno_cover_class[].
35272
35273 2011-02-18 Richard Guenther <rguenther@suse.de>
35274
35275 PR lto/47798
35276 * lto-streamer.h (lto_global_var_decls): Declare.
35277 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
35278 statics for global var processing.
35279
35280 2011-02-18 Richard Guenther <rguenther@suse.de>
35281
35282 PR tree-optimization/47737
35283 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
35284 edge dominance check.
35285
35286 2011-02-18 Jakub Jelinek <jakub@redhat.com>
35287
35288 PR debug/47780
35289 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
35290 avoid invalid rtx sharing.
35291
35292 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
35293
35294 * doc/cpp.texi (Obsolete Features): Add background on the
35295 origin of assertions.
35296
35297 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
35298
35299 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
35300 objc_abi == 2.
35301 * config/darwin.c (output_objc_section_asm_op): Added support for
35302 ABI v1 and v2.
35303 (is_objc_metadata): New.
35304 (darwin_objc2_section): New.
35305 (darwin_objc1_section): New.
35306 (machopic_select_section): Added support for ABI v1 and v2.
35307 (darwin_emit_objc_zeroed): New.
35308 (darwin_output_aligned_bss): Detect objc metadata and treat it
35309 appropriately.
35310 (darwin_asm_output_aligned_decl_common): Same.
35311 (darwin_asm_output_aligned_decl_local): Same.
35312 * config/darwin-sections.def: Updated for ABI v1 and v2.
35313 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
35314 compiling Objective-C code for the NeXT runtime, default to using
35315 ABI version 0 for 32-bit, and version 2 for 64-bit.
35316
35317 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35318
35319 * common.opt (optimize_fast): New Variable.
35320 * opts.c (default_options_optimization): Use opts->x_optimize_fast
35321 instead of local variable ofast.
35322
35323 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
35324
35325 * doc/invoke.texi (fobjc-abi-version): Documented.
35326 (fobjc-nilcheck): Documented.
35327 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
35328 version.
35329
35330 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35331
35332 PR driver/47390
35333 * common.opt (export-dynamic): New Driver option.
35334 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
35335
35336 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35337
35338 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
35339
35340 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
35341 Jan Hubicka <jh@suse.cz>
35342
35343 PR debug/47106
35344 PR debug/47402
35345 * cfgexpand.c (account_used_vars_for_block): Remove.
35346 (estimated_stack_frame_size): Use referenced vars.
35347 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
35348 that were referenced in the original function. Test src_fn
35349 rather than cfun. Drop redundant get_var_ann.
35350 (setup_one_parameter): Drop redundant get_var_ann.
35351 (declare_return_variable): Likewise.
35352 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
35353 (copy_arguments_for_versioning): Drop redundant get_var_ann.
35354 * ipa-inline.c (compute_inline_parameters): Do not compute
35355 disregard_inline_limits here.
35356 (compute_inlinable_for_current, pass_inlinable): New.
35357 (pass_inline_parameters): Require PROP_referenced_vars.
35358 * cgraphunit.c (cgraph_process_new_functions): Don't run
35359 compute_inline_parameters explicitly unless function is in SSA form.
35360 (cgraph_analyze_function): Set .disregard_inline_limits.
35361 * tree-sra.c (convert_callers): Compute inliner parameters
35362 only for functions already in SSA form.
35363
35364 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35365
35366 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
35367 -mlittle-endian-data.
35368
35369 2011-02-17 Joseph Myers <joseph@codesourcery.com>
35370
35371 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
35372 -mno-fpu, not -fpu and -no-fpu.
35373 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
35374 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
35375
35376 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
35377
35378 PR target/43653
35379 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
35380 input reload with PLUS RTX.
35381
35382 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35383
35384 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
35385 of InverseVar(MDMX).
35386
35387 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35388
35389 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
35390 --m4-340.
35391
35392 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35393
35394 * config/mn10300/mn10300.opt (mno-crt0): New.
35395
35396 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35397
35398 * config/m68k/uclinux.opt (static-libc): New Driver option.
35399
35400 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35401
35402 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
35403
35404 2011-02-16 Joseph Myers <joseph@codesourcery.com>
35405
35406 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
35407 %{muser-extend-enabled}.
35408
35409 2011-02-16 Richard Guenther <rguenther@suse.de>
35410
35411 PR tree-optimization/47738
35412 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
35413 the TODO from tree_predictive_commoning.
35414
35415 2011-02-15 Jeff Law <law@redhat.com>
35416
35417 Revert
35418 2011-01-25 Jeff Law <law@redhat.com>
35419
35420 PR rtl-optimization/37273
35421 * ira-costs.c (scan_one_insn): Detect constants living in memory and
35422 handle them like argument loads from stack slots. Do not double
35423 count memory for memory constants and argument loads from stack slots.
35424
35425 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
35426
35427 PR target/47755
35428 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
35429 mode for vector constants. Remove code that checks for TImode.
35430
35431 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35432
35433 PR debug/47106
35434 PR debug/47402
35435 * cgraph.h (compute_inline_parameters): Return void.
35436 * ipa-inline.c (compute_inline_parameters): Adjust.
35437
35438 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35439
35440 PR debug/47106
35441 PR debug/47402
35442 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
35443 rather than decl.
35444 * cfgexpand.c (estimated_stack_frame_size): Likewise.
35445 * ipa-inline.c (compute_inline_parameters): Adjust.
35446
35447 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35448
35449 PR debug/47106
35450 PR debug/47402
35451 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
35452 Adjust all users. Pass FN to...
35453 * tree-flow-inline.h (first_referenced_var): ... this. Add
35454 fn argument.
35455 * ipa-struct-reorg.c: Adjust.
35456 * tree-dfa.c: Adjust.
35457 * tree-into-ssa.c: Adjust.
35458 * tree-sra.c: Adjust.
35459 * tree-ssa-alias.c: Adjust.
35460 * tree-ssa-live.c: Adjust.
35461 * tree-ssa.c: Adjust.
35462 * tree-ssanames.c: Adjust.
35463 * tree-tailcall.c: Adjust.
35464
35465 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
35466
35467 PR debug/47106
35468 PR debug/47402
35469 * tree-flow.h (referenced_var_lookup): Add fn parameter.
35470 Adjust all callers.
35471 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
35472 * tree-flow-inline.h: Adjust.
35473 * gimple-pretty-print.c: Adjust.
35474 * tree-into-ssa.c: Adjust.
35475 * tree-ssa.c: Adjust.
35476 * cfgexpand.c: Adjust.
35477
35478 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
35479
35480 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
35481 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35482 (EXTRA_CONSTRAINT): Delete.
35483 * config/iq2000/constraints.md: New file.
35484 * config/iq2000/iq2000.md: Include it.
35485 (define_insn ""): Delete.
35486 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
35487 unsupported constraint letters from patterns.
35488 (call_value, call_value_internal1): Likewise.
35489 (call_value_multiple_internal1): Likewise.
35490
35491 2011-02-15 Nick Clifton <nickc@redhat.com>
35492
35493 * config/mn10300/mn10300.c: Include tm-constrs.h.
35494 (struct liw_data): New data structure describing an LIW candidate
35495 instruction.
35496 (extract_bundle): Use struct liw_data. Allow small integer
35497 operands for some instructions.
35498 (check_liw_constraints): Use struct liw_data. Remove swapped
35499 parameter. Add comments describing the checks. Fix bug when
35500 assigning the source of liw1 to the source of liw2.
35501 (liw_candidate): Delete. Code moved into extract_bundle.
35502 (mn10300_bundle_liw): Use struct liw_data. Check constraints
35503 before swapping.
35504 * config/mn10300/predicates.md (liw_operand): New predicate.
35505 Allows registers and small integer constants.
35506 * config/mn10300/constraints.md (O): New constraint. Accetps
35507 integers in the range -8 to +7 inclusive.
35508 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
35509 for moving a small integer into a register. Give this alternative
35510 LIW attributes.
35511 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
35512 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
35513 using the J,K,L and M constraints,
35514 (liw): Remove SI mode on second operands to allow for HI and QI
35515 mode values.
35516 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
35517 instruction.
35518
35519 2011-02-15 Richard Guenther <rguenther@suse.de>
35520
35521 PR tree-optimization/47743
35522 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
35523 for a non-type-compatible VN lookup bail out.
35524
35525 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
35526
35527 * config/fr30/constraints.md: New file.
35528 * config/fr30/fr30.md: Include it.
35529 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
35530 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35531 (EXTRA_CONSTRAINT): Delete.
35532
35533 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
35534
35535 * config/frv/constraints.md: New file.
35536 * config/frv/predicates.md: Include it.
35537 * config/frv/frv.c (reg_class_from_letter): Delete.
35538 (frv_option_override): Don't initialize it.
35539 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
35540 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
35541 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
35542 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
35543 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
35544 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35545 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
35546 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
35547 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
35548 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
35549 (REG_CLASS_FROM_CONSTRAINT): Delete.
35550
35551 2011-02-15 Jakub Jelinek <jakub@redhat.com>
35552
35553 PR middle-end/47581
35554 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
35555 if frame size is 0 in a leaf function.
35556
35557 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35558
35559 PR pch/14940
35560 * config/alpha/host-osf.c: New file.
35561 * config/alpha/x-osf: New file.
35562 * config.host (alpha*-dec-osf*): Use it.
35563
35564 2011-02-14 Anatoly Sokolov <aesok@post.ru>
35565
35566 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35567 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
35568 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
35569 (rx_mode_dependent_address_p): ...this. Make static. Change argument
35570 type to const_rtx.
35571 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35572
35573 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
35574
35575 * config/stormy16/constraints.md: New file.
35576 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
35577 Use satisfies_constraint_Q and satisfies_constraint_R.
35578 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
35579 Delete.
35580 (xstormy16_legitiamte_address_p): Declare.
35581 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
35582 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35583 (EXTRA_CONSTRAINT): Delete.
35584 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
35585 Un-staticize.
35586 (xstormy16_extra_constraint_p): Delete.
35587
35588 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
35589
35590 PR tree-optimization/46494
35591 * loop-unroll.c (split_edge_and_insert): Adjust comment.
35592 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
35593 (pass_rtl_loop_done): Add TODO_verify_flow.
35594 * fwprop.c (pass_rtl_fwprop): Likewise.
35595 * modulo-sched.c (pass_sms): Likewise.
35596 * tree-ssa-dom.c (pass_dominator): Likewise.
35597 * tree-ssa-loop-ch.c (pass_ch): Likewise.
35598 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
35599 (pass_tree_loop_done): Likewise.
35600 * tree-ssa-pre.c (execute_pre): Likewise.
35601 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
35602 * tree-ssa-sink.c (pass_sink_code): Likewise.
35603 * tree-vrp.c (pass_vrp): Likewise.
35604
35605 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
35606
35607 * config/v850/constraints.md: New file.
35608 * config/v850/v850.md: Include it.
35609 * config/v850/predicates.md (reg_or_0_operand): Use
35610 satisfies_constraint_G.
35611 (special_symbolref_operand): Use satisfies_constraint_K.
35612 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
35613 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
35614 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
35615 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
35616 (EXTRA_CONSTRAINT): Delete.
35617 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
35618 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
35619 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
35620
35621 2011-02-14 Anatoly Sokolov <aesok@post.ru>
35622
35623 PR target/47696
35624 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
35625 description.
35626
35627 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
35628
35629 * config/mcore/constraints.md: New file.
35630 * config/mcore/mcore.md: Include it.
35631 * config/mcore/mcore.c (reg_class_from_letter): Delete.
35632 * config/mcore/mcore.h (reg_class_from_letter): Delete.
35633 (REG_CLASS_FROM_LETTER): Delete.
35634 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
35635 insn_const_int_ok_for_constraint.
35636 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
35637 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
35638 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
35639 (EXTRA_CONSTRAINT): Delete.
35640
35641 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35642
35643 PR ada/41929
35644 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
35645 (IS_SIGHANDLER): Define.
35646 (sparc64_is_sighandler): New function, split off from
35647 sparc64_fallback_frame_state.
35648 (sparc_is_sighandler): New function, split off from
35649 sparc_fallback_frame_state.
35650 (sparc64_fallback_frame_state): Merge with ...
35651 (sparc_fallback_frame_state): ... this into ...
35652 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
35653 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
35654 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
35655 stack instead of hardcoded offsets.
35656
35657 2011-02-14 Andriy Gapon <avg@freebsd.org>
35658
35659 PR target/45808
35660 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
35661
35662 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35663
35664 * configure: Regenerate.
35665
35666 2011-02-12 Joseph Myers <joseph@codesourcery.com>
35667
35668 PR driver/45731
35669 * gcc.c (asm_options): Correct spec matching --target-help.
35670
35671 2011-02-12 Martin Jambor <mjambor@suse.cz>
35672
35673 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
35674 to gimple call error.
35675
35676 2011-02-12 Mike Stump <mikestump@comcast.net>
35677
35678 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
35679 comments in backslash regions.
35680
35681 2011-02-12 Mike Stump <mikestump@comcast.net>
35682 Jakub Jelinek <jakub@redhat.com>
35683 Iain Sandoe <iains@gcc.gnu.org>
35684
35685 PR target/47324
35686 * dwarf2out.c (output_cfa_loc): When required, apply the
35687 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
35688 (output_loc_sequence): Likewise.
35689 (output_loc_operands_raw): Likewise.
35690 (output_loc_sequence_raw): Likewise.
35691 (output_cfa_loc): Likewise.
35692 (output_loc_list): Suppress register number adjustment when
35693 calling output_loc_sequence()
35694 (output_die): Likewise.
35695
35696 2011-02-12 Anatoly Sokolov <aesok@post.ru>
35697
35698 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
35699 Remove macros.
35700 * config/xtensa/xtensa.c (xtensa_register_move_cost,
35701 xtensa_memory_move_cost): New functions.
35702 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
35703
35704 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
35705
35706 PR lto/47225
35707 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
35708 in the current directory.
35709 * configure: Rebuilt.
35710
35711 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
35712
35713 * config/darwin.c (darwin_override_options): Add a hunk missed
35714 from the commit of r168571. Trim comment line lengths and
35715 correct indents of the preceding block.
35716
35717 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
35718
35719 * gcc.c (driver_handle_option): Concatenate the argument to -F with
35720 the switch.
35721
35722 2011-02-11 Joseph Myers <joseph@codesourcery.com>
35723
35724 * common.opt (nostartfiles): New Driver option.
35725
35726 2011-02-11 Xinliang David Li <davidxl@google.com>
35727
35728 PR tree-optimization/47707
35729 * tree-chrec.c (convert_affine_scev): Keep type precision.
35730
35731 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
35732
35733 PR tree-optimization/47420
35734 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
35735
35736 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
35737
35738 PR rtl-optimization/47614
35739 * rtl.h (check_for_inc_dec): Declare.
35740 * dse.c (check_for_inc_dec): Externalize...
35741 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
35742 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
35743
35744 2011-02-11 Joseph Myers <joseph@codesourcery.com>
35745
35746 PR driver/47678
35747 * gcc.c (main): Do not compile inputs if there were errors in
35748 option handling.
35749 * opts-common.c (read_cmdline_option): Check for wrong language
35750 after other error checks.
35751
35752 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
35753
35754 * cgraph.c: Fix comment typos.
35755 * cgraph.h: Likewise.
35756 * cgraphunit.c: Likewise.
35757 * ipa-cp.c: Likewise.
35758 * ipa-inline.c: Likewise.
35759 * ipa-prop.c: Likewise.
35760 * ipa-pure-const.c: Likewise.
35761 * ipa-ref.c: Likewise.
35762 * ipa-reference.c: Likewise.
35763
35764 2011-02-11 Jakub Jelinek <jakub@redhat.com>
35765
35766 PR debug/47684
35767 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
35768
35769 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35770
35771 PR testsuite/47400
35772 * doc/sourcebuild.texi (Require Support): Document
35773 dg-require-ascii-locale.
35774
35775 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
35776
35777 * doc/lto.texi (Write summary): Fix missing parentheses.
35778
35779 2011-02-10 DJ Delorie <dj@redhat.com>
35780
35781 * config/m32c/m32c.c (m32c_option_override): Disable
35782 -fcombine-stack-adjustments until flag value tracking and compare
35783 optimization can be rewritten.
35784
35785 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
35786
35787 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
35788 PROCESSOR_POWER7.
35789 (PROCESSOR_DEFAULT64): Likewise.
35790
35791 2011-02-10 Richard Henderson <rth@redhat.com>
35792
35793 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
35794 change from 2011-02-03.
35795 * config/rx/rx.c (flags_from_code): Likewise.
35796 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
35797 is valid, n/pz otherwise.
35798 (rx_select_cc_mode): Return CCmode if Y is not zero.
35799
35800 2011-02-10 Richard Guenther <rguenther@suse.de>
35801
35802 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
35803
35804 2011-02-10 Richard Guenther <rguenther@suse.de>
35805
35806 PR tree-optimization/47677
35807 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
35808
35809 2011-02-10 Jakub Jelinek <jakub@redhat.com>
35810
35811 PR target/47665
35812 * combine.c (make_compound_operation): Only change shifts into
35813 multiplication for SCALAR_INT_MODE_P.
35814
35815 2011-02-10 Jie Zhang <jie@codesourcery.com>
35816
35817 PR testsuite/47622
35818 Revert
35819 2011-02-05 Jie Zhang <jie@codesourcery.com>
35820 PR debug/42631
35821 * web.c (entry_register): Don't clobber the number of the
35822 first uninitialized reference in used[].
35823
35824 2011-02-09 Richard Guenther <rguenther@suse.de>
35825
35826 PR tree-optimization/47664
35827 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
35828 all edges again.
35829
35830 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
35831
35832 PR target/46481
35833 PR target/47032
35834 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
35835 PROCESSOR_POWER7.
35836 (PROCESSOR_DEFAULT64): Same.
35837 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
35838
35839 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35840
35841 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
35842
35843 2011-02-09 Martin Jambor <mjambor@suse.cz>
35844
35845 PR middle-end/45505
35846 * tree-sra.c (struct access): New flags grp_scalar_read and
35847 grp_scalar_write. Changed description of assignment read and write
35848 flags.
35849 (dump_access): Dump new flags, reorder all of them.
35850 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
35851 to detect multiple scalar reads.
35852 (analyze_access_subtree): Use the new scalar read write flags instead
35853 of the old flags. Adjusted comments.
35854
35855 2011-02-08 DJ Delorie <dj@redhat.com>
35856
35857 PR target/47548
35858 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
35859 patterns.
35860
35861 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35862
35863 * config/m68k/uclinux.opt: New.
35864 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
35865
35866 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35867
35868 * config/cris/elf.opt (sim): New Driver option.
35869
35870 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35871
35872 * config/xtensa/elf.opt: New.
35873 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
35874
35875 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35876
35877 * config/vax/elf.opt: New.
35878 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
35879
35880 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35881
35882 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
35883
35884 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35885
35886 * config/gnu-user.opt: New.
35887 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
35888 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
35889 *-*-uclinux*): Use gnu-user.opt.
35890
35891 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
35892
35893 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
35894 * config/i386/gnu.h (CPP_SPEC): Likewise.
35895
35896 2011-02-08 Ian Lance Taylor <iant@google.com>
35897
35898 * common.opt (fcx-limited-range): Add SetByCombined flag.
35899 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
35900 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
35901 (fassociative-math, freciprocal-math): Likewise.
35902 (funsafe-math-optimizations): Likewise.
35903 * opth-gen.awk: Handle SetByCombined.
35904 * optc-gen.awk: Likewise.
35905 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
35906 (set_unsafe_math_optimizations_flags): Likewise.
35907 * doc/options.texi (Option properties): Document SetByCombined.
35908
35909 2011-02-08 Joseph Myers <joseph@codesourcery.com>
35910
35911 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
35912 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
35913 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
35914 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
35915 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
35916
35917 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
35918
35919 PR tree-optimization/46834
35920 PR tree-optimization/46994
35921 PR tree-optimization/46995
35922 * graphite-sese-to-poly.c (used_outside_reduction): New.
35923 (detect_commutative_reduction): Call used_outside_reduction.
35924 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
35925 translate_scalar_reduction_to_array only when at least one
35926 loop-phi/close-phi tuple has been detected.
35927
35928 2011-02-08 Richard Guenther <rguenther@suse.de>
35929
35930 PR middle-end/47639
35931 * tree-vect-generic.c (expand_vector_operations_1): Update
35932 stmts here ...
35933 (expand_vector_operations): ... not here. Cleanup EH info
35934 and the CFG if required.
35935
35936 2011-02-08 Richard Guenther <rguenther@suse.de>
35937
35938 PR tree-optimization/47641
35939 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
35940 require type compatibility.
35941
35942 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35943
35944 * gimple-low.c (lower_function_body): Don't remove the location of
35945 the return statement here.
35946 (lower_gimple_return): Do it here instead but only if the return
35947 statement is actually used twice.
35948
35949 2011-02-08 Richard Guenther <rguenther@suse.de>
35950
35951 PR tree-optimization/47632
35952 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
35953 unused up_to_stmt parameter, return whether cfg-cleanup is
35954 necessary, remove EH info properly.
35955 (forward_propagate_into_gimple_cond): Adjust caller.
35956 (forward_propagate_into_cond): Likewise.
35957 (forward_propagate_comparison): Likewise.
35958 (tree_ssa_forward_propagate_single_use_vars): Make
35959 forward_propagate_comparison case similar to the two others.
35960
35961 2011-02-08 Nick Clifton <nickc@redhat.com>
35962
35963 * config/mn10300/mn10300.opt (mliw): New command line option.
35964 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
35965 (liw_bundling): New automaton.
35966 (liw): New attribute.
35967 (liw_op): New attribute.
35968 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
35969 (movsi_internal): Add LIW attributes.
35970 (andsi3): Likewise.
35971 (iorsi3): Likewise.
35972 (xorsi3): Likewise.
35973 (addsi3): Separate register and immediate alternatives.
35974 Add LIW attributes.
35975 (subsi3): Likewise.
35976 (cmpsi): Likewise.
35977 (aslsi3): Likewise.
35978 (lshrsi3): Likewise.
35979 (ashrsi3): Likewise.
35980 (liw): New pattern.
35981 * config/mn10300/mn10300.c (liw_op_names): New
35982 (mn10300_print_operand): Handle 'W' operand descriptor.
35983 (extract_bundle): New function.
35984 (check_liw_constraints): New function.
35985 (liw_candidate): New function.
35986 (mn10300_bundle_liw): New function.
35987 (mn10300_reorg): New function.
35988 (TARGET_MACHINE_DEPENDENT_REORG): Define.
35989 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
35990 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
35991 __LIW__ or __NO_LIW__.
35992 * doc/invoke.texi: Describe the -mliw command line option.
35993
35994 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35995
35996 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
35997 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
35998 pthread_mutex_unlock): Remove.
35999 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
36000 * config/pa/t-pa64: Likewise.
36001 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
36002 shared libc if not linking against libpthread.
36003 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
36004
36005 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
36006
36007 PR target/47558
36008 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
36009 on 10.6 and later to ensure that we always use the unwinder from
36010 the system. Only add -no_compact_unwind when tarteting darwin
36011 10.6 or later.
36012
36013 2011-02-07 Steve Ellcey <sje@cup.hp.com>
36014
36015 PR target/46997
36016 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
36017 (vec_interleave_lowv2sf): Ditto.
36018 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
36019 (vec_extract_oddv2sf): Ditto.
36020
36021 2011-02-07 Mike Stump <mikestump@comcast.net>
36022
36023 PR target/42333
36024 Add __ieee_divdc3 entry point.
36025 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
36026 entry point.
36027 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
36028 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
36029 * config/darwin.c (darwin_rename_builtins): Add.
36030 * config/darwin-protos.h (darwin_rename_builtins): Add.
36031
36032 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
36033
36034 PR target/47636
36035 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
36036 for the condition.
36037
36038 2011-02-07 Mike Stump <mikestump@comcast.net>
36039
36040 * config/darwin.opt (mmacosx-version-min): Update default OS version.
36041
36042 2011-02-07 Denis Chertykov <chertykov@gmail.com>
36043
36044 PR target/47534
36045 * config/avr/libgcc.S (exit): Move .endfunc
36046
36047 2011-02-07 Richard Guenther <rguenther@suse.de>
36048
36049 PR tree-optimization/47615
36050 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
36051 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
36052 (run_scc_vn): Initialize it.
36053 (visit_reference_op_load): Use it.
36054 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
36055
36056 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36057
36058 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
36059 DImode trapping arithmetic libfuncs.
36060
36061 2011-02-07 Richard Guenther <rguenther@suse.de>
36062
36063 PR tree-optimization/47621
36064 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
36065 two duplicates ...
36066 (execute_update_addresses_taken): ... here. Make it more
36067 conservative in what we accept.
36068
36069 2011-02-06 Joseph Myers <joseph@codesourcery.com>
36070
36071 * config/sparc/freebsd.h (ASM_SPEC): Define.
36072 * config/sparc/vxworks.h (ASM_SPEC): Define.
36073
36074 2011-02-06 Joseph Myers <joseph@codesourcery.com>
36075
36076 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
36077
36078 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
36079
36080 * doc/invoke.texi: Remove reference to compiler internals from
36081 user documentation.
36082
36083 * reg-notes.def: Remove REG_VALUE_PROFILE.
36084 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
36085
36086 2011-02-05 Jakub Jelinek <jakub@redhat.com>
36087
36088 PR middle-end/47610
36089 * varasm.c (default_section_type_flags): If decl is NULL,
36090 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
36091
36092 2011-02-05 Jie Zhang <jie@codesourcery.com>
36093
36094 PR debug/42631
36095 * web.c (entry_register): Don't clobber the number of the
36096 first uninitialized reference in used[].
36097
36098 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
36099
36100 PR tree-optimization/46194
36101 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
36102 (build_classic_dist_vector_1): Do not represent classic distance
36103 vectors when the access functions are variating in different loops.
36104
36105 2011-02-04 Joseph Myers <joseph@codesourcery.com>
36106
36107 * config/mips/iris6.opt: New.
36108 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
36109
36110 2011-02-04 Richard Henderson <rth@redhat.com>
36111 Steve Ellcey <sje@cup.hp.com>
36112
36113 PR target/46997
36114 * config/ia64/predicates.md (mux1_brcst_element): New.
36115 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
36116 * config/ia64/ia64.c (ia64_unpack_assemble): New.
36117 (ia64_unpack_sign): New.
36118 (ia64_expand_unpack): Rewrite using new routines.
36119 (ia64_expand_widen_sum): Ditto.
36120 (ia64_expand_dot_prod_v8qi): Ditto.
36121 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
36122 routines, add endian check.
36123 (pmpy2_even): Rename from pmpy2_r, add endian check.
36124 (pmpy2_odd): Rename from pmpy2_l, add endian check.
36125 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
36126 (vec_widen_smult_hi_v4hi): Ditto.
36127 (vec_widen_umult_lo_v4hi): Ditto.
36128 (vec_widen_umult_hi_v4hi): Ditto.
36129 (mulv2si3): Change endian checks.
36130 (sdot_prodv4hi): Rewrite with new calls.
36131 (udot_prodv4hi): New.
36132 (vec_pack_ssat_v4hi): Add endian check.
36133 (vec_pack_usat_v4hi): Ditto.
36134 (vec_pack_ssat_v2si): Ditto.
36135 (max1_even): Rename from max1_r, add endian check.
36136 (max1_odd): Rename from max1_l, add endian check.
36137 (*mux1_rev): Format change.
36138 (*mux1_mix): Ditto.
36139 (*mux1_shuf): Ditto.
36140 (*mux1_alt): Ditto.
36141 (*mux1_brcst_v8qi): Use new predicate.
36142 (vec_extract_evenv8qi): Remove endian check.
36143 (vec_extract_oddv8qi): Ditto.
36144 (vec_interleave_lowv4hi): Format change.
36145 (vec_interleave_highv4hi): Ditto.
36146 (mix2_even): Rename from mix2_r, add endian check.
36147 (mix2_odd): Rename from mux2_l, add endian check.
36148 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
36149 (vec_extract_evenodd_helper): Format change.
36150 (vec_extract_evenv4hi): Remove endian check.
36151 (vec_extract_oddv4hi): Remove endian check.
36152 (vec_interleave_lowv2si): Format change.
36153 (vec_interleave_highv2si): Format change.
36154 (vec_initv2si): Remove endian check.
36155 (vecinit_v2si): Add endian check.
36156 (reduc_splus_v2sf): Add endian check.
36157 (reduc_smax_v2sf): Ditto.
36158 (reduc_smin_v2sf): Ditto.
36159 (vec_initv2sf): Remove endian check.
36160 (fpack): Add endian check.
36161 (fswap): Add endian check.
36162 (vec_interleave_highv2sf): Add endian check.
36163 (vec_interleave_lowv2sf): Add endian check.
36164 (fmix_lr): Add endian check.
36165 (vec_setv2sf): Format change.
36166 (*vec_extractv2sf_0_be): Use shift to extract operand.
36167 (*vec_extractv2sf_1_be): New.
36168 (vec_pack_trunc_v4hi): Add endian check.
36169 (vec_pack_trunc_v2si): Format change.
36170
36171 2011-02-04 Jakub Jelinek <jakub@redhat.com>
36172
36173 PR inline-asm/23200
36174 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
36175 do bb, locus and block comparison and disallow loads if it is not set.
36176 (stmt_is_replaceable_p): New function.
36177 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
36178 callers.
36179 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
36180 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
36181 SSA_NAME_DEF_STMT.
36182 * tree-flow.h (stmt_is_replaceable_p): New prototype.
36183
36184 2011-02-04 Joseph Myers <joseph@codesourcery.com>
36185
36186 * config/rs6000/xilinx.opt: New.
36187 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
36188
36189 2011-02-04 Joseph Myers <joseph@codesourcery.com>
36190
36191 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
36192
36193 2011-02-03 Anatoly Sokolov <aesok@post.ru>
36194
36195 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
36196 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
36197 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
36198 secondary_reload_info, xtensa_secondary_reload): Remove.
36199 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
36200 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
36201 (xtensa_preferred_reload_class): Make static. Change return and
36202 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
36203 Use CONST_DOUBLE_P predicate.
36204 (xtensa_preferred_output_reload_class): New function.
36205 (xtensa_secondary_reload): Make static.
36206
36207 2011-02-03 Joseph Myers <joseph@codesourcery.com>
36208
36209 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
36210 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
36211 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
36212
36213 2011-02-03 Jakub Jelinek <jakub@redhat.com>
36214
36215 PR middle-end/31490
36216 * output.h (SECTION_RELRO): Define.
36217 (SECTION_MACH_DEP): Adjust.
36218 (get_variable_section): New prototype.
36219 * varpool.c (varpool_finalize_named_section_flags): New function.
36220 (varpool_assemble_pending_decls): Call it.
36221 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
36222 * cgraphunit.c (cgraph_output_in_order): Call
36223 varpool_finalize_named_section_flags.
36224 * varasm.c (get_section): Allow section flags conflicts between
36225 relro and read-only sections if the section hasn't been declared yet.
36226 Set SECTION_OVERRIDE after diagnosing section type conflict.
36227 (get_variable_section): No longer static.
36228 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
36229 readonly sections that need relocations.
36230 (decl_readonly_section_1): New function.
36231 (decl_readonly_section): Use it.
36232
36233 Revert:
36234 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
36235 Steve Ellcey <sje@cup.hp.com>
36236
36237 PR middle-end/31490
36238 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
36239 if section attribute used.
36240
36241 2011-02-03 Jakub Jelinek <jakub@redhat.com>
36242
36243 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
36244 * config/darwin.c (SECTION_NO_ANCHOR): Define.
36245 (darwin_init_sections): Remove assertion.
36246
36247 2011-02-03 Nick Clifton <nickc@redhat.com>
36248
36249 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
36250 lt and ge.
36251 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
36252 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
36253 instead of "n" and "pz".
36254 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
36255 CC_FLAG_S.
36256
36257 2011-02-03 Jakub Jelinek <jakub@redhat.com>
36258
36259 PR target/47312
36260 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
36261 fma, expand FMA_EXPR as fma{,f,l} call.
36262
36263 PR lto/47274
36264 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
36265 copy them into a unsigned char variable and pass address of it to
36266 lto_output_data_stream.
36267
36268 PR target/47564
36269 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
36270 around backend_init_target and lang_dependent_init_target calls.
36271 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
36272 (verify_cgraph_node): Don't call set_cfun here. Use
36273 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
36274 Set error_found for incorrectly represented calls to thunks.
36275
36276 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
36277
36278 PR debug/43092
36279 PR rtl-optimization/43494
36280 * rtl.h (for_each_inc_dec_fn): New type.
36281 (for_each_inc_dec): Declare.
36282 * rtlanal.c (struct for_each_inc_dec_ops): New type.
36283 (for_each_inc_dec_find_inc_dec): New fn.
36284 (for_each_inc_dec_find_mem): New fn.
36285 (for_each_inc_dec): New fn.
36286 * dse.c (struct insn_size): Remove.
36287 (replace_inc_dec, replace_inc_dec_mem): Remove.
36288 (emit_inc_dec_insn_before): New fn.
36289 (check_for_inc_dec): Use it, along with for_each_inc_dec.
36290 (canon_address): Pass mem modes to cselib_lookup.
36291 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
36292 (cselib_lookup_from_insn): Likewise.
36293 (cselib_subst_to_values): Likewise.
36294 * cselib.c (find_slot_memmode): New var.
36295 (cselib_find_slot): New fn. Use it instead of
36296 htab_find_slot_with_hash everywhere.
36297 (entry_and_rtx_equal_p): Use find_slot_memmode.
36298 (autoinc_split): New fn.
36299 (rtx_equal_for_cselib_p): Rename and implement in terms of...
36300 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
36301 Deal with autoinc. Special-case recursion into MEMs.
36302 (cselib_hash_rtx): Likewise.
36303 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
36304 address and MEM modes.
36305 (cselib_subst_to_values): Add memmode, pass it on.
36306 Deal with autoinc.
36307 (cselib_lookup): Add memmode argument, pass it on.
36308 (cselib_lookup_from_insn): Add memmode.
36309 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
36310 (struct cselib_record_autoinc_data): New.
36311 (cselib_record_autoinc_cb): New fn.
36312 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
36313 mode to cselib_lookup. Reset autoinced REGs here instead of...
36314 (cselib_process_insn): ... here.
36315 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
36316 to cselib_lookup.
36317 (add_uses): Likewise, also to cselib_subst_to_values.
36318 (add_stores): Likewise.
36319 * sched-deps.c (add_insn_mem_dependence): Pass mode to
36320 cselib_subst_to_values.
36321 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
36322 * gcse.c (do_local_cprop): Adjusted.
36323 * postreload.c (reload_cse_simplify_set): Adjusted.
36324 (reload_cse_simplify_operands): Adjusted.
36325 * sel-sched-dump (debug_mem_addr_value): Pass mode.
36326
36327 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
36328
36329 PR tree-optimization/45122
36330 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
36331 unsafe assumptions when there's more than one loop exit.
36332
36333 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36334
36335 PR target/47272
36336 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36337 Document using vector double with the load/store builtins, and
36338 that the load/store builtins always use Altivec instructions.
36339
36340 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
36341 to use altivec memory instructions, even on VSX.
36342 (vector_altivec_store_<mode>): Ditto.
36343
36344 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
36345 function.
36346
36347 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36348 V2DF, V2DI support to load/store overloaded builtins.
36349
36350 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
36351 altivec load/store builtins for V2DF/V2DI types.
36352
36353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
36354 set avoid indexed addresses on power6 if -maltivec.
36355 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
36356 vector_altivec_load/vector_altivec_store builtins.
36357 (altivec_expand_st_builtin): Ditto.
36358 (altivec_expand_builtin): Add VSX memory builtins.
36359 (rs6000_init_builtins): Add V2DI types to internal types.
36360 (altivec_init_builtins): Add support for V2DF/V2DI altivec
36361 load/store builtins.
36362 (rs6000_address_for_altivec): Insure memory address is appropriate
36363 for Altivec.
36364
36365 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
36366 vec_vsx_ld and vec_vsx_st.
36367 (vsx_store_<mode>): Ditto.
36368
36369 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
36370 variables to hold long long types for VSX vector memory builtins.
36371 (RS6000_BTI_unsigned_long_long): Ditto.
36372 (long_long_integer_type_internal_node): Ditti.
36373 (long_long_unsigned_type_internal_node): Ditti.
36374
36375 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
36376 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
36377 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
36378
36379 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
36380 short cuts.
36381 (vec_vsx_st): Ditto.
36382
36383 2011-02-02 Joseph Myers <joseph@codesourcery.com>
36384
36385 * config/pa/pa-hpux10.opt: New.
36386 * config/hpux11.opt (pthread): New Driver option.
36387 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
36388 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
36389
36390 2011-02-02 Joseph Myers <joseph@codesourcery.com>
36391
36392 * config/ia64/vms.opt: New.
36393 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
36394
36395 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
36396
36397 PR target/47580
36398 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
36399 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
36400 generator functions.
36401 (vsx_floatuns<VSi><mode>2): Ditto.
36402 (vsx_fix_trunc<mode><VSi>2): Ditto.
36403 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
36404
36405 2011-02-02 Joseph Myers <joseph@codesourcery.com>
36406
36407 * config/i386/djgpp.opt (posix): New Driver option.
36408
36409 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
36410
36411 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
36412 Move to the unsupported targets list.
36413
36414 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
36415
36416 PR rtl-optimization/47525
36417 * df-scan.c: Update copyright years.
36418 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
36419 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
36420
36421 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36422
36423 * config/i386/sysv4.h (TARGET_VERSION): Remove.
36424 (SUBTARGET_RETURN_IN_MEMORY): Remove.
36425 (ASM_OUTPUT_ASCII): Remove.
36426 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
36427
36428 2011-02-02 Jeff Law <law@redhat.com>
36429
36430 PR middle-end/47543
36431 * reload.c (find_reloads_address): Handle reg+d address where both
36432 components are invalid by reloading the entire address.
36433
36434 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
36435 Richard Guenther <rguenther@suse.de>
36436
36437 PR tree-optimization/40979
36438 PR bootstrap/47044
36439 * passes.c (init_optimization_passes): After LIM call copy_prop
36440 and DCE to clean up.
36441 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
36442
36443 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
36444
36445 PR tree-optimization/47576
36446 PR tree-optimization/47555
36447 * doc/invoke.texi (scev-max-expr-complexity): Documented.
36448 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
36449 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
36450 * tree-scalar-evolution.c (follow_ssa_edge): Use
36451 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
36452
36453 2011-02-02 Richard Guenther <rguenther@suse.de>
36454
36455 PR tree-optimization/47566
36456 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
36457
36458 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
36459
36460 PR debug/47106
36461 PR debug/47402
36462 * tree-inline.c (declare_return_variable): Remove unused caller
36463 variable.
36464
36465 PR debug/47106
36466 PR debug/47402
36467 * tree-flow-inline.h (clear_is_used, is_used_p): New.
36468 * cfgexpand.c (account_used_vars_for_block): Use them.
36469 * tree-nrv.c (tree_nrv): Likewise.
36470 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
36471 (dump_scope_block): Likewise.
36472 (remove_unused_locals): Likewise.
36473
36474 PR debug/47106
36475 PR debug/47402
36476 * tree-inline.c (declare_return_variable): Add result decl to
36477 local decls only once.
36478 * gimple-low.c (record_vars_into): Mark newly-created variables
36479 as referenced.
36480
36481 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
36482
36483 PR debug/47498
36484 PR debug/47501
36485 PR debug/45136
36486 PR debug/45130
36487 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36488 debug insns.
36489 (no_real_insns_p, schedule_block, set_priorities): Drop special
36490 treatment of boundary debug insns.
36491 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36492 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
36493 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36494 (BOUNDARY_DEBUG_INSN_P): Likewise.
36495 (SCHEDULE_DEBUG_INSN_P): Likewise.
36496 * sched-rgn.c (init_ready_list): Drop special treatment of
36497 boundary debug insns.
36498 * final.c (rest_of_clean_state): Clear notes' BB.
36499
36500 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36501
36502 * config/openbsd.opt (assert=): New Driver option.
36503
36504 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36505
36506 * config/i386/nto.opt: New.
36507 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
36508
36509 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36510
36511 * config/i386/netware.opt: New.
36512 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
36513
36514 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36515
36516 * config/interix.opt (posix): New Driver option.
36517
36518 2011-02-01 DJ Delorie <dj@redhat.com>
36519
36520 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
36521
36522 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
36523 class for A0/A1.
36524
36525 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
36526
36527 PR tree-optimization/47561
36528 * toplev.c (process_options): Print the Graphite flags. Add
36529 flag_loop_flatten to the list of options requiring Graphite.
36530
36531 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36532
36533 * config/i386/cygming.opt (posix): New Driver option.
36534
36535 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36536
36537 * config/arm/vxworks.opt: New.
36538 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
36539
36540 2011-02-01 Joseph Myers <joseph@codesourcery.com>
36541
36542 * config/alpha/elf.opt: New.
36543 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
36544 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
36545
36546 2011-02-01 Richard Guenther <rguenther@suse.de>
36547
36548 PR tree-optimization/47559
36549 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
36550 store-motion on references that can throw.
36551
36552 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
36553
36554 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
36555 * tree-pass.h (TDF_CSELIB): New macro.
36556 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
36557 cselib_lookup): Check for it rather than for TDF_DETAILS.
36558
36559 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
36560
36561 PR driver/47547
36562 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
36563 is HOST_BIT_BUCKET.
36564
36565 * opts.c (finish_options): Don't add x_aux_base_name if it is
36566 HOST_BIT_BUCKET.
36567
36568 2011-02-01 Richard Guenther <rguenther@suse.de>
36569
36570 PR tree-optimization/47555
36571 Revert
36572 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
36573
36574 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
36575
36576 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
36577
36578 PR gcc/46692
36579 * config/lm32/t-lm32: Add multilib for all CPU options.
36580
36581 2011-02-01 Richard Guenther <rguenther@suse.de>
36582
36583 PR tree-optimization/47541
36584 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
36585 sure to have a field at offset zero.
36586
36587 2011-01-31 Joseph Myers <joseph@codesourcery.com>
36588
36589 * config/arc/arc.opt (EB, EL): New Driver options.
36590
36591 2011-01-31 Joseph Myers <joseph@codesourcery.com>
36592
36593 * config/alpha/osf5.opt: New.
36594 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
36595
36596 2011-01-31 Joseph Myers <joseph@codesourcery.com>
36597
36598 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
36599
36600 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
36601
36602 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
36603 -floop-interchange.
36604 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
36605 is an alias of -floop-interchange and that it requires the
36606 Graphite infrastructure.
36607 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
36608 flag_loop_interchange based on the value of flag_tree_loop_linear.
36609
36610 2011-01-31 Jakub Jelinek <jakub@redhat.com>
36611 Richard Guenther <rguenther@suse.de>
36612
36613 PR tree-optimization/47538
36614 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
36615 type instead of r1type, except for comparisons. For right
36616 shifts and comparisons punt if there are mismatches in
36617 sizetype vs. non-sizetype types.
36618
36619 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36620
36621 * doc/sourcebuild.texi (Effective-Target Keywords): Document
36622 avx_runtime.
36623
36624 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36625
36626 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
36627 version number.
36628 * configure: Regenerate.
36629
36630 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36631
36632 * configure.ac (gcc_cv_ld_static_option): Define.
36633 (gcc_cv_ld_dynamic_option): Define.
36634 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
36635 instead.
36636 (HAVE_LD_STATIC_DYNAMIC): Update message.
36637 (LD_STATIC_OPTION): Define.
36638 (LD_DYNAMIC_OPTION): Define.
36639 * configure: Regenerate.
36640 * config.in: Regenerate.
36641 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
36642 HAVE_LD_STATIC_DYNAMIC]: Use them.
36643
36644 2011-01-31 Nick Clifton <nickc@redhat.com>
36645
36646 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
36647 registers inside interrupt handlers if the handler is not a leaf
36648 function.
36649
36650 2011-01-31 Nick Clifton <nickc@redhat.com>
36651
36652 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
36653 reg_renumber returning an INVALID_REGNUM.
36654
36655 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
36656
36657 PR libgcj/44341
36658 * doc/install.texi: Document host options discarded when cross
36659 configuring target libraries.
36660
36661 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
36662
36663 Reverted:
36664 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
36665 PR debug/45136
36666 PR debug/45130
36667 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36668 debug insns.
36669 (no_real_insns_p, schedule_block, set_priorities): Drop special
36670 treatment of boundary debug insns.
36671 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36672 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
36673 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36674 (BOUNDARY_DEBUG_INSN_P): Likewise.
36675 (SCHEDULE_DEBUG_INSN_P): Likewise.
36676 * sched-rgn.c (init_ready_list): Drop special treatment of
36677 boundary debug insns.
36678 * final.c (rest_of_clean-state): Clear notes' BB.
36679
36680 2011-01-31 Alan Modra <amodra@gmail.com>
36681
36682 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
36683 toc relative expressions as we do in print_operand_address.
36684
36685 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
36686
36687 * doc/extend.texi: Follow spelling conventions.
36688 * doc/invoke.texi: Fix a typo.
36689
36690 2011-01-30 Joseph Myers <joseph@codesourcery.com>
36691
36692 * config/hpux11.opt: New.
36693 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
36694 ia64*-*-hpux*): Use hpux11.opt.
36695
36696 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
36697
36698 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
36699 to tmake_file.
36700
36701 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
36702
36703 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
36704 support sites.
36705
36706 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
36707
36708 * doc/install.texi (Binaries): Remove outdated reference for
36709 Motorola 68HC11/68HC12 downloads.
36710
36711 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
36712
36713 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
36714 Drepper's paper.
36715
36716 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
36717
36718 PR bootstrap/47147
36719 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
36720 used by NetBSD.
36721
36722 2011-01-28 Ahmad Sharif <asharif@google.com>
36723
36724 * value-prof.c (check_counter): Corrected error message.
36725
36726 2011-01-29 Jie Zhang <jie@codesourcery.com>
36727
36728 * config/arm/arm.c (arm_legitimize_reload_address): New.
36729 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
36730 arm_legitimize_reload_address.
36731 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
36732
36733 2011-01-28 Ian Lance Taylor <iant@google.com>
36734
36735 * godump.c (go_define): Ignore macros whose definitions include
36736 two adjacent operands.
36737
36738 2011-01-28 Jakub Jelinek <jakub@redhat.com>
36739
36740 PR target/42894
36741 * varasm.c (force_const_mem): Store copy of x in desc->constant
36742 instead of x itself.
36743 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
36744 itself into REG_EQUAL note.
36745
36746 2011-01-28 Joseph Myers <joseph@codesourcery.com>
36747
36748 * config/freebsd.opt (posix, rdynamic): New Driver options.
36749
36750 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36751
36752 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
36753 -Bstatic/-Bdynamic.
36754 * configure: Regenerate.
36755
36756 2011-01-27 Joseph Myers <joseph@codesourcery.com>
36757
36758 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
36759 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
36760
36761 2011-01-27 Anatoly Sokolov <aesok@post.ru>
36762
36763 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
36764 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
36765 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
36766 (s390_preferred_reload_class): Make static. Change return and
36767 'rclass' argument type to reg_class_t.
36768
36769 2011-01-27 Jan Hubicka <jh@suse.cz>
36770
36771 PR middle-end/46949
36772 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
36773 (process_function_and_variable_attributes): Check defined weakrefs.
36774
36775 2011-01-27 Martin Jambor <mjambor@suse.cz>
36776
36777 PR tree-optimization/47228
36778 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
36779 build_ref_for_offset.
36780
36781 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36782
36783 * config/spu/spu-elf.h (ASM_SPEC): Remove.
36784
36785 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
36786
36787 PR rtl-optimization/46856
36788 * postreload.c (reload_combine_recognize_const_pattern): Do not
36789 separate cc0 setter and user on cc0 targets.
36790
36791 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
36792
36793 PR c/43082
36794 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
36795 passed a VOID_TYPE expression, immediately emit an error and
36796 return error_mark_node.
36797
36798 2011-01-26 Jeff Law <law@redhat.com>
36799
36800 PR rtl-optimization/47464
36801 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
36802 rather than may_trap_p as needed.
36803
36804 2011-01-26 DJ Delorie <dj@redhat.com>
36805
36806 PR rtl-optimization/46878
36807 * combine.c (insn_a_feeds_b): Check for the implicit cc0
36808 setter/user dependency as well.
36809
36810 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
36811
36812 PR rtl-optimization/44469
36813 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
36814 after removing trivially dead basic blocks.
36815
36816 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36817
36818 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
36819 * config/frv/frv.h (LINK_SPEC): Likewise.
36820 * config/i386/netware.h (LINK_SPEC): Likewise.
36821 * config/m68k/linux.h (ASM_SPEC): Likewise.
36822 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
36823 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
36824 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36825 * config/sparc/linux.h (ASM_SPEC): Likewise.
36826 * config/sparc/linux64.h (ASM_SPEC): Likewise.
36827 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36828
36829 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36830
36831 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
36832 * config/frv/frv.h (ASM_SPEC): Likewise.
36833 * config/m68k/linux.h (ASM_SPEC): Likewise.
36834 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
36835 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
36836 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36837 * config/sparc/linux.h (ASM_SPEC): Likewise.
36838 * config/sparc/linux64.h (ASM_SPEC): Likewise.
36839 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36840
36841 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36842
36843 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
36844 * config/frv/frv.h (LINK_SPEC): Likewise.
36845 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
36846
36847 2011-01-26 Joseph Myers <joseph@codesourcery.com>
36848
36849 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
36850 * config/frv/frv.h (ASM_SPEC): Likewise.
36851 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
36852 * config/m68k/linux.h (ASM_SPEC): Likewise.
36853 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
36854 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
36855 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
36856 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
36857 * config/sparc/linux.h (ASM_SPEC): Likewise.
36858 * config/sparc/linux64.h (ASM_SPEC): Likewise.
36859 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
36860 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
36861
36862 2011-01-26 Steve Ellcey <sje@cup.hp.com>
36863
36864 PR target/46997
36865 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
36866 (*mux2): Ditto.
36867 (vec_extract_evenodd_help): Ditto.
36868 (vec_extract_evenv4hi): Ditto.
36869 (vec_extract_oddv4hi): Ditto.
36870 (vec_interleave_lowv2si): Ditto.
36871 (vec_interleave_highv2si): Ditto.
36872 (vec_extract_evenv2si): Ditto.
36873 (vec_extract_oddv2si: Ditto.
36874 (vec_pack_trunc_v2si): Ditto.
36875
36876 2011-01-22 Jan Hubicka <jh@suse.cz>
36877
36878 PR target/47237
36879 * cgraph.h (cgraph_local_info): New field can_change_signature.
36880 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
36881 signature can change.
36882 (ipcp_estimate_growth): Call sequence simplify only if calle signature
36883 can change.
36884 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
36885 (cgraph_function_versioning): We can not change signature of functions
36886 that don't allow that.
36887 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
36888 (lto_input_node): Likewise.
36889 * ipa-inline.c (compute_inline_parameters): Compute
36890 local.can_change_signature.
36891 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
36892 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
36893 functions that can not change signature.
36894 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
36895 init_cumulative_args): Do not use local calling conventions
36896 for functions that can not change signature.
36897
36898 2011-01-22 Jan Hubicka <jh@suse.cz>
36899
36900 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
36901
36902 2011-01-26 Richard Guenther <rguenther@suse.de>
36903
36904 PR tree-optimization/47190
36905 * cgraphunit.c (process_common_attributes): New function.
36906 (process_function_and_variable_attributes): Use it.
36907
36908 2011-01-26 Richard Guenther <rguenther@suse.de>
36909
36910 PR lto/47423
36911 * cgraphbuild.c (record_eh_tables): Record reference to personality
36912 function.
36913
36914 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
36915
36916 PR debug/45454
36917 * sel-sched.c (moveup_expr): Don't let debug insns prevent
36918 non-debug insns from moving up.
36919
36920 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
36921
36922 PR target/40125
36923 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
36924 t-dlldir{,-x} fragment for build and add it to tmake_file.
36925 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
36926 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
36927 * config/i386/t-dlldir: New file.
36928 (SHLIB_DLLDIR): Define.
36929 * config/i386/t-dlldir-x: New file.
36930 (SHLIB_DLLDIR): Define.
36931 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
36932 (SHLIB_INSTALL): Use it.
36933
36934 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
36935
36936 PR target/47246
36937 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
36938 lower bound of the allowed Thumb-2 coprocessor load/store
36939 index range to -256. Add explaining comment.
36940
36941 2011-01-25 Ian Lance Taylor <iant@google.com>
36942
36943 * godump.c (go_define): Improve lexing of macro expansion to only
36944 accept expressions which match Go spec.
36945
36946 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
36947
36948 PR c++/43601
36949 * tree.c (handle_dll_attribute): Handle it.
36950 * doc/extend.texi (@item dllexport): Mention it.
36951 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
36952
36953 2011-01-25 Ian Lance Taylor <iant@google.com>
36954
36955 PR tree-optimization/26854
36956 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
36957 (decl_jump_unsafe): Move higher in file, with no other change.
36958 (bind): Set has_jump_unsafe_decl if appropriate.
36959 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
36960 (check_earlier_gotos): Likewise.
36961 (c_check_switch_jump_warnings): Likewise.
36962
36963 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
36964
36965 * doc/invoke.texi (Warning Options): Add missing hyphen.
36966 (-fprofile-dir): Minor grammatical fixes.
36967 (-fbranch-probabilities): Likewise.
36968
36969 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
36970
36971 PR debug/45136
36972 PR debug/45130
36973 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
36974 debug insns.
36975 (no_real_insns_p, schedule_block, set_priorities): Drop special
36976 treatment of boundary debug insns.
36977 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
36978 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
36979 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
36980 (BOUNDARY_DEBUG_INSN_P): Likewise.
36981 (SCHEDULE_DEBUG_INSN_P): Likewise.
36982 * sched-rgn.c (init_ready_list): Drop special treatment of
36983 boundary debug insns.
36984 * final.c (rest_of_clean-state): Clear notes' BB.
36985
36986 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
36987
36988 * Makefile.in (LAMBDA_H): Removed.
36989 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
36990 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
36991 lambda-trans.o, and tree-loop-linear.o.
36992 (lto-symtab.o): Remove dependence on LAMBDA_H.
36993 (tree-loop-linear.o): Remove rule.
36994 (lambda-mat.o): Same.
36995 (lambda-trans.o): Same.
36996 (lambda-code.o): Same.
36997 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
36998 (tree-vect-slp.o): Same.
36999 * hwint.h (gcd): Moved here.
37000 (least_common_multiple): Same.
37001 * lambda-code.c: Removed.
37002 * lambda-mat.c: Removed.
37003 * lambda-trans.c: Removed.
37004 * lambda.h: Removed.
37005 * tree-loop-linear.c: Removed.
37006 * lto-symtab.c: Do not include lambda.h.
37007 * omega.c (gcd): Removed.
37008 * passes.c (init_optimization_passes): Remove pass_linear_transform.
37009 * tree-data-ref.c (print_lambda_vector): Moved here.
37010 (lambda_vector_copy): Same.
37011 (lambda_matrix_copy): Same.
37012 (lambda_matrix_id): Same.
37013 (lambda_vector_first_nz): Same.
37014 (lambda_matrix_row_add): Same.
37015 (lambda_matrix_row_exchange): Same.
37016 (lambda_vector_mult_const): Same.
37017 (lambda_vector_negate): Same.
37018 (lambda_matrix_row_negate): Same.
37019 (lambda_vector_equal): Same.
37020 (lambda_matrix_right_hermite): Same.
37021 * tree-data-ref.h: Do not include lambda.h.
37022 (lambda_vector): Moved here.
37023 (lambda_matrix): Same.
37024 (dependence_level): Same.
37025 (lambda_transform_legal_p): Removed declaration.
37026 (lambda_collect_parameters): Same.
37027 (lambda_compute_access_matrices): Same.
37028 (lambda_vector_gcd): Same.
37029 (lambda_vector_new): Same.
37030 (lambda_vector_clear): Same.
37031 (lambda_vector_lexico_pos): Same.
37032 (lambda_vector_zerop): Same.
37033 (lambda_matrix_new): Same.
37034 * tree-flow.h (least_common_multiple): Removed declaration.
37035 * tree-parloops.c (lambda_trans_matrix): Moved here.
37036 (LTM_MATRIX): Same.
37037 (LTM_ROWSIZE): Same.
37038 (LTM_COLSIZE): Same.
37039 (LTM_DENOMINATOR): Same.
37040 (lambda_trans_matrix_new): Same.
37041 (lambda_matrix_vector_mult): Same.
37042 (lambda_transform_legal_p): Same.
37043 * tree-pass.h (pass_linear_transform): Removed declaration.
37044 * tree-ssa-loop.c (tree_linear_transform): Removed.
37045 (gate_tree_linear_transform): Removed.
37046 (pass_linear_transform): Removed.
37047 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
37048 flag_loop_interchange.
37049
37050 2011-01-25 Jakub Jelinek <jakub@redhat.com>
37051
37052 PR tree-optimization/47265
37053 PR tree-optimization/47443
37054 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
37055 if name still has some uses.
37056
37057 2011-01-25 Martin Jambor <mjambor@suse.cz>
37058
37059 PR tree-optimization/47382
37060 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
37061 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
37062
37063 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
37064
37065 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
37066 sjlj_except_unwind_info.
37067
37068 2011-01-25 Richard Guenther <rguenther@suse.de>
37069
37070 PR tree-optimization/47426
37071 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
37072 visible functions results escape.
37073
37074 2011-01-25 Jakub Jelinek <jakub@redhat.com>
37075
37076 PR target/45701
37077 * config/arm/arm.c (any_sibcall_uses_r3): New function.
37078 (arm_get_frame_offsets): Use it.
37079
37080 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37081 Jakub Jelinek <jakub@redhat.com>
37082
37083 PR tree-optimization/47271
37084 * tree-if-conv.c (bb_postdominates_preds): New.
37085 (if_convertible_bb_p): Call bb_postdominates_preds.
37086 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
37087 (predicate_scalar_phi): Call bb_postdominates_preds.
37088
37089 2011-01-25 Nick Clifton <nickc@redhat.com>
37090
37091 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
37092 * config/rx/rx.c (rx_function_value): Likewise.
37093 (rx_promote_function_mode): Likewise.
37094 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
37095 in order to make it legitimate.
37096 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
37097 make sure that the first operand is the same as the result register.
37098 (addsi3_unspec): Delete.
37099 (subdi3): Do not accept immediate operands.
37100 (subdi3_internal): Likewise.
37101
37102 2011-01-25 Jeff Law <law@redhat.com>
37103
37104 PR rtl-optimization/37273
37105 * ira-costs.c (scan_one_insn): Detect constants living in memory and
37106 handle them like argument loads from stack slots. Do not double
37107 count memory for memory constants and argument loads from stack slots.
37108
37109 2011-01-25 Jakub Jelinek <jakub@redhat.com>
37110
37111 PR tree-optimization/47427
37112 PR tree-optimization/47428
37113 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
37114 coalesce if the new root var would be TREE_READONLY.
37115
37116 2011-01-25 Richard Guenther <rguenther@suse.de>
37117
37118 PR middle-end/47414
37119 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
37120 correct type for TBAA.
37121
37122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37123
37124 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
37125 (close_phi_written_to_memory): Call for_each_index with
37126 dr_indices_valid_in_loop.
37127
37128 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37129
37130 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
37131 when it is initialized.
37132
37133 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37134
37135 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
37136 call to graphite_find_data_references_in_stmt.
37137 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
37138 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
37139 call to graphite_find_data_references_in_stmt.
37140 (analyze_drs_in_stmts): Same.
37141 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
37142 in which the scalar analysis of indices is performed.
37143 (create_data_ref): Same. Update call to dr_analyze_indices.
37144 (find_data_references_in_stmt): Update call to create_data_ref.
37145 (graphite_find_data_references_in_stmt): Same.
37146 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
37147 declaration.
37148 (create_data_ref): Same.
37149 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
37150 call to create_data_ref.
37151
37152 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37153
37154 * graphite-sese-to-poly.c (build_poly_scop): Move
37155 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
37156
37157 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37158
37159 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
37160 VAR_DECL, PARM_DECL, and RESULT_DECL.
37161
37162 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37163
37164 * graphite-dependences.c (reduction_dr_1): Allow several reductions
37165 in a reduction PBB.
37166 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
37167 that have already been marked as PBB_IS_REDUCTION.
37168
37169 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37170
37171 * graphite-scop-detection.c (same_close_phi_node): New.
37172 (remove_duplicate_close_phi): New.
37173 (make_close_phi_nodes_unique): New.
37174 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
37175
37176 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37177
37178 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
37179 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
37180 of both data references to be the same.
37181
37182 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37183
37184 * graphite-dependences.c (build_lexicographical_constraint): Remove
37185 the gdim parameter.
37186 (build_lexicographical_constraint): Adjust call to
37187 ppl_powerset_is_empty.
37188 (dependence_polyhedron): Same.
37189 (graphite_legal_transform_dr): Same.
37190 (graphite_carried_dependence_level_k): Same.
37191 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
37192 parameter.
37193 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
37194
37195 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37196
37197 * graphite-sese-to-poly.c
37198 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
37199 (close_phi_written_to_memory): New.
37200 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
37201 and unshare_expr.
37202
37203 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37204
37205 * doc/install.texi: Update the expected version number of PPL to 0.11.
37206 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
37207 #if PPL_VERSION_MINOR < 11.
37208
37209 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37210
37211 * graphite-dependences.c: Include graphite-cloog-util.h.
37212 (new_poly_ddr): Inlined into dependence_polyhedron.
37213 (free_poly_ddr): Moved close by new_poly_ddr.
37214 (dependence_polyhedron_1): Renamed dependence_polyhedron.
37215 Early return NULL when ppl_powerset_is_empty returns true.
37216 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
37217 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
37218 (graphite_legal_transform_dr): Call new_poly_ddr.
37219 (graphite_carried_dependence_level_k): Same.
37220 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
37221 (dot_transformed_deps_stmt_1): Removed.
37222 (dot_deps_stmt_1): Call dot_deps_stmt_2.
37223 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
37224 (dot_deps_1): Call dot_deps_2.
37225 * Makefile.in (graphite-dependences.o): Add missing dependence on
37226 graphite-cloog-util.h.
37227
37228 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37229
37230 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
37231 (build_lexicographical_constraint): Same.
37232 (dependence_polyhedron_1): Same.
37233 (graphite_legal_transform_dr): Same.
37234 (graphite_carried_dependence_level_k): Same.
37235 * graphite-ppl.c (ppl_powerset_is_empty): New.
37236 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
37237 * tree-data-ref.c (dump_data_reference): Print the basic block index.
37238
37239 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37240
37241 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
37242 the "a followed by b" relation and document it.
37243
37244 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37245
37246 * graphite-dependences.c (build_lexicographical_constraint): Stop the
37247 iteration when the bag of constraints is empty.
37248
37249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37250
37251 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
37252
37253 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37254
37255 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
37256 nest and two loop depths as parameters.
37257 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
37258 lst_perfect_nestify.
37259
37260 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37261
37262 * graphite-dependences.c (print_pddr): Call
37263 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
37264
37265 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37266
37267 * graphite-ppl.c (debug_gmp_value): New.
37268 * graphite-ppl.h (debug_gmp_value): Declared.
37269
37270 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
37271
37272 * doc/install.texi: Document availability of cloog-0.16.
37273
37274 2011-01-25 Vladimir Kargov <kargov@gmail.com>
37275
37276 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
37277 invalid postdominance info.
37278
37279 2011-01-24 Jan Hubicka <jh@suse.cz>
37280
37281 PR c/21659
37282 * doc/extend.texi (weak pragma): Drop claim that it must
37283 appear before definition.
37284 * varasm.c (merge_weak, declare_weak): Only sanity check
37285 that DECL is not output at a time it is declared weak.
37286
37287 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
37288
37289 * machmode.def: Fixed comments.
37290
37291 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
37292
37293 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
37294
37295 2011-01-24 Paul Koning <ni1d@arrl.net>
37296
37297 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
37298 WORDS_BIG_ENDIAN.
37299
37300 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
37301
37302 PR target/46519
37303 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
37304 (block_info): Add scanned and prev.
37305 (move_or_delete_vzeroupper_2): Return if the basic block
37306 has been scanned and the upper 128bit state is unchanged
37307 from the last scan.
37308 (move_or_delete_vzeroupper_1): Return true if the exit
37309 state is changed.
37310 (move_or_delete_vzeroupper): Visit basic blocks using the
37311 work-list based algorithm based on vt_find_locations in
37312 var-tracking.c.
37313
37314 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
37315
37316 2011-01-24 Nick Clifton <nickc@redhat.com>
37317
37318 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
37319 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
37320 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
37321 then define __v850e1__.
37322 * doc/invoke.texi: Document -mv850es.
37323
37324 2011-01-24 Richard Henderson <rth@redhat.com>
37325
37326 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
37327 compound unordered comparisons.
37328 * config/rx/rx.c (rx_split_fp_compare): Remove.
37329 * config/rx/rx-protos.h: Update.
37330 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
37331 (cbranchsf4): Don't call rx_split_fp_compare.
37332 (*cbranchsf4): Use rx_split_cbranch.
37333 (*cmpsf): Don't accept "i" constraint.
37334 (*conditional_branch): Only valid after reload.
37335 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
37336
37337 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
37338
37339 PR target/47385
37340 * config/rs6000/altivec.md (vector constant splitters): Add
37341 support for creating vector single precision constants if -mvsx is
37342 used and we would create the constant using Altivec primitives.
37343
37344 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
37345 Richard Sandiford <rdsandiford@googlemail.com>
37346
37347 PR rtl-optimization/47166
37348 * reload1.c (emit_reload_insns): Disable the spill_reg_store
37349 mechanism for PRE_MODIFY and POST_MODIFY.
37350 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
37351 reloadreg.
37352
37353 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
37354
37355 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
37356
37357 2011-01-22 Jan Hubicka <jh@suse.cz>
37358
37359 PR lto/47333
37360 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
37361
37362 2011-01-22 Jan Hubicka <jh@suse.cz>
37363
37364 PR tree-optimization/43884
37365 PR lto/44334
37366 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
37367 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
37368
37369 2011-01-22 Anatoly Sokolov <aesok@post.ru>
37370
37371 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
37372 * config/s390/s390.c (s390_register_move_cost,
37373 s390_memory_move_cost): New.
37374 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
37375
37376 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37377
37378 PR middle-end/47401
37379 * except.c (sjlj_assign_call_site_values): Move setting the
37380 crtl->uses_eh_lsda flag to ...
37381 (sjlj_mark_call_sites): ... here.
37382 (sjlj_emit_function_enter): Support NULL dispatch label.
37383 (sjlj_build_landing_pads): In a function with no landing pads
37384 that still has must-not-throw regions, generate code to register
37385 a personality function with empty LSDA.
37386
37387 2011-01-21 Richard Henderson <rth@redhat.com>
37388
37389 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
37390
37391 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
37392
37393 * compare-elim.c: New file.
37394 * Makefile.in (OBJS-common): Add it.
37395 (compare-elim.o): New.
37396 * common.opt (fcompare-elim): New.
37397 * opts.c (default_options_table): Add OPT_fcompare_elim.
37398 * tree-pass.h (pass_compare_elim_after_reload): New.
37399 * passes.c (init_optimization_passes): Add it.
37400 * recog.h: Protect against re-inclusion.
37401 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
37402 * doc/invoke.texi (-fcompare-elim): Document it.
37403 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
37404 * doc/tm.texi: Rebuild.
37405
37406 2011-01-22 Nick Clifton <nickc@redhat.com>
37407
37408 * config/rx/rx.md (cstoresf4): Pass comparison operator to
37409 rx_split_fp_compare.
37410
37411 2011-01-22 Nick Clifton <nickc@redhat.com>
37412
37413 * config/rx/rx.md (UNSPEC_CONST): New.
37414 (deallocate_and_return): Wrap the amount popped off the stack in
37415 an UNSPEC_CONST in order to stop it being rejected by
37416 -mmax-constant-size.
37417 (pop_and_return): Add a "(return)" rtx.
37418 (call): Drop the immediate operand.
37419 (call_internal): Likewise.
37420 (call_value): Likewise.
37421 (call_value_internal): Likewise.
37422 (sibcall_internal): Likewise.
37423 (sibcall_value_internal): Likewise.
37424 (sibcall): Likewise. Generate an explicit call using
37425 sibcall_internal.
37426 (sibcall_value): Likewise.
37427 (mov<>): FAIL if a constant operand is not legitimate.
37428 (addsi3_unpsec): New pattern.
37429
37430 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
37431 (ok_for_max_constant): New function.
37432 (gen_safe_add): New function.
37433 (rx_expand_prologue): Use gen_safe_add.
37434 (rx_expand_epilogue): Likewise.
37435 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
37436 UNSPEC CONSTs.
37437
37438 2011-01-21 Jeff Law <law@redhat.com>
37439
37440 PR tree-optimization/47053
37441 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
37442 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
37443 statements are deleted.
37444 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
37445 is nonempty, then purge dead edges and cleanup the CFG.
37446
37447 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
37448
37449 PR debug/47402
37450 Temporarily revert:
37451 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
37452 PR debug/47106
37453 * tree-dfa.c (create_var_ann): Mark variable as used.
37454
37455 2011-01-21 Jakub Jelinek <jakub@redhat.com>
37456
37457 PR middle-end/45566
37458 * except.c (convert_to_eh_region_ranges): Emit queued no-region
37459 notes from other section in hot/cold partitioning even if
37460 last_action is -3. Increment call_site_base.
37461
37462 PR rtl-optimization/47366
37463 * fwprop.c (forward_propagate_into): Return bool. If
37464 any changes are made, -fnon-call-exceptions is used and
37465 REG_EH_REGION note is present, call purge_dead_edges
37466 and return true if it purged anything.
37467 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
37468 any EH edges were purged.
37469
37470 2011-01-21 Jeff Law <law@redhat.com>
37471
37472 PR rtl-optimization/41619
37473 * caller-save.c (setup_save_areas): Break out code to determine
37474 which hard regs are live across calls by examining the reload chains
37475 so that it is always used.
37476 Eliminate code which checked REG_N_CALLS_CROSSED.
37477
37478 2011-01-21 Jakub Jelinek <jakub@redhat.com>
37479
37480 PR tree-optimization/47355
37481 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
37482 NOP has non-debug uses beyond PHIs in new_bb.
37483
37484 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
37485
37486 PR debug/47106
37487 * cfgexpand.c (account_used_vars_for_block): Only account vars
37488 that are annotated as used.
37489 (estimated_stack_frame_size): Don't set TREE_USED.
37490 * tree-dfa.c (create_var_ann): Mark variable as used.
37491
37492 2011-01-21 Richard Guenther <rguenther@suse.de>
37493
37494 PR middle-end/47395
37495 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
37496
37497 2011-01-21 Richard Guenther <rguenther@suse.de>
37498
37499 PR tree-optimization/47365
37500 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
37501 (vn_reference_lookup_pieces): Adjust.
37502 (vn_reference_lookup): Likewise.
37503 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
37504 (vn_reference_lookup_3): Only look through kills if in
37505 VN_WALKREWRITE mode.
37506 (vn_reference_lookup_pieces): Adjust.
37507 (vn_reference_lookup): Likewise.
37508 (visit_reference_op_load): Likewise.
37509 (visit_reference_op_store): Likewise.
37510 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
37511 (compute_avail): Likewise.
37512 (eliminate): Likewise.
37513
37514 2011-01-21 Jakub Jelinek <jakub@redhat.com>
37515
37516 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
37517 DECL_IGNORED_P non-reg vars if they are used.
37518
37519 PR tree-optimization/47391
37520 * varpool.c (const_value_known_p): Return false if
37521 decl is volatile.
37522
37523 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
37524
37525 PR bootstrap/47215
37526 * config/i386/i386.c (ix86_local_alignment): Handle
37527 case for va_list_type_node is nil.
37528 (ix86_canonical_va_list_type): Likewise.
37529
37530 2011-01-21 Alan Modra <amodra@gmail.com>
37531
37532 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
37533 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
37534
37535 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37536
37537 * config/arm/arm.md (define_attr type): Rename f_load
37538 and f_store to f_fpa_load and f_fpa_store. Update.
37539 (write_conflict): Deal with rename fallout.
37540 (*push_fp_multi): Likewise.
37541 * config/arm/fpa.md (f_load): Use f_fpa_load.
37542 (f_store): Use f_fpa_store.
37543 (*movsf_fpa): Likewise.
37544 (*movdf_fpa): Likewise.
37545 (*movxf_fpa): Likewise.
37546 (*thumb2_movsf_fpa): Likewise.
37547 (*thumb2_movdf_fpa): Likewise.
37548 (*thumb2_movxf_fpa): Likewise.
37549 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
37550 f_loadd and f_stored.
37551 (*thumb2_movdi_vfp): Likewise.
37552 (*thumb2_movsf_vfp): Fix attribute to f_loads.
37553 (*thumb2_movsi_vfp): Likewise.
37554 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
37555 Use f_loads instead of f_load.
37556 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
37557
37558 2011-01-20 Anatoly Sokolov <aesok@post.ru>
37559
37560 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
37561 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
37562 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
37563 (xtensa_mode_dependent_address_p): New function.
37564 (constantpool_address_p): Make static. Change return type to bool.
37565 Change argument type to const_rtx. Use CONST_INT_P predicate.
37566
37567 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
37568
37569 PR debug/46583
37570 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
37571
37572 2011-01-20 Jakub Jelinek <jakub@redhat.com>
37573
37574 PR debug/47283
37575 * cfgexpand.c (expand_debug_expr): Instead of generating
37576 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
37577 etc. handling.
37578
37579 2011-01-20 Richard Guenther <rguenther@suse.de>
37580
37581 PR middle-end/47370
37582 * tree-inline.c (remap_gimple_op_r): Recurse manually for
37583 the pointer operand of MEM_REFs.
37584
37585 2011-01-20 Jakub Jelinek <jakub@redhat.com>
37586
37587 PR tree-optimization/46130
37588 * ipa-split.c (consider_split): If return_bb contains non-virtual
37589 PHIs other than for retval or if split_function would not adjust it,
37590 refuse to split.
37591
37592 2011-01-20 Richard Guenther <rguenther@suse.de>
37593
37594 PR tree-optimization/47167
37595 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
37596 Revert previous change, only avoid enumeral type changes.
37597
37598 2011-01-19 Mike Stump <mikestump@comcast.net>
37599
37600 * doc/tm.texi.in (BRANCH_COST): Englishify.
37601 * doc/tm.texi (BRANCH_COST): Likewise.
37602
37603 2011-01-19 Dodji Seketeli <dodji@redhat.com>
37604
37605 PR c++/47291
37606 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
37607 (gen_scheduled_generic_parms_dies): New functions.
37608 (gen_struct_or_union_type_die): Schedule template parameters DIEs
37609 generation for the end of CU compilation.
37610 (dwarf2out_finish): Generate template parameters DIEs here.
37611
37612 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
37613
37614 PR debug/46240
37615 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
37616 debug bind stmt on merge edges.
37617
37618 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
37619
37620 PR debug/47079
37621 PR debug/46724
37622 * function.c (instantiate_expr): Instantiate incoming rtl of
37623 implicit arguments, and recurse on VALUE_EXPRs.
37624 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
37625 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
37626
37627 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
37628
37629 * c-parser.c (c_parser_for_statement): Initialize
37630 collection_expression.
37631
37632 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37633
37634 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
37635
37636 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37637
37638 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
37639 (LINK_SHLIB_SPEC): Don't use %(link_path).
37640 (SUBTARGET_EXTRA_SPECS): Remove link_path.
37641
37642 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37643
37644 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
37645 (NO_SHARED_LIB_SUPPORT): Remove.
37646 (LINK_SHLIB_SPEC): Remove one conditional definition.
37647
37648 2011-01-19 Joseph Myers <joseph@codesourcery.com>
37649
37650 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
37651 %{call_shared}.
37652 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
37653 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
37654 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
37655 %{call_shared} and conditionals on these options not being passed.
37656 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
37657 %{call_shared}.
37658
37659 2011-01-19 Jakub Jelinek <jakub@redhat.com>
37660
37661 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
37662 simplify.
37663
37664 * ipa-split.c: Spelling fixes.
37665
37666 2011-01-19 Richard Henderson <rth@redhat.com>
37667
37668 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
37669 (*mulsi3): Likewise.
37670
37671 * longlong.h [__mn10300__] (count_leading_zeros): New.
37672 [__mn10300__] (umul_ppmm, smul_ppmm): New.
37673 [__mn10300__] (add_ssaaaa, subddmmss): New.
37674 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
37675 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
37676
37677 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37678
37679 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
37680
37681 2011-01-19 Richard Henderson <rth@redhat.com>
37682
37683 * config/mn10300/mn10300.md (addsi3_flags): New.
37684 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
37685 (subsi3_flags, subc_internal, subdi3): New.
37686 (subdi3_internal, *subdi3_degenerate): New.
37687 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
37688
37689 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
37690 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
37691 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
37692 * config/mn10300/mn10300-protos.h: Update.
37693 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
37694 (return_ret): Likewise. Rename from return_internal_regs.
37695 (return_internal): Remove.
37696
37697 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
37698 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
37699 (mn10300_legitimate_constant_p): Likewise.
37700 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
37701 (mn10300_frame_size): New.
37702 (mn10300_expand_prologue): Use it.
37703 (mn10300_expand_epilogue): Likewise.
37704 (mn10300_initial_offset): Likewise.
37705 * config/mn10300/mn10300-protos.h: Update.
37706 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
37707 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
37708 (prologue, epilogue, return_internal): Tidy output code.
37709 (mn10300_store_multiple_operation, return): Likewise.
37710 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
37711 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
37712 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
37713 (load_pic, am33_load_pic): New.
37714 (mn10300_load_pic0, mn10300_load_pic1): New.
37715
37716 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
37717 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
37718 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
37719 (cc_flags_for_mode, cc_flags_for_code): New.
37720 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
37721 overflow flag is not valid. Validate that the flags we need
37722 for the comparison are valid.
37723 (mn10300_output_cmp): Remove.
37724 (mn10300_output_add): New.
37725 (mn10300_select_cc_mode): Use cc_flags_for_code.
37726 (mn10300_split_cbranch): New.
37727 (mn10300_match_ccmode): New.
37728 (mn10300_split_and_operand_count): New.
37729 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
37730 to the function.
37731 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
37732 (addsi3): ... here. Use mn10300_output_add.
37733 (*addsi3_flags): New.
37734 (*am33_subsi3, *mn10300_subsi3): Merge...
37735 (subsi3): ... here. Use attribute isa.
37736 (*subsi3_flags): New.
37737 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
37738 when possible.
37739 (*am33_andsi3, *mn10300_andsi3): Merge...
37740 (andsi3): ... here.
37741 (*andsi3_flags): New.
37742 (andsi3 splitters): New.
37743 (*am33_iorsi3, *mn10300_iorsi3): Merge...
37744 (iorsi3): ... here.
37745 (*iorsi3_flags): New.
37746 (*am33_xorsi3, *mn10300_xorsi3): Merge...
37747 (xorsi3): ... here.
37748 (*xorsi3_flags): New.
37749 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
37750 (one_cmplsi2): ... here.
37751 (*one_cmplsi2_flags): New.
37752 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
37753 instead of "dax" in constraints. Use mn10300_split_cbranch.
37754 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
37755 use matching constraints to eliminate a self-comparison.
37756 (*integer_conditional_branch): Rename from integer_conditional_branch.
37757 Use int_mode_flags to match CC_REG.
37758 (*cbranchsi4_btst, *btstsi): New.
37759 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
37760 mn10300_split_cbranch.
37761 (*am33_cmpsf): Rename from am33_cmpsf.
37762 (*float_conditional_branch): Rename from float_conditional_branch.
37763 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
37764 (zero_extendqisi2): ... here.
37765 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
37766 (zero_extendhisi2): ... here.
37767 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
37768 (extendqisi2): ... here.
37769 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
37770 (extendhisi2): ... here.
37771 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
37772 (ashlsi3): ... here.
37773 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
37774 (lshrsi3): ... here.
37775 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
37776 (ashrsi3): ... here.
37777 (consecutive add peephole): Remove.
37778 * config/mn10300/predicates.md (label_ref_operand): New.
37779 (int_mode_flags): New.
37780 (CCZN_comparison_operator): New.
37781
37782 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
37783 (throughput_42_latency_43): New reservation.
37784 (mulsidi3, umulsidi3): New expanders.
37785 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
37786 the MDR register to allocation; separately allocate the low and
37787 high parts of the DImode result.
37788 (umulsidi3_internal): Similarly.
37789 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
37790 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
37791 (udivsi3, umodsi3): Remove.
37792 (udivmodsi4, divmodsi4): New expanders.
37793 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
37794 (*divmodsi4): Simiarly.
37795 (ext_internal): New.
37796
37797 * config/mn10300/constraints.md ("z"): New constraint.
37798 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
37799 (FIXED_REGISTERS): Don't fix MDR.
37800 (CALL_USED_REGSITERS): Reformat nicely.
37801 (REG_ALLOC_ORDER): Add MDR.
37802 (enum regclass): Add MDR_REGS.
37803 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
37804 (IRA_COVER_CLASSES): Add MDR_REGS.
37805 (REGNO_REG_CLASS): Handle MDR_REG.
37806 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
37807 (mn10300_register_move_cost): Likewise.
37808 * config/mn10300/mn10300.md (MDR_REG): New.
37809 (*movsi_internal): Handle moves to/from MDR_REGS.
37810
37811 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
37812 POST_MODIFY.
37813 (mn10300_secondary_reload): Tidy combination reload classes.
37814 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
37815 addresses for AM33. Allow symbolic offsets for reg+imm.
37816 (mn10300_regno_in_class_p): New.
37817 (mn10300_legitimize_reload_address): New.
37818 * config/mn10300/mn10300.h (enum reg_class): Remove
37819 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
37820 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
37821 SP_OR_GENERAL_REGS.
37822 (REG_CLASS_NAMES): Update to match.
37823 (REG_CLASS_CONTENTS): Likewise.
37824 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
37825 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
37826 (REGNO_IN_RANGE_P): Remove.
37827 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
37828 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
37829 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
37830 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
37831 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
37832 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
37833 (REGNO_GENERAL_P): New.
37834 (HAVE_POST_MODIFY_DISP): New.
37835 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
37836 (LEGITIMIZE_RELOAD_ADDRESS): New.
37837 * config/mn10300/mn10300-protos.h: Update.
37838
37839 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
37840 DATA_REGS for AM33 stack-pointer destination.
37841 (mn10300_preferred_output_reload_class): Likewise.
37842 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
37843 into a form appropriate for ...
37844 (TARGET_SECONDARY_RELOAD): New.
37845 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
37846 * config/mn10300/mn10300-protos.h: Update.
37847 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
37848 reload_insi; use the "A" constraint for the scratch; handle AM33
37849 moves of sp to non-address registers.
37850
37851 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
37852 (*movqi_internal): ... here.
37853 (*am33_movhi, *mn10300_movhi): Merge into...
37854 (*movhi_internal): ... here.
37855 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
37856 as the source/destination of moves from/to SP.
37857 (movsf): Only allow for AM33-2.
37858 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
37859 any integer constant constraint. Only allow for AM33-2. Tidy
37860 all of the alternative outputs.
37861 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
37862 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
37863 for MN103.
37864 (udivsi3, umodsi3): New patterns for MN103 only.
37865
37866 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
37867
37868 * doc/tm.texi.in: Spell out that a lack of register class unions
37869 can lead to ICEs.
37870 * doc/tm.texi: Regenerate.
37871
37872 2011-01-19 Jakub Jelinek <jakub@redhat.com>
37873
37874 PR rtl-optimization/47337
37875 * dce.c (check_argument_store): New function.
37876 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
37877
37878 PR tree-optimization/47290
37879 * tree-eh.c (infinite_empty_loop_p): New function.
37880 (cleanup_empty_eh): Use it.
37881
37882 2011-01-18 Steve Ellcey <sje@cup.hp.com>
37883
37884 PR target/46997
37885 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
37886 (a64_expand_widen_sum): Ditto.
37887 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
37888 (vec_extract_evenodd_help): Ditto.
37889 (vec_extract_evenv4hi): Ditto.
37890 (vec_extract_oddv4hi): Ditto.
37891 (vec_extract_evenv2si): Ditto.
37892 (vec_extract_oddv2si): Ditto.
37893 (vec_extract_evenv2sf): Ditto.
37894 (vec_extract_oddv2sf): Ditto.
37895 (vec_pack_trunc_v4hi: Ditto.
37896 (vec_pack_trunc_v2si): Ditto.
37897 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
37898 (vec_interleave_highv8qi): Ditto.
37899 (mix1_r): Ditto.
37900 (vec_extract_oddv8qi): Ditto.
37901 (vec_interleave_lowv4hi): Ditto.
37902 (vec_interleave_highv4hi): Ditto.
37903 (vec_interleave_lowv2si): Ditto.
37904 (vec_interleave_highv2si): Ditto.
37905
37906 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37907
37908 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
37909 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
37910 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
37911 (pa_c_mode_for_suffix): New.
37912 (TARGET_EXPAND_BUILTIN): Define.
37913 (TARGET_C_MODE_FOR_SUFFIX): Define.
37914 (pa_builtins): Define.
37915 (pa_init_builtins): Register __float128 type and init new support
37916 builtins.
37917 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
37918 * config/pa/quadlib.c (_U_Qfcopysign): New.
37919
37920 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
37921
37922 PR middle-end/46894
37923 * explow.c (allocate_dynamic_stack_space): Do not assume more than
37924 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
37925 are defined.
37926
37927 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37928
37929 PR tree-optimization/47179
37930 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
37931 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
37932
37933 2011-01-18 Richard Guenther <rguenther@suse.de>
37934
37935 PR rtl-optimization/47216
37936 * emit-rtl.c: Include tree-flow.h.
37937 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
37938 of replicating it with different semantics.
37939 * Makefile.in (emit-rtl.o): Adjust.
37940
37941 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37942
37943 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
37944 (cortex_a9_dp): Handle neon types correctly.
37945
37946 2011-01-18 Jakub Jelinek <jakub@redhat.com>
37947
37948 PR rtl-optimization/47299
37949 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
37950 subtarget. Use normal multiplication if both operands are constants.
37951 * expmed.c (expand_widening_mult): Don't try to optimize constant
37952 multiplication if op0 has VOIDmode. Convert op1 constant to mode
37953 before using it.
37954
37955 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37956
37957 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
37958 spacing after 'e.g.', typos, comma, hyphenation.
37959
37960 2011-01-17 Richard Henderson <rth@redhat.com>
37961
37962 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
37963 (rx_restricted_mem_operand): New.
37964 (rx_shift_operand): Use register_operand.
37965 (rx_source_operand, rx_compare_operand): Likewise.
37966 * config/rx/rx.md (addsi3_flags): New expander.
37967 (adddi3): Rewrite as expander.
37968 (adc_internal, *adc_flags, adddi3_internal): New patterns.
37969 (subsi3_flags): New expander.
37970 (subdi3): Rewrite as expander.
37971 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
37972
37973 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
37974 (rx_init_builtins): Remove sat builtin.
37975 (rx_expand_builtin): Likewise.
37976 * config/rx/rx.md (ssaddsi3): New.
37977 (*sat): Rename from sat. Represent the CC_REG input.
37978
37979 * config/rx/predicates.md (rshift_operator): New.
37980 * config/rx/rx.c (rx_expand_insv): Remove.
37981 * config/rx/rx-protos.h: Update.
37982 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
37983 operand to the canonical position.
37984 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
37985 (*bitclr, *bitclr_in_memory): Similarly.
37986 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
37987 (insv): Retain the zero_extract in the expansion.
37988
37989 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
37990 (bswaphi2, bitinvert, revw): Likewise.
37991
37992 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
37993 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
37994 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
37995 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
37996 (bitset, bitset_in_memory): Likewise.
37997 (bitinvert, bitinvert_in_memory): Likewise.
37998 (bitclr, bitclr_in_memory): Likewise.
37999 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
38000 (rx_strend, rx_cmpstrn): Likewise.
38001 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
38002 (bitop peep2 patterns): Remove.
38003
38004 * config/rx/rx.c (rx_match_ccmode): New.
38005 * config/rx/rx-protos.h: Update.
38006 * config/rx/rx.md (abssi2): Clobber, don't set flags.
38007 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
38008 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
38009 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
38010 (fix_truncsfsi2, floatsisf2): Likewise.
38011 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
38012 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
38013 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
38014 (*subsi3_flags, *xorsi3_flags): New.
38015
38016 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
38017
38018 * config/rx/rx.c (rx_print_operand): Remove workaround for
38019 unsplit comparison operations.
38020
38021 * config/rx/rx.md (movsicc): Split after reload.
38022 (*movsicc): Merge *movsieq and *movsine via match_operator.
38023 (*stcc): New pattern.
38024
38025 * config/rx/rx.c (rx_float_compare_mode): Remove.
38026 * config/rx/rx.h (rx_float_compare_mode): Remove.
38027 * config/rx/rx.md (cstoresi4): Split after reload.
38028 (*sccc): New pattern.
38029
38030 * config/rx/predicates.md (label_ref_operand): New.
38031 (rx_z_comparison_operator): New.
38032 (rx_zs_comparison_operator): New.
38033 (rx_fp_comparison_operator): New.
38034 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
38035 Validate that the flags are set properly for the comparison.
38036 (rx_gen_cond_branch_template): Remove.
38037 (rx_cc_modes_compatible): Remove.
38038 (mode_from_flags): New.
38039 (flags_from_code): Rename from flags_needed_for_conditional.
38040 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
38041 (rx_select_cc_mode): Likewise.
38042 (rx_split_fp_compare): New.
38043 (rx_split_cbranch): New.
38044 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
38045 (*cbranchsi4): Use match_operator and rx_split_cbranch.
38046 (*cbranchsf4): Similarly.
38047 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
38048 match_operator and rx_split_cbranch.
38049 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
38050 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
38051 (*cmpsi): Rename from cmpsi.
38052 (*tstsi): Rename from tstsi.
38053 (*cmpsf): Rename from cmpsf; use CC_Fmode.
38054 (*conditional_branch): Rename from conditional_branch.
38055 (*reveresed_conditional_branch): Remove.
38056 (b<code>): Remove expander.
38057 * config/rx/rx-protos.h: Update.
38058
38059 * config/rx/rx.c (rx_compare_redundant): Remove.
38060 * config/rx/rx.md (cmpsi): Don't use it.
38061 * config/rx/rx-protos.h: Update.
38062
38063 * config/rx/rx-modes.def (CC_F): New mode.
38064 * config/rx/rx.c (rx_select_cc_mode): New.
38065 * config/rx/rx.h (SELECT_CC_MODE): Use it.
38066 * config/rx/rx-protos.h: Update.
38067
38068 2011-01-17 Richard Henderson <rth@redhat.com>
38069
38070 * except.c (dump_eh_tree): Fix stray ; after for statement.
38071
38072 2011-01-17 Richard Guenther <rguenther@suse.de>
38073
38074 PR tree-optimization/47313
38075 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
38076 handling before copying the body. Properly deal with
38077 by-reference result in SSA form.
38078
38079 2011-01-17 Ian Lance Taylor <iant@google.com>
38080
38081 PR target/47219
38082 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
38083 (struct_value_alias_set): Don't define.
38084 (sparc_option_override): Don't set sparc_sr_alias_set and
38085 struct_value_alias_set.
38086 (save_or_restore_regs): Use gen_frame_mem rather than calling
38087 set_mem_alias_set.
38088 (sparc_struct_value_rtx): Likewise.
38089
38090 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
38091
38092 PR target/47318
38093 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
38094 (_mm_maskstore_pd): Likewise.
38095 (_mm_maskload_ps): Likewise.
38096 (_mm_maskstore_ps): Likewise.
38097 (_mm256_maskload_pd): Change mask to __m256i.
38098 (_mm256_maskstore_pd): Likewise.
38099 (_mm256_maskload_ps): Likewise.
38100 (_mm256_maskstore_ps): Likewise.
38101
38102 * config/i386/i386-builtin-types.def: Updated.
38103 (ix86_expand_special_args_builtin): Likewise.
38104
38105 * config/i386/i386.c (bdesc_special_args): Update
38106 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
38107 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
38108 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
38109 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
38110
38111 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
38112 Use <avxpermvecmode> on mask register.
38113 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
38114
38115 2011-01-17 Olivier Hainque <hainque@adacore.com>
38116 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38117 Eric Botcazou <ebotcazou@adacore.com>
38118
38119 PR target/46655
38120 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
38121 if <= USHRT_MAX in 32-bit mode.
38122
38123 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38124
38125 * doc/install.texi (Configuration, Specific): Wrap long
38126 lines in examples. Allow line wrapping in long options
38127 and URLs where beneficial for PDF output.
38128
38129 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
38130
38131 * config/mips/mips.c (mips_classify_symbol): Don't return
38132 SYMBOL_PC_RELATIVE for nonlocal labels.
38133
38134 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
38135
38136 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
38137
38138 2011-01-15 Jan Hubicka <jh@suse.cz>
38139
38140 PR tree-optimization/47276
38141 * ipa.c (function_and_variable_visibility): Do not try to mark alias
38142 declarations as needed.
38143
38144 2011-01-15 Martin Jambor <mjambor@suse.cz>
38145
38146 * common.opt (fdevirtualize): New flag.
38147 * doc/invoke.texi (Option Summary): Document it.
38148 * opts.c (default_options_table): Add devirtualize flag.
38149 * ipa-prop.c (detect_type_change): Return immediately if
38150 devirtualize flag is not set.
38151 (detect_type_change_ssa): Likewise.
38152 (compute_known_type_jump_func): Likewise.
38153 (ipa_analyze_virtual_call_uses): Likewise.
38154
38155 2011-01-14 Martin Jambor <mjambor@suse.cz>
38156
38157 PR tree-optimization/45934
38158 PR tree-optimization/46302
38159 * ipa-prop.c (type_change_info): New type.
38160 (stmt_may_be_vtbl_ptr_store): New function.
38161 (check_stmt_for_type_change): Likewise.
38162 (detect_type_change): Likewise.
38163 (detect_type_change_ssa): Likewise.
38164 (compute_complex_assign_jump_func): Check for dynamic type change.
38165 (compute_complex_ancestor_jump_func): Likewise.
38166 (compute_known_type_jump_func): Likewise.
38167 (compute_scalar_jump_functions): Likewise.
38168 (ipa_analyze_virtual_call_uses): Likewise.
38169 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
38170
38171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38172
38173 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
38174 * config/i386/i386.opt (msse5): New Alias.
38175
38176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38177
38178 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
38179 * config/sparc/linux64.h (CC1_SPEC): Likewise.
38180 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
38181 * config/sparc/sparc.h (CC1_SPEC): Likewise.
38182
38183 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38184
38185 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
38186 -mcpu options.
38187 * config/sparc/linux64.h (CC1_SPEC): Likewise.
38188 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
38189 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
38190 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
38191 Likewise.
38192 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
38193
38194 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38195
38196 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
38197
38198 2011-01-14 Mike Stump <mikestump@comcast.net>
38199
38200 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
38201 * config/fr30/fr30.md: Likweise
38202 (movsi_push): Likewise.
38203 (movsi_pop): Likewise.
38204 (enter_func): Likewise.
38205 * config/moxie/moxie.md (movsi_push): Likewise.
38206 (movsi_pop): Likewise.
38207
38208 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38209
38210 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
38211 %{no_archive} %{exact_version}.
38212 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
38213 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
38214 %{no_archive} %{exact_version}.
38215 * config/mips/openbsd.h (LINK_SPEC): Likewise.
38216 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
38217 * config/mips/vxworks.h: Likewise.
38218
38219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38220
38221 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
38222
38223 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38224
38225 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
38226 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
38227
38228 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38229
38230 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
38231 -nodefaultlib.
38232
38233 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38234
38235 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
38236 for mcpu not cpu.
38237 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
38238 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
38239 not cpu.
38240 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
38241 Don't handle -shlib.
38242
38243 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38244
38245 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
38246 (CC1_SPEC): Don't handle -profile.
38247
38248 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38249
38250 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
38251 * config/mips/mips.h (CC1_SPEC): Likewise.
38252
38253 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38254
38255 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
38256 * config/mips/mips.h (CC1_SPEC): Likewise.
38257
38258 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38259
38260 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
38261 * config/m32r/linux.h (LINK_SPEC): Likewise.
38262 * config/mips/linux.h (LINK_SPEC): Likewise.
38263 * config/mips/linux64.h (LINK_SPEC): Likewise.
38264 * config/sparc/linux.h (LINK_SPEC): Likewise.
38265 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
38266 LINK_SPEC): Likewise.
38267 * config/xtensa/linux.h (LINK_SPEC): Likewise.
38268
38269 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38270
38271 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
38272 %{version:-v}.
38273 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
38274
38275 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38276
38277 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
38278 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
38279
38280 2011-01-14 Joseph Myers <joseph@codesourcery.com>
38281
38282 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
38283
38284 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38285
38286 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
38287 supports -Bstatic/-Bdynamic.
38288 * configure: Regenerate.
38289
38290 2011-01-14 Jan Hubicka <jh@suse.cz>
38291 Jack Howarth <howarth@bromo.med.uc.edu>
38292
38293 PR target/46037
38294 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
38295 when checking debug_info_level. Test write_symbols instead of
38296 debug_hooks->var_location when setting flag_var_tracking_uninit.
38297
38298 2011-01-14 Richard Guenther <rguenther@suse.de>
38299
38300 PR tree-optimization/47179
38301 * target.def (ref_may_alias_errno): New target hook.
38302 * targhooks.h (default_ref_may_alias_errno): Declare.
38303 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
38304 (default_ref_may_alias_errno): New function.
38305 * target.h (struct ao_ref_s): Declare.
38306 * tree-ssa-alias.c: Include target.h.
38307 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
38308 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
38309 (targhooks.o): Likewise.
38310 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
38311 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
38312
38313 2011-01-14 Richard Guenther <rguenther@suse.de>
38314
38315 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
38316
38317 2011-01-14 Richard Guenther <rguenther@suse.de>
38318
38319 PR tree-optimization/47280
38320 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
38321 return CFG changes.
38322 (tree_ssa_forward_propagate_single_use_vars): Deal with
38323 CFG changes from associate_plusminus.
38324
38325 2011-01-14 Richard Guenther <rguenther@suse.de>
38326
38327 PR middle-end/47281
38328 Revert
38329 2011-01-11 Richard Guenther <rguenther@suse.de>
38330
38331 PR tree-optimization/46076
38332 * tree-ssa.c (useless_type_conversion_p): Conversions from
38333 unprototyped to empty argument list function types are useless.
38334
38335 2011-01-14 Richard Guenther <rguenther@suse.de>
38336
38337 PR tree-optimization/47286
38338 * tree-ssa-structalias.c (new_var_info): Register variables are global.
38339
38340 2011-01-14 Martin Jambor <mjambor@suse.cz>
38341
38342 PR middle-end/46823
38343 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
38344
38345 2011-01-13 Anatoly Sokolov <aesok@post.ru>
38346
38347 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
38348 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
38349 * config/xtensa/xtensa.c (xtensa_libcall_value,
38350 xtensa_function_value_regno_p): New functions.
38351 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
38352
38353 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
38354
38355 PR c++/47213
38356 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
38357 PE specific hook.
38358 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
38359 New function prototype.
38360 * config/i386/winnt.c (i386_pe_assemble_visibility):
38361 Warn only if attribute was specified by user.
38362
38363 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
38364
38365 PR target/47251
38366 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
38367 floating point.
38368 (floatunsdidf2_fcfidu): Ditto.
38369
38370 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38371
38372 * config/s390/s390.c (print_operand_address): Replace 'error' with
38373 'output_operand_lossage'.
38374 (print_operand): Likewise.
38375
38376 2011-01-13 Jeff Law <law@redhat.com>
38377
38378 PR rtl-optimization/39077
38379 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
38380 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
38381 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
38382 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
38383 * gcse.c (prune_insertions_deletions): New function.
38384 (compute_pre_data): Use it.
38385
38386 2011-01-13 Dodji Seketeli <dodji@redhat.com>
38387
38388 PR debug/PR46973
38389 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
38390 static function.
38391 (prune_unused_types_mark): Use it.
38392
38393 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
38394
38395 PR rtl-optimization/45352
38396 * sel-sched.c: Update copyright years.
38397 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
38398 in the advancing loop when we have issued issue_rate insns.
38399
38400 2011-01-12 Richard Henderson <rth@redhat.com>
38401
38402 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
38403 (TARGET_MD_ASM_CLOBBERS): New.
38404
38405 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
38406 (TARGET_DELEGITIMIZE_ADDRESS): New.
38407
38408 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
38409 (clzsi2, *bsch): New patterns.
38410
38411 * config/mn10300/mn10300.md (INT): New mode iterator.
38412 (*mov<INT>_clr): New pattern, and peep2 to generate it.
38413
38414 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
38415 flag_split_wide_types.
38416
38417 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
38418 (mn10300_trampoline_init): Rewrite without a template, an immediate
38419 load and a direct branch.
38420 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
38421
38422 2011-01-12 Anatoly Sokolov <aesok@post.ru>
38423
38424 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
38425 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
38426 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
38427 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
38428
38429 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
38430
38431 PR debug/47209
38432 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
38433 of type.
38434
38435 2011-01-12 Jan Hubicka <jh@suse.cz>
38436
38437 PR driver/47244
38438 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
38439 (PLUGIN_COND_CLOSE): New macro.
38440 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
38441
38442 2011-01-12 Richard Guenther <rguenther@suse.de>
38443
38444 PR lto/47259
38445 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
38446 register variables in a MEM_REF.
38447
38448 2011-01-12 Joseph Myers <joseph@codesourcery.com>
38449
38450 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
38451 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
38452 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
38453 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
38454 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
38455 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
38456 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
38457 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
38458 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
38459 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
38460 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
38461 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
38462 * config/gnu-user.h: New. Copied from linux.h.
38463 (LINUX_TARGET_STARTFILE_SPEC): Rename to
38464 GNU_USER_TARGET_STARTFILE_SPEC.
38465 (LINUX_TARGET_ENDFILE_SPEC): Rename to
38466 GNU_USER_TARGET_ENDFILE_SPEC.
38467 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
38468 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
38469 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
38470 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
38471 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
38472 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
38473 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
38474 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
38475 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
38476 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
38477 * config/arm/linux-eabi.h (CC1_SPEC): Use
38478 GNU_USER_TARGET_CC1_SPEC.
38479 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
38480 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
38481 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
38482 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
38483 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
38484 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
38485 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
38486 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
38487
38488 2011-01-12 Richard Guenther <rguenther@suse.de>
38489
38490 PR other/46946
38491 * doc/invoke.texi (ffast-math): Document it is turned on
38492 with -Ofast.
38493
38494 2011-01-12 Jan Hubicka <jh@suse.cz>
38495
38496 PR tree-optimization/47233
38497 * opts.c (common_handle_option): Disable ipa-reference with profile
38498 feedback.
38499
38500 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
38501
38502 * c-parser.c (c_parser_objc_at_property_declaration): Improved
38503 error message.
38504
38505 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
38506
38507 * c-parser.c (c_lex_one_token): Updated and reindented some
38508 comments. No changes in code.
38509
38510 2011-01-11 Ian Lance Taylor <iant@google.com>
38511
38512 * godump.c (go_output_var): Don't output the variable if there is
38513 already a type with the same name.
38514
38515 2011-01-11 Ian Lance Taylor <iant@google.com>
38516
38517 * godump.c (go_format_type): Don't generate float80.
38518
38519 2011-01-11 Richard Henderson <rth@redhat.com>
38520
38521 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
38522 declaration. Rewrite for both speed and size.
38523 (mn10300_address_cost_1): Remove.
38524 (mn10300_register_move_cost): New.
38525 (mn10300_memory_move_cost): New.
38526 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
38527 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
38528 extensions, shifts, BSWAP, CLZ.
38529 (mn10300_wide_const_load_uses_clr): Remove.
38530 (TARGET_REGISTER_MOVE_COST): New.
38531 (TARGET_MEMORY_MOVE_COST): New.
38532 * config/mn10300/mn10300-protos.h: Update.
38533 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
38534
38535 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
38536 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
38537 * config/mn10300/mn10300-protos.h: Update.
38538 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
38539 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
38540 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
38541 (*test_int_bitfield, *test_byte_bitfield): Remove.
38542 (*bit_test, *subreg_bit_test): Remove.
38543 * config/mn10300/predicates.md (const_8bit_operand): Remove.
38544
38545 * config/mn10300/constraints.md ("c"): Rename from "A".
38546 ("A", "D"): New constraint letters.
38547 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
38548 (fmssf4, fnmasf4, fnmssf4): Likewise.
38549
38550 * config/mn10300/mn10300.md (isa): New attribute.
38551 (enabled): New attribute.
38552
38553 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
38554 (abssf2, negsf2): Define only for hardware fp.
38555 (sqrtsf2): Reformat.
38556 (addsf3, subsf3, mulsf3): Merge expander and insn.
38557
38558 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
38559 (DEBUGGER_AUTO_OFFSET): Remove.
38560 (DEBUGGER_ARG_OFFSET): Remove.
38561
38562 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
38563 Emit register stores with the same offsets as the hardware.
38564 (mn10300_store_multiple_operation): Don't check that the register
38565 save offsets are monotonic.
38566 * config/mn10300/mn10300-protos.h: Update.
38567
38568 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
38569
38570 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
38571 in terms of the value on the stack, not the MDR register.
38572
38573 2011-01-11 Jan Hubicka <jh@suse.cz>
38574
38575 PR lto/45721
38576 PR lto/45375
38577 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
38578 (symbol_alias_set_destroy, symbol_alias_set_contains,
38579 propagate_aliases_backward): Declare.
38580 * lto-streamer-out.c (struct sets): New sturcture.
38581 (trivally_defined_alias): New function.
38582 (output_alias_pair_p): Rewrite.
38583 (output_unreferenced_globals): Fix output of alias pairs.
38584 (produce_symtab): Likewise.
38585 * ipa.c (function_and_variable_visibility): Set weak alias destination
38586 as needed in lto.
38587 * varasm.c (symbol_alias_set_t): Remove.
38588 (symbol_alias_set_destroy): Export.
38589 (propagate_aliases_forward, propagate_aliases_backward): New functions
38590 based on ...
38591 (compute_visible_aliases): ... this one; remove.
38592 (trivially_visible_alias): New
38593 (trivially_defined_alias): New.
38594 (remove_unreachable_alias_pairs): Rewrite.
38595 (finish_aliases_1): Reorganize code checking if alias is defined.
38596 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
38597 in LTO mode.
38598
38599 2011-01-11 Richard Guenther <rguenther@suse.de>
38600
38601 PR tree-optimization/46076
38602 * tree-ssa.c (useless_type_conversion_p): Conversions from
38603 unprototyped to empty argument list function types are useless.
38604
38605 2011-01-11 Richard Guenther <rguenther@suse.de>
38606
38607 PR middle-end/45235
38608 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
38609 volatile MEMs as MEM_READONLY_P.
38610
38611 2011-01-11 Richard Guenther <rguenther@suse.de>
38612
38613 PR tree-optimization/47239
38614 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
38615
38616 2011-01-11 Jeff Law <law@redhat.com>
38617
38618 PR tree-optimization/47086
38619 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
38620 IVs from statements that might throw.
38621
38622 2011-01-10 Jan Hubicka <jh@suse.cz>
38623
38624 PR lto/45375
38625 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
38626
38627 2011-01-10 Jan Hubicka <jh@suse.cz>
38628
38629 PR lto/45375
38630 * profile.c (read_profile_edge_counts): Ignore profile inconistency
38631 when correcting profile.
38632
38633 2011-01-10 Jan Hubicka <jh@suse.cz>
38634
38635 PR lto/46083
38636 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
38637 DECL_FINI_PRIORITY.
38638 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
38639 Restore DECL_FINI_PRIORITY.
38640
38641 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38642
38643 * doc/gimple.texi: Fix quoting of multi-word return values in
38644 @deftypefn statements. Ensure presence of return value. Wrap
38645 overlong @deftypefn lines.
38646 (is_gimple_operand, is_gimple_min_invariant_address): Remove
38647 descriptions of removed functions.
38648 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
38649 of multi-word return value in @deftypefn statement.
38650
38651 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38652
38653 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
38654 (Conditional Expressions, Logical Operators)
38655 (Statement and operand traversals): Do not indent smallexample
38656 code. Fix duplicate function argument in example.
38657
38658 2011-01-10 Jeff Law <law@redhat.com>
38659
38660 PR tree-optimization/47141
38661 * ipa-split.c (split_function): Handle case where we are
38662 returning a value and the return block has a virtual operand phi.
38663
38664 2011-01-10 Jan Hubicka <jh@suse.cz>
38665
38666 PR tree-optimization/47234
38667 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
38668 (pass_feedback_split_functions): Declare.
38669 * passes.c (init_optimization_passes): Add ipa-split as subpass of
38670 tree-profile.
38671 * ipa-split.c (gate_split_functions): Update comments; disable
38672 split-functions for profile_arc_flag and branch_probabilities.
38673 (gate_feedback_split_functions): New function.
38674 (execute_feedback_split_functions): New function.
38675 (pass_feedback_split_functions): New global var.
38676
38677 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
38678
38679 PR lto/46760
38680 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
38681 calling gimple_call_set_cannot_inline.
38682
38683 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
38684
38685 * config/darwin-sections.def: Remove unused section.
38686
38687 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
38688
38689 PR c++/47218
38690 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
38691
38692 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
38693
38694 PR objc/47232
38695 * c-parser.c (c_parser_declaration_or_fndef): Improved
38696 error message.
38697
38698 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
38699
38700 * config/i386/winnt.c (i386_pe_start_function): Make sure
38701 to switch back to function's section.
38702
38703 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
38704
38705 PR gcc/46902
38706 PR testsuite/46912
38707 * plugin.c: Move include of dlfcn.h from here...
38708 * system.h: ... to here.
38709
38710 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38711
38712 * doc/cpp.texi (C++ Named Operators): Fix markup for header
38713 file name.
38714 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
38715 two extra empty pages in PDF output.
38716
38717 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
38718
38719 PR objc/47078
38720 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
38721 for error recovery purposes behave as if it was not specified so
38722 that the default type is usd.
38723
38724 2011-01-07 Jan Hubicka <jh@suse.cz>
38725
38726 PR tree-optmization/46469
38727 * ipa.c (function_and_variable_visibility): Clear needed flags on
38728 nodes with external decls; handle weakrefs merging correctly.
38729
38730 2011-01-07 Joseph Myers <joseph@codesourcery.com>
38731
38732 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
38733 not false.
38734
38735 2011-01-07 Jan Hubicka <jh@suse.cz>
38736
38737 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
38738 and no longer claim that gold is required for linker plugin.
38739 * configure: Regenerate.
38740 * gcc.c (PLUGIN_COND): New macro.
38741 (LINK_COMMAND_SPEC): Use it.
38742 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
38743 * config.in (HAVE_LTO_PLUGIN): New.
38744 * configure.ac (--with-lto-plugin): New parameter; autodetect
38745 HAVE_LTO_PLUGIN.
38746
38747 2011-01-07 Jan Hubicka <jh@suse.cz>
38748
38749 PR tree-optimization/46367
38750 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
38751 when we can update original.
38752 (cgraph_mark_inline_edge): Sanity check.
38753 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
38754
38755 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38756
38757 * config/spu/spu.h (ASM_COMMENT_START): Define.
38758
38759 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
38760
38761 PR driver/42445
38762 * gcc.c (%>S): New.
38763 (SWITCH_KEEP_FOR_GCC): Likewise.
38764 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
38765 (do_spec_1): Handle "%>".
38766
38767 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
38768
38769 2011-01-07 Jakub Jelinek <jakub@redhat.com>
38770
38771 PR target/47201
38772 * config/i386/i386.c (ix86_delegitimize_address): If
38773 simplify_gen_subreg fails, return orig_x.
38774
38775 PR bootstrap/47187
38776 * value-prof.c (gimple_stringop_fixed_value): Handle
38777 lhs of the call properly.
38778
38779 2011-01-07 Jan Hubicka <jh@suse.cz>
38780
38781 PR lto/45375
38782 * lto-opt.c (lto_reissue_options): Set flag_shlib.
38783
38784 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
38785
38786 * target.def (function_switched_text_sections): New hook.
38787 * doc/tm.texi: Regenerated.
38788 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
38789 * final.c (default_function_switched_text_sections): New.
38790 (final_scan_insn): Call function_switched_text_sections when a
38791 mid-function section change occurs.
38792 * output.h (default_function_switched_text_sections): Declare.
38793 * config/darwin-protos.h (darwin_function_switched_text_sections):
38794 Likewise.
38795 * config/darwin.c (darwin_function_switched_text_sections): New.
38796 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
38797
38798 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
38799
38800 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
38801 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
38802 the secondary code fragment when outputting for DWARF == 2.
38803
38804 2011-01-07 Anatoly Sokolov <aesok@post.ru>
38805
38806 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
38807 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
38808 Remove.
38809 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
38810 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
38811
38812 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
38813
38814 PR debug/46704
38815 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
38816 when it is not empty.
38817
38818 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
38819
38820 Bobcat Enablement
38821 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
38822 (case ${target}): Add btver1.
38823 * config/i386/driver-i386.c (host_detect_local_cpu): Let
38824 -march=native recognize btver1 processors.
38825 * config/i386/i386-c.c (ix86_target_macros_internal): Add
38826 btver1 def_and_undef
38827 * config/i386/i386.c (struct processor_costs btver1_cost): New
38828 btver1 cost table.
38829 (m_BTVER1): New definition.
38830 (m_AMD_MULTIPLE): Includes m_BTVER1.
38831 (initial_ix86_tune_features): Add btver1 tune.
38832 (processor_target_table): Add btver1 entry.
38833 (static const char *const cpu_names): Add btver1 entry.
38834 (software_prefetching_beneficial_p): Add btver1.
38835 (ix86_option_override_internal): Add btver1 instruction sets.
38836 (ix86_issue_rate): Add btver1.
38837 (ix86_adjust_cost): Add btver1.
38838 * config/i386/i386.h (TARGET_BTVER1): New definition.
38839 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
38840 (enum processor_type): Add PROCESSOR_BTVER1.
38841 * config/i386/i386.md (define_attr "cpu"): Add btver1.
38842
38843 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38844
38845 PR target/43309
38846 * config/i386/i386.c (legitimize_tls_address)
38847 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
38848 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
38849 (tls_initial_exec_64_sun): New pattern.
38850
38851 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
38852
38853 * doc/invoke.texi (Overall Options): Improve wording and markup
38854 of the description of -wrapper.
38855
38856 2011-01-06 Joseph Myers <joseph@codesourcery.com>
38857
38858 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
38859 rdynamic, threads): New Driver options.
38860
38861 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38862
38863 PR target/38118
38864 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
38865 if coming from .tdata.
38866 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
38867
38868 2011-01-06 Jan Hubicka <jh@suse.cz>
38869
38870 PR lto/47188
38871 * collect2.c (main): Do not enable LTOmode when plugin is active.
38872
38873 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38874
38875 PR other/45915
38876 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
38877 --version output if supported.
38878 * configure: Regenerate.
38879
38880 2011-01-06 Joseph Myers <joseph@codesourcery.com>
38881
38882 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
38883 Driver options.
38884
38885 2011-01-06 Jakub Jelinek <jakub@redhat.com>
38886
38887 PR c/47150
38888 * c-convert.c (convert): When converting a complex expression
38889 other than COMPLEX_EXPR to a different complex type, ensure
38890 c_save_expr is called instead of save_expr, unless in_late_binary_op.
38891 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
38892 when converting COMPLEX_TYPE.
38893
38894 2011-01-06 Ira Rosen <irar@il.ibm.com>
38895
38896 PR tree-optimization/47139
38897 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
38898 only the last reduction value is used outside the loop. Update
38899 documentation.
38900
38901 2011-01-05 Joseph Myers <joseph@codesourcery.com>
38902
38903 * config/rtems.opt: New.
38904 * config.gcc (*-*-rtems*): Use rtems.opt.
38905
38906 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
38907
38908 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
38909 processors do not support 3DNow instructions.
38910
38911 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38912
38913 * config/spu/spu.c (spu_option_override): Set parameter
38914 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
38915
38916 2011-01-05 Jan Hubicka <jh@suse.cz>
38917
38918 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
38919 at the command line.
38920
38921 2011-01-05 Martin Jambor <mjambor@suse.cz>
38922
38923 PR lto/47162
38924 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
38925 deltas on streamed outgoing edges.
38926 (output_node_opt_summary): Output info for outgoing edges only when
38927 the node is in new parameter set.
38928 (output_cgraph_opt_summary): New parameter set, passed to the two
38929 aforementioned functions. Update its forward declaration and its
38930 callee too.
38931
38932 2011-01-05 Tom Tromey <tromey@redhat.com>
38933
38934 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
38935 operator to c_finish_omp_atomic.
38936 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
38937 (build_unary_op): Update.
38938 (build_modify_expr): Update.
38939 (build_asm_expr): Update.
38940
38941 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38942
38943 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
38944 newly inserted insns.
38945 (pad_bb): Likewise.
38946 (spu_emit_branch_hint): Likewise.
38947 (insert_hbrp_for_ilb_runout): Likewise.
38948 (spu_machine_dependent_reorg): Call df_finish_pass after
38949 schedule_insns returns.
38950
38951 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38952
38953 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
38954
38955 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
38956
38957 PR tree-optimization/47005
38958 * tree-sra.c (struct access): Add 'non_addressable' bit.
38959 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
38960 (decide_one_param_reduction): Return 0 if the parameter is passed by
38961 reference and one of the accesses in the group is non_addressable.
38962
38963 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
38964
38965 PR tree-optimization/47056
38966 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
38967 (mark_load): Likewise. Handle FUNCTION_DECL specially.
38968 (mark_store): Likewise. Pass STMT to ipa_record_reference.
38969
38970 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
38971
38972 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
38973 initializer. Skip view conversions from aggregate types.
38974
38975 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
38976
38977 PR bootstrap/47055
38978 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
38979
38980 2011-01-04 Philipp Thomas <pth@suse.de>
38981
38982 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
38983 obvious typo.
38984
38985 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38986
38987 * function.c (thread_prologue_and_epilogue_insns): Do not crash
38988 on empty epilogue sequences.
38989
38990 2011-01-04 Joseph Myers <joseph@codesourcery.com>
38991
38992 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
38993 non-static): New Driver options.
38994
38995 2011-01-04 Jie Zhang <jie@codesourcery.com>
38996
38997 PR driver/47137
38998 * gcc.c (default_compilers[]): Set combinable field to 0
38999 for all assembly languages.
39000
39001 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
39002
39003 * config/mips/loongson3a.md: New file.
39004 * config/mips/mips.md: Include loongson3a.md.
39005 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
39006 TUNE_LOONGSON_3A.
39007
39008 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
39009
39010 PR middle-end/47017
39011 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
39012 instead of convert_memory_address_addr_space on the base expression.
39013
39014 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39015
39016 * config/spu/spu.c (spu_option_override): Update error text
39017 for bad -march= / -mtune= values.
39018
39019 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39020
39021 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
39022 if branch-hint optimization will be performed.
39023
39024 2011-01-03 Jakub Jelinek <jakub@redhat.com>
39025
39026 PR tree-optimization/47148
39027 * ipa-split.c (split_function): Convert arguments to
39028 DECL_ARG_TYPE if possible.
39029
39030 PR tree-optimization/47155
39031 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
39032 when computing uns.
39033
39034 PR rtl-optimization/47157
39035 * combine.c (try_combine): If undobuf.other_insn becomes
39036 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
39037 and set *new_direct_jump_p too.
39038
39039 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
39040
39041 PR tree-optimization/47021
39042 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
39043
39044 2011-01-03 Jakub Jelinek <jakub@redhat.com>
39045
39046 * gcc.c (process_command): Update copyright notice dates.
39047 * gcov.c (print_version): Likewise.
39048 * gcov-dump.c (print_version): Likewise.
39049 * mips-tfile.c (main): Likewise.
39050 * mips-tdump.c (main): Likewise.
39051
39052 2011-01-03 Martin Jambor <mjambor@suse.cz>
39053
39054 PR tree-optimization/46801
39055 * tree-sra.c (type_internals_preclude_sra_p): Check whether
39056 aggregate fields start at byte boundary instead of the bit-field flag.
39057
39058 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
39059
39060 PR driver/47137
39061 * gcc.c (main): Revert revision 168407.
39062
39063 2011-01-03 Martin Jambor <mjambor@suse.cz>
39064
39065 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
39066
39067 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39068
39069 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
39070 vector optab to expand vector/scalar shift, update gimple to vector.
39071
39072 2011-01-03 Martin Jambor <mjambor@suse.cz>
39073
39074 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
39075 a thunk.
39076
39077 2011-01-03 Martin Jambor <mjambor@suse.cz>
39078
39079 PR tree-optimization/46984
39080 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
39081 HOST_WIDE_INT.
39082 (cgraph_create_indirect_edge): Fixed line length.
39083 (cgraph_indirect_call_info): Declare.
39084 (cgraph_make_edge_direct) Update declaration.
39085 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
39086 (cgraph_create_indirect_edge): Use it.
39087 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
39088 callees.
39089 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
39090 the new thunk_delta representation.
39091 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
39092 HOST_WIDE_INT.
39093 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
39094 (ipa_read_indirect_edge_info): Likewise.
39095 * lto-cgraph.c (output_edge_opt_summary): New function.
39096 (output_node_opt_summary): Call it on all outgoing edges.
39097 (input_edge_opt_summary): New function.
39098 (input_node_opt_summary): Call it on all outgoing edges.
39099
39100 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
39101
39102 PR driver/47137
39103 * gcc.c (main): Don't check have_o when settting combine_inputs.
39104
39105 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
39106
39107 * regrename.c: Add general comment describing the pass.
39108 (struct du_head): Remove 'length' field.
39109 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
39110 (regrename_optimize): Do not sort chains. Rework comments, add others.
39111 Force renaming to the preferred class (if any) in the first pass and do
39112 not consider registers that belong to it in the second pass.
39113 (create_new_chain): Do not set 'length' field.
39114 (scan_rtx_reg): Likewise.
39115
39116 2011-01-02 Jakub Jelinek <jakub@redhat.com>
39117
39118 PR tree-optimization/47140
39119 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
39120 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
39121 to bit_value_binop.
39122
39123 PR rtl-optimization/47028
39124 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
39125 parm_birth_insn instead of at the beginning of first bb.
39126
39127 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
39128
39129 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
39130 Remove the word "see" before "@pxref".
39131 * doc/rtl.texi: Remove the word "see" before "@pxref".
39132
39133 2011-01-01 Jan Hubicka <jh@suse.cz>
39134
39135 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
39136 memory.
39137
39138 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
39139
39140 PR target/38662
39141 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
39142
39143 \f
39144 Copyright (C) 2011 Free Software Foundation, Inc.
39145
39146 Copying and distribution of this file, with or without modification,
39147 are permitted in any medium without royalty provided the copyright
39148 notice and this notice are preserved.