re PR debug/51746 (Segfault in cselib_preserved_value_p)
[gcc.git] / gcc / ChangeLog
1 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2
3 PR debug/51746
4 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
5
6 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
7
8 PR tree-optimization/51624
9 * tree-sra.c (build_ref_for_model): When replicating a chain of
10 COMPONENT_REFs, stop as soon as the offset would become negative.
11
12 2012-01-04 Jakub Jelinek <jakub@redhat.com>
13
14 PR debug/51695
15 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
16 in .debug_loc on the floor.
17
18 2012-01-04 Andrew Pinski <apinski@cavium.com>
19
20 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
21
22 2012-01-04 Andrew Pinski <apinski@cavium.com>
23 Adam Nemet <anemet@caviumnetworks.com>
24
25 * config/mips/mips.md (size): Add SI and DI.
26 (SIZE): New mode attribute.
27 (U): New code attribute.
28 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
29 (mips_lbux_<mode>): Delete.
30 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
31 (mips_lhx): Use gen_mips_lhx_extsi.
32 (mips_lhx_<mode>): Delete.
33 (mips_lwx): Delete.
34 (mips_l<size>x): New expand.
35 (mips_lwx_<mode>): Delete.
36 (mips_l<GPR:size>x_<P:mode>): New pattern.
37 (*mips_lw<u>x_<P:mode>_ext): Likewise.
38 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
39 * config/mips/mips.c (mips_lx_address_p): New function.
40 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
41 (dsp64): New availability predicate.
42 (mips_builtins): Add an entry for __builtin_mips_ldx.
43 * config/mips/mips.h (ISA_HAS_LBX): New define.
44 (ISA_HAS_LBUX): Likewise.
45 (ISA_HAS_LHX): Likewise.
46 (ISA_HAS_LHUX): Likewise.
47 (ISA_HAS_LWX): Likewise.
48 (ISA_HAS_LWUX): Likewise.
49 (ISA_HAS_LDX): Likewise.
50 * doc/extend.texi (__builtin_mips_ldx): Document.
51
52 2012-01-04 Tristan Gingold <gingold@adacore.com>
53
54 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
55 when long pointers are used.
56 * config.build (*-*-*vms*): Handle all OpenVMS targets.
57 (alpha64-dec-*vms*, alpha*-dec-*vms*)
58 (ia64-hp-*vms*): Remove.
59 * config/vms/xm-vms64.h: Delete.
60
61 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
62
63 * opts.c (finish_options): Remove duplicate sorry.
64
65 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
66
67 PR middle-end/51696
68 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
69 correctly.
70
71 2012-01-04 Richard Guenther <rguenther@suse.de>
72
73 PR middle-end/51750
74 * tree.c (size_low_cst): New function.
75 * tree.h (size_low_cst): Declare.
76 * fold-const.c (fold_comparison): Use it to extract the low
77 part of the POINTER_PLUS_EXPR offset.
78
79 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
80
81 Fix clearing ZERO_REG
82 * config/avr/avr.md (cc): Add alternative "ldi".
83 (movqi_insn): Use it in cc attribute.
84 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
85 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
86 (output_reload_insisf): Use ZERO_REG to pre-clear register.
87
88 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
89
90 * configure: Regenerate.
91
92 2012-01-04 Richard Guenther <rguenther@suse.de>
93
94 PR tree-optimization/49651
95 * tree-ssa-structalias.c (type_can_have_subvars): New function.
96 (var_can_have_subvars): Use it.
97 (get_constraint_for_1): Only consider subfields if there
98 can be any.
99
100 2012-01-03 Jakub Jelinek <jakub@redhat.com>
101
102 PR bootstrap/51725
103 * cselib.c (new_elt_loc_list): When moving locs from one
104 cselib_val to its new canonical_cselib_val and the
105 cselib_val was in first_containing_mem chain, but
106 the canonical_cselib_val was not, add the latter into the
107 chain.
108 (cselib_invalidate_mem): Compare canonical_cselib_val of
109 addr_list chain elt with v.
110
111 PR pch/51722
112 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
113 dwarf2out_undef): Allocate e.info using ggc_strdup instead
114 of xstrdup.
115 (output_macinfo_op): Don't ggc_strdup fd->filename.
116 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
117 then ggc_strdup it. Don't free inc->info or cur->info.
118 (output_macinfo): Don't free ref->info or file->info.
119
120 2012-01-03 Ira Rosen <irar@il.ibm.com>
121
122 PR tree-optimization/51269
123 * tree-vect-loop-manip.c (set_prologue_iterations): Make
124 first_niters a pointer.
125 (slpeel_tree_peel_loop_to_edge): Likewise.
126 (vect_do_peeling_for_loop_bound): Update call to
127 slpeel_tree_peel_loop_to_edge.
128 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
129 here. Remove it from the parameters list.
130 (vect_do_peeling_for_alignment): Update calls and compute
131 wide_prolog_niters.
132
133 2012-01-03 Richard Guenther <rguenther@suse.de>
134
135 PR tree-optimization/51070
136 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
137 Properly handle calls.
138
139 2012-01-03 Richard Guenther <rguenther@suse.de>
140
141 PR tree-optimization/51692
142 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
143 the LHS of allocation stmts.
144
145 2012-01-03 Olivier Hainque <hainque@adacore.com>
146
147 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
148
149 2012-01-03 Olivier Hainque <hainque@adacore.com>
150
151 * collect2.c (main): In AIX specific computations for vector
152 insertions, use CONST_CAST2 to cast from char ** to const char **.
153
154 2012-01-03 Richard Guenther <rguenther@suse.de>
155
156 PR debug/51650
157 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
158 the context of a limbo DIE when it does not already exist.
159
160 2012-01-03 Jakub Jelinek <jakub@redhat.com>
161
162 PR tree-optimization/51719
163 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
164 but direct call is, clear direct call's lhs and don't add fallthrough
165 edge from dcall_bb to join_bb and PHIs.
166
167 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
168
169 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
170 the instructions emitted by the pattern.
171 ("*TDC_insn_<mode>"): Add comment.
172
173 2012-01-03 Richard Guenther <rguenther@suse.de>
174
175 PR middle-end/51730
176 * fold-const.c (fold_comparison): Properly canonicalize
177 tree offset and HOST_WIDE_INT bit position.
178
179 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
180
181 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
182 operands for extzv pattern.
183
184 2012-01-02 Jakub Jelinek <jakub@redhat.com>
185
186 PR bootstrap/51725
187 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
188 on mem_elt first.
189
190 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
191
192 * doc/invoke.texi (-flto and related options): Copy-edit.
193
194 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
195
196 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
197
198 2012-01-02 Jakub Jelinek <jakub@redhat.com>
199
200 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
201 New patterns.
202
203 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
204
205 * expr.h (move_by_pieces_ninsns): Declare.
206 * expr.c (move_by_pieces_ninsns): Make external.
207 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
208 (mips_store_by_pieces_p): Likewise.
209 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
210 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
211 * config/mips/mips.c (mips_move_by_pieces_p): New function.
212 (mips_store_by_pieces_p): Likewise.
213
214 2012-01-02 Jakub Jelinek <jakub@redhat.com>
215
216 * passes.c (register_one_dump_file): Free full_name.
217
218 * reload1.c (reload): Don't allocate reg_max_ref_width here.
219 (calculate_elim_costs_all_insns): Free offsets_at and
220 offsets_known_at at the end and clear the pointers.
221
222 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
223
224 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
225 this option introduced in r180739.
226
227 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
228
229 PR target/51345
230 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
231 (tmake_file target=avr): Add avr/t-multilib.
232
233 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
234 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
235 * config/avr/genmultilib.awk: New file.
236 * config/avr/t-multilib: New auto-generated file.
237 * config/avr/multilib.h: New auto-generated file.
238 * config/avr/t-avr (AVR_MCUS): New variable.
239 (genopt.sh): Use it.
240 (s-mlib): Depend on t-multilib.
241 (t-multilib, multilib.h): New dependencies.
242 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
243 (MULTILIB_OPTIONS): Remove.
244 (MULTILIB_MATCHES): Remove.
245 (MULTILIB_DIRNAMES): Remove.
246 (MULTILIB_EXCEPTIONS): Remove:
247 * config/avr/genopt.sh: Don't use hard coded file name;
248 pass AVR_MCUS from t-avr instead.
249
250 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
251
252 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
253
254 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
255
256 Implement light-weight DImode support.
257 * config/avr/avr-dimode.md: New file.
258 * config/avr/avr.md: Include it.
259 (adjust_len): Add plus64, compare64.
260 (HIDI): Remove code iterator.
261 (code_stdname): New code attribute.
262 (rotx, rotsmode): Remove DI.
263 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
264 as code iterator.
265 * config/avr/avr-protos.h (avr_have_dimode): New.
266 (avr_out_plus64, avr_out_compare64): New.
267 * config/avr/avr.c (avr_out_compare): Handle DImode.
268 (avr_have_dimode): New variable definition and initialization.
269 (avr_out_compare64, avr_out_plus64): New functions.
270 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
271 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
272 (avr_compare_pattern): Skip DImode comparisons.
273
274 2012-01-02 Revital Eres <revital.eres@linaro.org>
275
276 * ddg.c (def_has_ccmode_p): New function.
277 (add_cross_iteration_register_deps,
278 create_ddg_dep_from_intra_loop_link): Call it.
279
280 2012-01-02 Richard Guenther <rguenther@suse.de>
281
282 PR other/51679
283 * invoke.texi (fassociative-math): Remove spurious paranthesis.
284
285 2012-01-01 Jakub Jelinek <jakub@redhat.com>
286
287 * gcc.c (process_command): Update copyright notice dates.
288 * gcov.c (print_version): Likewise.
289 * gcov-dump.c (print_version): Likewise.
290 * mips-tfile.c (main): Likewise.
291 * mips-tdump.c (main): Likewise.
292
293 2012-01-01 Ira Rosen <irar@il.ibm.com>
294
295 PR tree-optimization/51704
296 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
297 a use is inside the basic block or loop before accessing its vect info.
298
299 2012-01-01 Jan Hubicka <jhjh@suse.cz>
300
301 PR rtl-optimization/51069
302 * cfgloopmanip.c (remove_path): Removing path making irreducible
303 region unconditional makes BB part of the region.
304
305 2012-01-01 Jakub Jelinek <jakub@redhat.com>
306
307 PR tree-optimization/51683
308 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
309 calls with side-effects.
310 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
311
312 2011-12-31 Alexandre Oliva <aoliva@redhat.com>
313
314 * cselib.h (cselib_add_permanent_equiv): Declare.
315 (canonical_cselib_val): New.
316 * cselib.c (new_elt_loc_list): Rework to support value
317 equivalences. Adjust all callers.
318 (preserve_only_constants): Retain value equivalences.
319 (references_value_p): Retain preserved values.
320 (rtx_equal_for_cselib_1): Handle value equivalences.
321 (cselib_invalidate_regno): Use canonical value.
322 (cselib_add_permanent_equiv): New.
323 * alias.c (find_base_term): Reset locs lists while recursing.
324 * var-tracking.c (val_bind): New. Don't add equivalences
325 present in cselib table, compared with code moved from...
326 (val_store): ... here.
327 (val_resolve): Use val_bind.
328 (VAL_EXPR_HAS_REVERSE): Drop.
329 (add_uses): Do not create MOps for addresses. Do not mark
330 non-REG non-MEM expressions as requiring resolution.
331 (reverse_op): Record reverse as a cselib equivalence.
332 (add_stores): Use it. Do not create MOps for addresses.
333 Do not require resolution for non-REG non-MEM expressions.
334 Simplify support for reverse operations.
335 (compute_bb_dataflow): Drop reverse support.
336 (emit_notes_in_bb): Likewise.
337 (create_entry_value): Rename to...
338 (record_entry_value): ... this. Use cselib equivalences.
339 (vt_add_function_parameter): Adjust.
340
341 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
342
343 * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
344 in setting options via target #pragma or attribute.
345
346 2011-12-30 Anatoly Sokolov <aesok@post.ru>
347
348 * config/bfin/bfin.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
349 * config/bfin/bfin-protos.h (bfin_register_move_cost,
350 bfin_memory_move_cost): Remove.
351 * config/bfin/bfin.c (bfin_register_move_cost,
352 bfin_memory_move_cost): Make static. Change arguments type from
353 enum reg_class to reg_class_t and from int to bool.
354 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
355
356 2011-12-30 Nathan Sidwell <nathan@acm.org>
357
358 * gcov.c (total_lines, total_executed): New global vars.
359 (generate_results): Call executed_summary.
360 (executed_summary): New function, broken out of ...
361 (function_summary): ... here. Call it.
362 * coverage.c (coverage_finish): Also check for local_tick == -1.
363 * gcov-dump (tag_function): Correct labelling typo.
364
365 2011-12-29 Michael Meissner <meissner@linux.vnet.ibm.com>
366
367 PR target/51623
368 * config/rs6000/rs6000.c (rs6000_assemble_integer): Delete check
369 for an initialized pointer being in a text section with
370 -mrelocatable, since it should never happen.
371
372 2011-12-29 Michael Eager <eager@eagercon.com>
373
374 * config/microblaze/microblaze.md: Add expander for simple_return,
375 return, add return_internal and simple_return_internal insns.
376
377 2011-12-29 Oleg Endo <olegendo@gcc.gnu.org>
378
379 * config/sh/sh.h (BRANCH_COST): Use sh_branch_cost variable.
380 * config/sh/sh.c (sh_option_override): Simplify sh_branch_cost
381 expression.
382
383 2011-12-28 Ian Lance Taylor <iant@google.com>
384
385 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
386
387 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
388
389 PR target/51623
390 * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
391 unlikely_text_section_p. Instead check for being in a code section.
392
393 2011-12-28 Ira Rosen <irar@il.ibm.com>
394
395 PR tree-optimization/51684
396 * tree-vect-slp.c (vect_schedule_slp_instance): Get gsi of original
397 statement in case of a pattern.
398 (vect_schedule_slp): Likewise.
399
400 2011-12-27 Eric Botcazou <ebotcazou@adacore.com>
401
402 PR rtl-optimization/51667
403 * ree.c (insn_merge_code): Delete.
404 (is_insn_merge_attempted): Likewise.
405 (get_insn_status): Likewise.
406 (set_insn_status): Likewise.
407 (struct ext_cand): Add CODE and MODE fields.
408 (combine_set_extend): Rename to...
409 (combine_set_extension): ...this. Use above fields and tidy up.
410 (transform_ifelse): Likewise.
411 (get_defs): Return the chain of definitions.
412 (is_this_a_cmove): Merge into...
413 (is_cond_copy_insn): ...this. Return bool.
414 (make_defs_and_copies_lists): Adjust calls to get_defs and simplify.
415 (merge_def_and_ext): Adjust call to combine_set_extend.
416 (combine_reaching_defs): Remove calls to {g|s}et_insn_status.
417 (struct extend_info): Rename to...
418 (struct re_info): ...this. Add DEF_MAP field.
419 (add_ext_candidate): Merge into...
420 (add_removable_extension): ...this. Adjust calls to get_defs. Ensure
421 reaching definitions are associated with only one kind of extension.
422 (find_removable_extensions): Create and destroy the definition map.
423 (find_and_remove_re): Return void. Change 'long' variables to 'int'.
424 Do not deal with is_insn_merge_attempted.
425
426 2011-12-25 Jan Hubicka <jh@suse.cz>
427
428 PR middle-end/48641
429 * tree-ssa-threadupdate.c (redirect_edges): Watch for overflow.
430
431 2011-12-26 Oleg Endo <oleg.endo@t-online.de>
432
433 * config/sh/sync.md: Add soft atomics ABI description.
434 (fetchop_name): Use 'or' instead of 'ior'.
435 (fetchop_insn): Remove.
436 (atomic_compare_and_swap<mode>_soft):
437 Don't insert aligning nop after the write-back instruction. Fix
438 multi-line asm output formatting style.
439 (atomic_fetch_<fetchop_name><mode>_soft): Likewise.
440 (atomic_fetch_nand<mode>_soft): Likewise.
441 (atomic_<fetchop_name>_fetch<mode>_soft): Likewise.
442 (atomic_nand_fetch<mode>_soft): Likewise.
443
444 2011-12-23 Richard Henderson <rth@redhat.com>
445
446 * tree.def (VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR): Remove.
447 * cfgexpand.c (expand_debug_expr): Don't handle them.
448 * expr.c (expand_expr_real_2): Likewise.
449 * fold-const.c (fold_binary_loc): Likewise.
450 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
451 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
452 * tree-inline.c (estimate_operator_cost): Likewise.
453 * tree-pretty-print.c (dump_generic_node): Likewise.
454 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
455 * optabs.c (optab_for_tree_code): Likewise.
456 (can_vec_perm_for_code_p): Remove.
457 (expand_binop): Don't try it.
458 (init_optabs): Don't init vec_extract_even/odd_optab.
459 * genopinit.c (optabs): Likewise.
460 * optabs.h (OTI_vec_extract_even, OTI_vec_extract_odd): Remove.
461 (vec_extract_even_optab, vec_extract_odd_optab): Remove.
462 * tree-vect-data-refs.c (vect_strided_store_supported): Tidy code.
463 (vect_permute_store_chain): Use TYPE_VECTOR_SUBPARTS instead of
464 GET_MODE_NUNITS; check vect_gen_perm_mask return value instead of
465 asserting vect_strided_store_supported.
466 (vect_strided_load_supported): Use can_vec_perm_p.
467 (vect_permute_load_chain): Use VEC_PERM_EXPR.
468
469 * doc/generic.texi (VEC_EXTRACT_EVEN_EXPR): Remove.
470 (VEC_EXTRACT_ODD_EXPR): Remove.
471 * doc/md.texi (vec_extract_even, vec_extract_odd): Remove.
472
473 2011-12-23 Anatoly Sokolov <aesok@post.ru>
474
475 * config/score/score.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
476 * config/score/score-protos.h (score_register_move_cost): Remove.
477 * config/score/score.c (TARGET_REGISTER_MOVE_COST): Define.
478 (score_register_move_cost): Make static. Change arguments type from
479 enum reg_class to reg_class_t.
480
481 2011-12-23 Jakub Jelinek <jakub@redhat.com>
482 Richard Henderson <rth@redhat.com>
483
484 * tree.def (VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR): Remove.
485 * gimple-pretty-print.c (dump_binary_rhs): Don't handle
486 VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
487 * expr.c (expand_expr_real_2): Likewise.
488 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
489 * cfgexpand.c (expand_debug_expr): Likewise.
490 * tree-inline.c (estimate_operator_cost): Likewise.
491 * tree-pretty-print.c (dump_generic_node): Likewise.
492 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
493 * fold-const.c (fold_binary_loc): Likewise.
494 * doc/generic.texi (VEC_INTERLEAVE_HIGH_EXPR,
495 VEC_INTERLEAVE_LOW_EXPR): Remove documentation.
496 * optabs.c (optab_for_tree_code): Don't handle
497 VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
498 (expand_binop, init_optabs): Remove vec_interleave_high_optab
499 and vec_interleave_low_optab.
500 * genopinit.c (optabs): Likewise.
501 * optabs.h (OTI_vec_interleave_high, OTI_vec_interleave_low): Remove.
502 (vec_interleave_high_optab, vec_interleave_low_optab): Remove.
503 * doc/md.texi (vec_interleave_high, vec_interleave_low): Remove
504 documentation.
505 * tree-vect-stmts.c (gen_perm_mask): Renamed to...
506 (vect_gen_perm_mask): ... this. No longer static.
507 (perm_mask_for_reverse, vectorizable_load): Adjust callers.
508 * tree-vectorizer.h (vect_gen_perm_mask): New prototype.
509 * tree-vect-data-refs.c (vect_strided_store_supported): Don't try
510 VEC_INTERLEAVE_*_EXPR, use can_vec_perm_p instead of
511 can_vec_perm_for_code_p.
512 (vect_permute_store_chain): Generate VEC_PERM_EXPR with interleaving
513 masks instead of VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
514 * config/i386/i386.c (expand_vec_perm_interleave2): If
515 expand_vec_perm_interleave3 would handle it, return false.
516 (expand_vec_perm_broadcast_1): Don't use vec_interleave_*_optab.
517
518 2011-12-23 Richard Henderson <rth@redhat.com>
519
520 * config/mips/loongson.md (UNSPEC_LOONGSON_PINSR_0,
521 UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2,
522 UNSPEC_LOONGSON_PINSR_3): Replace with...
523 (UNSPEC_LOONGSON_PINSRH): ... this.
524 (UNSPEC_LOONGSON_VINIT): New.
525 (UNSPEC_LOONGSON_DSLL, UNSPEC_LOONGSON_DSRL): New.
526 (VWB): New mode iterator.
527 (V_inner): New mode attribute.
528 (loongson_vec_init1_<VHB>): New.
529 (*vec_concatv2si): New.
530 (and<VWHB>3, ior<VWHB>3, xor<VWHB>3, one_cmpl<VWHB>2): New.
531 (*loongson_nor): New.
532 (loongson_pextrh): Un-macro-ify.
533 (loongson_pmaddhw): Likewise.
534 (smaxv4hi3, umaxv8qi3, sminv4hi3, uminv8qi3): Likewise.
535 (loongson_pinsrh_0): Represent with vec_select+vec_concat.
536 (loongson_pinsrh_1, loongson_pinsrh_2, loongson_pinsrh_3): Likewise.
537 (*vec_setv4hi, vec_setv4hi): New.
538 (sdot_prodv4hi): New.
539 (smax<VWB>3, smin<VWB>3): New.
540 (reduc_uplus_v8qi): New.
541 (loongson_pshufh): Remove destination matching input.
542 (ashl<VWH>3, ashr<VWH>3, lshr<VWH>3): Fix type attribute.
543 (vec_interleave_high<VWHB>, vec_interleave_low<VWHB>): Remove.
544 (loongson_punpckhbh, loongson_punpckhhw, loongson_punpckhhw_qi,
545 loongson_punpckhwd, loongson_punpckhwd_qi, loongson_punpckhwd_hi,
546 loongson_punpcklbh, loongson_punpcklhw, loongson_punpcklhw_qi,
547 loongson_punpcklwd, loongson_punpcklwd_qi, loongson_punpcklwd_hi,
548 vec_perm_const<VWHB>, vec_unpacks_lo_<VHB>, vec_unpacks_hi_<VHB>,
549 vec_unpacku_lo_<VHB>, vec_unpacku_hi_<VHB>, vec_shl_<VWHBDI>,
550 vec_shr_<VWHBDI>, reduc_uplus_<VWH>, reduc_splus_<VWHB>,
551 reduc_smax_<VWHB>, reduc_smin_<VWHB>, reduc_umax_<VWHB>,
552 reduc_umin_<VB>): New.
553 * config/mips/mips-ps-3d.md (vec_perm_const_ps): New.
554 (mips_pul_ps, mips_puu_ps, mips_pll_ps, mips_plu_ps): Expand in
555 terms of vec_perm_const_ps.
556 (vec_perm_constv2sf): New.
557 (vec_initv2sf): Use mips_expand_vector_init.
558 (vec_concatv2sf): Rename from vec_initv2sf_internal.
559 (vec_setv2sf): Use vec_perm_const_ps.
560 (reduc_splus_v2sf, reduc_smin_v2sf, reduc_smax_v2sf): New.
561 * config/mips/loongson.h (pshufh_u, pshufh_s): Don't pass dest to
562 the builtin.
563 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V4SF): New modes.
564 * config/mips/mips-protos.h: Update.
565 * config/mips/mips.c (mips_get_arg_info): Match V2SFmode, not all
566 MODE_VECTOR_FLOAT.
567 (mips_return_mode_in_fpr_p): Likewise.
568 (mips_cannot_change_mode_class): Allow 8-byte integral mode changes.
569 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw,
570 CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh,
571 CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): Remove.
572 (mips_builtins): Remove first operand for loongson pshufh builtins.
573 (MAX_VECT_LEN, struct expand_vec_perm_d): New.
574 (mips_expand_vselect, mips_expand_vselect_vconcat,
575 mips_expand_vpc_loongson_even_odd, mips_expand_vpc_loongson_pshufh,
576 mips_expand_vpc_loongson_bcast, mips_expand_vec_perm_const_1,
577 mips_expand_vec_perm_const, mips_vectorize_vec_perm_const_ok,
578 mips_expand_vec_unpack, mips_constant_elt_p, mips_expand_vi_broadcast,
579 mips_expand_vi_constant, mips_expand_vi_loongson_one_pinsrh,
580 mips_expand_vi_general, mips_expand_vec_reduc, mips_expand_vec_minmax,
581 TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
582 (mips_expand_vector_init): Rewrite.
583 * config/mips/predicates.md (const_2_or_3_operand): New.
584 (const_0_to_3_operand): New.
585
586 2011-12-23 Dmitry Plotnikov <dplotnikov@ispras.ru>
587
588 * config/arm/neon.md (float<mode><V_cvtto>2): New.
589 (floatuns<mode><V_cvtto>2): New.
590 (fix_trunc<mode><V_cvtto>2): New.
591 (fix_truncuns<mode><V_cvtto>2): New.
592 * config/arm/iterators.md (V_cvtto): New iterator.
593
594 2011-12-23 Richard Guenther <rguenther@suse.de>
595
596 PR rtl-optimization/50396
597 * simplify-rtx.c (simplify_binary_operation_1): Properly
598 guard code that only works for integers.
599
600 2011-12-23 Tristan Gingold <gingold@adacore.com>
601
602 * config/vms/vms-crtlmap.map (log10): Fix typo.
603
604 2011-12-23 Tristan Gingold <gingold@adacore.com>
605
606 * config/ia64/vms.h (SUPPORTS_ONE_ONLY): Define.
607
608 2011-12-22 Bin Cheng <bin.cheng@arm.com>
609 Richard Guenther <rguenther@suse.de>
610
611 PR tree-optimization/43491
612 * tree-ssa-pre.c (eliminate): Don't replace global register
613 variable when it is the RHS of a single assign.
614
615 2011-12-22 Joey Ye <joey.ye@arm.com>
616
617 * toplev.c (process_options): Fix typo.
618
619 2011-12-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
620
621 PR middle-end/51252
622 * config/pa/pa.c (pa_som_tm_clone_table_section): New function.
623 (som_tm_clone_table_section): Declare.
624 (pa_file_start_space): Create $TM_CLONE_TABLE$ subspace.
625 (pa_som_asm_init_sections): Init som_tm_clone_table_section.
626 * config/pa/som.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
627
628 2011-12-22 Richard Sandiford <rdsandiford@googlemail.com>
629
630 * doc/tm.texi.in (TARGET_PREPARE_PCH_SAVE): New hook.
631 * doc/tm.texi: Regenerate.
632 * target.def (prepare_pch_save): New hook.
633 * c-family/c-pch.c (c_common_write_pch): Call it.
634 * config/mips/mips.c (was_mips16_pch_p): Delete.
635 (mips_set_mips16_mode): Don't refer to was_mips16_pch_p.
636 (mips_prepare_pch_save): New function.
637 (TARGET_PREPARE_PCH_SAVE): Define.
638
639 2011-12-22 Aldy Hernandez <aldyh@redhat.com>
640
641 PR middle-end/51212
642 * opts.c (finish_options): Call sorry on -fgnu-tm and
643 -fnon-call-exceptions combination.
644
645 2011-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
646
647 * doc/invoke.texi (C++ Dialect Options): Add missing options and
648 move -Wzero-as-null-pointer-constant to ...
649 (Warning Options): ... here.
650
651 2011-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
652
653 PR target/47643
654 * doc/invoke.texi (i386 and x86-64 Options): Fix description of
655 -mtune without -march.
656
657 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
658
659 PR target/51643
660 * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
661 change.
662
663 2011-12-22 Tristan Gingold <gingold@adacore.com>
664
665 * config/ia64/ia64.c (ia64_promote_function_mode): Remove.
666 (TARGET_PROMOTE_FUNCTION_MODE): Remove.
667 (ia64_function_value): Call promote_function_mode instead of
668 ia64_promote_function_mode.
669 * config/ia64/vms.h (PROMOTE_MODE): Define.
670 (TARGET_PROMOTE_FUNCTION_MODE): Define.
671
672 2011-12-22 Uros Bizjak <ubizjak@gmail.com>
673
674 PR target/27468
675 * common/config/alpha/alpha-common.c (alpha_option_optimization_table):
676 Enable flag_ree at -O2 or higher.
677
678 2011-12-22 Richard Guenther <rguenther@suse.de>
679
680 PR lto/51650
681 * lto.c (uniquify_nodes): Register TYPE_DECLs with the
682 debuginfo machinery.
683
684 2011-12-22 Bernd Schmidt <bernds@codesourcery.com>
685
686 * tree-pass.h (pass_reload): Declare.
687 * ira.c (overall_cost_before, saved_flag_ira_share_spill_slots):
688 New global variables, moved out of ira.
689 (do_reload): New static function, split off from the second half
690 of ...
691 (ira): ... here.
692 (gate_ira): Remove.
693 (pass_ira): Use TV_IRA, set gate to NULL, and set flags to
694 TODO_dump_func.
695 (rest_of_handle_reload): New static function.
696 (pass_reload): New.
697
698 2011-12-22 Uros Bizjak <ubizjak@gmail.com>
699
700 * common/config/i386/i386-common.c (ix86_option_optimization_table):
701 Move OPT_free processing from ...
702 * config/i386/i386.c (ix86_option_override_internal): ... here.
703
704 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
705
706 PR target/51643
707 * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
708 weak function on bare-metal EABI targets.
709
710 2011-12-21 Jonathan Wakely <jwakely.gcc@gmail.com>
711 Jim Avera <james_avera@yahoo.com>
712
713 * doc/extend.texi (__builtin_expect): Improve example.
714
715 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
716
717 * config/i386/i386.c (ix86_option_override_internal): Enable flag_ree
718 also for 32bit targets.
719
720 2011-12-21 Richard Henderson <rth@redhat.com>
721
722 PR target/51552
723 * dwarf2cfi.c (dwarf2out_frame_debug): Move any_cfis_emitted code...
724 (scan_trace): ... here.
725
726 2011-12-21 Jason Merrill <jason@redhat.com>
727
728 * doc/standards.texi (C++ language): Update for C++11.
729
730 2011-12-21 Jakub Jelinek <jakub@redhat.com>
731
732 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Initialize
733 *op0 and *op1 to NULL_TREE first to avoid warnings.
734 * calls.c (initialize_argument_information): Initialize base to avoid
735 warnings.
736
737 PR middle-end/51644
738 PR middle-end/51647
739 * tree-eh.c (decide_copy_try_finally): At -O0, return true
740 even when ndests is not 1, if there are only gimple_clobber_p
741 (or debug) stmts in the finally sequence.
742 * tree-inline.c (estimate_num_insns): Return 0 for gimple_clobber_p
743 stmts.
744
745 2011-12-21 Aldy Hernandez <aldyh@redhat.com>
746
747 PR middle-end/51472
748 * trans-mem.c (tm_log_add): Use create_tmp_var_reg.
749
750 2011-12-21 Martin Jambor <mjambor@suse.cz>
751
752 * tree-into-ssa.c (rewrite_update_stmt): Do not dump extra newlines.
753 (rewrite_update_enter_block): Likewise.
754 (dump_update_ssa): Likewise.
755 (update_ssa): Likewise but also dump a newline at the beginning.
756
757 2011-12-21 Enkovich Ilya <ilya.enkovich@intel.com>
758
759 PR target/50038
760 * implicit-zee.c: Delete.
761 * ree.c: New file.
762 * Makefile.in: Replace implicit-zee.c with ree.c.
763 * config/i386/i386.c (ix86_option_override_internal): Rename
764 flag_zee to flag_ree.
765 * common.opt (fzee): Ignored.
766 (free): New.
767 * passes.c (init_optimization_passes): Replace pass_implicit_zee
768 with pass_ree.
769 * tree-pass.h (pass_implicit_zee): Delete.
770 (pass_ree): New.
771 * timevar.def (TV_ZEE): Delete.
772 (TV_REE): New.
773 * doc/invoke.texi: Add -free description.
774
775 2011-12-21 Tristan Gingold <gingold@adacore.com>
776
777 * config/vms/vms-protos.h (vms_function_section): New prototype.
778 * config/vms/vms.c (vms_function_section): New function.
779 * config/vms/vms.h (TARGET_ASM_FUNCTION_SECTION): Define.
780
781 2011-12-21 Richard Guenther <rguenther@suse.de>
782
783 PR lto/41159
784 * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
785 mode of the pseudo as destination mode. Only assert that
786 is equal to the promoted mode of the decl if it is a REG.
787
788 2011-12-21 Tristan Gingold <gingold@adacore.com>
789
790 * config/vms/xm-vms.h (STANDARD_EXEC_PREFIX): Remove define.
791
792 2011-12-20 Richard Henderson <rth@redhat.com>
793
794 * config/ia64/ia64.c (MAX_VECT_LEN): New.
795 (struct expand_vec_perm_d): New.
796 (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
797 (ia64_unpack_assemble): Use ia64_expand_vec_perm_const_1.
798 (expand_vselect, expand_vselect_vconcat): New.
799 (expand_vec_perm_identity, expand_vec_perm_shrp): New.
800 (expand_vec_perm_1, expand_vec_perm_broadcast): New.
801 (expand_vec_perm_interleave_2, expand_vec_perm_v4hi_5): New.
802 (ia64_expand_vec_perm_const_1, ia64_expand_vec_perm_const): New.
803 (ia64_vectorize_vec_perm_const_ok): New.
804 (ia64_expand_vec_setv2sf, ia64_expand_vec_perm_even_odd): New.
805 * config/ia64/ia64-protos.h: Update.
806 * config/ia64/vect.md (VEC): New mode iterator.
807 (vecint): New mode attribute.
808 (vec_interleave_lowv8qi, vec_interleave_highv8qi): Privatize with '*'.
809 (vec_interleave_lowv4hi, vec_interleave_highv4hi): Likewise.
810 (vec_interleave_lowv2si, vec_interleave_highv2si): Likewise.
811 (vec_interleave_lowv2sf, vec_interleave_highv2sf): Likewise.
812 (mix1_even, mix1_odd, mux1_alt): Likewise.
813 (mux1_brcst_qi): Remove '*' from name.
814 (vec_extract_evenv8qi, vec_extract_oddv8qi): Remove.
815 (vec_extract_evenv4hi, vec_extract_oddv4hi): Remove.
816 (vec_extract_evenv2si, vec_extract_oddv2si): Remove.
817 (vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
818 (vec_extract_evenodd_helper): Remove.
819 (vec_setv2sf): Use ia64_expand_vec_setv2sf.
820 (vec_pack_trunc_v4hi): Use ia64_expand_vec_perm_even_odd.
821 (vec_pack_trunc_v2si): Likewise.
822 (vec_perm_const<VEC>): New.
823
824 2011-12-20 Richard Henderson <rth@redhat.com>
825
826 * tree-vect-generic.c (expand_vector_operations_1): Correct tests
827 for vector types -- use the type not the mode. Fix optab selection
828 for vector shifts by a scalar. Handle over-large integer modes
829 like BLKmode.
830
831 2011-12-20 Richard Henderson <rth@redhat.com>
832
833 * config/arm/arm.md (*arm_xorsi3): Match iorsi3 and perform
834 post-reload splitting.
835
836 * config/arm/arm.md (*arm_cmpdi_unsigned): Enable for thumb2.
837 * config/arm/arm.c (arm_select_cc_mode): Use it.
838
839 2011-12-20 Richard Sandiford <rdsandiford@googlemail.com>
840
841 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
842 handling of signedness differences to integer types. Only build
843 a new optype if type1 isn't correct.
844
845 2011-12-20 Vladimir Makarov <vmakarov@redhat.com>
846
847 PR target/49865
848 * ira-costs.c (find_costs_and_classes): Prefer registers even
849 if the memory cost is the same.
850
851 2011-12-20 Joseph Myers <joseph@codesourcery.com>
852
853 * c-decl.c (diagnose_mismatched_decls, grokdeclarator, grokfield)
854 (finish_struct): Refer to C11 in comments. Use flag_isoc11.
855 * c-parser.c (c_parser_static_assert_declaration)
856 (c_parser_static_assert_declaration_no_semi, c_parser_declspecs)
857 (c_parser_alignas_specifier, c_parser_alignof_expression): Refer
858 to C11 in comments. Use flag_isoc11.
859 * c-typeck.c (comptypes_check_different_types): Refer to C11 in
860 comment.
861 * doc/cpp.texi (Overview): Refer to -std=c11 instead of -std=c1x.
862 * doc/cppopts.texi (-std=c11, -std=gnu11): Document in preference
863 to -std=c1x and -std=gnu1x.
864 * doc/extend.texi (Inline, Alternate Keywords, Other Builtins)
865 (__builtin_complex, Unnamed Fields): Refer to -std=c11 and C11
866 instead of -std=c1x and C1X.
867 * doc/invoke.texi (-std=c11, -std=iso9899:2011): Document in
868 preference to -std=c1x.
869 (-std=gnu11): Document in preference to -std=gnu1x.
870 * doc/standards.texi: Document C11 instead of C1X. Document C11
871 as actual standard. Document headers required from freestanding
872 C11 implementations.
873 * ginclude/float.h, ginclude/stddef.h: Test __STDC_VERSION__ >=
874 201112L for C11. Update comments to refer to C11.
875
876 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
877
878 * configure: Regenerate.
879
880 2011-12-20 Bernd Schmidt <bernds@codesourcery.com>
881
882 PR middle-end/51200
883 * expr.c (store_field): Avoid a direct store if the mode is larger
884 than the size of the bit field.
885 * stor-layout.c (layout_decl): If flag_strict_volatile_bitfields,
886 treat non-volatile bit fields like volatile ones.
887 * toplev.c (process_options): Disallow combination of
888 -fstrict-volatile-bitfields and ABI versions less than 2.
889 * config/arm/arm.c (arm_option_override): Don't enable
890 flag_strict_volatile_bitfields if the ABI version is less than 2.
891 * config/h8300/h8300.c (h8300_option_override): Likewise.
892 * config/rx/rx.c (rx_option_override): Likewise.
893 * config/m32c/m32c.c (m32c_option_override): Likewise.
894 * config/sh/sh.c (sh_option_override): Likewise.
895
896 2011-12-20 Richard Guenther <rguenther@suse.de>
897
898 PR lto/46796
899 * dwarf2out.c (modified_type_die): When the type variant
900 chain is corrupt use the types name, if available, instead
901 of __unknown__.
902
903 2011-12-20 Tristan Gingold <gingold@adacore.com>
904
905 * config/alpha/alpha.c (alpha_start_function): Adjust condition to
906 create VMS trampoline entry point.
907
908 2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
909
910 PR rtl-optimization/42839
911 * fwprop.c (forward_propagate_subreg): Skip the SIGN/ZERO_EXTEND
912 optimization if the source register is already extended.
913
914 2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
915
916 * lower-subreg.c (can_decompose_p): Check every word of a hard
917 register.
918
919 2011-12-19 Sandra Loosemore <sandra@codesourcery.com>
920 Tom de Vries <tom@codesourcery.com>
921
922 PR rtl-opt/50380
923 * cse.c (find_comparison_args): Detect fixed point and
924 bail early.
925
926 2011-12-19 Aldy Hernandez <aldyh@redhat.com>
927
928 PR middle-end/51411
929 * trans-mem.c (ipa_tm_create_version): Unset DECL_WEAK.
930
931 2011-12-19 Quentin Neill <quentin.neill@amd.com>
932
933 PR target/48743
934 * config/i386/driver-i386.c (host_detect_local_cpu): Also check
935 family to distinguish PROCESSOR_ATHLON.
936
937 2011-12-19 Richard Guenther <rguenther@suse.de>
938
939 PR lto/51573
940 * streamer-hooks.h (struct streamer_hooks): Add second
941 ref_p parameter to write_tree.
942 (stream_write_tree): Adjust.
943 (stream_write_tree_shallow_non_ref): New define.
944 * lto-streamer.h (lto_output_tree): Adjust.
945 * lto-streamer-out.c (lto_output_tree): Likewise.
946 * tree-streamer-out.c (streamer_write_chain): Only
947 force the immediate tree to be streamed as non-reference.
948
949 2011-12-19 Martin Jambor <mjambor@suse.cz>
950
951 PR tree-optimization/51583
952 * tree-sra.c (load_assign_lhs_subreplacements): Call
953 force_gimple_operand_gsi when necessary also in case of no
954 corresponding replacement on the RHS.
955
956 2011-12-19 Jakub Jelinek <jakub@redhat.com>
957
958 * gimple.h (gimplify_seq_add_stmt): Rename to...
959 (gimple_seq_add_stmt_without_update): ... this.
960 * gimplify.c (gimplify_seq_add_stmt): Rename to...
961 (gimple_seq_add_stmt_without_update): ... this.
962 (gimplify_seq_add_stmt): New inline wrapper for it.
963 * tree-vect-patterns.c (append_pattern_def_seq): Use
964 gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.
965
966 PR tree-optimization/51596
967 * tree-cfg.c (replace_uses_by): Call gimple_purge_dead_eh_edges
968 when needed.
969
970 PR middle-end/51590
971 PR tree-optimization/51606
972 * tree-vect-patterns.c (append_pattern_def_seq, new_pattern_def_seq):
973 New inline functions.
974 (vect_recog_over_widening_pattern,
975 vect_recog_vector_vector_shift_pattern,
976 vect_recog_sdivmod_pow2_pattern, vect_recog_mixed_size_cond_pattern,
977 adjust_bool_pattern_cast, vect_recog_bool_pattern): Use them.
978
979 2011-12-19 Richard Guenther <rguenther@suse.de>
980
981 PR lto/51572
982 * tree.c (free_lang_data_in_type): Do not unlink TYPE_DECL
983 from TYPE_FIELDS.
984 (find_decls_types_r): Walk TYPE_DECLs in TYPE_FIELDS.
985 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Do
986 not stream TREE_CHAIN.
987 (write_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
988 using streamer_write_chain.
989 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
990 Do not stream TREE_CHAIN.
991 (lto_input_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
992 using streamer_read_chain.
993 * gimple-streamer-in.c (input_gimple_stmt): Skip non-FIELD_DECLs.
994 * gimple.c (gimple_canonical_types_compatible_p): Properly
995 handle trailing non-FIELD_DECLs in TYPE_FIELDS.
996
997 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
998
999 * configure: Regenerate.
1000
1001 2011-12-19 Bernd Schmidt <bernds@codesourcery.com>
1002
1003 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx[3] for
1004 partial integer modes.
1005
1006 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
1007
1008 PR target/51532
1009 * config/m68k/m68k.h (FL_CAS, TARGET_CAS): Define.
1010 * config/m68k/m68k.c (FL_FOR_isa_20): Add FL_CAS.
1011 * config/m68k/sync.md: Use TARGET_CAS instead of (TARGET_68020 ||
1012 TARGET_68040).
1013
1014 2011-12-18 Anatoly Sokolov <aesok@post.ru>
1015
1016 * config/ia64/ia64.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1017 LEGITIMATE_ADDRESS_REG, LEGITIMATE_ADDRESS_DISP,
1018 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1019 * config/ia64/ia64.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
1020 (ia64_reg_ok_for_base_p, ia64_legitimate_address_reg,
1021 ia64_legitimate_address_disp, ia64_legitimate_address_p): New
1022 functions.
1023
1024 2011-12-17 Tom de Vries <tom@codesourcery.com>
1025
1026 PR tree-optimization/51491
1027 * tree-ssa-ccp.c (insert_clobber_before_stack_restore)
1028 (gsi_prev_dom_bb_nondebug, insert_clobbers_for_var): New function.
1029 (ccp_fold_stmt): Use insert_clobbers_for_var after a successful
1030 fold_builtin_alloca_with_align.
1031 (ccp_visit_stmt): Calculate and free dominator info.
1032
1033 2011-12-16 Eric Botcazou <ebotcazou@adacore.com>
1034
1035 * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
1036 (frame_blockage): New expander.
1037 (frame_blockage<P:mode>): New instruction.
1038 * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
1039 instructions establishing the frame isn't atomic, emit frame blockage.
1040
1041 2011-12-16 Tristan Gingold <gingold@adacore.com>
1042
1043 * config/alpha/vms.h (USE_TM_CLONE_REGISTRY): Define.
1044
1045 2011-12-16 Tristan Gingold <gingold@adacore.com>
1046
1047 * config/alpha/alpha.c (alpha_use_linkage): Follow transparent alias.
1048 (alpha_write_one_linkage): Use assemble_name to emit linkage name.
1049
1050 2011-12-16 Tristan Gingold <gingold@adacore.com>
1051
1052 * config/vms/t-vms (vms.o, vms-c.o): Force output filename.
1053
1054 2011-12-16 Tristan Gingold <gingold@adacore.com>
1055
1056 * config/vms/vms.c (VMS_CRTL_GLOBAL): Define.
1057 (vms_patch_builtins): Handle.
1058 * config/vms/vms-crtlmap.map: Add an entry for environ.
1059
1060 2011-12-16 Jakub Jelinek <jakub@redhat.com>
1061
1062 PR debug/51557
1063 * sel-sched-ir.c (create_copy_of_insn_rtx): Copy all notes
1064 other than REG_EQUAL, REG_EQUIV and REG_LABEL_OPERAND.
1065
1066 PR tree-optimization/51576
1067 * tree-cfg.c (replace_uses_by): Call maybe_clean_or_replace_eh_stmt
1068 even if fold_stmt didn't change anything.
1069
1070 2011-12-16 Richard Guenther <rguenther@suse.de>
1071
1072 PR lto/51572
1073 * dwarf2out.c (gen_type_die_with_usage): Use the context of
1074 the TYPE_DECL as well if it is file-scope.
1075
1076 2011-12-15 DJ Delorie <dj@redhat.com>
1077
1078 * config/rl78/rl78.md (return): Rename to rl78_return.
1079 * config/rl78/rl78.c (rl78_expand_epilogue): Use new name.
1080 (rl78_expand_eh_epilogue): Use new name.
1081 (rl78_calculate_death_notes): Likewise.
1082
1083 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1084
1085 * tree-vectorizer.h (struct _stmt_vec_info): Remove pattern_def_stmt
1086 field, add pattern_def_seq.
1087 (STMT_VINFO_PATTERN_DEF_STMT): Remove.
1088 (STMT_VINFO_PATTERN_DEF_SEQ): Define.
1089 (NUM_PATTERNS): Bump to 10.
1090 * tree-vect-loop.c (vect_determine_vectorization_factor,
1091 vect_transform_loop): Adjust for pattern def changing from a single
1092 gimple stmt to gimple_seq.
1093 * tree-vect-stmts.c (vect_analyze_stmt, new_stmt_vec_info,
1094 free_stmt_vec_info): Likewise.
1095 * tree-vect-patterns.c (vect_recog_over_widening_pattern,
1096 vect_recog_vector_vector_shift_pattern,
1097 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
1098 adjust_bool_pattern, vect_mark_pattern_stmts): Likewise.
1099 (vect_recog_sdivmod_pow2_pattern): New function.
1100 (vect_vect_recog_func_ptrs): Add it.
1101
1102 * config/i386/sse.md (vcond<V_256:mode><VI_256:mode>,
1103 vcond<V_128:mode><VI124_128:mode>, vcond<VI8F_128:mode>v2di):
1104 Use general_operand instead of nonimmediate_operand for
1105 operand 5 and no predicate for operands 1 and 2.
1106 * config/i386/i386.c (ix86_expand_int_vcond): Optimize
1107 x < 0 ? -1 : 0 and x < 0 ? 1 : 0 into vector arithmetic
1108 resp. logical shift.
1109
1110 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
1111
1112 * config/avr/avr-protos.h (print_operand): Remove.
1113 (print_operand_address): Remove.
1114 * config/avr/avr.h (PRINT_OPERAND): Remove.
1115 (PRINT_OPERAND_ADDRESS): Remove.
1116 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
1117 * config/avr/avr.c (TARGET_PRINT_OPERAND): New hook define.
1118 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
1119 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
1120 (print_operand_address): Rename to...
1121 (avr_print_operand_address): ...this and make static.
1122 (print_operand): Rename to...
1123 (avr_print_operand): ...this and make static.
1124 (avr_print_operand_punct_valid_p): New static function.
1125
1126 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
1127
1128 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
1129
1130 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR c/51360
1133 * c-parser.c (c_parser_omp_clause_num_threads,
1134 c_parser_omp_clause_schedule): Call mark_exp_read.
1135
1136 2011-12-15 Romain Geissler <romain.geissler@gmail.com>
1137
1138 * builtins.def (BUILT_IN_STPNCPY_CHK): New definition.
1139 * builtins.c (expand_builtin, fold_builtin_4, maybe_emit_chk_warning):
1140 Add BUILT_IN_STPNCPY_CHK case.
1141 * gimple-fold.c (gimple_fold_builtin): Likewise.
1142 * tree-object-size.c (pass_through_call): Likewise.
1143 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1144 call_may_clobber_ref_p_1): Likewise.
1145 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1146 find_func_clobbers): Likewise.
1147 * tree.h (fold_builtin_strncpy_chk): Rename to fold_builtin_stxncpy_chk
1148 * builtins.c (fold_builtin_strncpy_chk): Likewise.
1149 Rewrite stpncpy_chk calls to strncpy_chk calls if returned value is
1150 ignored.
1151
1152 2011-12-15 Richard Guenther <rguenther@suse.de>
1153
1154 PR lto/51567
1155 * gimple.c (compare_type_names_p): Also compare the TREE_CODE.
1156 (iterative_hash_name): Also hash the TREE_CODE.
1157 (gimple_types_compatible_p_1): For types with a TYPE_DECL
1158 name and a type DECL_CONTEXT recurse to that type.
1159 (iterative_hash_gimple_type): Likewise.
1160
1161 2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
1162
1163 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move update of
1164 VRSave mask to save_world() when that is in use.
1165
1166 2011-12-15 Richard Guenther <rguenther@suse.de>
1167
1168 * lto-wrapper.c (run_gcc): In non-parallel mode remove
1169 ltrans inputs immediately after processing them. In parallel
1170 mode truncate the ltrans inputs in the make rule that processes
1171 them if temporary files are not to be preserved.
1172
1173 2011-12-15 Anatoly Sokolov <aesok@post.ru>
1174
1175 * config/arm/arm.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1176 * config/arm/arm.c (arm_memory_move_cost, arm_register_move_cost):
1177 New functions.
1178 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1179
1180 2011-12-15 Richard Guenther <rguenther@suse.de>
1181
1182 PR lto/51564
1183 * tree.h (REGISTER_DEFS_IN_THIS_STMT, NECESSARY,
1184 STMT_IN_SSA_EDGE_WORKLIST): Remove no longer existing flag
1185 uses documentation.
1186 (TREE_ASM_WRITTEN): Update documentation to mention its use
1187 on TYPE_DECLs from debug info generation.
1188 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1189 TREE_ASM_WRITTEN as always zero for TYPE_DECLs, similar to
1190 all other types.
1191
1192 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
1193
1194 PR target/51050
1195 * config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
1196 (avr_prologue_setup_frame): Ditto.
1197
1198 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1199
1200 PR debug/51517
1201 * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
1202 !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
1203
1204 2012-12-15 Richard Guenther <rguenther@suse.de>
1205
1206 Revert
1207 PR lto/48437
1208 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
1209 extern declarations.
1210
1211 PR lto/48508
1212 PR lto/48437
1213 * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL
1214 VAR_DECLs and FUNCTION_DECLs locally.
1215
1216 2011-12-14 Richard Henderson <rth@redhat.com>
1217
1218 * config/arm/arm.md (*addsi3_compare0_scratch): Set predicable.
1219 (*compare_negsi_si, *compare_addsi2_op0): Likewise.
1220 (*compare_addsi2_op1, *zeroextractsi_compare0_scratch): Likewise.
1221 (*compareqi_eq0, *arm_cmpsi_insn, *arm_cmpsi_negshiftsi_si): Likewise.
1222
1223 2011-12-14 Richard Guenther <rguenther@suse.de>
1224
1225 * tree-cfg.c (replace_uses_by): Fixup TREE_CONSTANT for
1226 propagating all kinds of constants.
1227
1228 2011-12-14 Richard Guenther <rguenther@suse.de>
1229
1230 PR lto/51497
1231 * lto-streamer-in.c (lto_read_body): Fixup local types
1232 TYPE_CANONICAL and variant chain.
1233
1234 2011-12-14 Richard Guenther <rguenther@suse.de>
1235
1236 * tree.c (free_lang_data_in_type): Do not clear fields
1237 dependent on debuginfo level setting.
1238 (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
1239 * tree.h (TYPE_STUB_DECL): Properly check that we access a type.
1240
1241 2011-12-14 Georg-Johann Lay <avr@gjlay.de>
1242
1243 PR target/50931
1244 * config/avr/avr.md (mulpsi3): New expander.
1245 (*umulqihipsi3, *umulhiqipsi3): New insns.
1246 (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns.
1247 (mulsqipsi3, *mulpsi3): New insn-and-splits.
1248 (ashlpsi3): Turn to expander. Move insn code to...
1249 (*ashlpsi3): ...this new insn.
1250
1251 2011-12-14 Richard Guenther <rguenther@suse.de>
1252
1253 * tree-cfg.c (replace_uses_by): Only mark blocks altered
1254 that will make a difference. Only recompute ADDR_EXPR
1255 invariantness if it could possibly have changed. Do so
1256 before folding the statement.
1257
1258 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
1259
1260 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
1261 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
1262 * lto-streamer-in.c (lto_read_body): Likewise.
1263 (lto_input_toplevel_asms): Likewise.
1264 * lto-section-in.c (lto_create_simple_input_block): Likewise.
1265 * ipa-inline-analysis.c (inline_read_section): Likewise.
1266 * ipa-prop.c (ipa_prop_read_section): Likewise.
1267
1268 * df.h (DF_NOTE): Fix typo in comment.
1269
1270 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
1271
1272 * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
1273 DECL_LANG_SPECIFIC.
1274
1275 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1276
1277 * regmove.c (fixup_match_2): Only access call_used_regs with hard regs.
1278
1279 2011-12-13 Andrew Pinski <apinski@cavium.com>
1280 Adam Nemet <anemet@caviumnetworks.com>
1281
1282 * config/mips/mips-cpus.def: Add Octeon2.
1283 * config/mips/mips-tables.opt: Regenerate.
1284 * config/mips/mips.md (define_attr "cpu"): Add Octeon2.
1285 * config/mips/driver-native.c (host_detect_local_cpu): Support Octeon2.
1286 * config/mips/octeon.md (octeon_arith): Add Octeon2.
1287 (octeon_condmove): Likewise.
1288 (octeon_load): Rename to ..
1289 (octeon_load_o1): this.
1290 (octeon_load_o2): New reserve.
1291 (octeon_cop_o2): New reserve.
1292 (octeon_store): Match Octeon2 also.
1293 (octeon_brj): Rename to ..
1294 (octeon_brj_o1): this.
1295 (octeon_brj_o2): New reserve.
1296 (octeon_imul3): Rename to ...
1297 (octeon_imul3_o1): this.
1298 (octeon_imul3_o2): New reserve.
1299 (octeon_imul): Rename to ...
1300 (octeon_imul_o1): this.
1301 (octeon_imul_o2): New reserve.
1302 (octeon_mfhilo): Rename to ...
1303 (octeon_mfhilo_o1): This.
1304 (octeon_mfhilo_o2): New reserve.
1305 (octeon_imadd): Rename to ...
1306 (octeon_imadd_o1): this.
1307 (octeon_imadd_o2): New reserve.
1308 (octeon_idiv): Rename to ..
1309 (octeon_idiv_o1): This.
1310 (octeon_idiv_o2_si): New reserve.
1311 (octeon_idiv_o2_di): Likewise.
1312 (octeon_unknown): Match Octeon2 also.
1313 * config/mips/mips.c (mips_rtx_cost_data): Add Octeon2 cost data.
1314 (mips_issue_rate): Octeon2 can issue 2 at a time.
1315 * config/mips/mips.h (TARGET_OCTEON): Match Octeon2 also.
1316 (TARGET_OCTEON2): New define.
1317 (TUNE_OCTEON): Match Octeon2 also.
1318
1319 2011-12-13 Richard Henderson <rth@redhat.com>
1320
1321 * config/sparc/tso.h: New file.
1322 * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it.
1323 * config/sparc/sparc.c (sparc_option_override): Honor
1324 SUBTARGET_DEFAULT_MEMORY_MODEL.
1325 * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New.
1326
1327 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
1328
1329 PR middle-end/51443
1330 * trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
1331 (diagnose_tm_1): Same.
1332 (ipa_tm_execute): Do not test tm_may_enter_irr before we set it.
1333 (ipa_tm_scan_irr_function): Return gracefully when no
1334 DECL_STRUCT_FUNCTION.
1335 (ipa_tm_scan_irr_block): Believe the user on TM attributes.
1336
1337 2011-12-13 Martin Jambor <mjambor@suse.cz>
1338
1339 PR middle-end/50628
1340 * tree-sra.c (propagate_subaccesses_across_link): Do not propagate
1341 sub-accesses of scalar accesses.
1342
1343 2011-12-13 Martin Jambor <mjambor@suse.cz>
1344
1345 PR tree-optimization/51362
1346 * ipa-cp.c (estimate_local_effects): When estimated size of a
1347 specialized clone is zero, bump it to one.
1348
1349 2011-12-13 Richard Guenther <rguenther@suse.de>
1350
1351 PR lto/48354
1352 * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE.
1353 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
1354 Stream DECL_ORIGINAL_TYPE.
1355 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers):
1356 Likewise.
1357
1358 2011-12-13 Jakub Jelinek <jakub@redhat.com>
1359
1360 Revert
1361 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1362
1363 PR tree-optimization/51481
1364 * gimple-fold.c (gimple_fold_call): Call
1365 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
1366 edges, but gimple_fold_builtin result can't throw.
1367
1368 2011-12-13 Jakub Jelinek <jakub@redhat.com>
1369 Michael Matz <matz@suse.de>
1370
1371 PR tree-optimization/51117
1372 * tree-eh.c (sink_clobbers): New function.
1373 (execute_lower_eh_dispatch): Call it for BBs ending with
1374 internally throwing RESX.
1375 * cfgexpand.c (add_scope_conflicts_1): Add all conflicts only
1376 at the first real instruction.
1377
1378 2011-12-13 Tristan Gingold <gingold@adacore.com>
1379
1380 * final.c (final_scan_insn): Guard the call to begin_epilogue
1381 debug hook.
1382
1383 2011-12-13 Tristan Gingold <gingold@adacore.com>
1384
1385 * vmsdbgout.c (vmsdbgout_write_source_line): New function.
1386 (vmsdbgout_end_prologue): Call vmsdbgout_write_source_line.
1387 (vmsdbgout_begin_epilogue): Likewise.
1388 (vmsdbgout_end_epilogue): Likewise.
1389 (vmsdbgout_source_line): Move code to vmsdbgout_write_source_line.
1390
1391 2011-12-13 Richard Guenther <rguenther@suse.de>
1392
1393 PR middle-end/51481
1394 * tree-cfg.c (replace_uses_by): Pass proper arguments to
1395 maybe_clean_or_replace_eh_stmt.
1396
1397 2011-12-13 Richard Guenther <rguenther@suse.de>
1398
1399 PR tree-optimization/51519
1400 * ipa-inline.c (edge_badness): Use edge growth in non-guessed
1401 branch probability case as well.
1402
1403 2011-12-13 Revital Eres <revital.eres@linaro.org>
1404
1405 * modulo-sched.c (mark_loop_unsched): Free bbs.
1406
1407 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR rtl-optimization/51495
1410 * function.c (thread_prologue_and_epilogue_insns): Don't add
1411 to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
1412 from basic blocks not needing prologue.
1413
1414 PR tree-optimization/51481
1415 * gimple-fold.c (gimple_fold_call): Call
1416 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
1417 edges, but gimple_fold_builtin result can't throw.
1418
1419 2011-12-12 Vladimir Makarov <vmakarov@redhat.com>
1420
1421 PR rtl-optimization/21617
1422 * ira-color.c (bucket_allocno_compare_func): Don't compare
1423 allocno classes. Compare number of hard registers needed.
1424
1425 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
1426
1427 PR tree-optimization/50569
1428 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
1429 in the expression of MODEL instead of just the last one.
1430
1431 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1432
1433 PR middle-end/51510
1434 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
1435 VEC_safe_grow_cleared if idx is smaller than VEC_length.
1436
1437 2011-12-12 Richard Sandiford <richard.sandiford@linaro.org>
1438
1439 PR middle-end/50873
1440 * optabs.c (maybe_legitimize_operand_same_code): Use copy_to_mode_reg
1441 instead of force_reg. Do nothing if the address is already a
1442 non-virtual pseudo register.
1443
1444 2011-12-12 Torvald Riegel <triegel@redhat.com>
1445
1446 * gimplify.c (voidify_wrapper_expr): Add default handling for
1447 outermost wrapper.
1448
1449 2011-12-12 Torvald Riegel <triegel@redhat.com>
1450
1451 * tree-ssa-tail-merge.c (gimple_equal_p): Don't treat transaction
1452 commits as equal.
1453
1454 2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
1455
1456 * config/darwin-sections.def (zobj_const_data_section): Fix over-
1457 length section name.
1458
1459 2011-12-11 Richard Henderson <rth@redhat.com>
1460
1461 * config/rs6000/rs6000.c (rs6000_expand_interleave): Use
1462 BYTES_BIG_ENDIAN, not TARGET_BIG_ENDIAN.
1463
1464 2011-12-11 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR tree-optimization/51485
1467 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
1468 DRs in call stmts.
1469
1470 2011-12-11 Patrick Marlier <patrick.marlier@gmail.com>
1471
1472 * trans-mem.c (ipa_tm_transform_calls_redirect): Do not remove edge.
1473
1474 2011-12-10 Richard Henderson <rth@redhat.com>
1475
1476 * config/rs6000/altivec.md (altivec_vmrghb): Rewrite pattern as
1477 vec_select + vec_concat.
1478 (altivec_vmrghh, altivec_vmrghw, altivec_vmrghsf, altivec_vmrglb,
1479 altivec_vmrglh, altivec_vmrglw, altivec_vmrglsf): Likewise.
1480 (vec_perm_constv16qi): New.
1481 (vec_extract_evenv4si, vec_extract_evenv4sf, vpkuhum_nomode,
1482 vpkuwum_nomode, vec_extract_oddv8hi, vec_extract_oddv16qi,
1483 vec_interleave_high<VI>, vec_interleave_low<VI>): Remove.
1484 * config/rs6000/paired.md (paired_merge00): Rewrite pattern as
1485 vec_select + vec_concat.
1486 (paired_merge10, paired_merge01, paired_merge11): Likewise.
1487 (vec_perm_constv2sf): New.
1488 (vec_interleave_highv2sf, vec_interleave_lowv2sf,
1489 vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
1490 * config/rs6000/spe.md (spe_evmergehi): Rewrite pattern as
1491 vec_select + vec_concat.
1492 (spe_evmergehilo, spe_evmergelo, spe_evmergelohi): New.
1493 (vec_perm_constv2si): New.
1494 * config/rs6000/vector.md (vec_interleave_highv4sf,
1495 vec_interleave_lowv4sf, vec_interleave_high<VEC_64>,
1496 vec_interleave_low<VEC_64>): Remove.
1497 * config/rs6000/vsx.md (VS_double): New mode attribute.
1498 (UNSPEC_VSX_XXPERMDI): Remove.
1499 (vsx_xxpermdi_<VSX_L>_1): Rewrite pattern as vec_select + vec_concat.
1500 (vsx_xxmrghw_<VSX_W>, vsx_xxmrglw_<VSX_W>): Likewise.
1501 (vsx_xxpermdi_<VSX_L>): Change to expander.
1502 (vec_perm_const<VSX_D>): New.
1503 (vsx_mergel_<VSX_D>, vsx_mergeh_<VSX_D>): New.
1504 * config/rs6000/predicates.md (const_0_to_1_operand): New.
1505 (const_2_to_3_operand): New.
1506 * config/rs6000/rs6000.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
1507 (altivec_expand_vec_perm_const): New.
1508 (rs6000_expand_vec_perm_const_1, rs6000_expand_vec_perm_const): New.
1509 (rs6000_vectorize_vec_perm_const_ok): New.
1510 (rs6000_do_expand_vec_perm): New.
1511 (rs6000_expand_extract_even, rs6000_expand_interleave): New.
1512 * config/rs6000/rs6000-builtin.def (VEC_MERGE*): Update rtx codes.
1513 * config/rs6000/rs6000-modes.def: Add double-wide vector modes.
1514 * config/rs6000/rs6000-protos.h: Update.
1515
1516 2011-12-10 Richard Henderson <rth@redhat.com>
1517
1518 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
1519 CONST_INT to expand_vec_perm as the selector.
1520 * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.
1521
1522 2011-12-10 Richard Henderson <rth@redhat.com>
1523
1524 * genmodes.c (struct mode_data): Remove wider_2x member.
1525 (blank_mode): Adjust initializer.
1526 (calc_wider_mode): Use XALLOCAVEC.
1527 (emit_move_wider): Select double-width same-element vectors for
1528 2xwider vectors.
1529 * machmode.h (GET_MODE_2XWIDER_MODE): Update documentation.
1530 * config/i386/i386.c (doublesize_vector_mode): Remove.
1531 (expand_vselect_vconcat): Use GET_MODE_2XWIDER_MODE instead.
1532
1533 2011-12-10 Joern Rennecke <joern.rennecke@embecosm.com>
1534
1535 * config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
1536 (USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise.
1537 (USE_STORE_POST_DECREMENT): Likewise.
1538
1539 * config/epiphany/epiphany.h (EPIPHANY_RETURN_REGNO): New macro,
1540 broken out of ..
1541 (INCOMING_RETURN_ADDR_RTX) .. this. Use EPIPHANY_RETURN_REGNO.
1542 (DWARF_FRAME_RETURN_COLUMN): New macro.
1543
1544 * config/epiphany/epiphany-protos.h (epiphany_start_function): Declare.
1545 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
1546 Split "timer" value into "timer0" and "timer1".
1547 Handle page_miss, message and wand. Don't handle static_flag.
1548 Adjust warning text.
1549 (epiphany_start_function): New function.
1550 (epiphany_compute_function_type): Split "timer" value into "timer0"
1551 and "timer1". Handle page_miss, message and wand.
1552 Don't handle static_flag.
1553 (epiphany_expand_epilogue): Don't use frame_insn for status / iret
1554 restore.
1555 * config/epiphany/epiphany.h: ASM_DECLARE_FUNCTION_NAME: Define.
1556 (enum epiphany_function_type):
1557 Split EPIPHANY_FUNCTION_TIMER value into EPIPHANY_FUNCTION_TIMER0
1558 and EPIPHANY_FUNCTION_TIMER1.
1559 Remove EPIPHANY_FUNCTION_ILINK1 and EPIPHANY_FUNCTION_ILINK2 values.
1560 Add EPIPHANY_FUNCTION_PAGE_MISS and EPIPHANY_FUNCTION_MESSAGE values.
1561 Rename EPIPHANY_FUNCTION_STATIC_FLAG to EPIPHANY_FUNCTION_WAND.
1562
1563 2011-12-10 Nathan Sidwell <nathan@acm.org>
1564
1565 PR gcov-profile/51449
1566 * coverage.c (coverage_end_function): Always process the coverage
1567 variables.
1568
1569 2011-12-09 Aldy Hernandez <aldyh@redhat.com>
1570
1571 PR/51291
1572 * tree.c (build_common_builtin_nodes): Do not use TM_PURE
1573 attribute unless language has support for TM.
1574 * config/i386/i386.c (ix86_init_tm_builtins): Exit gracefully in
1575 the absence of TM builtins.
1576
1577 2011-12-09 Eric Botcazou <ebotcazou@adacore.com>
1578
1579 * gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
1580 Also check the TYPE_MODE to recognize useless pointer conversions.
1581
1582 2011-12-09 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR tree-optimization/51117
1585 * tree-eh.c (optimize_clobbers): Don't remove just one
1586 clobber, but all consecutive clobbers before RESX.
1587 Use gimple_clobber_p predicate.
1588
1589 2011-12-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1590
1591 * config/rs6000/rs6000.c (altivec_expand_builtin): Call
1592 expand_call to return a valid funciton instead of return
1593 cosnt0_rtx/NULL_RTX if there was an error with the builtin.
1594 (altivec_expand_ld_builtin): Ditto.
1595 (rs6000_inner_target_options): If VSX is selected as a target
1596 attribute or pragma, enable ALTIVEC also.
1597 (rs6000_pragma_target_parse): Call rs6000_option_override_internal
1598 to do all of the standard processing when switching options,
1599 including redefining appropriate macros.
1600
1601 PR rtl-optimization/51469
1602 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
1603 indirect function, mark the symbol as non-local.
1604
1605 2011-12-09 H.J. Lu <hongjiu.lu@intel.com>
1606
1607 PR bootstrap/51479
1608 * Makefile.in (errors.o): Restored.
1609
1610 2011-12-09 Richard Guenther <rguenther@suse.de>
1611
1612 PR lto/48042
1613 * tree.c (free_lang_data_in_decl): Remove freeing conditional
1614 on debuginfo level.
1615
1616 2011-12-09 Joern Rennecke <joern.rennecke@embecosm.com>
1617
1618 PR middle-end/40154
1619 * emit-rtl.c (set_dst_reg_note): New function.
1620 * rtl.h (set_dst_reg_note): Declare.
1621 * optabs.c (expand_binop, expand_absneg_bit): Use set_dst_reg_note.
1622 (emit_libcall_block, expand_fix): Likewise.
1623 * function.c (assign_parm_setup_reg, expand_function_start): Likewise.
1624 * expmed.c (expand_mult_const, expand_divmod): Likewise.
1625 * reload1.c (gen_reload): Likewise.
1626
1627 * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
1628 * expmed.c (expand_divmod): Likewise.
1629 * combine.c (simplify_if_then_else): Likewise.
1630
1631 2011-12-09 Kai Tietz <ktietz@redhat.com>
1632
1633 * ira-color.c (print_hard_regs_subforest): Use
1634 HOST_WIDEST_INT_PRINT_DEC instead of %lld.
1635 (allocno_hard_regs): Change type of cost member to HOST_WIDEST_INT.
1636 (add_allocno_hard_regs): Change type of argument cost
1637 to HOST_WIDEST_INT.
1638 * ira-conflict.c (build_conflict_bit_table): Replace use
1639 of long-long by HOST_WIDEST_INT.
1640
1641 2011-12-09 Georg-Johann Lay <avr@gjlay.de>
1642
1643 PR target/51425
1644 * config/avr/avr.md (config/avr/avr.md, *sbix_branch_tmp): Use
1645 zero_extract:QIHI instead of zero_extract:HI.
1646
1647 2011-12-09 Jakub Jelinek <jakub@redhat.com>
1648 Andrew Pinski <apinski@cavium.com>
1649
1650 PR tree-optimization/51117
1651 * tree-eh.c (optimize_clobbers): New function.
1652 (execute_lower_eh_dispatch): Call it.
1653
1654 2011-12-09 Richard Guenther <rguenther@suse.de>
1655
1656 PR tree-optimization/51482
1657 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1658 Make sure to only create REAL_TYPE and INTEGER_TYPE component vectors.
1659
1660 2011-12-09 Kai Tietz <ktietz@redhat.com>
1661
1662 * implicit-zee.c (num_realized): Change type to long.
1663 (num_ze_opportunities): Likewise.
1664
1665 2011-12-08 Andrew Pinski <apinski@cavium.com>
1666
1667 * config/mips/mips-cpus.def (octeon+): New CPU.
1668 * config/mips/mips-tables.opt: Regenerate.
1669 * config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
1670
1671 2011-12-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1672
1673 PR middle-end/39976
1674 * tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
1675 (struct hashable_expr): Add struct phi field.
1676 (initialize_hash_element): Handle phis; change to use XCNEWVEC.
1677 (hashable_expr_equal_p): Handle phis.
1678 (iterative_hash_hashable_expr): Likewise.
1679 (print_expr_hash_elt): Likewise.
1680 (free_expr_hash_elt): Likewise.
1681 (dom_opt_enter_block): Create equivalences from redundant phis.
1682 (eliminate_redundant_computations): Handle redundant phis.
1683 (lookup_avail_expr): Handle phis.
1684
1685 2011-12-08 Jakub Jelinek <jakub@redhat.com>
1686
1687 PR tree-optimization/51466
1688 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
1689 TREE_SIDE_EFFECTS.
1690
1691 2011-12-08 Richard Guenther <rguenther@suse.de>
1692
1693 * tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
1694 volatile when processing operands of an ADDR_EXPR.
1695 (get_indirect_ref_operands): Likewise.
1696 (get_tmr_operands): Likewise.
1697 (get_expr_operands): Likewise.
1698
1699 2011-12-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1700
1701 PR target/50395
1702 * config/s390/s390.c (s390_mainpool_finish): Emit the jump over
1703 the literal pool as jump insn.
1704
1705 2011-12-08 Richard Guenther <rguenther@suse.de>
1706
1707 PR tree-optimization/49772
1708 * tree-inline.c (optimize_inline_calls): Remove bail out on errors.
1709
1710 2011-12-08 Richard Guenther <rguenther@suse.de>
1711
1712 PR lto/50747
1713 * lto-streamer-out.c (produce_symtab): Remove asserts.
1714
1715 2011-12-08 Richard Guenther <rguenther@suse.de>
1716
1717 PR lto/49945
1718 * lto-streamer-out.c (tree_is_indexable): Localize variably
1719 modified types and their FIELD_DECLs.
1720
1721 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
1722
1723 PR tree-optimization/51315
1724 * tree.h (get_object_or_type_alignment): Declare.
1725 * expr.c (get_object_or_type_alignment): Move to...
1726 * builtins.c (get_object_or_type_alignment): ...here. Add assertion.
1727 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
1728 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
1729 MEM_REFs and use get_object_or_type_alignment for them.
1730 (build_accesses_from_assign): Adjust for above change.
1731 (access_precludes_ipa_sra_p): Likewise.
1732
1733 2011-12-08 Richard Guenther <rguenther@suse.de>
1734
1735 PR lto/48437
1736 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
1737 extern declarations.
1738
1739 2011-12-07 Andrew Pinski <apinski@cavium.com>
1740
1741 PR middle-end/45416
1742 * expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
1743 SSA-expand.
1744
1745 2011-12-07 Richard Guenther <rguenther@suse.de>
1746
1747 PR tree-optimization/50823
1748 * ipa-inline.c (edge_badness): Do not account for the number of
1749 remaining calls.
1750
1751 2011-12-07 Martin Jambor <mjambor@suse.cz>
1752
1753 PR tree-optimization/50744
1754 * ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
1755 compute evaluation in HOST_WIDEST_INT.
1756 (safe_add): New function
1757 (propagate_effects): Use safe_add to accumulate effects.
1758
1759 2011-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
1760
1761 * config/rs6000/rtems.h: Switch to using global_options_set
1762 in SUBSUBTARGET_OVERRIDE_OPTIONS.
1763
1764 2011-12-06 David S. Miller <davem@davemloft.net>
1765
1766 * config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
1767
1768 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1769
1770 * config/avr/avr.c (avr_file_start): Fix missing ,
1771
1772 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1773
1774 PR target/51354
1775 * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
1776 unconditionally.
1777
1778 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1779
1780 Forward-port from gcc-4_6-branch r181936 2011-12-02.
1781 * config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
1782 AT86RF401 have a 16-bit SP (their manual is bogus).
1783
1784 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1785
1786 Forward-port from gcc-4_6-branch r181936 2011-12-02.
1787
1788 PR target/51002
1789 * config/avr/avr.md (movhi_sp_r): Set insn condition to
1790 !AVR_HAVE_8BIT_SP.
1791 * config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
1792 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
1793 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
1794
1795 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1796
1797 PR target/51409
1798 PR target/49868
1799 * config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
1800 ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
1801 ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
1802 (avr_addrspace_t): New typedef.
1803 (avr_addrspace): New declaration.
1804 * config/avr/avr-c.c (avr_toupper): New static function.
1805 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
1806 avr_addrspace to get address space information.
1807 * config/avr/avr.c (avr_addrspace): New variable.
1808 (avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
1809 avr_asm_named_section, avr_section_type_flags,
1810 avr_asm_select_section, avr_addr_space_address_mode,
1811 avr_addr_space_convert, avr_emit_movmemhi): Use it.
1812 (avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
1813 (avr_pgm_segment): Remove.
1814
1815 2011-12-06 Richard Guenther <rguenther@suse.de>
1816
1817 PR middle-end/50601
1818 * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
1819 quirk adjustjment ...
1820 * passes.c (rest_of_decl_compilation): ... here.
1821
1822 2011-12-06 Richard Guenther <rguenther@suse.de>
1823
1824 PR middle-end/51436
1825 * gimple-fold.c (gimplify_and_update_call_from_tree): Guard vdef check
1826 for the fact we do not have virtual operands when not optimizing.
1827
1828 2011-12-06 Richard Guenther <rguenther@suse.de>
1829
1830 PR tree-optimization/51245
1831 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
1832 New function.
1833 (vn_reference_lookup_3): Use it. Properly valueize all refs we create.
1834
1835 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
1836
1837 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
1838 rs6000_current_abi.
1839
1840 2011-12-06 Richard Guenther <rguenther@suse.de>
1841
1842 PR tree-optimization/51363
1843 * gimple.c (gimple_rhs_has_side_effects): Remove.
1844 * gimple.h (gimple_rhs_has_side_effects): Likewise.
1845 * tree-ssa-dom.c (optimize_stmt): Simplify conditional.
1846
1847 2011-12-06 Alan Modra <amodra@gmail.com>
1848
1849 PR target/50906
1850 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
1851 Do not mark r11 setup as frame-related. Pass correct offset to
1852 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
1853 arguments. Correct sp_offset. Remove "offset" fudge from
1854 in-line rs6000_frame_related call. Rename misleading variable.
1855 Fix comments and whitespace. Tidy some expressions.
1856 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
1857 to r11 in out-of-line case. Correct sp_offset. Pass correct
1858 offset to rs6000_emit_savres_rtx. Rename misleading variable.
1859 Fix comments and whitespace. Tidy some expressions.
1860 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
1861 adjustment when !saving_GPRs_inline. Correct register mode
1862 used in address calcs.
1863 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
1864 !restoring_GPRs_inline.
1865
1866 2011-12-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1867
1868 * config/arm/vfp.md (*combine_vcvt_f64_<FCVTI32typename>): Fix
1869 formatting character for vmov.f64 case.
1870
1871 2011-12-05 Jakub Jelinek <jakub@redhat.com>
1872
1873 PR tree-optimization/51396
1874 * tree-ssa-math-opts.c (convert_mult_to_fma): Don't optimize
1875 if MUL_RESULT has zero uses.
1876
1877 PR debug/51410
1878 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
1879 for debug info if scope is file_scope.
1880
1881 PR c/51339
1882 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
1883 relayout_decl instead of layout_decl.
1884
1885 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
1886
1887 * resource.c (init_resource_info): Only consider EXIT_IGNORE_STACK
1888 if there is in epilogue.
1889
1890 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
1891
1892 * optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
1893 to emit_library_call_value.
1894 (expand_atomic_compare_and_swap): Likewise.
1895
1896 2011-12-05 Vladimir Makarov <vmakarov@redhat.com>
1897
1898 PR other/50775
1899 * ira-int.h (struct ira_object): Remove add_data.
1900 (OBJECT_ADD_DATA): Remove.
1901
1902 * ira-build.c (ira_create_object): Remove OBJECT_ADD_DATA
1903 initialization.
1904
1905 * ira-color.c (object_hard_regs_t, object_hard_regs): Rename to
1906 allocno_hard_regs_t, allocno_hard_regs.
1907 (object_hard_regs_node_t, object_hard_regs_node): Rename to
1908 allocno_hard_regs_node_t and allocno_hard_regs_node.
1909 (struct allocno_color_data): Add new member last_process. Move
1910 profitable_hard_regs, hard_regs_node, and hard_regs_subnodes_start
1911 from object_color_data.
1912 (object_color_data_t, object_color_data, OBJECT_COLOR_DATA): Remove.
1913 (curr_allocno_process): New static variable.
1914 (object_hard_regs_eq, object_hard_regs_htab): Rename to
1915 allocno_hard_regs_eq and allocno_hard_regs_htab.
1916 (init_object_hard_regs, finish_object_hard_regs): Rename to
1917 init_allocno_hard_regs and finish_allocno_hard_regs.
1918 (object_hard_regs_compare, object_hard_regs_node_t): Rename to
1919 allocno_hard_regs_compare and allocno_hard_regs_node_t.
1920 (create_new_object_hard_regs_node): Rename to
1921 create_new_allocno_hard_regs_node.
1922 (add_new_object_hard_regs_node_to_forest): Rename to
1923 add_new_allocno_hard_regs_node_to_forest.
1924 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
1925 Rename to add_allocno_hard_regs_to_forest and
1926 collect_allocno_hard_regs_cover.
1927 (setup_object_hard_regs_nodes_parent): Rename to
1928 setup_allocno_hard_regs_nodes_parent.
1929 (remove_unused_object_hard_regs_nodes): Rename to
1930 remove_unused_allocno_hard_regs_nodes.
1931 (enumerate_object_hard_regs_nodes, object_hard_regs_nodes_num):
1932 Rename to enumerate_allocno_hard_regs_nodes and
1933 allocno_hard_regs_nodes_num.
1934 (object_hard_regs_nodes, object_hard_regs_subnode_t): Rename to
1935 allocno_hard_regs_nodes and allocno_hard_regs_subnode_t.
1936 (object_hard_regs_subnode, object_hard_regs_subnodes): Rename to
1937 allocno_hard_regs_subnode and allocno_hard_regs_subnodes.
1938 (object_hard_regs_subnode_index): Rename to
1939 allocno_hard_regs_subnode_index.
1940 (setup_object_hard_regs_subnode_index): Rename to
1941 setup_allocno_hard_regs_subnode_index.
1942 (get_object_hard_regs_subnodes_num): Rename to
1943 get_allocno_hard_regs_subnodes_num.
1944 (form_object_hard_regs_nodes_forest): Rename to
1945 form_allocno_hard_regs_nodes_forest.
1946 (finish_object_hard_regs_nodes_tree): Rename to
1947 form_allocno_hard_regs_nodes_forest
1948 (finish_object_hard_regs_nodes_forest): Rename to
1949 finish_allocno_hard_regs_nodes_forest.
1950 (setup_left_conflict_sizes_p): Use allocno data instead of object ones.
1951 Process conflict allocnos once.
1952 (update_left_conflict_sizes_p): Use allocno data instead of object
1953 ones. Change prototype signature.
1954 (empty_profitable_hard_regs): Use allocno data instead of object ones.
1955 (setup_profitable_hard_regs): Ditto.
1956 (get_conflict_profitable_regs): Rename to
1957 get_conflict_and_start_profitable_regs. Use allocno data for
1958 profitable regs calculation.
1959 (check_hard_reg_p): Change prototype signature. Check profitable
1960 regs for allocno not the objects.
1961 (assign_hard_reg): Process conflict allocnos only once for
1962 updating conflict costs.
1963 (setup_allocno_available_regs_num): Use allocno data instead of
1964 object ones. Modify debug output.
1965 (color_pass): Remove initialization and finalization of object
1966 color data.
1967
1968 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
1969
1970 PR target/51408
1971 * config/arm/arm.md (*minmax_arithsi): Always require the else
1972 clause in the MINUS case.
1973
1974 2011-12-05 Richard Guenther <rguenther@suse.de>
1975
1976 PR tree-optimization/50904
1977 * tree-ssa-loop-im.c (struct mem_ref): Remove vops member.
1978 (MEM_ANALYZABLE): New.
1979 (memory_references): Remove clobbered_vops and vop_ref_map
1980 members, add all_refs_stored_in_loop member.
1981 (memref_free): Adjust.
1982 (mem_ref_alloc): Likewise.
1983 (gather_mem_refs_stmt): Do not record clobbers, instead
1984 record refs for unanalyzable stmts.
1985 (gather_mem_refs_in_loops): Do not propagate clobbers.
1986 (struct vop_to_refs_elt, vtoe_hash, vtoe_eq, vtoe_free,
1987 record_vop_access, get_vop_accesses, get_vop_stores,
1988 add_vop_ref_mapping): Remove.
1989 (create_vop_ref_mapping_loop): Adjust to simply record all stores.
1990 (analyze_memory_references): Adjust.
1991 (refs_independent_p): Check for not analyzable refs.
1992 (can_sm_ref_p): Likewise.
1993 (ref_indep_loop_p_1): Simplify.
1994 (tree_ssa_lim_finalize): Adjust.
1995
1996 * tree-ssa-loop-im.c (stmt_cost): Simplify, use LIM_EXPENSIVE
1997 rather than magic constants. Assign zero cost to PAREN_EXPR
1998 and SSA_NAME copies. Assign cost proportional to the vector
1999 size for vector constructors.
2000
2001 2011-12-05 Richard Guenther <rguenther@suse.de>
2002
2003 * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
2004 * tree-ssa-alias.c (ao_ref_init): Initialize it.
2005 (ao_ref_init_from_ptr_and_size): Likewise.
2006 (refs_may_alias_p_1): Two volatile accesses conflict.
2007 (ref_maybe_used_by_call_p_1): Likewise.
2008 (call_may_clobber_ref_p_1): Likewise.
2009 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize
2010 volatile_p field.
2011
2012 2011-12-05 Richard Guenther <rguenther@suse.de>
2013
2014 * tree-ssa.c (verify_ssa): Verify SSA names in the loop over all SSA
2015 names. Remove SSA operand checking, call verify_ssa_operands.
2016 * tree-ssa-operands.h (verify_ssa_operands): Declare.
2017 * tree-ssa-operands.c (verify_ssa_operands): New function.
2018
2019 2011-12-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2020
2021 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Define.
2022 * config/arm/arm-protos.h (vfp3_const_double_for_fract_bits): Declare.
2023 * config/arm/constraints.md ("Dt"): New constraint.
2024 * config/arm/predicates.md
2025 (const_double_vcvt_power_of_two_reciprocal): New.
2026 * config/arm/vfp.md (FCVTI32typename): New.
2027 (FCVT): New iterator.
2028 (*combine_vcvt_f32_<FCVTI32typename>): New.
2029 (*combine_vcvt_f64_<FCVTI32typename>): New.
2030
2031 2011-12-05 Richard Guenther <rguenther@suse.de>
2032
2033 * cgraph.c (cgraph_create_edge_1): Initialize
2034 call_stmt_cannot_inline_p from the stmt if possible.
2035 (cgraph_make_edge_direct): Likewise.
2036 * gimple-streamer-in.c (input_gimple_stmt): Do not
2037 call gimple_call_set_cannot_inline.
2038 * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values.
2039 (gimple_call_set_cannot_inline): Remove.
2040 (gimple_call_cannot_inline_p): Likewise.
2041 * ipa-inline-analysis.c (initialize_inline_failed): Look
2042 at the edge call_stmt_cannot_inline_p flag.
2043 * ipa-inline.c (can_inline_edge_p): Likewise.
2044 (early_inliner): Only update the edge flag.
2045 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2046 (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline.
2047 * cgraphunit.c (assemble_thunk): Likewise.
2048 * gimple-fold.c (gimple_fold_call): Likewise.
2049
2050 * tree.h (CALL_CANNOT_INLINE_P): Remove.
2051 * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls.
2052 * builtins.c (expand_builtin_alloca): With -fmudflap do not expand
2053 alloca calls inline.
2054 * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P.
2055 * gimple.c (gimple_build_call_from_tree): Do not read
2056 CALL_CANNOT_INLINE_P.
2057 * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P.
2058
2059 2011-12-05 Jakub Jelinek <jakub@redhat.com>
2060 Eric Botcazou <ebotcazou@adacore.com>
2061
2062 PR middle-end/51323
2063 PR middle-end/50074
2064 * calls.c (internal_arg_pointer_exp_state): New variable.
2065 (internal_arg_pointer_based_exp_1,
2066 internal_arg_pointer_exp_scan): New functions.
2067 (internal_arg_pointer_based_exp): New function.
2068 (mem_overlaps_already_clobbered_arg_p): Use it.
2069 (expand_call): Free internal_arg_pointer_exp_state.cache vector
2070 and clear internal_arg_pointer_exp_state.scan_start.
2071
2072 2011-12-04 Kaz Kojima <kkojima@gcc.gnu.org>
2073
2074 * config/sh/linux.h (TARGET_DEFAULT): Add MASK_SOFT_ATOMIC.
2075 * config/sh/sync.md: New file.
2076 * config/sh/sh.md: Include sync.md.
2077 * config/sh/sh.opt (msoft-atomic): New option.
2078 * doc/invoke.texi (SH Options): Document it.
2079
2080 2011-12-04 Nathan Sidwell <nathan@acm.org>
2081
2082 * gcov-io.h (struct gcov_info): Replace trailing array with
2083 pointer to array.
2084 * profile.c (branch_prob): Only call renamed
2085 coverage_begin_function once.
2086 * coverage.h (coverage_begin_output): Rename to ...
2087 (coverage_begin_function): ... here.
2088 * coverage.c (struct function_list): Rename to ...
2089 (struct coverage_data): ... this. Update all uses.
2090 (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals.
2091 (bbg_file_opened, bbg_function_announced): Remove.
2092 (get_coverage_counts): Adjust message.
2093 (coverage_begin_ouput): Rename to ...
2094 (coverage_begin_function): ... here. Move file opening to
2095 coverage_init. Adjust for being called only once.
2096 (coverage_end_function): Remove bbg file and inhibit further
2097 output here on error.
2098 (build_info_type): Adjust for change to pointer to array.
2099 (build_info): Receive array of function pointers and adjust.
2100 (create_coverage): Break into ...
2101 (coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
2102 ... these, and adjust.
2103 (coverage_init): Open the notes file here. Tidy.
2104 (coverage_finish): Call coverage_obj_init etc.
2105
2106 2011-12-04 Ira Rosen <ira.rosen@linaro.org>
2107
2108 PR middle-end/51285
2109 * tree-vect-loop.c (vect_create_epilog_for_reduction): Create exit
2110 phi nodes for outer loop in case of double reduction.
2111
2112 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
2113
2114 PR target/51393
2115 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
2116 parameter as long long.
2117
2118 2011-12-04 Richard Sandiford <rdsandiford@googlemail.com>
2119
2120 PR middle-end/51351
2121 * optabs.c (init_sync_libfuncs): Use "or" rather than "ior"
2122 in the external names.
2123
2124 2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
2125
2126 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for
2127 non-PIC code when targeting 10.7 or later.
2128
2129 2011-12-03 Iain Sandoe <iains@gcc.gnu.org>
2130
2131 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
2132 Darwin >= 10.
2133 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
2134 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2135
2136 2011-12-03 Jakub Jelinek <jakub@redhat.com>
2137
2138 * fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
2139 VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
2140 VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
2141 (fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
2142 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
2143 and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.
2144
2145 PR debug/50317
2146 * tree-ssa.c (target_for_debug_bind): Also allow is_gimple_reg_type
2147 vars that aren't referenced.
2148 (tree-ssa-live.c (remove_unused_locals): Don't clear TREE_ADDRESSABLE
2149 of unreferenced local vars.
2150 * cfgexpand.c (expand_debug_expr): For DEBUG_IMPLICIT_PTR allow also
2151 TREE_ADDRESSABLE vars that satisfy target_for_debug_bind.
2152
2153 2011-12-03 Anatoly Sokolov <aesok@post.ru>
2154
2155 * config/arm/arm.h (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove.
2156 * config/arm/arm-protos.h (aapcs_libcall_value): Remove.
2157 * config/arm/arm.c (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2158 (arm_libcall_value_1, arm_function_value_regno_p): New function.
2159 (arm_function_value, arm_libcall_value): Use arm_libcall_value_1.
2160 (aapcs_libcall_value): Make static.
2161 (arm_libcall_value): Add static qualifier.
2162
2163 2011-12-02 Jakub Jelinek <jakub@redhat.com>
2164
2165 PR target/51387
2166 * config/i386/sse.md (mul<mode>3 with VI1_AVX2 iterator): For
2167 V32QImode use { 0,2,..,14,32,34,..,46,16,18,..,30,48,50,..,62 }
2168 permutation instead of extract even permutation.
2169
2170 2011-12-02 Nathan Sidwell <nathan@acm.org>
2171
2172 * gcov.c (struct arc_info): Add is_throw field.
2173 (struct (block_info): Add exceptional field, reduce flags size to
2174 account for it.
2175 (struct function_info): Add has_catch field.
2176 (struct line_info): Add unexceptional field.
2177 (process_file): Call find_exception_blocks if necessary.
2178 (read_graph_file): Adjust. Note if an exceptional edge is seen.
2179 (find_exception_blocks): New.
2180 (add_line_counts): Set line's unexceptional flag if not exceptional.
2181 (output_branch_count): Note exceptional arcs, lines and blocks.
2182 * gcov-dump.c (tag_arcs): Decode arc flags.
2183 * doc/gcov.texi: Document '=====' lines.
2184
2185 2011-12-02 Anatoly Sokolov <aesok@post.ru>
2186
2187 * config/ia64/ia64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2188 PRINT_OPERAND_PUNCT_VALID_P): Remove macros.
2189 * config/ia64/ia64-protos.h (ia64_print_operand,
2190 ia64_print_operand_address): Remove.
2191 * config/ia64/ia64.c (TARGET_PRINT_OPERAND,
2192 TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P):
2193 Define.
2194 (ia64_print_operand_punct_valid_p): New function.
2195 (ia64_print_operand, ia64_print_operand_address): Make static.
2196
2197 2011-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2198
2199 PR target/51390
2200 * config/rs6000/rs6000.c (def_builtin): Use the correct field to
2201 figure out the function's attributes.
2202 (struct builtin_description): Mark mask field as const since we no
2203 longer need to modify it for SPE and PAIRED builtins.
2204
2205 2011-12-02 Joseph Myers <joseph@codesourcery.com>
2206
2207 Revert:
2208
2209 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
2210
2211 PR rtl-opt/37451
2212 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
2213 zero extend count after the correction to it is done.
2214 (doloop_optimize): Update call to doloop_modify, don't zero extend
2215 count before call.
2216
2217 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2218
2219 PR rtl-opt/37782
2220 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
2221 mode count is in.
2222 (doloop_optimize): Update call to doloop_modify.
2223
2224 2011-12-02 Richard Guenther <rguenther@suse.de>
2225
2226 PR lto/47259
2227 * ipa.c (varpool_externally_visible_p): Register variables
2228 are always externally visible.
2229
2230 2011-12-02 Sameera Deshpande <sameera.deshpande@arm.com>
2231
2232 * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
2233 non-NULL.
2234
2235 2011-12-02 Martin Jambor <mjambor@suse.cz>
2236
2237 PR tree-optimization/50622
2238 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
2239 if both lacc and racc are grp_partial_lhs.
2240
2241 2011-12-01 Kaz Kojima <kkojima@gcc.gnu.org>
2242
2243 PR target/50814.
2244 * config/sh/sh.c (expand_ashiftrt): Handle TARGET_SH2A same as
2245 TARGET_SH3.
2246 (shl_sext_kind): Likewise.
2247 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Likewise.
2248 * config/sh/sh.md (ashlsi3_sh2a, ashrsi3_sh2a, lshrsi3_sh2a): Remove.
2249 (ashlsi3_std): Handle TARGET_SH2A same as TARGET_SH3.
2250 (ashlsi3): Likewise.
2251 (ashrsi3_d): Likewise.
2252 (lshrsi3_d): Likewise.
2253 (lshrsi3): Likewise.
2254
2255 2011-12-01 Diego Novillo <dnovillo@google.com>
2256
2257 PR bootstrap/51346
2258 * ipa-inline.c (can_inline_edge_p): If the edge E has a statement,
2259 use the statement's inline indicator instead of E's.
2260 Remove consistency check.
2261
2262 2011-12-01 Diego Novillo <dnovillo@google.com>
2263
2264 PR bootstrap/51346
2265 Revert
2266
2267 2011-11-29 Diego Novillo <dnovillo@google.com>
2268
2269 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
2270 Update field call_stmt_cannot_inline_p from call
2271 graph edge, if needed.
2272 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
2273
2274 2011-12-01 Nathan Sidwell <nathan@acm.org>
2275
2276 PR gcov-profile/51113
2277 * coverage.c (build_var): Keep coverage variables static.
2278
2279 2011-12-01 Jakub Jelinek <jakub@redhat.com>
2280
2281 PR tree-optimization/51356
2282 * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
2283 vectype doesn't have VECTOR_MODE_P.
2284
2285 PR debug/50317
2286 * tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
2287 as unnecessary a store to a variable with gimple reg type.
2288 * tree-ssa-live.c (remove_unused_locals): Clear TREE_ADDRESSABLE bit
2289 on local unreferenced variables.
2290 * cfgexpand.c (expand_gimple_basic_block): Don't emit DEBUG_INSNs
2291 for !target_for_debug_bind variables.
2292
2293 2011-12-01 Patrick Marlier <patrick.marlier@gmail.com>
2294
2295 PR middle-end/51273
2296 * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
2297 * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
2298 * cgraphunit.c (cgraph_copy_node_for_versioning): Call it.
2299
2300 2011-12-01 Andrew Pinski <apinski@cavium.com>
2301
2302 PR lto/51198
2303 * tree.c (free_lang_data_in_decl): Clear FIELD_DECL's
2304 DECL_INITIAL also.
2305
2306 2011-12-01 Jakub Jelinek <jakub@redhat.com>
2307
2308 PR tree-optimization/51246
2309 * tree-predcom.c (replace_ref_with): Handle also clobber on the rhs.
2310
2311 PR rtl-optimization/51014
2312 * loop-unroll.c (apply_opt_in_copies): Ignore label DEBUG_INSNs
2313 both from bb and orig_bb.
2314
2315 2011-12-01 Joern Rennecke <joern.rennecke@embecosm.com>
2316
2317 PR tree-optimization/50802
2318 * tree-vrp.c (simplify_conversion_using_ranges): Rewrite test
2319 considering what happens to ranges during sign changes and/or
2320 intermediate narrowing conversions.
2321
2322 2011-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2323
2324 PR middle-end/50283
2325 * config/pa/pa.md (in_branch_delay): Disallow frame related insns.
2326 (in_nullified_branch_delay): Likewise.
2327 (in_call_delay): Likewise.
2328
2329 2011-11-30 Richard Henderson <rth@redhat.com>
2330
2331 * predict.c (expr_expected_value_1): Assume compare-and-swap builtin
2332 boolean return is true.
2333
2334 2011-11-30 Jakub Jelinek <jakub@redhat.com>
2335
2336 PR rtl-optimization/51044
2337 * dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
2338 rather than just insn body.
2339
2340 PR target/50725
2341 * function.c (thread_prologue_and_epilogue_insns): If
2342 stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
2343 regset.
2344
2345 PR middle-end/51089
2346 * tree-eh.c (cleanup_empty_eh_merge_phis): Add check to
2347 avoid creating duplicate edges here.
2348 (cleanup_empty_eh_unsplit): And remove it in the caller.
2349
2350 2011-11-30 Andrew Pinski <apinski@cavium.com>
2351
2352 PR c/51321
2353 * c-parser.c (c_parser_postfix_expression): Check groktypename results
2354 before looking at the main variant.
2355
2356 2011-11-30 Jakub Jelinek <jakub@redhat.com>
2357
2358 PR rtl-optimization/48721
2359 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
2360 reg_pending_barrier to TRUE_BARRIER.
2361
2362 PR rtl-optimization/48721
2363 * sched-ebb.c (begin_move_insn): Insert empty unreachable
2364 block after BARRIER if insn is followed by it.
2365
2366 2011-11-30 Richard Henderson <rth@redhat.com>
2367
2368 * config/sparc/sparc-opts.h (enum sparc_memory_model_type): New.
2369 * config/sparc/sparc.opt (mmemory-model=): New option.
2370 * doc/invoke.texi (Sparc Options): Document it.
2371 * config/sparc/sparc.c (sparc_option_override): Provide default
2372 for sparc_memory_model.
2373 (sparc_emit_membar_for_model): Omit barrier combinations that are
2374 implied by the memory model.
2375
2376 2011-11-30 Richard Henderson <rth@redhat.com>
2377
2378 * config/sparc/sync.md (I124MODE): New mode iterator.
2379 (memory_barrier): Remove.
2380 (atomic_exchangesi): New.
2381 (swapsi): Rename from *swapsi.
2382 (atomic_test_and_set<I124MODE>): New.
2383 (ldstubqi): Rename from *ldstubqi, merge with expander.
2384 (ldstub<I24MODE>): Rename from *ldstub<I24MODE>, merge with expander.
2385 (sync_lock_test_and_setsi): Remove.
2386 (sync_lock_test_and_set<I12MODE>): Remove.
2387
2388 2011-11-30 Richard Henderson <rth@redhat.com>
2389
2390 * config/sparc/constraints.md ("w"): New.
2391 * config/sparc/predicates.md (mem_noofs_operand): New.
2392 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Make static.
2393 Generate the boolean result of the atomic_compare_exchange.
2394 (sparc_expand_compare_and_swap): New.
2395 * config/sparc/sync.md (atomic_compare_and_swap<I>): New.
2396 (atomic_compare_and_swap<I48MODE>_1): Rename from
2397 *sync_compare_and_swap<I48MODE>, use mem_noofs_operand.
2398 (*atomic_compare_and_swapdi_v8plus): Rename from
2399 *sync_compare_and_swapdi_v8plus, use mem_noofs_operand.
2400 (sync_compare_and_swap<I12MODE>): Remove.
2401 (sync_compare_and_swap<I48MODE>): Remove.
2402
2403 2011-11-30 Richard Henderson <rth@redhat.com>
2404
2405 * config/sparc/predicates.md (register_or_v9_zero_operand): New.
2406 * config/sparc/sparc.md (UNSPEC_ATOMIC): New.
2407 * config/sparc/sync.md (atomic_load<I>): New.
2408 (atomic_loaddi_1, atomic_store<I>, atomic_storedi_1): New.
2409
2410 2011-11-30 Richard Henderson <rth@redhat.com>
2411
2412 * config/sparc/predicates.md (zero_or_v7_operand): New.
2413 * config/sparc/sparc.c (sparc_emit_membar_for_model): New.
2414 * config/sparc/sparc-protos.h: Update.
2415 * config/sparc/sync.md (mem_thread_fence): New.
2416 (memory_barrier): Use sparc_emit_membar_for_model.
2417 (membar, *membar_empty, *membar_storestore, *membar_storeload): New.
2418 (*membar_v8): Accept and ignore the membar mask.
2419 (*membar): Accept and print the membar mask.
2420
2421 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2422
2423 * config/arm/arm.c (arm_issue_rate): Cortex-A15 can triple issue.
2424 * config/arm/arm.md (mul64): New attribute.
2425 (generic_sched): Cortex-A15 is not scheduled generically.
2426 (cortex-a15.md): Include.
2427 * config/arm/cortex-a15.md: New machine description.
2428 * config/arm/t-arm (MD_INCLUDES): Add cortex-a15.md.
2429
2430 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2431
2432 * config/arm/t-arm (MD_INCLUDES): Ensure all md files are listed.
2433
2434 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2435
2436 * doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
2437 * doc/tm.texi: Regenerate.
2438 * flags.h (flag_next_runtime): Remove references.
2439 * toplev.c: Likewise.
2440 * defaults.h (NEXT_OBJC_RUNTIME): Provide default.
2441 * gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
2442 * config/darwin.c (darwin_override_options): Provide default
2443 Objective-C abi settings and target conflict checks.
2444 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
2445 code. Adjust indenting.
2446
2447 2011-11-29 Joseph Myers <joseph@codesourcery.com>
2448
2449 * config/sh/sh.h (enum reg_class, REG_CLASS_NAMES)
2450 (REG_CLASS_CONTENTS): Add NON_SP_REGS.
2451 (REGCLASS_HAS_GENERAL_REG): Handle NON_SP_REGS.
2452 * config/sh/constraints.md (u): New constraint.
2453
2454 2011-11-29 Oleg Endo <oleg.endo@t-online.de>
2455
2456 PR target/51337
2457 * config/sh/sh.c (sh_secondary_reload): Add case when FPUL
2458 register is being loaded from a pseudo in memory.
2459
2460 2011-11-29 DJ Delorie <dj@redhat.com>
2461
2462 * config.gcc (rl78-*-elf): New case.
2463 * doc/extend.texi: Add RL78 documentation.
2464 * doc/invoke.texi: Likewise.
2465 * doc/md.texi: Likewise.
2466 * doc/contrib.texi: Add RL78.
2467 * doc/install.texi: Add rl78-*-elf.
2468 * config/rl78: New directory for the Renesas RL78.
2469
2470 2011-11-29 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR tree-optimization/51247
2473 * tree-vrp.c (extract_range_from_assert): For signed 1-bit precision
2474 types instead of adding 1 subtract -1 and instead of subtracting 1
2475 add -1 to avoid overflows.
2476
2477 2011-11-29 Andrew MacLeod <amacleod@redhat.com>
2478
2479 PR target/50123
2480 * optabs.c (maybe_optimize_fetch_op): New. Look for more optimal
2481 instructions for a FECTH_OP or OP_FECTH sequence.
2482 (expand_atomic_fetch_op): Call maybe_optimize_fetch_op.
2483
2484 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
2485
2486 * config/i386/sync.md (UNSPEC_LDA, UNSPEC_STA): New unspecs.
2487 (movdi_via_fpu): Remove.
2488 (loaddi_via_fpu): New insn pattern.
2489 (storedi_via_fpu): Ditto.
2490 (atomic_loaddi_fpu): Use loaddi_via_fpu and storedi_via_fpu.
2491 (atomic_storedi_fpu): Ditto.
2492 * reg-stack.c (get_true_reg): Handle UNSPEC_LDA.
2493 (subst_stack_regs_pat): Handle UNSPEC_STA.
2494
2495 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
2496
2497 * config/i386/i386.md (*floathi<mode>2_i387_with_temp): Do not
2498 allocate scratch memory for alternative 0.
2499
2500 2011-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2501
2502 * config/rs6000/rs6000-builtins.def: Completely rewrite builtin
2503 handling to centralize more of the builtins in this file. Change
2504 some builtin enumerations to be more consistant. Use a new mask
2505 to hold the current builtins, including SPE and PAIRED builtins
2506 which no longer are set via target_flags masks. Add
2507 -mdebug=builtin debug support. For power machines, define all
2508 Altivec and VSX buitins when the compiler starts, but don't allow
2509 the use of a builtin unless the appropriate switch is used, or
2510 #pragma GCC target is used to change the options. If the user
2511 uses #pragma GCC target, update the appropriate hardware macros.
2512 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Ditto.
2513 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Ditto.
2514 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Ditto.
2515 (rs6000_define_or_undefine_macro): Ditto.
2516 (rs6000_target_modify_macros): Ditto.
2517 (rs6000_cpu_cpp_builtins): Ditto.
2518 (altivec_overloaded_builtins): Ditto.
2519 (altivec_build_resolved_builtin): Ditto.
2520 * config/rs6000/rs6000.c (rs6000_target_modify_macros_ptr): Ditto.
2521 (rs6000_builtin_info): Ditto.
2522 (def_builtin): Ditto.
2523 (enable_mask_for_builtins): Ditto.
2524 (DEBUG_FMT_X): Ditto.
2525 (rs6000_debug_reg_global): Ditto.
2526 (rs6000_builtin_mask_calculate): Ditto.
2527 (rs6000_option_override_internal): Ditto.
2528 (rs6000_builtin_conversion): Ditto.
2529 (rs6000_builtin_vectorized_function): Ditto.
2530 (bdesc_3arg): Ditto.
2531 (bdesc_dst): Ditto.
2532 (bdesc_2arg): Ditto.
2533 (builtin_description_predicates): Ditto.
2534 (bdesc_altivec_preds): Ditto.
2535 (bdesc_spe_predicates): Ditto.
2536 (bdesc_spe_evsel): Ditto.
2537 (bdesc_paired_preds): Ditto.
2538 (bdesc_abs): Ditto.
2539 (bdesc_1arg): Ditto.
2540 (rs6000_overloaded_builtin_p): Ditto.
2541 (rs6000_expand_unop_builtin): Ditto.
2542 (bdesc_2arg_spe): Ditto.
2543 (spe_expand_builtin): Ditto.
2544 (rs6000_invalid_builtin): Ditto.
2545 (rs6000_expand_builtin): Ditto.
2546 (rs6000_init_builtins): Ditto.
2547 (spe_init_builtins): Ditto.
2548 (paired_init_builtins): Ditto.
2549 (altivec_init_builtins): Ditto.
2550 (builtin_function_type): Ditto.
2551 (rs6000_common_init_builtins): Ditto.
2552 (rs6000_builtin_reciprocal): Ditto.
2553 (rs6000_builtin_mask_names): Ditto.
2554 (rs6000_pragma_target_parse): Ditto.
2555 (rs6000_function_specific_print): Ditto.
2556 * config/rs6000/rs6000.h (MASK_DEBUG_BUILTIN): Ditto.
2557 (MASK_DEBUG_ALL): Ditto.
2558 (TARGET_DEBUG_BUILTIN): Ditto.
2559 (TARGET_EXTRA_BUILTINS): Ditto.
2560 (REGISTER_TARGET_PRAGMAS): Ditto.
2561 (enum rs6000_btc): Ditto.
2562 (RS6000_BTC_*): Ditto.
2563 (RS6000_BTM_*): Ditto.
2564 (enum rs6000_builtins): Ditto.
2565 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Ditto.
2566 (rs6000_target_modify_macros): Ditto.
2567 (rs6000_target_modify_macros_ptr): Ditto.
2568
2569 * config/rs6000/vector.md (unsfloat<VEC_int><mode>2): Use the
2570 standard name for converting vector unsigned values to floating
2571 point. Delete the TARGET_VECTORIZE_BUILTIN_CONVERSION hook, which
2572 is handled by machine independent code.
2573 * config/rs6000/rs6000.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Ditto.
2574 (rs6000_builtin_conversion): Ditto.
2575
2576 2011-11-29 Dodji Seketeli <dodji@redhat.com>
2577
2578 * tree-diagnostic (struct loc_t): Rename into struct loc_map_pair.
2579 (maybe_unwind_expanded_macro_loc): Adjust.
2580
2581 2011-11-29 David Edelsohn <dje.gcc@gmail.com>
2582 Aldy Hernandez <aldyh@redhat.com>
2583
2584 * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl
2585 if DECL_ONE_ONLY.
2586 (ipa_tm_create_version): Same.
2587
2588 2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
2589
2590 * haifa-sched.c (recompute_todo_spec): Simplify and correct the
2591 code checking for a clobber of a condition register when deciding
2592 whether to predicate.
2593
2594 2011-11-29 Diego Novillo <dnovillo@google.com>
2595
2596 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
2597 Update field call_stmt_cannot_inline_p from call graph edge, if needed.
2598 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
2599
2600 2011-11-29 Sameera Deshpande <sameera.deshpande@arm.com>
2601
2602 * config/arm/arm.md (arm_movdi): Update NEG_POOL_RANGE.
2603 (movdf_soft_insn): Likewise.
2604 * config/arm/fpa.md (thumb2_movdf_fpa): Likewise.
2605 * config/arm/neon.md (neon_mov<mode>): Likewise.
2606 * config/arm/vfp.md (movdi_vfp): Likewise.
2607 (movdi_vfp_cortexa8): Likewise.
2608 (movdf_vfp): Likewise.
2609
2610 2011-11-29 Jakub Jelinek <jakub@redhat.com>
2611
2612 PR middle-end/50074
2613 * expr.c (expand_expr_addr_expr_1): Don't call force_operand for
2614 EXPAND_SUM modifier.
2615
2616 2011-11-29 Ira Rosen <ira.rosen@linaro.org>
2617
2618 PR tree-optimization/51301
2619 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check that
2620 the last statement doesn't convert to a bigger type than the original
2621 type of the computation.
2622
2623 2011-11-28 Richard Henderson <rth@redhat.com>
2624
2625 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2626 Handle overlap between retval and oldval. Always compute boolval
2627 from CR0 EQ value.
2628
2629 2011-11-28 Jakub Jelinek <jakub@redhat.com>
2630
2631 PR debug/50317
2632 * tree-ssa.c (execute_update_addresses_taken): Remove
2633 var ={v} {CLOBBER} stmts instead of rewriting them into
2634 var_N ={v} {CLOBBER}.
2635
2636 PR middle-end/50907
2637 * function.c (convert_jumps_to_returns): When redirecting an edge
2638 succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
2639
2640 PR tree-optimization/50078
2641 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
2642 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
2643
2644 PR tree-optimization/50682
2645 * tree-eh.c (maybe_remove_unreachable_handlers): New function.
2646 * tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
2647 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.
2648
2649 2011-11-28 Georg-Johann Lay <avr@gjlay.de>
2650
2651 * doc/extend.texi (AVR Built-in Functions): Add documentation for
2652 __builtin_avr_map8 and __builtin_avr_map16.
2653
2654 * config/avr/avr.md: Document new %t and %T asm output codes.
2655 (define_c_enum "unspec"): Add UNSPEC_MAP_BITS.
2656 (adjust_len): Add map_bits.
2657 (map_bitsqi, map_bitshi): New insns.
2658 * config/avr/avr-protos.h (avr_out_map_bits): New.
2659 * config/avr/avr-protos.c (print_operand): Implement %t and %T.
2660 (adjust_insn_length): Handle ADJUST_LEN_MAP_BITS.
2661 (avr_double_int_push_digit): New function.
2662 (avr_map, avr_revert_map, avr_swap_map, avr_id_map): New functions.
2663 (avr_sig_map, avr_map_hamming_byte): New functions.
2664 (avr_out_swap_bits, avr_out_revert_bits, avr_move_bits,
2665 avr_out_map_bits): New functions.
2666 (enum avr_builtin_id): Add AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
2667 (avr_init_builtins): Populate __builtin_avr_map8, __builtin_avr_map16.
2668 (bdesc_2arg): Add __builtin_avr_map8, __builtin_avr_map16 ...
2669 (avr_expand_builtin): ...and expand them.
2670 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
2671 __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
2672
2673 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2674
2675 PR target/51278
2676 * config/mips/mips.c (mips_rtx_costs): Handle baddu.
2677
2678 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2679
2680 * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
2681
2682 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2683
2684 * config/mips/mips-protos.h (mips_emit_binary): Declare.
2685 * config/mips/mips.c (mips_emit_binary): Make global.
2686 (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
2687 (mips_conditional_register_usage): Don't treat LO and HI as
2688 register operands in MIPS16 mode.
2689 (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
2690 for MIPS16 code.
2691 * config/mips/predicates.md (muldiv_target_operand): New predicate.
2692 (move_operand): Allow hilo_operand.
2693 * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
2694 target of MIPS16 multiplies, then move it into the target register.
2695 (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
2696 (<u>mulsidi3_32bit_mips16): New expander.
2697 (<u>mulsidi3_32bit): Use muldiv_target_operand.
2698 (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
2699 (<u>mulsidi3_64bit): Require !TARGET_MIPS16. Split into
2700 <u>mulsidi3_64bit_split.
2701 (<u>mulsidi3_64bit_mips16): New expander.
2702 (<u>mulsidi3_64bit_split): Likewise, using expansions from
2703 two previous define_splits.
2704 (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
2705 muldiv_target_operand.
2706 (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
2707 (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
2708 Split into <su>mulsi3_highpart_split.
2709 (<su>mulsi3_highpart_split): New expander.
2710 (<su>muldi3_highpart): Turn into a define_expand.
2711 Use <su>muldi3_highpart_split for MIPS16 code.
2712 (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
2713 Require !TARGET_MIPS16. Split into <su>muldi3_highpart_split.
2714 (<su>muldi3_highpart_split): New expander.
2715 (<u>mulditi3): Explicitly specify LO as the target of MIPS16
2716 multiplies, then move it into the target register.
2717 (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
2718 (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
2719 Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
2720 move LO into operand 0.
2721 (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
2722 from <u>divmod<mode>4. Use muldiv_target_operand.
2723 Require !TARGET_MIPS16. Split into <u>divmod<mode>4_split.
2724 (<u>divmod<mode>4_split): New expander.
2725 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
2726 (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
2727
2728 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2729
2730 * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
2731 and x_operand_reg_set.
2732 (accessible_reg_set, operand_reg_set): New macros.
2733 * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
2734 operand_reg_set.
2735 (saved_accessible_reg_set, saved_operand_reg_set): New variables.
2736 (save_register_info): Save them.
2737 (restore_register_info): Restore them.
2738 (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
2739 Remove NO_REGS registers from operand_reg_set. Treat members
2740 of operand_reg_set as fixed.
2741 * recog.c (general_operand): Check operand_reg_set rather than NO_REGS.
2742 (register_operand, nonmemory_operand): Likewise.
2743 * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
2744 register variables. Check accessible_reg_set and operand_reg_set.
2745 * config/mips/mips.c (mips_conditional_register_usage): Remove
2746 inaccessible register from accessible_reg_set, rather than just
2747 making them fixed.
2748
2749 2011-11-27 Gerald Pfeifer <gerald@pfeifer.com>
2750
2751 * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
2752
2753 2011-11-26 Richard Henderson <rth@redhat.com>
2754
2755 * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
2756 for Linux.
2757
2758 2011-11-26 Richard Henderson <rth@redhat.com>
2759
2760 * optabs.c (expand_atomic_fetch_op): Always return result.
2761
2762 * optabs.c (init_sync_libfuncs_1): Include max in iteration.
2763
2764 * omp-low.c (expand_omp_atomic): Assume anything aligned to
2765 BIGGEST_ALIGNMENT is aligned.
2766
2767 2011-11-26 Richard Henderson <rth@redhat.com>
2768
2769 * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
2770 (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
2771 (I): New mode iterator.
2772 (xz): New mode attribute.
2773 * config/m68k/sync.md: New file.
2774
2775 * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
2776 * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
2777
2778 2011-11-26 Nathan Sidwell <nathan@acm.org>
2779
2780 PR gcov-profile/51297
2781 * gcov.c (main): Allocate initial names and sources arrays.
2782 (find_source): Don't check for null name or source arrays here.
2783
2784 2011-11-26 Jakub Jelinek <jakub@redhat.com>
2785
2786 PR rtl-optimization/49912
2787 * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
2788 when counting n_branch.
2789
2790 2011-11-26 Uros Bizjak <ubizjak@gmail.com>
2791
2792 * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
2793
2794 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
2795
2796 PR middle-end/50074
2797 * calls.c (mem_overlaps_already_clobbered_arg_p):
2798 Return false if no outgoing arguments have been stored so far.
2799
2800 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
2801
2802 * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
2803
2804 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2805
2806 PR other/51011
2807 * tree.h (is_builtin_name): No longer external.
2808 * builtins.c (is_builtin_name): Make static.
2809 * varasm.c (incorporeal_function_p): __sync and __atomic external calls
2810 are not incorporeal and may need asm label processing.
2811
2812 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
2813
2814 PR target/50566
2815 * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
2816 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2817 Don't bypass TARGET_ALL_DEBUG. Print self-info with ?.
2818 (avr_log_vadump): Support %D and %X to print double_int.
2819 (avr_double_int_pop_digit): New static function.
2820 (avr_dump_double_int_hex): New static function.
2821
2822 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
2823
2824 PR target/51287
2825 * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
2826 attr check.
2827
2828 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2829
2830 * optab.c (maybe_emit_atomic_exchange): New. Try to emit an
2831 atomic_exchange pattern.
2832 (maybe_emit_sync_lock_test_and_set): New. Try to emit an exchange
2833 using __sync_lock_test_and_set.
2834 (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
2835 exchange using a compare_and_swap loop.
2836 (expand_sync_lock_test_and_set): New. Expand sync_lock_test_and_set.
2837 (expand_atomic_test_and_set): New. Expand test_and_set operation.
2838 (expand_atomic_exchange): Use new maybe_emit_* functions.
2839 (expand_atomic_store): Use new maybe_emit_* functions.
2840 * builtins.c (expand_builtin_sync_lock_test_and_set): Call
2841 expand_sync_lock_test_and_set routine.
2842 (expand_builtin_atomic_exchange): Remove parameter from call.
2843 (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
2844 (expand_builtin_atomic_test_and_set): Add target and simply call
2845 expand_atomic_test_and_set.
2846 (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
2847 * expr.h (expand_atomic_exchange): Add parameter.
2848 (expand_sync_lock_test_and_set): New prototype.
2849 (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
2850
2851 2011-11-24 H.J. Lu <hongjiu.lu@intel.com>
2852
2853 PR target/51134
2854 * config/i386/i386.h (processor_costs): Revert revision 181357.
2855 * config/i386/i386.c (cost models): Likewise.
2856 (core_cost): Likewise.
2857 (promote_duplicated_reg): Likewise.
2858 (promote_duplicated_reg_to_size): Likewise.
2859 (processor_target): Likewise.
2860 (expand_set_or_movmem_via_loop_with_iter): Likewise.
2861 (expand_set_or_movmem_via_loop): Likewise.
2862 (emit_strset): Likewise.
2863 (expand_movmem_epilogue): Likewise.
2864 (expand_setmem_epilogue): Likewise.
2865 (expand_movmem_prologue): Likewise.
2866 (expand_setmem_prologue): Likewise.
2867 (expand_constant_movmem_prologue): Likewise.
2868 (expand_constant_setmem_prologue): Likewise.
2869 (decide_alg): Likewise.
2870 (decide_alignment): Likewise.
2871 (ix86_expand_movmem): Likewise.
2872 (ix86_expand_setmem): Likewise.
2873 (ix86_slow_unaligned_access): Likewise.
2874 * config/i386/i386.md (strset): Likewise.
2875 * config/i386/sse.md (vec_dupv4si): Likewise.
2876 (vec_dupv2di): Likewise.
2877
2878 2011-11-24 Georg-Johann Lay <avr@gjlay.de>
2879
2880 * config/avr/avr.md (*rotlhi2.15): Set length to 4.
2881
2882 2011-11-24 Razya Ladelsky <razya@il.ibm.com>
2883
2884 * tree-data-ref.c (initialize_data_dependence_relation): Update
2885 comment for the self dependence case.
2886 (compute_self_dependence): Remove.
2887 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
2888 compute_self_dependenc.
2889
2890 2011-11-24 Alan Modra <amodra@gmail.com>
2891
2892 * c-decl.c (warn_if_shadowing): Don't warn if shadowed
2893 identifier is from system header.
2894
2895 2011-11-23 Jakub Jelinek <jakub@redhat.com>
2896
2897 PR target/51261
2898 * config/i386/i386.c (decide_alg): Initialize *dynamic_check
2899 even if !optimize.
2900
2901 2011-11-23 Vladimir Makarov <vmakarov@redhat.com>
2902
2903 PR rtl-optimization/48455
2904 * doc/invoke.texi (-fira-region): Document default values.
2905
2906 * flags-types.h (enum ira_region): Add new value
2907 IRA_REGION_AUTODETECT.
2908
2909 * common.opt (fira-region): Set up initial value to
2910 IRA_REGION_AUTODETECT.
2911
2912 * toplev.c (process_options): Set up flag_ira_region depending on
2913 -O options.
2914
2915 * ira.c (ira.c): Remove optimize guard for ira_build.
2916
2917 2011-11-23 Chung-Lin Tang <cltang@codesourcery.com>
2918
2919 PR rtl-optimization/50496
2920 * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
2921 only after epilogue is created. Add comments.
2922
2923 2011-11-22 Richard Henderson <rth@redhat.com>
2924
2925 * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
2926 Generate the barrier required for the memory model.
2927 (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
2928 * config/ia64/ia64-protos.h: Update.
2929 * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
2930 (UNSPEC_CMPXCHG_REL): New.
2931 * config/ia64/sync.md (mem_thread_fence): New.
2932 (atomic_load<IMODE>, atomic_store<IMODE>): New.
2933 (atomic_compare_and_swap<IMODE>): New.
2934 (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
2935 (atomic_exchange<IMODE>): New.
2936 (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
2937 (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
2938 (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
2939 (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
2940 (fetchadd_rel_<I48MODE>): New.
2941 (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
2942 (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
2943 (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
2944 (sync_compare_and_swap<IMODE>): Remove.
2945 (sync_lock_release<IMODE>): Remove.
2946
2947 * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
2948 and UNSPECV_* constants.
2949
2950 2011-11-22 Tom de Vries <tom@codesourcery.com>
2951
2952 PR rtl-optimization/50764
2953 * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
2954 not moved past preceding jump.
2955
2956 2011-11-22 Jeff Law <law@redhat.com>
2957
2958 * doc/contrib.texi: Add entry for David Binderman.
2959
2960 2011-11-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2961
2962 * postreload.c (reload_combine): Mark reg_state as invalid at
2963 volatile insns if there has been a use already.
2964
2965 2011-11-21 Aldy Hernandez <aldyh@redhat.com>
2966
2967 * opts.c (finish_options): Do not fail for -fgnu-tm.
2968 * gimple-streamer-out.c (output_gimple_stmt): Handle
2969 GIMPLE_TRANSACTION.
2970 * gimple-streamer-in.c (input_gimple_stmt): Same.
2971 * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
2972 (lto_output_node): Write tm_clone bit.
2973
2974 2011-11-22 Ian Lance Taylor <iant@google.com>
2975
2976 * doc/install.texi (Configuration): Correct doc of
2977 --enable-build-poststage1-with-cxx: it is not experimental.
2978
2979 2011-11-22 Jakub Jelinek <jakub@redhat.com>
2980
2981 PR tree-optimization/51074
2982 * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
2983 handling for BYTES_BIG_ENDIAN.
2984 * optabs.c (can_vec_perm_for_code_p): Likewise.
2985
2986 2011-11-22 Michael Matz <matz@suse.de>
2987
2988 PR other/51125
2989 * trans-mem.c (expand_block_tm): Ignore clobbers.
2990
2991 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
2992
2993 * config/darwin.h (ENDFILE_SPEC): New.
2994 (DARWIN_CRT1_SPEC): Add crttms.o.
2995 (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
2996 * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
2997
2998 2011-11-22 Michael Matz <matz@suse.de>
2999
3000 PR c++/51264
3001 * tree.c (iterative_hash_expr): Remove break after return.
3002
3003 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
3004
3005 * target.def (tm_clone_table_section): New hook.
3006 * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
3007 * doc/tm.texi: Regenerate.
3008 * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
3009 * output.h (default_clone_table_section): New prototype.
3010 * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
3011 * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
3012 * config/darwin.c (darwin_tm_clone_table_section): New.
3013
3014 2011-11-21 Torvald Riegel <triegel@redhat.com>
3015
3016 * trans-mem.c (diagnose_tm_1): Print an expression instead of a
3017 declaration in error messages for indirect calls.
3018
3019 2011-11-21 David S. Miller <davem@davemloft.net>
3020
3021 * config/sparc/sparc.c (sparc_regmode_natural_size): New function
3022 implementing REGMODE_NATURAL_SIZE taking into consideration vector
3023 modes.
3024 (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
3025 * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
3026 sparc_modes_tieable_p): Declare.
3027 * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
3028 MODES_TIEABLE_P): Use new helper functions.
3029
3030 Revert
3031 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3032
3033 PR middle-end/50325
3034 * expmed.c (store_bit_field_1): Use extract_bit_field on big
3035 endian targets if the source cannot be exactly covered by word
3036 mode chunks.
3037
3038 2011-11-21 Jakub Jelinek <jakub@redhat.com>
3039
3040 PR debug/50827
3041 * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
3042 macro instead of XEXP.
3043
3044 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
3045
3046 * configure: Regenerate.
3047
3048 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
3049
3050 * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
3051 must not affect cc0.
3052 * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
3053 register does not change cc0. Same for any constant to ld-register.
3054
3055 2011-11-21 Uros Bizjak <ubizjak@gmail.com>
3056
3057 * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
3058 UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
3059 Move from config/i386/i386.md
3060 (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
3061 * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
3062 UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
3063 UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
3064 UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
3065 UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
3066 UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
3067 UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
3068 UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
3069 UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
3070 UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
3071 UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
3072 UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
3073 (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
3074 UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
3075 Ditto.
3076 * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
3077 UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
3078 (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
3079 UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
3080 (sse2_lfence): Move from config/i386/sse.md.
3081 (*sse2_lfence): Ditto.
3082 (sse_sfence): Ditto.
3083 (*sse_sfence): Ditto.
3084 (sse2_mfence): Ditto.
3085 (mfence_sse2): Ditto. Rename from *sse2_mfence. Enable also
3086 for TARGET_64BIT.
3087 (mem_thread_fence): Use mfence_sse2.
3088
3089 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
3090
3091 * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
3092 * config/avr/avr-devices.c: Ditto. And initialize it.
3093 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
3094 __AVR_SFR_OFFSET__.
3095 * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
3096 (out_movhi_r_mr, out_movhi_mr_r): Remove.
3097 (out_movsi_r_mr, out_movsi_mr_r): Remove.
3098 * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
3099 (*insv.io, *insv.not.io): Ditto.
3100 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
3101 (print_operand): Implement "%i" to print address as I/O address.
3102 (output_movqi): Clean up call of out_movqi_mr_r.
3103 (output_movhi): Clean up call of out_movhi_mr_r.
3104 (avr_file_start): Use avr_current_arch->sfr_offset instead of
3105 magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
3106 (avr_out_sbxx_branch): Use %i instead of %m-0x20.
3107 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
3108 (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
3109 (out_shift_with_cnt): Clean up code: Use avr_asm_len.
3110 (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
3111 (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
3112 Clean up call of avr_out_store_psi.
3113 (output_reload_in_const): Don't cut symbols longer than 2 bytes.
3114 (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
3115 try if setting pre-cleared register is advantageous.
3116 (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
3117
3118 2011-11-20 Joey Ye <joey.ye@arm.com>
3119
3120 * expr.c (expand_expr_real_1): Correctly handle strict volatile
3121 bitfield loads smaller than mode size.
3122
3123 2011-11-20 Richard Henderson <rth@redhat.com>
3124
3125 * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
3126
3127 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
3128
3129 PR target/51235
3130 * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
3131 patterns for supported mode only.
3132
3133 PR target/51236
3134 * config/i386/i386.c (ix86_expand_builtin)
3135 <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
3136
3137 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
3138
3139 * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
3140 (UNSPEC_MOVNTQ): New unspec.
3141 * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
3142 Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
3143 * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
3144 UNSPEC_MOVNTI.
3145 (STORENT_MODE): Add DI and V4DI modes.
3146
3147 2011-11-20 Nathan Sidwell <nathan@acm.org>
3148
3149 PR gcov-profile/51113
3150 * coverage.c (build_var): Propagate visibility for public
3151 decls. Use make_decl_one_only for PIC correctness.
3152
3153 testsuite/
3154 * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
3155 * gcc.misc-tests/gcov-16.c: New.
3156 * gcc.misc-tests/gcov-17.c: New.
3157 * g++.dg/gcov/gcov-8.C: New.
3158 * g++.dg/gcov/gcov-9.C: New.
3159 * g++.dg/gcov/gcov-10.C: New.
3160
3161 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
3162
3163 PR rtl-optimization/51187
3164 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
3165 is a barrier between the jump and its target label.
3166
3167 2011-11-19 Patrick Marlier <patrick.marlier@gmail.com>
3168
3169 PR middle-end/51211
3170 * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
3171
3172 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
3173
3174 * expmed.c (store_bit_field_1): Revert bogus formatting change.
3175
3176 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
3177
3178 PR target/50493
3179 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
3180 overlap of src and dest operands.
3181
3182 2011-11-19 Iain Sandoe <iains@gcc.gnu.org>
3183
3184 * config/darwin.h (ASM_DEBUG_SPEC): New.
3185 * config/darwin9.h (ASM_DEBUG_SPEC): New.
3186
3187 2011-11-18 Jan Hubicka <jh@suse.cz>
3188
3189 * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
3190 issues are fixed.
3191
3192 2011-11-18 Anatoly Sokolov <aesok@post.ru>
3193
3194 * config/cris/cris.c (cris_function_value_regno_p): Make static.
3195 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3196 * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
3197 * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
3198
3199 2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
3200
3201 PR target/33944
3202 * doc/extend.texi: Document __builtin_ia32_movnti64.
3203
3204 * config/i386/emmintrin.h (_mm_stream_si64): New.
3205
3206 * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
3207
3208 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
3209 (bdesc_special_args): Update __builtin_ia32_movnti. Add
3210 __builtin_ia32_movnti64.
3211 (ix86_expand_special_args_builtin): Handle
3212 VOID_FTYPE_PLONGLONG_LONGLONG.
3213
3214 * config/i386/i386.md (UNSPEC_MOVNTI): New.
3215
3216 * config/i386/sse.md (sse2_movntsi): Renamed to ...
3217 (sse2_movnti<mode>): This.
3218
3219 2011-11-18 Georg-Johann Lay <avr@gjlay.de>
3220
3221 PR target/49868
3222 * config/avr/avr.h (base_arch_s): Add field n_segments.
3223 (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
3224 ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
3225 (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
3226 (INIT_EXPANDERS): New define.
3227 * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
3228 (avr_init_expanders): New.
3229 (avr_emit_movmemhi, avr_out_movmem): New.
3230 (avr_xload_libgcc_p): New.
3231 * config/avr/avr-c.c (avr_register_target_pragmas): Register
3232 address spaces __pgm1, __pgm2, __pgm3, __pgm4 __pgm5, __pgmx.
3233 (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
3234 __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
3235 * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
3236
3237 * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
3238 3 bits instead of just 1.
3239 (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
3240 (progmem_section): Change from section to array of sections.
3241 (progmem_section_prefix): New static variable.
3242 (avr_file_start): Print set for __RAMPZ__
3243 (avr_option_override): Move initialization of RTXes from here...
3244 (avr_init_expanders): ...to this new function.
3245 (avr_pgm_segment): New static function.
3246 (avr_decl_pgm_p): Handle error_mark_node.
3247 (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
3248 (avr_out_xload, avr_find_unused_d_reg): New static functions.
3249 (expand_prologue, expand_epilogue): Use rampz_rtx.
3250 (print_operand): Hande CONST_STRING.
3251 (avr_xload_libgcc_p): New static function.
3252 (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
3253 (avr_progmem_p): Return 2 for 24-bit flash address space.
3254 (avr_out_sbxx_branch): Clean-up code from ASn macros.
3255 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
3256 address and print symbolically.
3257 (avr_asm_named_section, avr_section_type_flags,
3258 avr_encode_section_info, avr_asm_select_section,
3259 avr_addr_space_address_mode, avr_addr_space_pointer_mode,
3260 avr_addr_space_legitimate_address_p, avr_addr_space_convert,
3261 avr_addr_space_legitimize_address): Handle new address spaces.
3262 (avr_output_progmem_section_asm_op): New static function.
3263 (avr_asm_init_sections): Initialize progmem_section[].
3264 (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
3265 (avr_const_address_lo16): New static function.
3266 (avr_assemble_integer): Use it to handle 3-byte integers.
3267 (avr_emit_movmemhi, avr_out_movmem): New functions.
3268
3269 * config/avr/predicates.md (nox_general_operand): Handle new
3270 address spaces.
3271 * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
3272 (adjust_len): Add xload, movmem.
3273 (SP_ADDR): New define_constants.
3274 (isa): Add "lpm", "lpmx", "elpm", "elpmx".
3275 (enabled): Handle them.
3276 (load<mode>_libgcc): New expander.
3277 (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
3278 (xload8_A, xload<mode>_A): New insn-and-splits.
3279 (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
3280 (mov<mode>): Handle new address spaces.
3281 (movmemhi): Rewrite using avr_emit_movmemhi.
3282 (MOVMEM_r_d): New mode attribute.
3283 (movmem_<mode>, movmem_qi_elpm): New insns.
3284 (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
3285 C-code. Use label instead of hard-coded instrunction lengths.
3286
3287 2011-11-18 Martin Jambor <mjambor@suse.cz>
3288
3289 PR tree-optimization/50605
3290 * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
3291 of IPA invariant decls.
3292
3293 2011-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3294
3295 * tree-outof-ssa.c (insert_back_edge_copies): Add call to
3296 mark_dfs_back_edges.
3297
3298 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
3299
3300 PR target/49992
3301 * configure.ac: Remove ranlib special-casing for Darwin.
3302 * configure: Regenerate.
3303
3304 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
3305
3306 PR tree-optimization/51118
3307 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
3308 before using TREE_TYPE accessor on expr.
3309
3310 2011-11-17 Jan Hubicka <jh@suse.cz>
3311
3312 PR bootstrap/51134
3313 * i386.c (atom_cost): Fix 32bit memset description.
3314 (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
3315 for epilogue loops.
3316 (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
3317 byte loop.
3318 (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
3319 when not optimizing always use rep movsb or lincall; do not produce
3320 word sized loops when optimizing memset for size (to avoid need
3321 for large constants).
3322 (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
3323 choose unroll factors better; always do 128bit moves when producing
3324 SSE loops; do not produce loopy epilogue when size is too small.
3325 (promote_duplicated_reg_to_size): Do not look into desired alignments
3326 when doing vector expansion.
3327 (ix86_expand_setmem): Track better when promoted value is available;
3328 choose unroll factors more sanely. Output loopy epilogue only
3329 when needed.
3330
3331 2011-11-17 Steve Ellcey <sje@cup.hp.com>
3332
3333 PR middle-end/51144
3334 * output.h (fprint_w): Remove.
3335 * final.c (fprint_w): Remove.
3336 (output_addr_const): Change fprint_w back to fprintf.
3337
3338 2011-11-17 Andrew Pinski <apinski@cavium.com>
3339
3340 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
3341
3342 2011-11-17 Andrew MacLeod <amacleod@redhat.com>
3343
3344 * builtins.c (expand_builtin): Remove 4th parameter representing
3345 weak/strong mode when __atomic_compare_exchange becomes a library call.
3346
3347 2011-11-17 Richard Henderson <rth@redhat.com>
3348
3349 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
3350 new pseudo for target after convert_modes.
3351 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
3352
3353 2011-11-17 Richard Henderson <rth@redhat.com>
3354
3355 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
3356 new pseudo for target after convert_modes.
3357 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
3358
3359 2011-11-17 Richard Henderson <rth@redhat.com>
3360
3361 * builtins.c (expand_builtin_mem_thread_fence): Remove.
3362 (expand_builtin_mem_signal_fence): Remove.
3363 (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
3364 (expand_builtin_sync_synchronize): Likewise.
3365 (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
3366 * optabs.c (expand_asm_memory_barrier): Split out from
3367 expand_builtin_mem_signal_fence.
3368 (expand_mem_thread_fence): New, a combination of code from
3369 expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
3370 (expand_mem_signal_fence): Moved and renamed from
3371 expand_builtin_mem_signal_fence.
3372 (expand_atomic_exchange): Use expand_mem_thread_fence.
3373 (expand_atomic_load, expand_atomic_store): Likewise.
3374 * expr.h, optabs.h: Update decls.
3375
3376 2011-11-17 Bin Cheng <bin.cheng@arm.com>
3377
3378 PR rtl-optimization/50663
3379 * cprop.c (implicit_set_indexes): New global variable.
3380 (insert_set_in_table): Add additional parameter and record implicit
3381 set information.
3382 (hash_scan_set): Add additional parameter and pass it to above.
3383 (hash_scan_insn): Pass false to hash_scan_set.
3384 (compute_hash_table_work): Pass true to hash_scan_set.
3385 (compute_cprop_data): Add implicit set to AVIN of block which the
3386 implicit set is recorded for.
3387 (one_cprop_pass): Handle implicit_set_indexes array.
3388
3389 2011-11-17 Michael Matz <matz@suse.de>
3390
3391 PR middle-end/50644
3392 PR middle-end/50741
3393 * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
3394 current function.
3395 (remove_unused_locals): Ditto.
3396
3397 2011-11-16 Richard Henderson <rth@redhat.com>
3398
3399 * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
3400 ALIAS_SET_MEMORY_BARRIER when creating a new memory.
3401 (alpha_split_atomic_exchange_12): Likewise.
3402 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
3403
3404 2011-11-16 Joseph Myers <joseph@codesourcery.com>
3405
3406 * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
3407
3408 2011-11-16 David Edelsohn <dje.gcc@gmail.com>
3409
3410 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
3411 Default to minimum alignment if decl is NULL.
3412
3413 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
3414
3415 * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
3416 sequence for AVX.
3417 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
3418
3419 2011-11-16 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3420
3421 * doc/invoke.texi: Document AMD bdver1 and btver1.
3422
3423 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
3424 Bernd Schmidt <bernds@coudesourcery.com>
3425 Sebastian Huber <sebastian.huber@embedded-brains.de>
3426
3427 PR target/49641
3428 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
3429 the base reg is stored iff compiling for Thumb1.
3430
3431 2011-11-16 Razya Ladelsky <razya@il.ibm.com>
3432
3433 PR tree-optimization/49960
3434 * tree-data-ref.c (initialize_data_dependence_relation): Add
3435 initializations.
3436 Remove call to compute_self_dependence.
3437 (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
3438 (compute_self_dependence): Remove old code. Add call to
3439 compute_affine_dependence.
3440 (compute_all_dependences): Remove call to compute_self_dependence.
3441 Add call to compute_affine_dependence.
3442
3443 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3444
3445 PR middle-end/50325
3446 * expmed.c (store_bit_field_1): Use extract_bit_field on big
3447 endian targets if the source cannot be exactly covered by word
3448 mode chunks.
3449
3450 2011-11-15 Joseph Myers <joseph@codesourcery.com>
3451
3452 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
3453 ELF_STRING_LIMIT.
3454
3455 2011-11-15 Richard Henderson <rth@redhat.com>
3456
3457 * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
3458 (alpha_post_atomic_barrier): New.
3459 (alpha_split_atomic_op): New memmodel argument; honor it.
3460 (alpha_split_compare_and_swap): Take array of operands. Honor
3461 memmodel; always set bool output
3462 (alpha_expand_compare_and_swap_12): Similarly.
3463 (alpha_split_compare_and_swap_12): Similarly.
3464 (alpha_split_atomic_exchange): Similarly. Rename from
3465 alpha_split_lock_test_and_set.
3466 (alpha_expand_atomic_exchange_12): Similarly. Rename from
3467 alpha_expand_lock_test_and_set_12.
3468 (alpha_split_atomic_exchange_12): Similarly. Rename from
3469 alpha_split_lock_test_and_set_12.
3470 * config/alpha/alpha-protos.h: Update.
3471 * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
3472 * config/alpha/constraints.md ("w"): New.
3473 * config/alpha/predicates.md (mem_noofs_operand): New.
3474 * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
3475 sync_compare_and_swap<mode>; add the new parameters.
3476 (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
3477 (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
3478 (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
3479 (atomic_<op><mode>): Update from sync_<op><mode>.
3480
3481 2011-11-16 Tom de Vries <tom@codesourcery.com>
3482
3483 * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
3484
3485 2011-11-16 Alan Modra <amodra@gmail.com>
3486
3487 PR rtl-optimization/51051
3488 PR bootstrap/51086
3489 * function.c (thread_prologue_and_epilogue_insns): Guard
3490 emitting return with single_succ_p test.
3491
3492 2011-11-15 Joern Rennecke <joern.rennecke@embecosm.com>
3493
3494 * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
3495 get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
3496
3497 2011-11-15 Uros Bizjak <ubizjak@gmail.com>
3498
3499 * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
3500 (vec_pack_sfix_trunc_v2df): Ditto.
3501 (vec_pack_sfix_v2df): Ditto.
3502 (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
3503 avx_vec_concatv8si patterns.
3504 (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
3505 avx_vec_concatv8si patterns.
3506
3507 2011-11-15 Torvald Riegel <triegel@redhat.com>
3508
3509 * c-parser.c (c_parser_transaction_expression): Require parentheses
3510 when parsing transaction expressions.
3511
3512 2011-11-15 Tristan Gingold <gingold@adacore.com>
3513
3514 * incpath.c (get_added_cpp_dirs): New function.
3515 * incpath.h (get_added_cpp_dirs): Declare.
3516 * config/vms/vms-c.c (vms_c_register_includes): New function.
3517 (vms_std_modules): New variable.
3518 * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
3519 (vms_c_register_includes): Declare.
3520
3521 2011-11-15 Tristan Gingold <gingold@adacore.com>
3522
3523 * c-family/c-pragma.h (pragma_extern_prefix): Declare.
3524 * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
3525 * config/vms/vms-c.c (saved_extern_prefix): New variable.
3526 (vms_pragma_extern_prefix): New function.
3527 (vms_c_register_pragma): Register vms_pragma_extern_prefix.
3528
3529 2011-11-15 Georg-Johann Lay <avr@gjlay.de>
3530
3531 PR target/49868
3532 * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
3533 (REGISTER_TARGET_PRAGMAS): New define.
3534 * config/avr/avr-protos.h (avr_mem_pgm_p): New.
3535 (avr_load_libgcc_p): New.
3536 (avr_register_target_pragmas): New.
3537 (asm_output_external_libcall): Remove.
3538 (avr_log_t): Add field "progmem". Order alphabetically.
3539 * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
3540 * config/avr/avr-c.c (langhooks.h): New include.
3541 (avr_register_target_pragmas): New function. Register address
3542 space __pgm.
3543 (avr_cpu_cpp_builtins): Add built-in define __PGM.
3544
3545 * config/avr/avr.c: Include "c-family/c-common.h".
3546 (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
3547 (TARGET_LEGITIMIZE_ADDRESS): Remove define.
3548 (TARGET_ADDR_SPACE_SUBSET_P): Define to...
3549 (avr_addr_space_subset_p): ...this new static function.
3550 (TARGET_ADDR_SPACE_CONVERT): Define to...
3551 (avr_addr_space_convert): ...this new static function.
3552 (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
3553 (avr_addr_space_address_mode): ...this new static function.
3554 (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
3555 (avr_addr_space_pointer_mode): ...this new static function.
3556 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
3557 (avr_addr_space_legitimate_address_p): ...this new static function.
3558 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
3559 (avr_addr_space_legitimize_address): ...this new static function.
3560 (avr_mode_code_base_reg_class): Handle address spaces.
3561 (avr_regno_mode_code_ok_for_base_p): Ditto.
3562 (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
3563 (avr_option_override): Initialize them.
3564 (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
3565 variables.
3566 (avr_pgm_segment): New static function.
3567 (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
3568 (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
3569 (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
3570 avr_out_lpm to handle loads from progmem.
3571 (avr_load_libgcc_p): New static function.
3572 (avr_progmem_p): Test if decl is in flash.
3573 (avr_pgm_pointer_const_p): New static function.
3574 (avr_nonconst_pointer_addrspace): New static function.
3575 (avr_pgm_check_var_decl): New static function.
3576 (avr_insert_attributes): Use it. Change error message to report
3577 cause (progmem or address space) when code wants to write to flash.
3578 (avr_section_type_flags): Unset section flag SECTION_BSS for
3579 data in progmem.
3580
3581 * config/avr/predicates.md (nop_general_operand): New predicate.
3582 (nox_general_operand): New predicate.
3583 * config/avr/avr.md (LPM_REGNO): New define_constant.
3584 (load<mode>_libgcc): New expander.
3585 (*load.<mode>.libgcc): New insn.
3586 (mov<mode>): Handle loads from non-generic AS.
3587 (movmemhi): Ditto. Propagate address space information to newly
3588 created MEM.
3589 (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
3590 to nox_general_operand.
3591 (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
3592 nop_general_operand.
3593 (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
3594 (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
3595 (split-lpmx): New split.
3596 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
3597 *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
3598
3599 2011-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3600
3601 * ipa-cp.c (ipa_value_from_jfunc): Make global.
3602 (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
3603 (get_indirect_edge_target): Rename, make global.
3604 (devirtualization_time_bonus, estimate_local_effects,)
3605 (ipcp_discover_new_direct_edges): Update.
3606 * ipa-inline-analysis.c (evaluate_conditions_for_edge):
3607 Generalize to also handle types. Rename to ...
3608 (evaluate_properties_for_edge): Use instead of
3609 evaluate_conditions_for_edge.
3610 (estimate_edge_devirt_benefit): New function.
3611 (estimate_calls_size_and_time): Use it.
3612 (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
3613 (inline_merge_summary): Update.
3614 (do_estimate_edge_time, do_estimate_edge_growth): Update. Calculate
3615 parameter information at the call site and pass it on to subroutines.
3616 * tree-inline.c (estimate_num_insns): Distinguish between direct and
3617 indirect calls.
3618 (init_inline_once): Set size and time costs or indirect calls.
3619 * tree-inline.h (eni_weights): Add indirect_call_cost.
3620
3621 2011-11-15 Tom de Vries <tom@codesourcery.com>
3622
3623 PR tree-optimization/51005
3624 * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
3625 mark_basic_block_deleted.
3626 (update_worklist): Inline purge_bbs.
3627 (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
3628 (delete_block_update_dominator_info): Remove.
3629 (replace_block_by): Remove update_vops parameter. Partially evaluate
3630 for update_vops == false.
3631 (apply_clusters): Remove update_vops parameter. Remove update_vops
3632 argument in replace_block_by call.
3633 (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
3634 (tail_merge_optimize): Remove update_vops argument to apply_clusters.
3635 Remove call to purge_bbs. Add calls to calculate_dominance_info and
3636 free_dominance_info. Add MAY_HAVE_DEBUG_STMTS before calling
3637 update_debug_stmts. Mark vop var for renaming, if necessary.
3638
3639 2011-11-15 Bernd Schmidt <bernds@codesourcery.com>
3640
3641 PR rtl-optimization/51051
3642 * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
3643 move would cause fallthrough into the exit block.
3644
3645 2011-11-14 Richard Henderson <rth@redhat.com>
3646
3647 * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
3648 handled.
3649 (emit_store_conditional): Likewise.
3650 (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
3651 (rs6000_adjust_atomic_subword): New.
3652 (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
3653 (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
3654 for pre-reload expansion.
3655 (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
3656 rs6000_expand_compare_and_swapqhi): Merge into ...
3657 (rs6000_expand_atomic_compare_and_swap): ... here. New function.
3658 rs6000_split_lock_test_and_set; expand immediately. Handle
3659 QImode and HImode.
3660 * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
3661 from UNSPECV_LWSYNC.
3662 * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
3663 (mem_thread_fence): New.
3664 (hwsync): Rename from memory_barrier.
3665 (*hwsync): Rename from *sync_internal.
3666 (lwsync, *lwsync): Mirror hwsync implementation.
3667 (isync): Don't reference memory.
3668 (loadsync): New.
3669 (atomic_load<INT>, atomic_store<INT>): New.
3670 (ATOMIC): New mode iterator.
3671 (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
3672 (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
3673 (sync_compare_and_swap<GPR>): Remove.
3674 (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
3675 (sync_compare_and_swapqhi_internal): Remove.
3676 (sync_lock_test_and_set<GPR>): Remove.
3677 (sync_<FETCHOP><INT1>): Remove.
3678 (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
3679 (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
3680 (sync_old_<FETCHOP><GPR>): Remove.
3681 (*sync_old_<FETCHOP>si_internal): Remove.
3682 (*sync_old_<FETCHOP>di_internal): Remove.
3683 (sync_old_nand<INT1>): Remove.
3684 (*sync_old_nand<GPR>_internal): Remove.
3685 (sync_new_<FETCHOP><GPR>): Remove.
3686 (*sync_new_<FETCHOP>si_internal): Remove.
3687 (*sync_new_<FETCHOP>di_internal): Remove.
3688 (sync_new_nand<INT1>): Remove.
3689 (*sync_new_nand<GPR>_internal): Remove.
3690 (*atomic_andsi, *atomic_anddi): Remove.
3691 (*sync_addshort_internal, *sync_subshort_internal): Remove.
3692 (*sync_andsi_internal, *sync_boolsi_internal): Remove.
3693 (*sync_boolcshort_internal): Remove.
3694 (sync_lock_release<INT1>): Remove.
3695 (atomic_compare_and_swap<INT1>): New.
3696 (atomic_exchange<INT1>): New.
3697 (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
3698 (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
3699 (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
3700
3701 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
3702
3703 * config/i386/sse.md (round<mode>2): Use register_operand for
3704 operand 1 predicate.
3705 (round<mode>2_sfix): Ditto.
3706 (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
3707
3708 2011-11-14 Nathan Sidwell <nathan@acm.org>
3709
3710 * gcov.c (canonicalize_name): Protect use of S_ISLNK.
3711
3712 2011-11-14 Jan Hubicka <jh@suse.cz>
3713
3714 PR target/51126
3715 * config/i386/i386.c (core cost model): Correct pasto.
3716
3717 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
3718
3719 * config/i386/sse.md (round<mode>2_sfix): New expander.
3720 (round<mode>2_vec_pack_sfix): Ditto.
3721 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
3722 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
3723 * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
3724 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
3725 V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
3726 * config/i386/i386.c (ix86_builtins): Add
3727 IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
3728 IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
3729 (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
3730 __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
3731 __builtin_ia32_{floorps,ceilps}_sfix{,256}and
3732 __builtin_ia32_roundps_az_sfix{,256} descriptions.
3733 (ix86_expand_sse_round_vec_pack_sfix): New.
3734 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
3735 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
3736 V8SI_FTYPE_V4DF_V4DF_ROUND types. Check last argument of
3737 CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
3738 CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
3739 (ix86_builtin_vectorized_function): Handle
3740 BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
3741 BUILT_IN_{I,L,LL}ROUND{,F}
3742
3743 2011-11-14 Jan Hubicka <jh@suse.cz>
3744
3745 PR middle-end/50598
3746 * cgraph.h (varpool_externally_visible_p): Declare.
3747 (varpool_add_new_variable): Declare.
3748 * tree-emultls.c (get_emutls_init_templ_addr,
3749 new_emutls_decl): Use varpool_add_new_variable.
3750 * ipa.c (varpool_externally_visible_p): Export.
3751 * varpool.c (varpool_add_new_variable): New function.
3752
3753 2011-11-14 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
3754 Jan Hubicka <jh@suse.cz>
3755
3756 * config/i386/i386.h (processor_costs): Add second dimension to
3757 stringop_algs array.
3758 * config/i386/i386.c (cost models): Initialize second dimension of
3759 stringop_algs arrays.
3760 (core_cost): New costs based on generic64 costs with updated stringop
3761 values.
3762 (promote_duplicated_reg): Add support for vector modes, add
3763 declaration.
3764 (promote_duplicated_reg_to_size): Likewise.
3765 (processor_target): Set core costs for core variants.
3766 (expand_set_or_movmem_via_loop_with_iter): New function.
3767 (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
3768 different loops, produced by this function.
3769 (emit_strset): New function.
3770 (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
3771 use SSE-moves where possible.
3772 (expand_setmem_epilogue): Likewise.
3773 (expand_movmem_prologue): Likewise for prologue.
3774 (expand_setmem_prologue): Likewise.
3775 (expand_constant_movmem_prologue): Likewise.
3776 (expand_constant_setmem_prologue): Likewise.
3777 (decide_alg): Add new argument align_unknown. Fix algorithm of
3778 strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
3779 (decide_alignment): Update desired alignment according to chosen move
3780 mode.
3781 (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
3782 (ix86_expand_setmem): Likewise.
3783 (ix86_slow_unaligned_access): Implementation of new hook
3784 slow_unaligned_access.
3785 * config/i386/i386.md (strset): Enable half-SSE moves.
3786 * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
3787 (vec_dupv2di): Add expand for vec_dupv2di.
3788
3789 2011-11-14 Dimitrios Apostolou <jimis@gmx.net>
3790
3791 PR bootstrap/51094
3792 PR middle-end/51116
3793 * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
3794 * varasm.c (default_elf_internal_label): Remove.
3795
3796 2011-11-14 Kai Tietz <ktietz@redhat.com>
3797
3798 * gcov.c (generate_results): Add missing semicolon and correct indent.
3799
3800 2011-11-14 Ira Rosen <ira.rosen@linaro.org>
3801
3802 PR bootstrap/51112
3803 * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
3804
3805 2011-11-14 Mingjie Xing <mingjie.xing@gmail.com>
3806
3807 * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
3808 to @pxref{Function Attributes}.
3809
3810 2011-11-13 Oleg Endo <oleg.endo@t-online.de>
3811
3812 PR target/50694
3813 * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
3814 New macros.
3815 (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
3816 taking the default configuration into account.
3817
3818 2011-11-13 Jonathan Wakely <jwakely.gcc@gmail.com>
3819
3820 * doc/install.texi (Specific): Fix anchor for
3821 x86_64-*-solaris2.1[0-9]*.
3822
3823 2011-11-13 Nathan Sidwell <nathan@acm.org>
3824
3825 * gcov.c (source_prefix, source_length): New globals.
3826 (flag_relative_only): Likewise.
3827 (print_usage, options, process_args): Update.
3828 (generate_results): Use coverage.name, check
3829 flag_relative_only. Adjust messages.
3830 (find_source): Check source_prefix.
3831 (output_lines): Use coverage.name, adjust messages.
3832 * doc/gcov.texi (Invoking Gcov): Document new options.
3833
3834 2011-11-12 Jason Merrill <jason@redhat.com>
3835
3836 PR c++/51060
3837 * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
3838 (gimplify_modify_expr): Don't try to simplify it.
3839
3840 2011-11-12 Dimitrios Apostolou <jimis@gmx.net>
3841
3842 PR bootstrap/51094
3843 * config/elfos.h (STRING_ASM_OP): Define.
3844 * varasm.c (default_elf_asm_output_limited_string): Use it.
3845
3846 PR bootstrap/51094
3847 * gcc/configure.ac: Check for stpcpy declaration.
3848 * system.h: Declare it if not.
3849 * config.in, configure: Regenerate.
3850
3851 2011-11-12 Richard Henderson <rth@redhat.com>
3852
3853 * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
3854 nonimmediate_operand for the destination.
3855 (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
3856
3857 * builtins.c (expand_builtin_compare_and_swap): If target is const0,
3858 don't pass the target to expand_atomic_compare_and_swap.
3859 (expand_builtin_atomic_compare_exchange): Likewise.
3860
3861 * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
3862 * config/sh/sh.c (sh_init_sync_libfuncs): New.
3863
3864 * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
3865 * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
3866 * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
3867
3868 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
3869
3870 PR target/45233
3871 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3872 Only expand a symbol ref. into an access when the entity is defined
3873 in the TU.
3874
3875 2011-11-12 Jan Hubicka <jh@suse.cz>
3876
3877 PR bootstrap/50822
3878 * cgraphunit.c (output_weakrefs): Output really only weakrefs.
3879
3880 2011-11-12 Nathan Sidwell <nathan@acm.org>
3881
3882 * gcov.c (struct name_map): New.
3883 (names, n_names, a_names): New global vars.
3884 (print_usage): Adjust usage.
3885 (generate_results): Canonicalize main file name.
3886 (release_structures): Adjust.
3887 (name_search, name_sort): New callbacks.
3888 (find_source): Look for and create a canonical name.
3889 (canonicalize_name): New.
3890 (make_gcov_file_name): Reimplement and fix mangling.
3891 (mangle_name): New.
3892 * doc/gcov.texi: Update documentation about path preservation.
3893
3894 2011-11-11 David S. Miller <davem@davemloft.net>
3895
3896 * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
3897 * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
3898
3899 2011-11-11 Jakub Jelinek <jakub@redhat.com>
3900
3901 * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
3902 New prototype.
3903 * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
3904 function.
3905 (ix86_expand_epilogue): Use it.
3906 * config/i386/i386.md (return, simple_return): Call it in the
3907 expanders.
3908
3909 PR tree-optimization/51091
3910 * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
3911 rhs also in the va_list_simple_ptr case.
3912
3913 PR tree-optimization/51058
3914 * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
3915 (vect_schedule_slp): Call it.
3916 * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
3917 don't replace scalar calls with setting of their lhs to zero here.
3918
3919 PR tree-optimization/51074
3920 * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
3921 (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
3922 VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
3923 VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
3924 (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
3925 CONSTRUCTOR operands.
3926 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
3927 expressions.
3928 * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
3929 to 0 .. 2 * elements - 1.
3930
3931 2011-11-11 Richard Henderson <rth@redhat.com>
3932
3933 * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
3934 (dump_gimple_omp_atomic_store): Likewise.
3935 * optabs.c (can_atomic_exchange_p): New.
3936 * optabs.h (can_atomic_exchange_p): Declare.
3937 * omp-low.c (expand_omp_atomic_load): Implement.
3938 (expand_omp_atomic_store): Likewise.
3939 (expand_omp_atomic): Update for new arguments to load/store.
3940
3941 2011-11-11 Eric Botcazou <ebotcazou@adacore.com>
3942
3943 * cprop.c: Adjust outdated comments throughout.
3944 (hash_scan_set): Rename PAT parameter into SET.
3945 (cprop_pavloc): Rename into...
3946 (cprop_avloc): ...this.
3947 (cprop_absaltered): Rename into...
3948 (cprop_kill): ...this.
3949 (alloc_cprop_mem): Adjust for above renaming.
3950 (free_cprop_mem): Likewise.
3951 (compute_cprop_data): Likewise.
3952 (compute_local_properties): Rename TRANSP parameter into KILL and
3953 adjust throughout. Rework comments.
3954 (try_replace_reg): Fix long line.
3955 (cprop_jump): Likewise.
3956 (constprop_register): Fix prototype and take INSN last.
3957 (cprop_insn): Adjust calls to above function. Fix long lines.
3958 (bypass_block): Likewise.
3959 (one_cprop_pass): Likewise.
3960
3961 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
3962
3963 * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
3964 (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
3965
3966 2011-11-11 Jason Merrill <jason@redhat.com>
3967
3968 * varasm.c (default_elf_asm_output_limited_string): #ifdef
3969 ELF_ASCII_ESCAPES.
3970 (default_elf_asm_output_ascii): Likewise.
3971
3972 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
3973
3974 PR target/50762
3975 * config/i386/constraints.md (j): New address constraint.
3976 * config/i386/predicates.md (lea_address_operand): Redefine as
3977 special predicate.
3978 * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
3979 (*lea_4_zext): Ditto.
3980
3981 2011-11-11 David S. Miller <davem@davemloft.net>
3982
3983 Revert
3984 2011-11-05 David S. Miller <davem@davemloft.net>
3985
3986 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
3987 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
3988 (*zero_extend_v8qi_<P:mode>_insn,
3989 *zero_extend_v4hi_<P:mode>_insn): New insns.
3990 * config/sparc/sparc.c (vector_init_move_words,
3991 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
3992 sparc_expand_vector_init_vis1): New functions.
3993 (vector_init_bshuffle): Rewrite to handle more cases and make use
3994 of locs[] array prepared by vector_init_prepare_elts.
3995 (vector_init_fpmerge, vector_init_faligndata): Delete.
3996 (sparc_expand_vector_init): Rewrite using new infrastructure.
3997
3998 2011-11-11 Jakub Jelinek <jakub@redhat.com>
3999
4000 * opts-common.c (generate_canonical_option): Free opt_text
4001 it it has been allocated here and not stored anywhere.
4002
4003 * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
4004 vector.
4005 (vect_create_new_slp_node): Don't allocate node before checking stmt
4006 type.
4007 (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
4008 free def_stmts vectors and additionally free oprnd_info.
4009 (vect_build_slp_tree): Adjust callers. Call it even if
4010 stop_recursion. If vect_create_new_slp_node or
4011 vect_build_slp_tree fails, properly handle freeing memory.
4012 If it succeeded, clear def_stmts in oprnd_info.
4013
4014 2011-11-11 Dimitrios Apostolou <jimis@gmx.net>
4015
4016 * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
4017 multiple lines for readability.
4018 * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
4019 (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
4020 * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
4021 dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
4022 dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
4023 * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
4024 fprintf.
4025 * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
4026 serving as fast replacements for fprintf integer to string conversions.
4027 (sprint_ul_rev): Internal helper for the above.
4028 (output_addr_const) <CONST_INT>: Don't use fprintf.
4029 * varasm.c: Fix some whitespace inconsistencies.
4030 (default_elf_asm_output_limited_string): New.
4031 (default_elf_asm_output_ascii): Likewise.
4032 (default_elf_internal_label): Likewise.
4033 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
4034 stpcpy instead of sprintf.
4035 (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
4036 (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
4037 STRING_LIMIT macros.
4038 (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
4039 provide the same functionality.
4040 * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
4041
4042 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
4043
4044 * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
4045
4046 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
4047
4048 PR middle-end/51038
4049 * builtins.c (expand_builtin_atomic_clear): New. Expand atomic_clear.
4050 (expand_builtin_atomic_test_and_set): New. Expand atomic test_and_set.
4051 (expand_builtin): Add cases for test_and_set and clear.
4052 * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
4053 (BUILT_IN_ATOMIC_CLEAR): New.
4054
4055 2011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4056
4057 PR debug/50983
4058 * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
4059 value in the current line table.
4060
4061 2011-11-10 Nathan Sidwell <nathan@acm.org>
4062
4063 * gcov.c (struct function_info): Make src an index, not a pointer.
4064 (struct source_info): Remove index and next source fields.
4065 (fn_end): New static var.
4066 (sources_index): Remove.
4067 (sources): Now a pointer to an array, not a list.
4068 (n_sources, a_sources): New.
4069 (process_file): Adjust for changes to read_graph_file. Insert
4070 functions into source lists and check line numbers here.
4071 (generate_results): Only allocate lines for sources with
4072 contents. Adjust for source array.
4073 (release_structures): Likewise.
4074 (find_source): Return source index, adjust for source array.
4075 (read_graph_file): Return function list. Don't insert into source
4076 lists here.
4077 (read_count_file): Take list of functions.
4078 (solve_flow_graph): Reverse the arc lists here.
4079 (add_line_counts): Adjust for source array.
4080
4081 2011-11-10 Jakub Jelinek <jakub@redhat.com>
4082
4083 PR middle-end/51077
4084 * tree-object-size.c (addr_object_size): Check TREE_CODE of
4085 MEM_REF's operand rather than code of the MEM_REF itself.
4086
4087 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
4088
4089 PR rtl-optimization/51040
4090 * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
4091 be AND followed by NOT.
4092 * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
4093 should be AND followed by NOT.
4094
4095 2011-11-10 Jakub Jelinek <jakub@redhat.com>
4096
4097 * vec.h (VEC_BASE): If base is at offset 0 in the structure,
4098 use &(P)->base even if P is NULL.
4099
4100 PR rtl-optimization/51023
4101 * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
4102 val_signbit_known_clear_p for signed comparison narrowing
4103 optimization. Don't check for non-VOIDmode, use
4104 HWI_COMPUTABLE_MODE_P macro.
4105 <case ZERO_EXTEND>: Don't check for non-VOIDmode.
4106 Optimize even when const_op is equal to GET_MODE_MASK (mode),
4107 don't optimize if const_op is negative.
4108
4109 2011-11-10 Richard Guenther <rguenther@suse.de>
4110
4111 PR tree-optimization/51042
4112 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
4113 self-referential expressions. Refactor code to avoid duplication.
4114
4115 2011-11-10 Richard Guenther <rguenther@suse.de>
4116
4117 PR tree-optimization/51070
4118 * tree-loop-distribution.c (generate_builtin): Do not replace
4119 the loop with a builtin if the partition contains statements which
4120 results are used outside of the loop.
4121 (pass_loop_distribution): Verify and collect.
4122
4123 2011-11-10 Richard Guenther <rguenther@suse.de>
4124
4125 PR tree-optimization/51030
4126 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
4127 (value_replacement): Use it to handle trivial non-empty
4128 intermediate blocks.
4129
4130 2011-11-10 Richard Guenther <rguenther@suse.de>
4131
4132 PR middle-end/51071
4133 * gimple.c (gimple_has_side_effects): Remove checking code
4134 that doesn't belong here.
4135
4136 2011-11-10 Ira Rosen <ira.rosen@linaro.org>
4137
4138 PR tree-optimization/51058
4139 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
4140
4141 2011-11-10 Jakub Jelinek <jakub@redhat.com>
4142
4143 PR tree-optimization/51000
4144 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
4145 a pattern stmt for a bool store, adjust DR_STMT too.
4146 Don't handle bool conversions to single bit precision lhs.
4147 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
4148 stmt, remove its related stmt and free its stmt_vinfo.
4149 (free_stmt_vec_info): Free also pattern stmt's vinfo and
4150 pattern def stmt's vinfo.
4151 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
4152 free pattern stmt's vinfo here.
4153 (vect_transform_loop): When calling vect_remove_stores,
4154 do gsi_next first and don't call gsi_remove. If not strided
4155 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
4156
4157 2011-11-09 Jakub Jelinek <jakub@redhat.com>
4158
4159 PR target/50911
4160 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
4161 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
4162 to V4SFmode.
4163
4164 * function.h (requires_stack_frame_p): New prototype.
4165 * function.c (requires_stack_frame_p): No longer static.
4166 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
4167 stack_realign_fp was just a conservative guess for a function
4168 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
4169 and stack realignment.
4170
4171 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
4172
4173 PR preprocessor/51061
4174 * incpath.c (merge_include_chains): Make sure to not pass null
4175 pointers to free_path.
4176
4177 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
4178
4179 * doc/invoke.texi ([Option Summary, C++ Language Options]):
4180 Add -Wzero-as-null-pointer-constant.
4181
4182 2011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4183
4184 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
4185 * config/arm/arm-tables.opt: Regenerate.
4186 * config/arm/arm-tune.md: Likewise.
4187 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
4188 * doc/invoke.texi: Document -mcpu=cortex-a7.
4189
4190 2011-11-09 Richard Guenther <rguenther@suse.de>
4191
4192 Revert
4193 2011-11-09 Richard Guenther <rguenther@suse.de>
4194
4195 * tree-cfg.c (verify_gimple_call): Verify that
4196 gimple_call_cannot_inline_p is returning a conservative
4197 correct result according to gimple_check_call_matching_types.
4198
4199 2011-11-09 Richard Guenther <rguenther@suse.de>
4200
4201 PR tree-optimization/51039
4202 * tree-cfg.c (verify_gimple_call): Verify that
4203 gimple_call_cannot_inline_p is returning a conservative
4204 correct result according to gimple_check_call_matching_types.
4205 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
4206 code dealing with un-inlinablility.
4207 * gimple-streamer-in.c (input_gimple_stmt): Update the
4208 non-inlinable flag.
4209
4210 2011-11-09 Richard Guenther <rguenther@suse.de>
4211
4212 PR tree-optimization/51039
4213 * tree-inline.c (setup_one_parameter): Always perform a
4214 valid gimple type change.
4215 (declare_return_variable): Likewise.
4216
4217 2011-11-09 Jakub Jelinek <jakub@redhat.com>
4218
4219 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
4220 vconduv4sfv4si): New patterns.
4221 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
4222 different dest_mode from comparison mode.
4223
4224 2011-11-09 Richard Guenther <rguenther@suse.de>
4225
4226 * gimple-fold.c (canonicalize_constructor_val): Mark
4227 address-taken variables addressable.
4228
4229 2011-11-09 Ira Rosen <ira.rosen@linaro.org>
4230
4231 PR tree-optimization/51015
4232 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
4233 vectype to be set for pattern def stmts.
4234
4235 2011-11-09 Alan Modra <amodra@gmail.com>
4236
4237 * function.c (bb_active_p): Delete.
4238 (dup_block_and_redirect, active_insn_between): New functions.
4239 (convert_jumps_to_returns, emit_return_for_exit): New functions,
4240 split out from..
4241 (thread_prologue_and_epilogue_insns): ..here. Delete
4242 shadowing variables. Don't do prologue register clobber tests
4243 when shrink wrapping already failed. Delete all last_bb_active
4244 code. Instead compute tail block candidates for duplicating
4245 exit path. Remove these from antic set. Duplicate tails when
4246 reached from both blocks needing a prologue/epilogue and
4247 blocks not needing such.
4248 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
4249 HAVE_simple_return.
4250 * bb-reorder.c (get_uncond_jump_length): Make global.
4251 * bb-reorder.h (get_uncond_jump_length): Declare.
4252 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
4253 (rtl_split_edge): Likewise. Warning fix.
4254 (rtl_duplicate_bb): New function.
4255 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
4256 * Makefile.in (function.o): Update dependencies.
4257
4258 2011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4259 Georg-Johann Lay <avr@gjlay.de>
4260
4261 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
4262 argument.
4263 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4264 * doc/tm.texi: Regenerate.
4265
4266 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
4267 space argument.
4268 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4269 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
4270 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4271 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
4272 argument.
4273 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
4274 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
4275 (avr_regno_mode_code_ok_for_base_p): Ditto.
4276 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
4277 (avr_regno_mode_code_ok_for_base_p): Ditto.
4278 (avr_reg_ok_for_addr_p): Pass AS down to
4279 avr_regno_mode_code_ok_for_base_p.
4280
4281 * addresses.h (base_reg_class): Add address space argument.
4282 Pass to MODE_CODE_BASE_REG_CLASS.
4283 (ok_for_base_p_1): Add address space argument. Pass to
4284 REGNO_MODE_CODE_OK_FOR_BASE_P.
4285 (regno_ok_for_base_p): Add address space argument. Pass to
4286 ok_for_base_p_1.
4287
4288 * regrename.c (scan_rtx_address): Add address space argument.
4289 Pass address space to regno_ok_for_base_p and base_reg_class.
4290 Update recursive calls.
4291 (scan_rtx): Pass address space to scan_rtx_address.
4292 (build_def_use): Likewise.
4293 * regcprop.c (replace_oldest_value_addr): Add address space
4294 argument. Pass to regno_ok_for_base_p and base_reg_class.
4295 Update recursive calls.
4296 (replace_oldest_value_mem): Pass address space to
4297 replace_oldest_value_addr.
4298 (copyprop_hardreg_forward_1): Likewise.
4299
4300 * reload.c (find_reloads_address_1): Add address space argument.
4301 Pass address space to base_reg_class and regno_ok_for_base_p.
4302 Update recursive calls.
4303 (find_reloads_address): Pass address space to base_reg_class,
4304 regno_ok_for_base_p, and find_reloads_address_1.
4305 (find_reloads): Pass address space to base_reg_class.
4306 (find_reloads_subreg_address): Likewise.
4307
4308 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
4309 (ok_for_base_p_nonstrict): Add address space argument. Pass to
4310 ok_for_base_p_1.
4311 (record_address_regs): Add address space argument. Pass to
4312 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
4313 (record_operand_costs): Pass address space to record_address_regs.
4314 (scan_one_insn): Likewise.
4315
4316 * caller-save.c (init_caller_save): Update call to base_reg_class.
4317 * ira-conflicts.c (ira_build_conflicts): Likewise.
4318 * reload1.c (maybe_fix_stack_asms): Likewise.
4319
4320 2011-11-08 Michael Matz <matz@suse.de>
4321
4322 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
4323
4324 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
4325
4326 * tree.h (TREE_CLOBBER_P): New macro.
4327 * gimple.h (gimple_clobber_p): New inline function.
4328 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
4329 that go out of scope and live in memory.
4330 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
4331 for constructors.
4332 * cfgexpand.c (decl_to_stack_part): New static variable.
4333 (add_stack_var): Allocate it, and remember mapping.
4334 (fini_vars_expansion): Deallocate it.
4335 (stack_var_conflict_p): Add early outs.
4336 (visit_op, visit_conflict, add_scope_conflicts_1,
4337 add_scope_conflicts): New static functions.
4338 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
4339 (expand_used_vars): Add scope conflicts.
4340 (expand_gimple_stmt_1): Expand clobbers to nothing.
4341 (expand_debug_expr): Ditto.
4342
4343 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
4344 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
4345 refer to otherwise unused locals.
4346 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
4347 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
4348 SSA names aren't necessary.
4349 (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
4350 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
4351 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
4352 any known value.
4353 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
4354 don't zero-initialize something.
4355 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
4356 clobber RHS, we don't want PHI nodes with those.
4357
4358 2011-11-08 Jakub Jelinek <jakub@redhat.com>
4359
4360 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
4361 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
4362
4363 2011-11-08 Richard Guenther <rguenther@suse.de>
4364
4365 PR tree-optimization/51012
4366 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
4367 non-inlinable state.
4368 * cgraph.c (cgraph_make_edge_direct): Likewise.
4369
4370 2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
4371
4372 PR rtl-optimization/47698
4373 * ifcvt.c (noce_operand_ok): Move around comment.
4374
4375 2011-11-08 Richard Guenther <rguenther@suse.de>
4376
4377 PR lto/50999
4378 * lto-opts.c (append_to_collect_gcc_options): Split out from...
4379 (lto_write_options): ... here. Prepend frontend specific flags.
4380
4381 2011-11-08 Jakub Jelinek <jakub@redhat.com>
4382
4383 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
4384 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
4385
4386 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
4387 Handle vectorization of SLP calls.
4388 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
4389 (vect_transform_stmt): Adjust vectorizable_call caller, remove
4390 assertion.
4391 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
4392 with op_idx 3.
4393 (vect_build_slp_tree): Allow CALL_EXPR.
4394
4395 2011-11-08 Richard Guenther <rguenther@suse.de>
4396
4397 * gimple-fold.c (canonicalize_constructor_val): Make sure
4398 we have referenced vars setup before adding to them.
4399
4400 2011-11-07 Richard Henderson <rth@redhat.com>
4401 Aldy Hernandez <aldyh@redhat.com>
4402 Andrew MacLeod <amacleod@redhat.com>
4403 Torvald Riegel <triegel@redhat.com>
4404
4405 Merged from transactional-memory.
4406
4407 * gtm-builtins.def: New file.
4408 * trans-mem.c: New file.
4409 * trans-mem.h: New file.
4410
4411 * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
4412
4413 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
4414 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
4415 ix86_builtin_tm_load, ix86_builtin_tm_store,
4416 ix86_init_tm_builtins): New.
4417 (ix86_init_builtins): Initialize TM builtins.
4418 (struct ix86_attribute_table): Add "*tm regparm".
4419 * config/i386/i386-builtin-types.def (PV2SI): Define.
4420 (PCV2SI): Define.
4421 Define V2SI_FTYPE_PCV2SI.
4422 Define V4SF_FTYPE_PCV4SF.
4423 Define V8SF_FTYPE_PCV8SF.
4424 Define VOID_PV2SI_V2SI.
4425
4426 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
4427 tm-max-aggregate-size.
4428 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
4429 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
4430 * doc/tm.texi: Regenerate.
4431
4432 * attribs.c (apply_tm_attr): New.
4433 (init_attributes): Allow '*' prefix for overrides.
4434 (register_attribute): Likewise.
4435 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
4436 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
4437 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
4438 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
4439 ATTR_TMPURE_NOTHROW_LIST): New.
4440 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
4441 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
4442 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
4443 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
4444 * builtins.def: Include gtm-builtins.def. Add comments regarding
4445 transactional memory synchronization.
4446 (DEF_TM_BUILTIN): New.
4447 * c-parser.c (struct c_parser): Add in_transaction.
4448 (c_parser_transaction, c_parser_transaction_expression,
4449 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
4450 (c_parser_attribute_any_word): Split out from c_parser_attributes.
4451 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
4452 (c_parser_unary_expression): Same.
4453 * c-tree.h (c_finish_transaction): Declare.
4454 * c-typeck.c (c_finish_transaction): New.
4455 (build_function_call_vec): Call tm_malloc_replacement.
4456 * calls.c (is_tm_builtin): New.
4457 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
4458 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
4459 * cfgexpand.c (expand_call_stmt): Call
4460 mark_transaction_restart_calls.
4461 (gimple_expand_cfg): Free the tm_restart map.
4462 (mark_transaction_restart_calls): New.
4463 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
4464 * cgraph.c (dump_cgraph_node): Handle tm_clone.
4465 * cgraph.h (struct cgraph_node): Add tm_clone field.
4466 (decl_is_tm_clone): New.
4467 (struct cgraph_local_info): Add tm_may_enter_irr.
4468 (cgraph_copy_node_for_versioning): Declare.
4469 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
4470 copy analyzed from old version.
4471 * combine.c (distribute_notes): Handle REG_TM notes.
4472 * common.opt: Add -fgnu-tm.
4473 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
4474 (__do_global_dtors_aux): Deregister clone table.
4475 (frame_dummy): Register clone table.
4476 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
4477 body.
4478 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
4479 GIMPLE_TRANSACTION.
4480 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
4481 * gimple-pretty-print.c: Include trans-mem.h.
4482 (dump_gimple_fmt): Add %x.
4483 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
4484 (dump_gimple_eh_else, dump_gimple_transaction): New.
4485 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4486 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
4487 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
4488 field.
4489 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
4490 (walk_gimple_stmt): Initialize and honor removed_stmt.
4491 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4492 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4493 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
4494 * gimple.h (struct gimple_statement_eh_else,
4495 gimple_statement_transaction, GTMA_*): New.
4496 (gimple_statement_d): Add gimple_statement_eh_else and
4497 gimple_transaction.
4498 (gimple_build_eh_else, gimple_build_transaction,
4499 gimple_fold_call, diagnose_tm_safe_errors): Declare.
4500 (get_call_expr_in): Remove prototype.
4501 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4502 (gimple_eh_else_n_body, gimple_eh_else_e_body,
4503 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
4504 gimple_transaction_body, gimple_transaction_label,
4505 gimple_transaction_label_ptr, gimple_transaction_subcode,
4506 gimple_transaction_set_body, gimple_transaction_set_label,
4507 gimple_transaction_set_subcode): New.
4508 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
4509 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
4510 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
4511 (gimplify_transaction): New.
4512 (gimplify_expr): Handle TRANSACTION_EXPR.
4513 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
4514 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
4515 TM pure functions.
4516 * Makefile.in: Add trans-mem.o and dependencies.
4517 (BUILTINS_DEF): Add gtm-builtins.def.
4518 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
4519 (GTFILES): Add trans-mem.c.
4520 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
4521 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
4522 get_tm_clone_pair): Declare.
4523 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
4524 * passes.c (init_optimization_passes): Place transactional memory
4525 passes.
4526 * print-tree.c (print_node): Dump tm-clone.
4527 * recog.c (peep2_attempt): Handle REG_TM.
4528 * reg-notes.def (TM): New.
4529 * rtlanal.c (alloc_reg_note): Handle REG_TM.
4530 * target.def (builtin_tm_load, builtin_tm_store): New.
4531 * targhooks.c (default_builtin_tm_load_store): New.
4532 * targhooks.h (default_builtin_tm_load_store): Declare.
4533 * timevar.def (TV_TRANS_MEM): New.
4534 * toplev.c (compile_file): Call finish_tm_clone_pairs.
4535 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
4536 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
4537 writes into the statements to update labels.
4538 (is_ctrl_altering_stmt): Add TM ending statements. Handle
4539 GIMPLE_TRANSACTION.
4540 (verify_gimple_transaction): New.
4541 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
4542 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4543 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
4544 (dump_function_to_file): Display [tm-clone] if applicable.
4545 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
4546 (struct_ptr_hash): Same.
4547 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
4548 (replace_goto_queue_1): Likewise.
4549 (get_eh_else): New.
4550 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
4551 (lower_try_finally_nofallthru): Likewise.
4552 (lower_try_finally_onedest): Likewise.
4553 (lower_try_finally_copy): Likewise.
4554 (lower_try_finally_switch): Likewise.
4555 (lower_try_finally): Likewise.
4556 (decide_copy_try_finally): Likewise.
4557 (lower_eh_constructs_2): Likewise.
4558 (refactor_eh_r): Likewise.
4559 * tree-flow.h (struct gimple_df): Add tm_restart field.
4560 Define tm_restart_node.
4561 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
4562 (estimate_num_insns): Likewise.
4563 (init_inline_once): Init tm_cost.
4564 * tree-inline.h (struct eni_weights_d): Add tm_cost.
4565 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
4566 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
4567 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
4568 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4569 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
4570 Add support for TM vector loads. Add support for TM logging builtins.
4571 (call_may_clobber_ref_p_1): Add support for vector stores.
4572 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
4573 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
4574 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
4575 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
4576 (local_define_builtin): Handle ECF_TM_PURE.
4577 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
4578 * tree.def (TRANSACTION_EXPR): New.
4579 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
4580 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
4581 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
4582 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
4583 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
4584 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
4585 (struct tree_function_decl): Add tm_clone_flag.
4586 (struct_ptr_eq, struct_ptr_hash): New.
4587 (apply_tm_attr): Declare.
4588 (is_tm_safe_or_pure): New.
4589 (build_tm_abort_call, is_tm_safe, is_tm_pure,
4590 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
4591 tm_malloc_replacement): Declare.
4592 * varasm.c (tm_clone_hash): New.
4593 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
4594 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
4595 (struct tm_alias_pair): New. Declare VEC types for object.
4596
4597 2011-11-07 Richard Henderson <rth@redhat.com>
4598
4599 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
4600 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
4601 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
4602 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
4603 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
4604 rename from the direct_optab_index enum.
4605 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
4606 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
4607 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
4608 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
4609 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
4610 from the optab_table, not the direct_optab_table.
4611 (init_sync_libfuncs): Declare.
4612 (can_compare_and_swap_p): Update parameters.
4613 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
4614 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
4615 test for the legacy compare-and-swap libcall.
4616 (expand_atomic_exchange): Use the legacy test-and-set libcall.
4617 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
4618 (struct atomic_op_functions): Update for optab type changes.
4619 (maybe_emit_op): Likewise.
4620 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
4621 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
4622 to can_compare_and_swap_p.
4623 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
4624 (expand_omp_atomic_pipeline): Likewise.
4625 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
4626 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
4627 optabs.
4628 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
4629
4630 2011-11-07 Jakub Jelinek <jakub@redhat.com>
4631
4632 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
4633 * config/i386/i386.c (enum ix86_builtins): Add
4634 IX86_BUILTIN_VEC_PACK_SFIX256.
4635 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
4636 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
4637 (ix86_builtin_vectorized_function): Also vectorize lrint using
4638 256-bit vectors for -mavx.
4639
4640 2011-11-07 Anatoly Sokolov <aesok@post.ru>
4641
4642 * config/cris/constraints.md: New file.
4643 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4644 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
4645 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
4646 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
4647 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
4648 * config/cris/cris.c: Incule "tm-constrs.h".
4649 (cris_print_operand): Use satisfies_constraint_O.
4650 (cris_normal_notice_update_cc, cris_rtx_costs): Use
4651 satisfies_constraint_I.
4652 (cris_address_cost): Use satisfies_constraint_L.
4653 * config/cris/cris.md: Include "constraints.md".
4654 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
4655 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
4656 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
4657 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
4658 *extop<mode>si_swap_side): Use satisfies_constraint_N and
4659 satisfies_constraint_J.
4660 (moversideqi movemsideqi mover2side peephole2): Use
4661 satisfies_constraint_N and satisfies_constraint_J.
4662 (andu peephole2): Use satisfies_constraint_I and
4663 satisfies_constraint_O.
4664
4665 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
4666
4667 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
4668 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
4669
4670 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
4671
4672 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
4673 SWITCHABLE_TARGET can change the values during compilation.
4674 (expand_atomic_fetch_op): Handle parameter change ripples for
4675 get_atomic_op_for_code call.
4676
4677 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
4678
4679 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
4680 __atomic_store.
4681 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
4682 only when originated from that builtin.
4683 (expand_atomic_store): Expand to __sync_lock_release when originated
4684 from that builtin.
4685 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
4686 expand_atomic_exchange call originated from here.
4687 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
4688 call originated from here.
4689 (expand_builtin_atomic_exchange): Add origination flag.
4690 (expand_builtin_atomic_store): Add origination flag.
4691 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
4692 parameters to indicate implementation fall back options.
4693
4694 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
4695
4696 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
4697 now, not only CONST_INT and CONST_DOUBLE.
4698 (output_movqi): Use output_reload_in_const.
4699 (output_reload_inhi): Ditto.
4700 (output_reload_insisf): Move assertion to output_reload_in_const.
4701 (avr_out_reload_inpsi): Ditto.
4702
4703 2011-11-07 Nathan Sidwell <nathan@acm.org>
4704
4705 * gcov.c (object_summary): Replace with ...
4706 (object_runs): ... this.
4707 (process_file): Remove functions with no data.
4708 (generate_results): Ignore files with no lines.
4709 (release_function): New helper, broken out of ...
4710 (release_structures): ... here. Use it.
4711 (read_count_file): Adjust for new data file format.
4712 (output_lines): Use object_runs.
4713 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
4714 (struct gcov_ctr_info): Move definition.
4715 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
4716 trailing array.
4717 (struct gcov_info): Add merge function array, remove mask and
4718 counts. Trailing array is array of pointers to function info.
4719 * coverage.c (struct function_list): Replace counter numbers with
4720 counter arrays. Add fndecl field. GTYify.
4721 (counts_entry): Remove chain workspace.
4722 (functions_head): GTYify.
4723 (prg_n_ctrs): Remove.
4724 (fn_v_ctrs): New.
4725 (tree_ctr_tables): Remove.
4726 (read_counts_file): Cope with blank entries and expect program
4727 summaries before functions. Don't warn on missing entries.
4728 (coverage_counter_alloc): Allocate individual function arrays.
4729 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
4730 for individual function arrays.
4731 (coverage_end_function): GTYify function list object. Finalize
4732 function's counter arrays.
4733 (build_var): New. Create a counter-related variable with
4734 appropriate linkage.
4735 (build_fn_info_type): Adjust for new runtime structure.
4736 (build_fn_info_value): Rename to ...
4737 (build_fn_info): ... here. Build new format data.
4738 (build_ctr_info_type, build_ctr_info_value): Remove.
4739 (build_info_type): New. Build new format data structure.
4740 (build_info): Adjust for new format data.
4741 (create_coverage): Likewise.
4742 * gcov-dump.c (tag_function): Recognize placeholders.
4743
4744 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
4745
4746 * config/avr/constraints.md (Cm2): New constraint for int -2.
4747 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
4748 (*negqihi2): New insn.
4749
4750 2011-11-07 H.J. Lu <hongjiu.lu@intel.com>
4751
4752 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
4753 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
4754
4755 2011-11-07 Jakub Jelinek <jakub@redhat.com>
4756
4757 * config/i386/i386.c (ix86_expand_builtin): If gather mask
4758 argument is known to have all high bits set, pass pc_rtx as
4759 second argument to the expander instead of op0.
4760 * config/i386/sse.md (*avx2_gathersi<mode>_2,
4761 *avx2_gatherdi<mode>_2): New patterns.
4762 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
4763 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
4764 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
4765 _mm256_set1_pd.
4766
4767 PR tree-optimization/50789
4768 * tree-vect-stmts.c (process_use): Add force argument, avoid
4769 exist_non_indexing_operands_for_use_p check if true.
4770 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
4771 STMT_VINFO_GATHER_P.
4772 (gen_perm_mask): New function.
4773 (perm_mask_for_reverse): Use it.
4774 (reverse_vec_element): Rename to...
4775 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
4776 generalize for any permutations.
4777 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
4778 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
4779 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
4780 * doc/tm.texi: Regenerate.
4781 * tree-data-ref.c (initialize_data_dependence_relation,
4782 compute_self_dependence): No longer static.
4783 * tree-data-ref.h (initialize_data_dependence_relation,
4784 compute_self_dependence): New prototypes.
4785 * tree-vect-data-refs.c (vect_check_gather): New function.
4786 (vect_analyze_data_refs): Detect possible gather load data refs.
4787 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
4788 (STMT_VINFO_GATHER_P): Define.
4789 (vect_check_gather): New prototype.
4790 * config/i386/i386-builtin-types.def: Add types for alternate
4791 gather builtins.
4792 * config/i386/sse.md (AVXMODE48P_DI): Remove.
4793 (VEC_GATHER_MODE): Rename mode_attr to...
4794 (VEC_GATHER_IDXSI): ... this.
4795 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
4796 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
4797 instead of <VEC_GATHER_MODE>.
4798 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
4799 <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
4800 on src and mask operands.
4801 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
4802 instead of AVXMODE48P_DI.
4803 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
4804 * config/i386/i386.c (enum ix86_builtins): Add
4805 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
4806 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
4807 (ix86_init_mmx_sse_builtins): Create those builtins.
4808 (ix86_expand_builtin): Handle those builtins and adjust expansions
4809 of other gather builtins.
4810 (ix86_vectorize_builtin_gather): New function.
4811 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
4812
4813 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
4814
4815 * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
4816
4817 2011-11-07 Tristan Gingold <gingold@adacore.com>
4818
4819 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
4820 * config/vms/t-vms: Add vms-c.o rule.
4821 * config/vms/vms-c.c: New file.
4822 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
4823 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
4824
4825 2011-11-07 Tristan Gingold <gingold@adacore.com>
4826
4827 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
4828 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
4829 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
4830 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
4831 (SUBTARGET_OS_CPP_BUILTINS): Define.
4832 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
4833 (MASK_RETURN_ADDR): Define in 64 bit mode.
4834 * config/ia64/vms.h: Likewise.
4835 * config/vms/vms.h: New file.
4836 * config/vms/vms64.h: New file.
4837 * config/alpha/vms64.h: Removed.
4838 * config/ia64/vms64.h: Removed.
4839 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
4840 Adjust for above change.
4841
4842 2011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
4843
4844 PR target/50962
4845 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
4846 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
4847 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
4848 (movdi_internal_rex64): Likewise.
4849
4850 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
4851
4852 PR rtl-optimization/47698
4853 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
4854
4855 2011-11-07 Tristan Gingold <gingold@adacore.com>
4856
4857 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
4858 New function.
4859 (TARGET_OPTION_INIT_STRUCT): Define.
4860 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
4861 (TARGET_MAX_ANCHOR_OFFSET)
4862 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
4863
4864 2011-11-06 Quentin Neill <quentin.neill@amd.com>
4865
4866 Fix r180999, update ChangeLog
4867 * config.gcc: Add f16cintrin.h.
4868 * config/i386/f16cintrin.h: Add missing endif.
4869
4870 2011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
4871
4872 * config.gcc (arm*-*-rtemseabi*): New target.
4873 * config/arm/rtems-eabi.h: New.
4874 * config/arm/t-rtems-eabi: New.
4875
4876 2011-11-06 David S. Miller <davem@davemloft.net>
4877
4878 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
4879 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
4880 *zero_extend_v8qi_<P:mode>_insn,
4881 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
4882 and vec_duplicate instead of using an UNSPEC.
4883
4884 2011-11-07 Alan Modra <amodra@gmail.com>
4885
4886 PR target/30282
4887 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
4888 blockage for ABI_V4.
4889
4890 2011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
4891
4892 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
4893 libgcj version bump.
4894 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4895
4896 2011-11-06 Eric Botcazou <ebotcazou@adacore.com>
4897
4898 * gcse.c: Adjust outdated comments throughout.
4899 (struct mem_conflict_info): New structure.
4900 (mems_conflict_for_gcse_p): Use it to communicate with caller.
4901 (load_killed_in_block_p): Pass it to note_stores.
4902 (hash_expr): Remove superfluous line break.
4903 (hash_scan_set): Rename PAT parameter into SET.
4904 (hash_scan_insn): Reorder cases.
4905 (canon_list_insert): Fix long line.
4906 (edge_list): Delete.
4907 (prune_expressions): Rename E local variable into EXPR.
4908 (compute_pre_data): Return struct edge_list * object.
4909 (pre_expr_reaches_here_p_work): Fix formatting.
4910 (process_insert_insn): Move around comment.
4911 (pre_edge_insert): Fix long line.
4912 (pre_insert_copies): Likewise.
4913 (gcse_emit_move_after): Swap SRC and DEST parameters.
4914 (pre_delete): Adjust call to gcse_emit_move_after.
4915 (pre_gcse): Take struct edge_list * parameter. Fix long line.
4916 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
4917 Use a local list of edges.
4918 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
4919 (pre_ldst_expr_hash): Fix long line.
4920 (free_ldst_mems): Rename into...
4921 (free_ld_motion_mems): ...this.
4922 (first_ls_expr): Delete.
4923 (next_ls_expr): Likewise.
4924 (print_ldst_list): Do not use above two functions.
4925 (simple_mem): Adjust interface.
4926 (compute_ld_motion_mems): Fix formatting.
4927 (update_ld_motion_stores): Reuse local variable.
4928
4929 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4930
4931 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
4932 specifiers.
4933 (build_null_declspecs): Initialize align_log and alignas_p fields.
4934 (declspecs_add_alignas): New.
4935 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
4936 (c_parser_declspecs): Handle _Alignas specifiers.
4937 (c_parser_alignas_specifier): New.
4938 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
4939 Diagnose _Alignof (expression).
4940 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
4941 (declspecs_add_alignas): Declare.
4942 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
4943 * ginclude/stdalign.h: New.
4944 * Makefile.in (USER_H): Add stdalign.h.
4945
4946 2011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
4947
4948 * regset.h (fixed_reg_set_regset): Declare.
4949 * dse.c: Include regset.h .
4950 (struct insn_info): Add member fixed_regs_live.
4951 (note_add_store_info): New typedef.
4952 (note_add_store): New function.
4953 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
4954 Use gen_add3_insn / gen_move_insn.
4955 Check new insn for unwanted clobbers before emitting it.
4956 (check_for_inc_dec): Rename to...
4957 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
4958 parameter. Changed all callers in file.
4959 (check_for_inc_dec, copy_fixed_regs): New functions.
4960 (scan_insn): Set fixed_regs_live field of insn_info.
4961 * rtl.h (check_for_inc_dec): Update prototype.
4962 * postreload.c (reload_cse_simplify): Take new signature of
4963 check_ind_dec into account.
4964 * reginfo.c (fixed_reg_set_regset): New variable.
4965 (init_reg_sets_1): Initialize it.
4966
4967 2011-11-06 Jakub Jelinek <jakub@redhat.com>
4968
4969 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
4970 any user labels.
4971
4972 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4973
4974 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
4975 Remove dependence of declaration and target define on definition of
4976 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
4977
4978 2011-11-06 Andrew Macleod <amacleod@redhat.com>
4979 Richard Henderson <rth@redhat.com>
4980 Aldy Hernandez <aldyh@redhat.com>
4981
4982 Merged from cxx-mem-model.
4983
4984 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
4985 * coretypes.h (enum memmodel): New. enumerated memory model type.
4986 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
4987 * genopinit,c (optabs): Add atomic direct optab handlers.
4988 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
4989 * builtin-types.def (BT_CONST_VOLATILE_PTR,
4990 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
4991 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
4992 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
4993 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
4994 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
4995 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
4996 * expr.h (expand_atomic_*): Add prototypes.
4997 (expand_{bool,val}_compare_and_swap): Remove prototypes.
4998 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
4999 parameters.
5000 * common.opt (Winvalid-memory-model): New warning flag.
5001 (finline-atomics): New. Flag to disable atomic inlining.
5002 * params.h (ALLOW_LOAD_DATA_RACES): New.
5003 (ALLOW_PACKED_LOAD_DATA_RACES): New.
5004 (ALLOW_PACKED_STORE_DATA_RACES): New.
5005 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
5006 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
5007 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
5008 * builtins.c (is_builtin_name): Handle __atomic.
5009 (get_memmodel): New. Extract memory model.
5010 (expand_expr_force_mode): New. Factor out common code for ensuring an
5011 integer argument is in the proper mode.
5012 (expand_builtin_sync_operation): Remove ignore param. Always call
5013 expand_atomic_fetch_op instead of the old expanders.
5014 (expand_builtin_compare_and_swap,
5015 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
5016 call atomic expanders instead of sync expanders.
5017 (expand_builtin_sync_lock_release): Call atomic_store expander.
5018 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
5019 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
5020 (expand_builtin_atomic_exchange): New.
5021 (fold_builtin_atomic_always_lock_free,
5022 expand_builtin_atomic_always_lock_free,
5023 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
5024 New.
5025 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
5026 expand_builtin_atomic_signal_fence): New.
5027 (expand_builtin_mem_signal_fence): New.
5028 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
5029 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
5030 * optabs.h (DOI_atomic_*): Define new atomics.
5031 (atomic_*_optab): Define.
5032 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
5033 prototypes.
5034 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
5035 (expand_sync_lock_test_and_set): Remove.
5036 (expand_atomic_load, expand_atomic_store): New.
5037 (expand_atomic_exchange): New.
5038 (expand_atomic_compare_and_swap): New. Implements
5039 atomic_compare_exchange via compare and swap.
5040 (struct atomic_op_functions): Opcode table struct for fetch ops.
5041 (get_atomic_op_for_code): New. Return an opcode table entry.
5042 (maybe_emit_op): New. Try to emit a fetch op.
5043 (expand_atomic_fetch_op): New.
5044 (expand_val_compare_and_swap_1): Remove.
5045 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
5046 (expand_atomic_compare_and_swap): Rename from
5047 expand_atomic_compare_exchange. Rewrite to return both success and
5048 oldval return values; expand via both atomic and sync optabs.
5049 (can_compare_and_swap_p): New.
5050 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
5051 (maybe_gen_insn): Handle 7 and 8 operands.
5052 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
5053 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
5054 builtins instead of __sync builtins.
5055 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
5056 * doc/extend.texi: Document __atomic built-in functions.
5057 * doc/invoke.texi: Document data race parameters.
5058 * doc/md.texi: Document atomic patterns.
5059 * config/i386/i386.md (UNSPEC_MOVA): New.
5060 (UNSPECV_CMPXCHG): Split into ...
5061 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
5062 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
5063 * config/i386/sync.md (ATOMIC): New mode iterator.
5064 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
5065 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
5066 (mem_thread_fence): Rename from memory_barrier.
5067 Handle the added memory model parameter.
5068 (mfence_nosse): Rename from memory_barrier_nosse.
5069 (sync_compare_and_swap<CASMODE>): Split into ...
5070 (atomic_compare_and_swap<SWI124>): this and ...
5071 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
5072 (atomic_compare_and_swap_single<SWI>): Rename from
5073 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
5074 (atomic_compare_and_swap_double<DCASMODE>): Rename from
5075 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
5076 (*atomic_compare_and_swap_doubledi_pic): Rename from
5077 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
5078 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
5079 model parameter.
5080 (*atomic_fetch_add_cmp<SWI>): Similarly.
5081 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
5082 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
5083 (sync_lock_test_and_set<SWI>): Merge with ...
5084 (atomic_exchange<SWI>): ... this.
5085
5086 2011-11-6 Richard Guenther <rguenther@suse.de>
5087
5088 * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
5089
5090 2011-11-06 Ira Rosen <ira.rosen@linaro.org>
5091
5092 * tree-vectorizer.h (vectorizable_condition): Add argument.
5093 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
5094 in SLP. Update calls to vectorizable_condition.
5095 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
5096 the arguments. Pass it to vect_is_simple_use_1.
5097 (vectorizable_condition): Add slp_node to the arguments. Support
5098 vectorization of basic blocks. Fail for reduction in SLP. Update
5099 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
5100 call vect_get_slp_defs to get vector operands.
5101 (vect_analyze_stmt): Update calls to vectorizable_condition.
5102 (vect_transform_stmt): Likewise.
5103 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
5104 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
5105 def stmts.
5106 (vect_build_slp_tree): Handle COND_EXPR.
5107 (vect_analyze_slp_instance): Push pattern statements to root node.
5108 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
5109
5110 2011-11-05 David S. Miller <davem@davemloft.net>
5111
5112 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
5113 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
5114 (*zero_extend_v8qi_<P:mode>_insn,
5115 *zero_extend_v4hi_<P:mode>_insn): New insns.
5116 * config/sparc/sparc.c (vector_init_move_words,
5117 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
5118 sparc_expand_vector_init_vis1): New functions.
5119 (vector_init_bshuffle): Rewrite to handle more cases and make use
5120 of locs[] array prepared by vector_init_prepare_elts.
5121 (vector_init_fpmerge, vector_init_faligndata): Delete.
5122 (sparc_expand_vector_init): Rewrite using new infrastructure.
5123
5124 2011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
5125
5126 * config.gcc (epiphany-*-*): New architecture.
5127 (epiphany-*-elf): New configuration.
5128 * config/epiphany, common/config/epiphany : New directories.
5129 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
5130 (interrupt attribute): Add Epiphany.
5131 (long_call, short_call attribute): Add Epiphany.
5132 * doc/invoke.texi (Options): Add Epiphany options.
5133 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
5134 * doc/install.texi (Options specification):
5135 Add --with-stack-offset=@var{num} description.
5136 (host/target specific issues): Add epiphany-*-elf.
5137 * doc/contrib.texi (Contributors): Mention Epiphany port.
5138
5139 2011-11-05 Jakub Jelinek <jakub@redhat.com>
5140
5141 PR tree-optimization/50693
5142 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
5143 non-forced user labels.
5144 (gimple_merge_blocks): Turn non-forced user labels into
5145 debug bind stmt with the label as first operand and reset value.
5146 (gimple_duplicate_bb): Don't duplicate label debug stmts.
5147 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
5148 * final.c (final_scan_insn): Likewise.
5149 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
5150 * var-tracking.c (debug_label_num): New variable.
5151 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
5152 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
5153 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
5154 NOTE_INSN_DELETED_DEBUG_LABEL.
5155 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
5156 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
5157 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
5158 * gengtype.c (adjust_field_rtx_def): Likewise.
5159 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
5160 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
5161 if their are at the end of function and nop hasn't been emitted.
5162 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
5163
5164 2011-11-05 Georg-Johann Lay <avr@gjlay.de>
5165
5166 PR rtl-optimization/50448
5167 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
5168 appear in SET_DEST.
5169
5170 2011-11-05 Peter Dufault <dufault@hda.com>,
5171 Sebastian Huber <sebastian.huber@embedded-brains.de>
5172
5173 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5174 Extend rs6000_spe handling.
5175
5176 2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
5177
5178 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
5179 Remove -mcpu=601 multilib.
5180 Remove -Dmpc8260 multilib.
5181 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
5182 on E500 targets.
5183
5184 2011-11-05 Quentin Neill <quentin.neill@amd.com>
5185
5186 Piledriver f16cintrin.h fix.
5187 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
5188 * config/i386/immintrin.h: Include f16cintrin.h.
5189 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
5190
5191
5192 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5193
5194 PR c++/50608
5195 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
5196 to fold_offsetof.
5197 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
5198
5199 2011-11-04 Alan Modra <amodra@gmail.com>
5200
5201 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
5202 * print-rtl.c (print_rtx): Don't segfault on negative regno.
5203
5204 2011-11-04 David S. Miller <davem@davemloft.net>
5205
5206 PR target/49965
5207 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
5208 fact that sparc_emit_float_lib_cmp modifies the comparison in
5209 operands[1].
5210
5211 2011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
5212
5213 * config/lm32/t-rtems: New.
5214 * config.gcc (lm32-*-rtems*): Add t-rtems.
5215
5216 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5217
5218 PR target/50979
5219 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
5220
5221 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
5222
5223 PR rtl-optimization/38644
5224 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
5225 for epilogue having stack adjustment.
5226
5227 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
5228
5229 PR target/50931
5230 * config/avr/avr-modes.def: New file defining PSImode.
5231 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
5232 __UINT24_MAX__): New built-in defines.
5233 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
5234 ashlpsi, ashrpsi, lshrpsi.
5235 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
5236 (MOVMODE): New mode iterator.
5237 (movpsi): New expander.
5238 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
5239 (*reload_inpsi, *movpsi): New insns.
5240 (*reload_inpsi): New RTL peephole.
5241 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
5242 *addpsi3_sign_extend.hi): New insns.
5243 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
5244 *subpsi3_sign_extend.hi): New insns.
5245 (divmodpsi4, udivmodpsi4): New define insn-and-split.
5246 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
5247 (andpsi3, iorpsi3, xorpsi3): New insns.
5248 (*rotlpsi2.1, *rotlpsi2.23): New insns.
5249 (*rotw<mode>): Insn condition only allow even-sized modes.
5250 (*rotb<mode>): Insn condition allows odd-sized modes.
5251 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
5252 (negpsi2, one_cmplpsi2): New insns.
5253 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
5254 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
5255 insn-and-splits.
5256 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
5257 (cbranchpsi4): New expander.
5258 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
5259 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
5260 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
5261 avr_out_reload_inpsi): New prototypes.
5262
5263 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
5264 (avr_scalar_mode_supported_p): ...this new static function.
5265 (avr_asm_len): Always return "".
5266 (avr_out_load_psi, avr_out_store_psi): New static functions.
5267 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
5268 (avr_out_tstpsi): New function.
5269 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
5270 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
5271 (avr_simplify_comparison_p): Ditto.
5272 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
5273 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
5274 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
5275 (avr_rtx_costs_1): Report PSI costs.
5276 (avr_libcall_value): Handle odd-sized parameters.
5277 (avr_init_builtin_int24): New static function to define built-in
5278 24-bit types __int24 and __uint24.
5279 (avr_init_builtins): Use it.
5280
5281 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
5282
5283 PR target/50989
5284 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
5285 support for VFP floating point model.
5286
5287 2011-11-04 Tristan Gingold <gingold@adacore.com>
5288
5289 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
5290
5291 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
5292
5293 Unrevert:
5294 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
5295
5296 PR tree-optimization/50730
5297 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
5298 analysis if encountered unsupported data-ref.
5299
5300 2011-11-04 Jakub Jelinek <jakub@redhat.com>
5301
5302 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
5303 function.
5304 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
5305 New prototype.
5306 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
5307 For floatunsv8siv8sf2 require TARGET_AVX2.
5308
5309 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
5310 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
5311 signalling comparison instead of non-signalling. Store into
5312 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
5313 subtracted and 0 otherwise.
5314 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
5315 Adjust prototype.
5316 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
5317 already for TARGET_SSE2. Xor in vector initialized by
5318 ix86_expand_adjust_ufix_to_sfix_si at the end.
5319 (vec_pack_ufix_trunc_<mode>): Likewise.
5320
5321 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
5322 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
5323 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
5324 vectorizable_type_demotion and vectorizable_type_promotion did.
5325 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
5326 is {,un}signed {char,short}.
5327 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
5328 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
5329 Push vec_dest back to the vec_dsts vector at the end.
5330 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
5331 one step. Removed multi_step_cvt, vec_dsts, slp_node and
5332 prev_stmt_info arguments, add vec_dest argument. Push always
5333 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
5334 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
5335 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
5336 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
5337 vectorizable_type_promotion. Call vectorizable_conversion even
5338 for SLP bb vectorization.
5339 (vect_transform_stmt): Call vectorizable_conversion instead of
5340 vectorizable_type_demotion and vectorizable_type_promotion.
5341 (supportable_widening_operation): Clear *multi_step_cvt first,
5342 simplify c1/c2 computation, free *interm_types vector on failure.
5343 (supportable_narrowing_operation): Clear *multi_step_cvt first,
5344 free *interm_types vector on failure, handle multi-step
5345 FIX_TRUNC_EXPR.
5346
5347 2011-11-04 Tristan Gingold <gingold@adacore.com>
5348
5349 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
5350 argument. Conditionally generate crash debug info. Adjust
5351 for alpha_funcs_tree removal.
5352 (machine_function): Add links field.
5353 (alpha_start_function): Conditionally generate crash debug info.
5354 (alpha_end_function): Adjust call to alpha_write_linkage.
5355 (alpha_funcs): Remove.
5356 (links_kind): Remove.
5357 (alpha_links): Remove num, target and lkind field. Add func field.
5358 (alpha_links_tree): Remove.
5359 (alpha_funcs_tree): Remove.
5360 (alpha_need_linkage): Remove.
5361 (alpha_use_linkage): Change prototype. Adjust.
5362 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
5363 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
5364 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
5365 (alpha_need_linkage): Remove.
5366 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
5367 Adjust calls to alpha_need_linkage.
5368
5369 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5370
5371 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
5372
5373 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5374
5375 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
5376 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
5377 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
5378
5379 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5380
5381 PR target/50978
5382 * config/arm/t-bpabi: New file.
5383 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
5384 arm*-*-linux-*eabi.
5385 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
5386 arm*-*-uclinux*eabi.
5387 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
5388 for arm*-*-eabi*.
5389
5390 2011-11-03 Michael Matz <matz@suse.de>
5391
5392 PR bootstrap/50857
5393 * configure.ac: Check for -fno-exceptions -fno-rtti.
5394 * configure: Regenerate.
5395 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
5396 (ALL_CXXFLAGS): Use it.
5397
5398 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5399
5400 * config/i386/i386.md: Use {} for multi-line preparation statements.
5401
5402 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
5403
5404 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
5405 (movtf_insn_sp32): ...this.
5406 (movtf_insn_sp64_no_fpu): Consolidate into...
5407 (movtf_insn_sp64): ...this.
5408 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
5409 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
5410
5411 2011-11-03 Tristan Gingold <gingold@adacore.com>
5412
5413 * config/vms/vms.c (vms_patch_builtins): Fix typo.
5414
5415 2011-11-03 Richard Guenther <rguenther@suse.de>
5416
5417 PR lto/44965
5418 * lto-opts.c: Re-implement.
5419 * lto-streamer.h (lto_register_user_option): Remove.
5420 (lto_read_file_options): Likewise.
5421 (lto_reissue_options): Likewise.
5422 (lto_clear_user_options): Likewise.
5423 (lto_clear_file_options): Likewise.
5424 * opts-global.c (post_handling_callback): Remove.
5425 (set_default_handlers): Do not set post_handling_callback.
5426 (decode_options): Remove LTO specific code.
5427 * lto-wrapper.c (merge_and_complain): New function.
5428 (run_gcc): Read all input file options and
5429 prepend a merged set before the linker driver options.
5430 * gcc.c (driver_post_handling_callback): Remove.
5431 (set_option_handlers): Do not set post_handling_callback.
5432 * opts-common.c (handle_option): Do not call post_handling_callback.
5433 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
5434
5435 2011-11-03 Richard Guenther <rguenther@suse.de>
5436
5437 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
5438
5439 2011-11-03 Martin Jambor <mjambor@suse.cz>
5440
5441 * ipa-prop.c (type_change_info): New fields offset, object,
5442 known_current_type and multiple_types_encountered.
5443 (extr_type_from_vtbl_ptr_store): New function.
5444 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
5445 the result is different from the previous one.
5446 (detect_type_change): Renamed to detect_type_change_1. New parameter
5447 comp_type. Set up new fields in tci, build known type jump
5448 functions if the new type can be identified.
5449 (detect_type_change): New function.
5450 * tree.h (DECL_CONTEXT): Comment new use.
5451
5452 2011-11-03 Richard Guenther <rguenther@suse.de>
5453
5454 PR lto/48217
5455 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
5456 decode an encoded literal '.
5457
5458 2011-11-03 Tristan Gingold <gingold@adacore.com>
5459
5460 * collect2.c (main): Add support of -f (response file) on AIX.
5461
5462 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
5463
5464 PR tree-optimization/50912
5465 * tree-vectorizer.h (slp_void_p): New.
5466 (struct _slp_tree): Replace left and right with children. Update
5467 documentation.
5468 (struct _slp_oprnd_info): New.
5469 (vect_get_vec_defs): Declare.
5470 (vect_get_slp_defs): Update arguments.
5471 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
5472 vect_get_vec_defs instead of vect_get_slp_defs.
5473 (vectorizable_reduction): Likewise.
5474 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
5475 Update call to vect_get_slp_defs.
5476 (vectorizable_conversion): Update call to vect_get_vec_defs.
5477 (vectorizable_assignment, vectorizable_shift,
5478 vectorizable_operation): Likewise.
5479 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
5480 vect_get_slp_defs.
5481 (vectorizable_type_promotion, vectorizable_store): Likewise.
5482 (vect_analyze_stmt): Fix typo.
5483 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
5484 (vect_print_slp_tree, vect_mark_slp_stmts,
5485 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5486 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5487 vect_schedule_slp_instance): Likewise.
5488 (vect_create_new_slp_node): New.
5489 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
5490 (vect_get_and_check_slp_defs): Pass information about defs using
5491 oprnds_info, allow any number of operands.
5492 (vect_build_slp_tree): Likewise. Update calls to
5493 vect_get_and_check_slp_defs. Fix comments.
5494 (vect_analyze_slp_instance): Move node creation to
5495 vect_create_new_slp_node.
5496 (vect_get_slp_defs): Allow any number of operands.
5497
5498 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
5499 Iain Sandoe <iains@gcc.gnu.org>
5500
5501 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
5502 (get_ppc476_thunk_name): Use it.
5503 (rs6000_code_end): Likewise.
5504 (macho_branch_islands): Fix typo.
5505
5506 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5507 Jason Merrill <jason@redhat.com>
5508
5509 PR c++/50810
5510 * configure.ac: Add -Wno-narrowing to warning options.
5511 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
5512
5513 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
5514
5515 PR target/50945
5516 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
5517 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
5518 (movdf_insn_sp64): Likewise.
5519 (DFmode splitter): Do not test TARGET_FPU.
5520 (movtf_insn_sp32): Reindent constraints.
5521 (movtf_insn_sp32_no_fpu): Likewise.
5522 (movtf_insn_sp64): Likewise.
5523 (movtf_insn_sp64_hq): Likewise.
5524 (movtf_insn_sp64_no_fpu): Likewise.
5525
5526 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5527
5528 PR c++/50956
5529 * builtins.c (fold_builtin_memchr): Fix cast.
5530
5531 2011-11-02 Teresa Johnson <tejohnson@google.com>
5532
5533 * config/i386/predicates.md (promotable_binary_operator): Add minus
5534 to the list of promotable operators.
5535
5536 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5537
5538 * gthr-single.h, gthr.h: Move to ../libgcc.
5539 * gthr-aix.h: Move to ../libgcc/config/rs6000.
5540 * gthr-dce.h: Move to ../libgcc/config/pa.
5541 * gthr-lynx.h: Move to ../libgcc/config.
5542 * gthr-mipssde.h: Move to ../libgcc/config/mips.
5543 * gthr-posix.h: Move to ../libgcc/config.
5544 * gthr-rtems.h: Likewise.
5545 * gthr-tpf.h: Move to ../libgcc/config/s390.
5546 * gthr-vxworks.h: Move to ../libgcc/config.
5547 * gthr-win32.h: Move to ../libgcc/config/i386.
5548 * configure.ac (gthread_flags): Remove
5549 (gthr-default.h): Don't create.
5550 (thread_file): Don't substitute.
5551 * configure: Regenerate.
5552 * Makefile.in (GCC_THREAD_FILE): Remove.
5553 (GTHREAD_FLAGS): Remove.
5554 (libgcc.mvars): Remove GTHREAD_FLAGS.
5555 * config/t-vxworks (EXTRA_HEADERS): Remove.
5556
5557 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5558 Paolo Bonzini <bonzini@gnu.org>
5559
5560 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
5561 * configure: Regenerate.
5562 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
5563 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
5564 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
5565 (clean): Remove libgcc_tm.h
5566 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
5567 * config.gcc (libgcc_tm_file): Remove.
5568 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
5569 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
5570 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
5571 (avr-*-rtems*): Likewise.
5572 (avr-*-*): Likewise.
5573 (frv-*-elf): Likewise.
5574 (frv-*-*linux*): Likewise.
5575 (h8300-*-rtems*): Likewise.
5576 (h8300-*-elf*): Likewise.
5577 (i[34567]86-*-darwin*): Likewise.
5578 (x86_64-*-darwin*): Likewise.
5579 (rx-*-elf*): Likewise.
5580 (tic6x-*-elf): Likewise.
5581 (tic6x-*-uclinux): Likewise.
5582 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
5583
5584 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5585
5586 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
5587 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
5588 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
5589 (INCLUDES_FOR_TARGET): Remove.
5590 (LIBGCC2_CFLAGS): Don't export.
5591 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
5592 Remove.
5593 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
5594 (libgcc.mvars): Likewise.
5595 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
5596 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
5597 TARGET_LIBGCC2_CFLAGS.
5598 Emit GTHREAD_FLAGS.
5599 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
5600 * config/darwin-64.c: Move to ../libgcc/config.
5601 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
5602 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
5603 config/udivmodsi4.c: Move to ../libgcc/config.
5604 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
5605 * config/memcmp.c, config/memcpy.c, config/memmove.c,
5606 config/memset.c: Move to ../libgcc/config.
5607 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
5608 * config/t-freebsd: Remove.
5609 * config/t-freebsd-thread: Move to ../libgcc/config.
5610 * config/t-libgcc-pic: Move to ../libgcc/config.
5611 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
5612 * config/t-linux: Remove.
5613 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
5614 Remove.
5615 * config/t-openbsd-thread: Move to ../libgcc/config.
5616 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
5617 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
5618 * config/t-svr4: Remove.
5619 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
5620 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
5621 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
5622 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
5623 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
5624 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
5625 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
5626 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
5627 config/arm/fp16.c, config/arm/linux-atomic.c,
5628 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
5629 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
5630 (TARGET_LIBGCC2_CFLAGS): Remove.
5631 * config/arm/t-bpabi, config/arm/t-linux: Remove.
5632 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
5633 (LIB2FUNCS_STATIC_EXTRA): Remove.
5634 * config/arm/t-netbsd: Remove.
5635 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
5636 (TARGET_LIBGCC2_CFLAGS): Remove.
5637 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
5638 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
5639 (TARGET_LIBGCC2_CFLAGS): Remove.
5640 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
5641 (LIBGCC, INSTALL_LIBGCC): Remove.
5642 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
5643 * config/bfin/t-bfin-linux: Likewise.
5644 * config/bfin/t-bfin-uclinux: Likewise.
5645 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5646 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5647 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5648 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
5649 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
5650 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
5651 * config/cris/arit.c: Move to ../libgcc/config/cris.
5652 * config/cris/cris_abi_symbol.c: Remove.
5653 * config/cris/cris.h: Remove obsolete comment.
5654 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
5655 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
5656 ($(LIB2FUNCS_EXTRA)): Remove.
5657 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
5658 (LIBGCC): Remove.
5659 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5660 * config/fr30/t-fr30: Remove.
5661 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
5662 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
5663 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
5664 to ../libgcc/config/frv.
5665 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
5666 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
5667 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
5668 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5669 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
5670 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
5671 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
5672 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
5673 (LIBGCC, INSTALL_LIBGCC): Remove.
5674 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
5675 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
5676 * config/i386/t-cygwin: Remove.
5677 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
5678 (LIB2FUNCS_EXCLUDE): Remove.
5679 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
5680 (LIBGCC, INSTALL_LIBGCC): Remove.
5681 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
5682 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
5683 * config/i386/t-mingw-w32: Likewise.
5684 * config/i386/t-mingw-w64: Likewise.
5685 * config/i386/t-openbsd: Likewise.
5686 * config/i386/t-nto: Remove.
5687 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
5688 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
5689 (quadlib.c): Remove.
5690 * config/ia64/t-ia64: Remove comment.
5691 * config/iq2000/lib2extra-funcs.c: Move to
5692 ../libgcc/config/iq2000/lib2funcs.c.
5693 * config/iq2000/t-iq2000: Remove.
5694 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
5695 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
5696 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5697 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
5698 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5699 (INSTALL_LIBGCC): Remove.
5700 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
5701 * config/m68k/t-floatlib: Remove.
5702 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
5703 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
5704 Fix typo.
5705 (LIBGCC, INSTALL_LIBGCC): Remove.
5706 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
5707 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
5708 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
5709 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5710 (INSTALL_LIBGCC): Remove.
5711 * config/mips/t-isa3264: Likewise.
5712 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
5713 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5714 (INSTALL_LIBGCC): Remove.
5715 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
5716 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5717 (INSTALL_LIBGCC): Remove.
5718 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
5719 (LIB2FUNCS_STATIC_EXTRA): Remove.
5720 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
5721 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
5722 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
5723 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
5724 ../libgcc/config/pa.
5725 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
5726 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
5727 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
5728 * config/pa/t-linux, config/pa/t-linux64: Remove.
5729 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
5730 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
5731 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
5732 Remove.
5733 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
5734 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
5735 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
5736 * config/rs6000/crtresfpr.asm: Move to
5737 ../libgcc/config/rs6000/crtresfpr.S.
5738 * config/rs6000/crtresgpr.asm: Move to
5739 ../libgcc/config/rs6000/crtresgpr.S.
5740 * config/rs6000/crtresxfpr.asm: Move to
5741 ../libgcc/config/rs6000/crtresxfpr.S.
5742 * config/rs6000/crtresxgpr.asm: Move to
5743 ../libgcc/config/rs6000/crtresxgpr.S.
5744 * config/rs6000/crtsavfpr.asm: Move to
5745 ../libgcc/config/rs6000/crtsavfpr.S.
5746 * config/rs6000/crtsavgpr.asm: Move to
5747 ../libgcc/config/rs6000/crtsavgpr.S.
5748 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
5749 * config/rs6000/darwin-fpsave.asm: Move to
5750 ../libgcc/config/rs6000/darwin-fpsave.S.
5751 * config/rs6000/darwin-gpsave.asm: Move to
5752 ../libgcc/config/rs6000/darwin-gpsave.S.
5753 * config/rs6000/darwin-tramp.asm: Move to
5754 ../libgcc/config/rs6000/darwin-tramp.S.
5755 * config/rs6000/darwin-vecsave.asm: Move to
5756 ../libgcc/config/rs6000/darwin-vecsave.S.
5757 * config/rs6000/darwin-world.asm: Move to
5758 ../libgcc/config/rs6000/darwin-world.S.
5759 * config/rs6000/e500crtres32gpr.asm: Move to
5760 ../libgcc/config/rs6000/e500crtres32gpr.S.
5761 * config/rs6000/e500crtres64gpr.asm: Move to
5762 ../libgcc/config/rs6000/e500crtres64gpr.S.
5763 * config/rs6000/e500crtres64gprctr.asm: Move to
5764 ../libgcc/config/rs6000/e500crtres64gprctr.S.
5765 * config/rs6000/e500crtrest32gpr.asm: Move to
5766 ../libgcc/config/rs6000/e500crtrest32gpr.S.
5767 * config/rs6000/e500crtrest64gpr.asm: Move to
5768 ../libgcc/config/rs6000/e500crtrest64gpr.S.
5769 * config/rs6000/e500crtresx32gpr.asm: Move to
5770 ../libgcc/config/rs6000/e500crtresx32gpr.S.
5771 * config/rs6000/e500crtresx64gpr.asm: Move to
5772 ../libgcc/config/rs6000/e500crtresx64gpr.S.
5773 * config/rs6000/e500crtsav32gpr.asm: Move to
5774 ../libgcc/config/rs6000/e500crtsav32gpr.S.
5775 * config/rs6000/e500crtsav64gpr.asm: Move to
5776 ../libgcc/config/rs6000/e500crtsav64gpr.S.
5777 * config/rs6000/e500crtsav64gprctr.asm: Move to
5778 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
5779 * config/rs6000/e500crtsavg32gpr.asm: Move to
5780 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
5781 * config/rs6000/e500crtsavg64gpr.asm: Move to
5782 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
5783 * config/rs6000/e500crtsavg64gprctr.asm: Move to
5784 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
5785 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
5786 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
5787 (TARGET_LIBGCC2_CFLAGS): Remove.
5788 * config/rs6000/t-aix52: Likewise.
5789 * config/rs6000/t-darwin: Remove.
5790 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
5791 (LIB2FUNCS_EXTRA): Remove.
5792 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
5793 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
5794 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
5795 (INSTALL_LIBGCC): Remove.
5796 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
5797 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
5798 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
5799 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
5800 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
5801 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
5802 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
5803 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
5804 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
5805 * config/rs6000/t-vxworks: Remove comment.
5806 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
5807 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
5808 * config/sh/linux-atomic.asm: Move to
5809 ../libgcc/config/sh/linux-atomic.S.
5810 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
5811 * config/sh/t-netbsd: Remove.
5812 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
5813 Remove.
5814 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
5815 * config/sparc/t-leon: Likewise.
5816 * config/sparc/t-leon3: Likewise.
5817 * config/sparc/t-linux64: Likewise.
5818 * config/sparc/t-netbsd64: Fix typo.
5819 Remove comment.
5820 * config/spu/divmodti4.c, config/spu/divv2df3.c,
5821 config/spu/float_disf.c, config/spu/float_unsdidf.c,
5822 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
5823 config/spu/mfc_multi_tag_release.c,
5824 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
5825 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
5826 config/spu/multi3.c: Move to ../libgcc/config/spu.
5827 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
5828 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
5829 (INSTALL_LIBGCC): Remove.
5830 * config/stormy16/stormy16-lib2.c: Move to
5831 ../libgcc/config/stormy16/lib2.c.
5832 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
5833 ../libgcc/config/stormy16/ashlsi3.c.
5834 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
5835 ../libgcc/config/stormy16/ashrsi3.c.
5836 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
5837 ../libgcc/config/stormy16/clzhi2.c.
5838 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
5839 ../libgcc/config/stormy16/cmpsi2.c.
5840 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
5841 ../libgcc/config/stormy16/ctzhi2.c.
5842 * config/stormy16/stormy16-lib2-divsi3.c: Move to
5843 ../libgcc/config/stormy16/divsi3.c.
5844 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
5845 ../libgcc/config/stormy16/ffshi2.c.
5846 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
5847 ../libgcc/config/stormy16/lshrsi3.c.
5848 * config/stormy16/stormy16-lib2-modsi3.c: Move to
5849 ../libgcc/config/stormy16/modsi3.c.
5850 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
5851 ../libgcc/config/stormy16/parityhi2.c.
5852 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
5853 ../libgcc/config/stormy16/popcounthi2.c.
5854 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
5855 ../libgcc/config/stormy16/ucmpsi2.c.
5856 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
5857 ../libgcc/config/stormy16/udivmodsi4.c.
5858 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
5859 ../libgcc/config/stormy16/udivsi3.c.
5860 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
5861 ../libgcc/config/stormy16/umodsi3.c.
5862 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
5863 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
5864 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
5865 * config/xtensa/t-elf: Remove.
5866 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
5867 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
5868 from tmake_file.
5869 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
5870 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
5871 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
5872 (*-*-openbsd*): Likewise.
5873 Remove t-openbsd-thread for posix threads.
5874 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
5875 (alpha*-*-freebsd*): Likewise.
5876 (alpha*-*-netbsd*): Likewise.
5877 (alpha*-*-openbsd*): Likewise.
5878 (alpha64-dec-*vms*): Likewise.
5879 (alpha*-dec-*vms*): Likewise.
5880 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
5881 (arm*-*-linux*): Remove t-linux from tmake_file.
5882 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
5883 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
5884 arm*-*-uclinux*eabi.
5885 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
5886 tmake_file for arm*-*-eabi*.
5887 (fr30-*-elf): Remove tmake_file.
5888 (hppa*64*-*-linux*): Remove tmake_file.
5889 (hppa*-*-linux*): Likewise.
5890 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
5891 tmake_file.
5892 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
5893 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
5894 tmake_file.
5895 (i[34567]86-*-elf*): Remove tmake_file.
5896 (x86_64-*-elf*): Likewise.
5897 (i[34567]86-*-nto-qnx*): Likewise.
5898 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
5899 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
5900 from tmake_file if using win32 threads.
5901 (iq2000*-*-elf*): Remove tmake-file.
5902 (microblaze*-linux*): Likewise.
5903 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
5904 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
5905 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
5906 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
5907 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
5908 (xtensa*-*-elf*): Remove tmake_file.
5909
5910 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5911
5912 * Makefile.in (LIB1ASMSRC): Don't export.
5913 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
5914 * config/arm/arm.c: Update lib1funcs.asm filename.
5915 * config/arm/linux-eabi.h: Likewise.
5916 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
5917 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
5918 ../libgcc/config/arm.
5919 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
5920 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5921 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
5922 * config/arm/t-bpabi: Likewise.
5923 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5924 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
5925 * config/arm/t-strongarm-elf: Likewise.
5926 * config/arm/t-symbian: Likewise.
5927 * config/arm/t-vxworks: Likewise.
5928 * config/arm/t-wince-pe: Likewise.
5929 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
5930 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5931 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
5932 * config/bfin/t-bfin: Remove.
5933 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5934 * config/bfin/t-bfin-linux: Likewise.
5935 * config/bfin/t-bfin-uclinux: Likewise.
5936 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
5937 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5938 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
5939 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5940 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
5941 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5942 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
5943 * config/h8300/lib1funcs.asm: Move to
5944 ../libgcc/config/h8300/lib1funcs.S.
5945 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5946 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
5947 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5948 * config/i386/t-interix: Likewise.
5949 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
5950 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
5951 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5952 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
5953 * config/m32c/m32c.c: Update m32c-lib1.S filename.
5954 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
5955 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5956 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
5957 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
5958 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
5959 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
5960 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5961 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
5962 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5963 * config/mips/mips16.S: Move to ../libgcc/config/mips.
5964 * config/mips/t-libgcc-mips16: Remove.
5965 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
5966 * config/pa/milli64.S: Move to ../libgcc/config/pa.
5967 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
5968 * config/pa/t-linux64: Likewise.
5969 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
5970 ../libgcc/config/picochip/lib1funcs.S.
5971 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
5972 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
5973 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
5974 * config/sh/sh.h: Update lib1funcs.asm filename.
5975 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
5976 * config/sh/t-netbsd: Likewise.
5977 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
5978 Remove.
5979 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
5980 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
5981 * config/sparc/lb1spl.asm: Remove.
5982 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5983 * config/sparc/t-leon: Likewise.
5984 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
5985 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
5986 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
5987 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
5988 * config/vax/t-linux: Remove.
5989 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
5990 ../libgcc/config/xtensa.
5991 * config/xtensa/lib1funcs.asm: Move to
5992 ../libgcc/config/xtensa/lib1funcs.S.
5993 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5994 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
5995 (bfin*-*): Likewise.
5996 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
5997 mips/t-libgcc-mips16 from tmake_file.
5998 (mips*-*-linux*): Likewise.
5999 (mips*-sde-elf*): Likewise.
6000 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
6001 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
6002 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
6003 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
6004 (mips-*-elf*, mipsel-*-elf*): Likewise.
6005 (mips64-*-elf*, mips64el-*-elf*): Likewise.
6006 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
6007 (mips*-*-rtems*): Likewise.
6008 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
6009 (vax-*-linux*): Remove vax/t-linux from tmake_file.
6010
6011 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6012
6013 * config.gcc (extra_parts): Remove.
6014 (*-*-freebsd*): Remove extra_parts.
6015 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
6016 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
6017 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
6018 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
6019 *-*-netbsdelf[2-9]*.
6020 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
6021 (alpha*-*-linux*): Remove extra_parts.
6022 (alpha*-*-freebsd*): Likewise.
6023 (bfin*-linux-uclibc*): Likewise.
6024 (fr30-*-elf): Likewise.
6025 (moxie-*-elf): Likewise.
6026 (moxie-*-uclinux*): Likewise.
6027 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
6028 (h8300-*-elf*): Likewise.
6029 (hppa*64*-*-hpux11*): Remove extra_parts.
6030 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
6031 tmake_file.
6032 (x86_64-*-elf*): Likewise.
6033 (i[34567]86-*-freebsd*): Remove tmake_file.
6034 (x86_64-*-freebsd*): Likewise.
6035 (x86_64-*-netbsd*): Likewise.
6036 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
6037 t-libc-ok from tmake_file.
6038 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6039 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6040 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
6041 tmake_file.
6042 Remove extra_parts.
6043 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6044 Remove i386/t-crtstuff from tmake_file.
6045 (i[34567]86-*-lynxos*): Likewise.
6046 Remove extra_parts.
6047 (ia64*-*-elf*): Remove extra_parts.
6048 (ia64*-*-freebsd*): Likewise.
6049 (ia64*-*-linux*): Likewise.
6050 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
6051 (m32r-*-elf*): Remove extra_parts.
6052 (m32rle-*-elf*): Likewise.
6053 (m32r-*-rtems*): Likewise.
6054 (m68k-*-elf*, fido-*-elf*): Likewise.
6055 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
6056 (m68k-*-rtems*): Remove extra_parts.
6057 (mep-*-*): Likewise.
6058 (microblaze*-linux*): Likewise.
6059 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
6060 (mips*-*-linux*): Likewise.
6061 (powerpc-*-lynxos*): Likewise.
6062 (s390x-ibm-tpf*): Likewise.
6063 (score-*-elf): Likewise.
6064 Remove tmake_file.
6065 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
6066 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
6067 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
6068 Remove sh/t-superh from tmake_file for sh*-superh-elf.
6069 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
6070 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
6071 (sh-wrs-vxworks): Likewise.
6072 (sparc-*-linux*): Remove extra_parts.
6073 (sparc64-*-linux*): Likewise.
6074 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
6075 (xstormy16-*-elf): Likewise.
6076 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
6077 (am33_2.0-*-linux*): Remove extra_parts.
6078 * configure.ac (extra_parts): Don't substitute.
6079 * configure: Regenerate.
6080 * crtstuff.c: Move to ../libgcc.
6081 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
6082 (EXTRA_PARTS): Remove.
6083 (CRTSTUFF_T_CFLAGS): Remove.
6084 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
6085 (GCC_EXTRA_PARTS): Remove.
6086 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
6087 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
6088 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
6089 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
6090 ($(T)crtbeginT.o): Remove.
6091 * config/alpha/t-vms (EXTRA_PARTS): Remove.
6092 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
6093 * config/alpha/vms-dwarf2.asm: Move to
6094 ../libgcc/config/alpha/vms-dwarf2.S.
6095 * config/alpha/vms-dwarf2eh.asm: Move to
6096 ../libgcc/config/alpha/vms-dwarf2eh.S.
6097 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
6098 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
6099 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
6100 ($(T)crti.o, $(T)crtn.o): Remove.
6101 * config/arm/t-linux: Remove comment.
6102 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
6103 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
6104 ($(T)crti.o, $(T)crtn.o): Remove.
6105 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
6106 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
6107 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
6108 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
6109 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
6110 ($(T)crti.o, $(T)crtn.o): Remove.
6111 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
6112 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
6113 (EXTRA_MULTILIB_PARTS): Remove.
6114 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
6115 EXTRA_MULTILIB_PARTS): Remove.
6116 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
6117 ($(T)crtlibid.o): Remove.
6118 (EXTRA_MULTILIB_PARTS): Remove.
6119 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
6120 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
6121 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
6122 (EXTRA_MULTILIB_PARTS): Remove.
6123 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6124 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
6125 CRTSTUFF_T_CFLAGS_S): Remove.
6126 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
6127 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6128 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
6129 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
6130 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
6131 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
6132 ../libgcc/config/frv.
6133 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
6134 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
6135 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6136 (CRTSTUFF_T_CFLAGS): Remove.
6137 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
6138 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
6139 * config/h8300/t-elf: Remove.
6140 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
6141 Move to ../libgcc/config/i386.
6142 * config/i386/t-crtstuff: Remove.
6143 * config/i386/t-i386elf: Remove.
6144 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
6145 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
6146 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
6147 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
6148 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
6149 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
6150 * config/ia64/t-vms: Remove.
6151 * config/ia64/vms-crtinit.asm: Move to
6152 ../libgcc/config/ia64/vms-crtinit.S.
6153 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
6154 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
6155 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6156 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
6157 ($(T)crtinit.o, $(T)crtfini.o): Remove.
6158 (m32rx, m32r2): Remove.
6159 (EXTRA_MULTILIB_PARTS): Remove.
6160 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
6161 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
6162 * config/m68k/t-crtstuff: Remove.
6163 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6164 * config/m68k/t-m68kelf: Remove.
6165 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
6166 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
6167 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
6168 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
6169 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
6170 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
6171 (EXTRA_MULTILIB_PARTS): Remove.
6172 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
6173 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
6174 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
6175 EXTRA_PARTS): Remove.
6176 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
6177 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
6178 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
6179 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
6180 ($(T)crti.o, $(T)crtn.o): Remove.
6181 (EXTRA_MULTILIB_PARTS): Remove.
6182 * config/mips/t-isa3264: Likewise.
6183 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
6184 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
6185 (CRTSTUFF_T_CFLAGS): Remove.
6186 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
6187 ($(T)crti.o, $(T)crtn.o): Remove.
6188 (EXTRA_MULTILIB_PARTS): Remove.
6189 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
6190 Remove.
6191 ($(T)crti.o, $(T)crtn.o): Remove.
6192 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
6193 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
6194 (EXTRA_MULTILIB_PARTS): Remove.
6195 ($(T)crti.o, $(T)crtn.o): Remove.
6196 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
6197 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
6198 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
6199 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
6200 * config/pa/stublib.c: Move to libgcc/config/pa.
6201 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6202 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
6203 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
6204 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
6205 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
6206 ($(T)libgcc_stub.a): Remove.
6207 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
6208 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
6209 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
6210 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
6211 ($(T)libgcc_stub.a): Remove.
6212 * config/rs6000/eabi-cn.asm: Move to
6213 ../../../libgcc/config/rs6000/eabi-cn.S.
6214 * config/rs6000/eabi-ci.asm: Move to
6215 ../../../libgcc/config/rs6000/eabi-ci.S.
6216 * config/rs6000/sol-ci.asm: Move to
6217 ../../../libgcc/config/rs6000/sol-ci.S.
6218 * config/rs6000/sol-cn.asm: Move to
6219 ../../../libgcc/config/rs6000/sol-cn.S.
6220 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
6221 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6222 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
6223 Remove.
6224 (EXTRA_MULTILIB_PARTS): Remove.
6225 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
6226 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
6227 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
6228 ($(T)ncrtn$(objext)): Remove.
6229 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6230 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6231 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
6232 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
6233 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
6234 * config/score/t-score-elf: Remove.
6235 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
6236 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
6237 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
6238 * config/sh/lib1funcs-4-300.asm: Move to
6239 ../../../libgcc/config/sh/lib1funcs-4-300.S.
6240 * config/sh/lib1funcs-Os-4-200.asm: Move to
6241 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
6242 * config/sh/t-elf: Remove.
6243 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6244 * config/sh/t-linux64: Remove.
6245 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
6246 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
6247 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
6248 ($(T)ic_invalidate_array_4-100.o)
6249 ($(T)libic_invalidate_array_4-100.a)
6250 ($(T)ic_invalidate_array_4-200.o)
6251 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
6252 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
6253 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
6254 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
6255 ($(T)libgcc-4-300.a): Remove.
6256 * config/sh/t-superh: Remove.
6257 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6258 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
6259 * config/spu/cache.S: Move to ../libgcc/config/spu.
6260 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
6261 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
6262 (EXTRA_MULTILIB_PARTS): Remove.
6263 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
6264 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
6265 ($(T)cache64k.o, $(T)cache128k.o): Remove.
6266 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
6267 * config/t-libc-ok: Remove.
6268 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6269 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
6270 * config/t-netbsd: Remove.
6271 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
6272 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6273 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
6274 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
6275 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
6276 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
6277 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
6278 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6279 (EXTRA_MULTILIB_PARTS): Remove.
6280 * config/xtensa/t-linux: Remove.
6281 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
6282
6283 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
6284
6285 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
6286 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
6287
6288 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6289
6290 PR translation/45116
6291 * Makefile.in (slibdir): Remove, don't export.
6292 (SHLIB_NM_FLAGS): Remove.
6293 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
6294 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
6295 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
6296 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
6297 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
6298 (gccspec.o): Likewise.
6299 (installdirs): Don't create $(DESTDIR)$(slibdir).
6300 * configure.ac (slibdir): Remove.
6301 * configure: Regenerate.
6302 * libgcc-libsystem.ver: Move to ../libgcc/config.
6303 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
6304 * config/libgcc-glibc.ver: Move to ../libgcc/config.
6305 * config/t-libunwind (SHLIB_LC): Remove.
6306 * config/t-linux (SHLIB_MAPFILES): Remove.
6307 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
6308 * config/t-slibgcc-elf-ver: Remove.
6309 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
6310 ../libgcc/config.
6311 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
6312 to ../libgcc/config/alpha.
6313 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
6314 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
6315 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
6316 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
6317 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
6318 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
6319 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
6320 * config/arm/t-symbian (SHLIB_LC): Remove.
6321 * config/bfin/libgcc-bfin.ver: Move to
6322 ../libgcc/config/bfin/libgcc-glibc.ver.
6323 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
6324 * config/c6x/libgcc-c6xeabi.ver: Move to
6325 ../libgcc/config/c6x/libgcc-eabi.ver.
6326 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
6327 * config/cris/libgcc.ver: Move to
6328 ../libgcc/config/cris/libgcc-glibc.ver.
6329 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6330 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
6331 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
6332 * config/i386/darwin-libgcc.10.4.ver: Move to
6333 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
6334 * config/i386/darwin-libgcc.10.5.ver: Move to
6335 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
6336 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
6337 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
6338 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
6339 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
6340 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
6341 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
6342 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
6343 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
6344 ../libgcc/config/i386.
6345 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
6346 ../libgcc/config/i386.
6347 * config/i386/t-linux: Move to ../libgcc/config/i386.
6348 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
6349 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
6350 * config/i386/t-mingw-w64: Likewise.
6351 * config/i386/t-mingw32: Remove.
6352 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
6353 to ../libgcc/config/ia64.
6354 * config/ia64/t-glibc: Remove.
6355 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
6356 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
6357 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
6358 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
6359 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
6360 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
6361 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
6362 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
6363 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
6364 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
6365 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
6366 Move to ../libgcc/config/pa.
6367 * config/rs6000/darwin-libgcc.10.4.ver: Move to
6368 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
6369 * config/rs6000/darwin-libgcc.10.5.ver: Move to
6370 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
6371 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
6372 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
6373 * config/rs6000/t-aix52: Likewise.
6374 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
6375 ../libgcc/config/sh.
6376 * config/sparc/libgcc-sparc-glibc.ver: Move to
6377 ../libgcc/config/sparc/libgcc-glibc.ver.
6378 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
6379 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
6380 * config/xtensa/libgcc-xtensa.ver: Move to
6381 ../libgcc/config/xtensa/libgcc-glibc.ver.
6382 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
6383 t-slibgcc in tmake_file.
6384 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
6385 *-*-freebsd[34].* with pthreads.
6386 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
6387 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
6388 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
6389 (*-*-netbsd*): Likewise.
6390 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
6391 (*-*-*vms*): Add t-slibgcc to tmake_file.
6392 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
6393 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
6394 tmake_file.
6395 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
6396 arm*-*-linux-*eabi.
6397 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
6398 tmake_file.
6399 (crisv32-*-linux*, cris-*-linux*): Likewise.
6400 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
6401 pa/t-slibgcc-dwarf-ver from tmake_file.
6402 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
6403 tmake_file.
6404 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
6405 (hppa*64*-*-hpux11*): Likewise.
6406 (hppa[12]*-*-hpux11*): Likewise.
6407 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
6408 tmake_file.
6409 (x86_64-*-darwin*): Likewise.
6410 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
6411 Add t-slibgcc to tmake_file.
6412 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6413 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
6414 i[34567]86-w64-*.
6415 Remove i386/t-mingw-pthread from tmake_file.
6416 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
6417 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
6418 (ia64-hp-*vms*): Likewise.
6419 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
6420 tmake_file.
6421 (m32rle-*-linux*): Likewise.
6422 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
6423 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
6424 t-slibgcc-nolc-override from tmake_file.
6425 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
6426 tmake_file.
6427 (powerpc-*-darwin*): Likewise.
6428 (powerpc64-*-darwin*): Likewise.
6429 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
6430 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6431 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
6432 t-slibgcc to tmake_file.
6433 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
6434 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
6435 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
6436 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
6437 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
6438 (sparc64-*-linux*): Likewise.
6439 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
6440 tmake_file.
6441 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6442 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
6443 from tmake_file.
6444
6445 2011-11-02 Richard Guenther <rguenther@suse.de>
6446
6447 PR tree-optimization/50902
6448 * tree-vect-stmts.c (vectorizable_load): Properly convert
6449 an invariant initializer element.
6450
6451 2010-11-02 Richard Guenther <rguenther@suse.de>
6452
6453 PR tree-optimization/50890
6454 * gimple.h (gimple_fold_call): Remove.
6455 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
6456 (gimple_fold_call): ... here. Make static. Update the
6457 cannot-inline flag on direct calls.
6458 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
6459 from the statements to the edges.
6460
6461 2011-11-01 Ian Lance Taylor <iant@google.com>
6462
6463 * godump.c (struct macro_hash_value): Define.
6464 (macro_hash_hashval): New static function.
6465 (macro_hash_eq, macro_hash_del): New static functions.
6466 (go_define): Use macro_hash_value to store values in macro_hash.
6467 Replace an old value on a redefinition. Don't print anything to
6468 go_dump_file.
6469 (go_undef): Delete the entry from the hash table.
6470 (go_output_typedef): For an enum, use macro_hash_value, and don't
6471 print anything to go_dump_file.
6472 (go_print_macro): New static function.
6473 (go_finish): Traverse macro_hash with go_print_macro.
6474 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
6475
6476 2011-11-02 Alan Modra <amodra@gmail.com>
6477
6478 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
6479
6480 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6481
6482 PR c++/44277
6483 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
6484
6485 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
6486
6487 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
6488
6489 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
6490
6491 * config/i386/i386.md (splitters for int-float conversion): Use
6492 SUBREG_REG on SUBREGs in splitter constraints.
6493
6494 2011-11-01 Jakub Jelinek <jakub@redhat.com>
6495
6496 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
6497 prototype.
6498 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
6499 function.
6500 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
6501 (ssepackfltmode): New mode attr.
6502 (vec_pack_ufix_trunc_<mode>): New expander.
6503
6504 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
6505
6506 PR target/50940
6507 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
6508 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
6509
6510 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
6511
6512 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
6513 * config/rs6000/476.h: New file.
6514 * config/rs6000/476.opt: Likewise.
6515 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
6516 (SET_TARGET_LINK_STACK): Likewise.
6517 (TARGET_ASM_CODE_END): Define.
6518 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6519 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
6520 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
6521 code if TARGET_LINK_STACK.
6522 (rs6000_emit_load_toc_table): Likewise.
6523 (output_function_profiler): Likewise
6524 (macho_branch_islands): Likewise
6525 (machopic_output_stub): Likewise
6526 (get_ppc476_thunk_name): New function.
6527 (rs6000_code_end): Likewise.
6528 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
6529 Convert to a define_expand.
6530 (load_toc_v4_PIC_1_normal): New define_insn.
6531 (load_toc_v4_PIC_1_476): Likewise.
6532 (load_toc_v4_PIC_1b_normal): Likewise.
6533 (load_toc_v4_PIC_1b_476): Likewise.
6534
6535 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
6536
6537 PR target/50910
6538 * config/avr/avr.opt (-mbranch-cost=): New option.
6539 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
6540 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
6541 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
6542 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
6543 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
6544
6545 2011-11-01 Tom de Vries <tom@codesourcery.com>
6546
6547 PR tree-optimization/50908
6548 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
6549 before update_vuses, test for 1 predecessor rather than two.
6550 (delete_block_update_dominator_info): New function, part of it factored
6551 out of ...
6552 (replace_block_by): Use delete_block_update_dominator_info. Call
6553 update_vuses after deleting bb1 and updating dominator info, instead of
6554 before.
6555
6556 2011-11-01 David S. Miller <davem@davemloft.net>
6557
6558 * config/sparc/sparc.c (vector_init_faligndata): New function.
6559 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
6560
6561 * config/sparc/sparc.c (sparc_expand_vcond): New function.
6562 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
6563 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
6564 (vconduv8qiv8qi): Likewise.
6565
6566 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
6567
6568 PR debug/50869
6569 * cselib.c (cfa_base_preserved_regno): Initialize.
6570 (cselib_expand_value_rtx_1): Don't expand it.
6571 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
6572 Check it's only zero if result is NULL.
6573
6574 2011-11-01 Jakub Jelinek <jakub@redhat.com>
6575
6576 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
6577 expander.
6578
6579 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
6580 (sseintvecmodelower): New mode iterator.
6581 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
6582 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
6583 (floatunsv4siv4sf2): Macroize into...
6584 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
6585
6586 2011-10-31 David S. Miller <davem@davemloft.net>
6587
6588 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
6589
6590 * dwarf2out.c (cached_next_real_insn): New.
6591 (dwarf2out_end_epilogue): Set it to NULL_RTX.
6592 (dwarf2out_var_location): Remove cached_next_real_insn local static.
6593
6594 2011-10-31 Richard Henderson <rth@redhat.com>
6595
6596 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
6597 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
6598 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
6599 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
6600 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
6601 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
6602 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
6603 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
6604 * config/i386/i386.md (splitters for int-float conversion): Likewise.
6605 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
6606 (bdesc_args): Likewise.
6607 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
6608 (ix86_vectorize_builtin_conversion): Remove.
6609 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
6610
6611 2011-10-31 Martin Jambor <mjambor@suse.cz>
6612
6613 * ipa-prop.c (mark_modified): Moved up in the file.
6614 (is_parm_modified_before_call): Renamed to
6615 is_parm_modified_before_stmt, moved up in the file.
6616 (load_from_unmodified_param): New function.
6617 (compute_complex_assign_jump_func): Also attempt to create pass
6618 through jump functions for values loaded from (addressable)
6619 parameters.
6620
6621 2011-10-31 Jakub Jelinek <jakub@redhat.com>
6622
6623 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
6624 in a loop and has different type from op0, cast it to op0's type
6625 before the loop first. For slp give up. Don't crash if op1_vectype
6626 is NULL.
6627
6628 2011-10-31 Paul Brook <paul@codesourcery.com>
6629
6630 * cgraphunit.c: Don't mark clones as static constructors.
6631
6632 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
6633
6634 * gcc-ar: Do not include stdio.h.
6635
6636 2011-10-31 Diego Novillo <dnovillo@google.com>
6637
6638 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
6639 TYPE_ADDR_SPACE.
6640 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
6641 TYPE_ADDR_SPACE.
6642
6643 2011-10-30 David S. Miller <davem@davemloft.net>
6644
6645 * config/sparc/sparc.c (vector_init_bshuffle): New function.
6646 (vector_init_fpmerge): New function.
6647 (sparc_expand_vector_init): Use them to improve non-const cases.
6648
6649 * dwarf2out.c (dwarf2out_var_location): When processing several
6650 consecutive location notes, cache the result of next_real_insn().
6651
6652 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
6653
6654 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
6655 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
6656 (vec_dupv4sf): Remove expander.
6657 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
6658 (vec_dupv2df): Remove expander.
6659 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
6660 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
6661 (*vec_dupv4si): Merge *vec_dupv4si_avx.
6662 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
6663
6664 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
6665
6666 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
6667 * optabs.c (supportable_convert_operation): New function.
6668 * optabs.h (supportable_convert_operation): New prototype.
6669 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
6670 behavior for NONE modifier case.
6671 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
6672
6673 2011-10-30 Jakub Jelinek <jakub@redhat.com>
6674
6675 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
6676 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
6677 function.
6678 (vect_vect_recog_func_ptrs): Add it.
6679
6680 2011-10-30 David S. Miller <davem@davemloft.net>
6681
6682 * reorg.c (label_before_next_insn): New function.
6683 (relax_delay_slots): Use it instead of prev_label.
6684 * rtl.h (prev_label): Delete declaration.
6685 * emit-rtl.c (prev_label): Remove.
6686
6687 2011-10-30 Revital Eres <revital.eres@linaro.org>
6688
6689 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
6690 as BB_DISABLE_SCHEDULE.
6691 (mark_loop_unsched): New function.
6692 (sms_schedule): Call it.
6693
6694 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6695
6696 PR target/50617
6697 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
6698 (cmpib_comparison_operator): Likewise.
6699 (following_cal, output_and, output_ior, output_move_double,
6700 output_fp_move_double, output_block_move, output_block_clear,
6701 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
6702 output_movb, output_parallel_movb, output_parallel_addb, output_call,
6703 output_indirect_call, output_millicode_call, output_mul_insn,
6704 output_div_insn, output_mod_insn, singlemove_string,
6705 output_arg_descriptor, output_global_address, print_operand,
6706 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
6707 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
6708 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
6709 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
6710 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
6711 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
6712 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
6713 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
6714 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
6715 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
6716 exported functions and variables with "pa_".
6717 * config/pa/predicates.md: Likewise.
6718 * config/pa/pa64-hpux.h: likewise.
6719 * config/pa/som.h: Likewise.
6720 * config/pa/elf.h: Likewise.
6721 * config/pa/pa64-linux.h: Likewise.
6722 * config/pa/pa.md: Likewise.
6723 * config/pa/pa.c: Likewise.
6724 * config/pa/pa-linux.h: Likewise.
6725 * config/pa/pa.h: Likewise.
6726 * config/pa/constraints.md: Likewise.
6727
6728 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
6729
6730 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
6731 Update all uses.
6732 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
6733 * config/i386/i386.c: Update all uses.
6734
6735 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
6736
6737 * config/i386/i386.md (lshlv16qi3): Remove expander.
6738 (lshrv16qi3): New expander.
6739 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
6740 using any_shiftrt code iterator. Cleanup.
6741 (ashlv16qi3): Cleanup.
6742 (ashrv2di3): Ditto.
6743
6744 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6745
6746 PR target/50691
6747 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
6748 references.
6749 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
6750 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
6751
6752 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
6753
6754 PR target/50887
6755 * config/avr/avr.opt (-maccumulate-args): New option.
6756 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
6757 avr_starting_frame_offset.
6758 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
6759 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
6760 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
6761 (UNSPECV_WRITE_SP): New constant.
6762 (*addhi3_sp_R): Rewrite to...
6763 (*addhi3_sp): ...this new insn.
6764 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
6765 (movhi_sp_r): ...this new insn.
6766 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
6767 (avr_starting_frame_offset): New.
6768 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
6769 (avr_starting_frame_offset): New function.
6770 (avr_outgoing_args_size): New static function.
6771 (avr_initial_elimination_offset): Use it.
6772 (avr_simple_epilogue): Use it.
6773 (avr_asm_function_end_prologue): Use it.
6774 (expand_epilogue): Use it.
6775 (expand_prologue): Use it. Break out code to...
6776 (avr_prologue_setup_frame): ...this new static function.
6777 (avr_can_eliminate): Allow eliminating to frame pointer if there
6778 is one.
6779 (avr_frame_pointer_required_p): Use frame pointer if target has a
6780 nonlocal label.
6781 * config/avr/constraints.md (R): Remove.
6782 (Csp): New constraint.
6783 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
6784
6785 2011-10-29 Andi Kleen <ak@linux.intel.com>
6786
6787 * gcc-ar.c (target_machine): Add.
6788
6789 2011-10-29 Anatoly Sokolov <aesok@post.ru>
6790
6791 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
6792 cris_constant_index_p, cris_base_p, cris_index_p,
6793 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
6794 cris_legitimate_address_p): New functions.
6795 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6796 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
6797 from rtx to const_rtx.
6798 (cris_print_operand_address, cris_address_cost,
6799 cris_side_effect_mode_ok): Use
6800 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
6801 cris_biap_index_p and cris_bdap_index_p.
6802 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
6803 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
6804 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6805 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
6806 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
6807 cris_biap_index_p and cris_bdap_index_p.
6808 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
6809 cris_base_p.
6810 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
6811 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
6812 prototype.
6813 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
6814
6815 2011-10-21 Andi Kleen <ak@linux.intel.com>
6816
6817 * ggc-page (PAGE_ALIGN): Add.
6818 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
6819 Replace ROUND_UP with PAGE_ALIGN.
6820
6821 2011-10-20 Andi Kleen <ak@linux.intel.com>
6822
6823 * ggc-page (alloc_anon): Add check argument.
6824 (alloc_page): Add fallback to 1 page allocation.
6825 Adjust alloc_anon calls to new argument.
6826
6827 2011-10-18 Andi Kleen <ak@linux.intel.com>
6828
6829 * ggc-page (release_pages): First free large continuous
6830 chunks in the madvise path.
6831
6832 2011-10-18 Andi Kleen <ak@linux.intel.com>
6833
6834 * ggc-page.c (alloc_pages): Always round up entry_size.
6835
6836 2011-10-19 Andi Kleen <ak@linux.intel.com>
6837
6838 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
6839 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
6840 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
6841 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
6842 (install): Depend on install-gcc-ar.
6843 (install-gcc-ar): Add.
6844 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
6845 * gcc-ar.c: Add new file.
6846
6847 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
6848
6849 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
6850 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
6851 type for V2DF.
6852 (VStype_div): Use vector types for V2DF/V4SF.
6853 (VStype_sqrt): Use *sqrt types.
6854 (VS_spdp_type): Change type to vecdouble.
6855 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
6856 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
6857 vsx_xvcvspuxds): Likewise.
6858 (*vsx_fms<mode>4): Set type via <VStype_mul>.
6859 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
6860 <VStype_simple>.
6861 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
6862 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
6863 power7-dsqrt): Correct insn latency.
6864 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
6865 (power7-veccmp): Delete.
6866 (power7-vecfloat): Correct latency/dispatch/VSU values.
6867 (define_bypass "power7-vecfloat"): Correct latency and types.
6868 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
6869 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
6870
6871 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
6872
6873 * config/i386/i386.md (shift_insn): Rename code attribute from
6874 shiftrt_insn. Also handle ashift RTX.
6875 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
6876 (vshift): New code attribute.
6877 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
6878 (any_lshift): Move and rename code iterator from ...
6879 * config/i386/sse.md (lshift): ... here.
6880 (lshift_insn): Remove code attribute.
6881 (lshift): Remove code attribute.
6882 (vlshr<mode>3): Use lshiftrt RTX.
6883 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
6884 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
6885 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
6886 any_lshift code iterator. Update asm template.
6887 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
6888 usign any_lshift code iterator.
6889 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
6890 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
6891 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
6892
6893 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
6894
6895 PR target/49313
6896 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
6897 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
6898 to the libgcc insn.
6899 (*parityqihi2): Same for 8-bit parity.
6900
6901 2011-10-28 Julian Brown <julian@codesourcery.com>
6902
6903 PR rtl-optimization/47918
6904 * reload1.c (set_initial_label_offsets): Use initial offsets
6905 for labels on the nonlocal_goto_handler_labels chain.
6906
6907 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
6908
6909 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
6910 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
6911 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
6912 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
6913 config/t-darwin.
6914 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
6915 (GP_SAVE_INLINE): Likewise.
6916 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
6917 RESTORE_FP_SUFFIX): Set to empty strings.
6918 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
6919 (debug_stack_info): Print savres_strategy.
6920 (rs6000_savres_routine_name): Implement for Darwin.
6921 (rs6000_make_savres_rtx): Adjust used register for Darwin.
6922 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
6923 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
6924 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
6925 * config/rs6000/darwin-gpsave.asm: New file.
6926
6927 2011-10-28 Jakub Jelinek <jakub@redhat.com>
6928
6929 * config/i386/sse.md (VI4SD_AVX2): Removed.
6930 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
6931 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
6932 Add another expander using VI48_128 iterator for
6933 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
6934 for TARGET_AVX2.
6935 (vlshr<mode>3): Likewise. Change register_operand predicate to
6936 nonimmediate_operand on last operand in the VI12_128 expander.
6937 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
6938 (vashrv4si3, vashrv8si3): New expanders.
6939 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
6940 avx2_<lshift>vv2di): Removed.
6941 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
6942 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
6943 iterator. Simplify pattern.
6944
6945 2010-10-28 Richard Guenther <rguenther@suse.de>
6946
6947 PR driver/50876
6948 * lto-wrapper.c (get_options_from_collect_gcc_options):
6949 Properly count arguments.
6950 (run_gcc): Use an obstack to collect argv, properly separate
6951 switches and their arguments.
6952
6953 2011-10-28 Jakub Jelinek <jakub@redhat.com>
6954
6955 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
6956 vector mode from vectype's mode.
6957
6958 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
6959
6960 PR rtl-optimization/49720
6961 * simplify-rtx.c (simplify_relational_operation_1): Detect
6962 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
6963 simplifies to (eq/ne x (cst2 - cst1))" case.
6964
6965 2011-10-27 David S. Miller <davem@davemloft.net>
6966
6967 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
6968 (*snedi_zero): Likewise.
6969 (*snedi_zero_trunc): Likewise.
6970 (snedi_special_vis3): New expander.
6971 (*snedi_zero_vis3): New insn.
6972 (*snedi_zero_trunc_vis3): Likewise.
6973 (*sltu_insn_vis3): Likewise.
6974 (*sltu_insn_vis3_trunc): Likewise.
6975 (addxc): Likewise.
6976 (*addxc_trunc_sp64_vis3): Likewise.
6977 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
6978 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
6979 sequences on DImode values.
6980
6981 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
6982 constraint.
6983
6984 * regcprop.c (copyprop_hardreg_forward_1): Reject the
6985 transformation when we narrow the mode on big endian.
6986
6987 2011-10-27 Jakub Jelinek <jakub@redhat.com>
6988
6989 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
6990 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
6991 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
6992
6993 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
6994 overrides for -masm=intel memory.
6995 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
6996 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
6997 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
6998 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
6999 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
7000 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
7001 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
7002
7003 2011-10-27 Martin Jambor <mjambor@suse.cz>
7004
7005 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
7006 to parm_ainfo.
7007 (ipa_compute_jump_functions_for_edge): Likewise.
7008 (ipa_compute_jump_functions): Likewise.
7009 (ipa_analyze_indirect_call_uses): Likewise.
7010 (ipa_analyze_call_uses): Likewise.
7011 (ipa_analyze_params_uses): Likewise.
7012 (ipa_analyze_node): Likewise.
7013
7014 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
7015
7016 PR target/50875
7017 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
7018 constraints. Change alternative 1 to "x,m,1".
7019
7020 2011-10-27 Jakub Jelinek <jakub@redhat.com>
7021
7022 * Makefile.in (build/gencheck.o): Depend on tree.def and
7023 c-family/c-common.def.
7024
7025 * tree-ssa-strlen.c: Include expr.h.
7026 (get_stridx): Don't use c_strlen, instead use string_constant
7027 and compute string length from it.
7028 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
7029
7030 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
7031
7032 PR rtl-optimization/46603
7033 PR bootstrap/50879
7034 * reload.c (push_reload): In the out case, restore previous behavior
7035 for subregs that don't have word mode.
7036
7037 2011-10-27 Ian Lance Taylor <iant@google.com>
7038
7039 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
7040 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
7041 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
7042 defined.
7043
7044 2011-10-27 Richard Henderson <rth@redhat.com>
7045
7046 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
7047 selector. Save the qimode constant selector for later use by the
7048 qimode vec_perm pattern.
7049
7050 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
7051
7052 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
7053 to unit_req_factor to the right enum type.
7054 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
7055 hwloop_optimize): Remove unused variables.
7056
7057 2010-10-27 Richard Guenther <rguenther@suse.de>
7058
7059 PR middle-end/50731
7060 * tree-vect-generic.c (do_binop): Handle scalar operands.
7061
7062 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
7063
7064 PR target/37191
7065 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
7066 from different units in a single alternative.
7067
7068 2011-10-26 David S. Miller <davem@davemloft.net>
7069
7070 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
7071 if we're comparing DImode and comparison is other than EQ or NE.
7072
7073 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
7074 LEU/LTU/GEU/GTU is attempted.
7075 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
7076 and split.
7077 (*neg_seqsi_sign_extend): Likewise.
7078 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
7079 *neg_sgeu_extend_sp64): New insns.
7080
7081 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
7082 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
7083 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
7084 (*mov<I:mode>_cc_reg_sp64): Likewise.
7085 (*movsf_cc_v9): Likewise.
7086 (*movsf_cc_reg_sp64): Likewise.
7087 (*movdf_cc_v9): Likewise.
7088 (*movdf_cc_reg_sp64): Likewise.
7089 (*movtf_cc_hq_v9): Likewise.
7090 (*movtf_cc_reg_hq_sp64): Likewise.
7091 (*movtf_cc_v9): Likewise.
7092 (*movtf_cc_reg_sp64): Likewise.
7093 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
7094 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
7095
7096 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
7097
7098 * reload.c (reload_inner_reg_of_subreg): Change type of return value
7099 and type of OUTPUT parameter to bool and adjust. Document MODE and
7100 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
7101 and improve associated comment.
7102 (push_reload): Clarify and update comments about reloading of subregs.
7103 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
7104 for the reloading of subregs in the out case as well.
7105
7106 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
7107
7108 PR debug/50826
7109 * var-tracking.c (rtx_debug_expr_p): New.
7110 (use_type): Don't use debug exprs to track non-VTA variables.
7111
7112 2011-10-26 Jeff Law <law@redhat.com>
7113
7114 * doc/invoke.texi (sink-frequency-threshold): Document.
7115 * tree-ssa-sink.c: Include params.h.
7116 (select_best_block): New function.
7117 (statement_sink_location): Use it.
7118 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
7119
7120 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
7121
7122 PR target/48108
7123 * config/darwin.c (top level): Amend comments concerning LTO output.
7124 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
7125 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
7126 (LTO_NAMES_SECTION): Rename.
7127 (darwin_asm_named_section): Record LTO section counts and switches
7128 in a vec of darwin_lto_section_e.
7129 (darwin_file_start): Remove unused code.
7130 (darwin_file_end): Put an LTO section termination label. Handle
7131 output of the wrapped LTO sections, index and names table.
7132
7133 2011-10-26 Alan Modra <amodra@gmail.com>
7134
7135 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
7136 declaration.
7137 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
7138 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
7139 simple_return in pattern, emit instruction, and set jump_label.
7140 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
7141 simple_return rather than return.
7142 (emit_cfa_restores): New function.
7143 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
7144 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
7145 when using out-of-line gpr restore. Add missing LR and FP regs
7146 cfa_restores for out-of-line fpr restore. Consolidate code setting
7147 up cfa_restores. Formatting. Use LR_REGNO define.
7148 (rs6000_output_mi_thunk): Use simple_return rather than return.
7149 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
7150 (return_internal*): Likewise.
7151 (any_return, return_pred, return_str): New iterators.
7152 (return, conditional return insns): Provide both return and
7153 simple_return variants.
7154 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
7155 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
7156 Move r11 and r0 later to suit shrink-wrapping.
7157
7158 2011-10-26 Richard Guenther <rguenther@suse.de>
7159
7160 * lto-wrapper.c (run_gcc): Properly init/free obstack.
7161
7162 2011-10-26 Jakub Jelinek <jakub@redhat.com>
7163
7164 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
7165 * config/i386/predicates.md (vsib_address_operand,
7166 vsib_mem_operator): New predicates.
7167 * config/i386/i386.c (ix86_print_operand_address): Handle
7168 UNSPEC_VSIBADDR addresses.
7169 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
7170 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
7171 UNSPEC_VSIBADDR address.
7172 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
7173 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
7174
7175 2011-10-26 Tom de Vries <tom@codesourcery.com>
7176
7177 PR tree-optimization/50763
7178 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
7179 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
7180
7181 2011-10-26 Richard Guenther <rguenther@suse.de>
7182
7183 PR lto/41844
7184 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
7185 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
7186 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
7187 (run_gcc): Use it. Filter out language specific options.
7188
7189 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
7190
7191 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
7192 32-bit target does.
7193
7194 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
7195
7196 PR driver/46617
7197 * gcc.c (main): Fix fatal_error string for translation.
7198
7199 2011-10-25 Ian Lance Taylor <iant@google.com>
7200
7201 * tree-eh.c (do_return_redirection): Remove return_value_p
7202 parameter. Change all callers.
7203 (lower_try_finally_nofallthru): Remove local return_val.
7204 (lower_try_finally_onedest): Likewise.
7205 (lower_try_finally_copy): Likewise.
7206 (lower_try_finally_switch): Likewise.
7207
7208 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
7211 remove "&& !TARGET_64BIT"
7212 (*mmx_maskmovq_rex): Removed.
7213
7214 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7215
7216 PR rtl-optimization/46603
7217 * reload.c (push_reload): In the out case, reload the subreg as well
7218 as the reg if it has word mode.
7219
7220 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7221
7222 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
7223 suppress debug info for the parent type.
7224
7225 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7226
7227 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
7228
7229 2011-10-25 Richard Henderson <rth@redhat.com>
7230
7231 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
7232 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
7233
7234 * config/rs6000/altivec.md (vec_extract_evenv8hi,
7235 vec_extract_evenv16qi, vec_extract_oddv4si,
7236 vec_extract_oddv4sf): Remove.
7237
7238 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
7239 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
7240 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
7241 vec_interleave_highv4sf, vec_interleave_lowv4sf,
7242 vec_interleave_highv4si, vec_interleave_lowv4si,
7243 vec_interleave_highv8hi, vec_interleave_lowv8hi,
7244 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
7245
7246 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
7247 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
7248 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
7249 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
7250 vec_interleave_low_optab, vec_extract_even_optab,
7251 vec_extract_odd_optab with expand_vec_perm.
7252 (can_vec_perm_for_code_p): New.
7253 * optabs.h: Update.
7254 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
7255 fallback via can_vec_perm_for_code_p.
7256 (vect_strided_load_supported): Likewise.
7257 * tree-vect-generic.c (expand_vector_operations_1): Never lower
7258 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
7259 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
7260
7261 * target.def (vec_perm_const_ok): Change parameters to mode and
7262 array of indicies.
7263 * doc/tm.texi: Rebuild.
7264 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
7265 parameters to mode and array of indicies.
7266 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
7267 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
7268 Change parameters to mode and array of indicies.
7269 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
7270 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
7271 parameters to mode and rtx inputs. Try lowering to QImode
7272 vec_perm_const before trying fully variable permutation.
7273 * optabs.h: Update decls.
7274 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
7275 VECTOR_CST to pass to can_vec_perm_p.
7276 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
7277 from int pointer to unsigned char pointer.
7278 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
7279 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
7280
7281 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
7282 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
7283 VEC_INTERLEAVE_LOW_EXPR): Likewise.
7284
7285 2011-10-25 Mike Stump <mikestump@comcast.net>
7286
7287 * reload.c (regno_clobbered_p): Fix typo.
7288
7289 2011-10-25 Dodji Seketeli <dodji@redhat.com>
7290
7291 * input.c (expand_location): Rewrite using linemap_resolve_location
7292 and linemap_expand_location. Add a comment.
7293
7294 2011-10-25 Jakub Jelinek <jakub@redhat.com>
7295
7296 PR tree-optimization/50596
7297 * tree-vect-stmts.c (vect_mark_relevant): Only use
7298 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
7299 (vectorizable_store): If is_pattern_stmt_p look through
7300 VIEW_CONVERT_EXPR on lhs.
7301 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
7302 Use unsigned type instead of signed.
7303 (vect_recog_bool_pattern): Optimize also stores into bool memory in
7304 addition to casts from bool to integral types.
7305 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
7306 created, don't create it again.
7307
7308 2011-10-25 Kai Tietz <ktietz@redhat.com>
7309
7310 * config/i386/i386.c (ix86_frame_pointer_required): Require
7311 frame-pointer, if setjmp is used for 32-bit ms-abi.
7312
7313 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7314
7315 * builtins.c (set_builtin_user_assembler_name): Remove extra
7316 newline added in October 11th, 2011 change.
7317
7318 2011-10-24 David S. Miller <davem@davemloft.net>
7319
7320 * config/sparc/little-endian.opt: Delete.
7321 * config.gcc: Remove references to config/sparc/little-endian.opt
7322 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
7323 * config/sparc/linux64.h: Delete references to -mlittle-endian.
7324 * config/sparc/netbsd-elf.h: Likewise.
7325 * config/sparc/openbsd64.h: Likewise.
7326 * config/sparc/sparc.h: Likewise.
7327 * config/sparc/sp64-elf.h: Likewise and delete overrides for
7328 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7329 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
7330 to MASK_LITTLE_ENDIAN.
7331 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
7332
7333 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
7334 Only use D, Y, and Z constraints in vector insns.
7335
7336 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
7337 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
7338 called *movsi_insn.
7339 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
7340 into *movdi_insn_sp32.
7341 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
7342 one pattern called *movdi_insn_sp64.
7343 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
7344 Consolidate into one pattern called *movsf_insn.
7345 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
7346 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
7347 into *movdf_insn_sp32.
7348 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
7349 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
7350 *movdf_insn_sp64.
7351 (*zero_extendsidi2_insn_sp64_novis3,
7352 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
7353 called *zero_extendsidi2_insn_sp64.
7354 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
7355 Consolidate into one pattern named *sign_extendsidi2_insn.
7356 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
7357 Consolidate into one pattern named *mov<VM32:mode>_insn.
7358 (*mov<VM64:mode>_insn_sp64_novis3,
7359 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
7360 named *mov<VM64:mode>_insn_sp64.
7361 (*mov<VM64:mode>_insn_sp32_novis3,
7362 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
7363 named *mov<VM64:mode>_insn_sp32.
7364
7365 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7366
7367 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
7368 (zero_length_string): Change assertion to accept strinfo without
7369 length but with stmt instead.
7370 Set the endptr pointer also if starting a new chain.
7371 (adjust_related_strinfos): Ignore strinfos marked for delayed
7372 length computation.
7373 (handle_builtin_strcpy): Mark earlier strinfo elements also for
7374 delayed length computation.
7375
7376 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
7377
7378 PR target/50820
7379 Port from 4.6 branch r180379
7380 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
7381 handling and indirect jump/calls on devices > 128k.
7382
7383 2011-10-24 Anatoly Sokolov <aesok@post.ru>
7384 Georg-Johann Lay <avr@gjlay.de>
7385
7386 PR target/49824
7387 * doc/extend.texi (Declaring Attributes of Functions):
7388 Document OS_main and OS_task attributes.
7389 (Specifying Attributes of Variables): Move up
7390 subsection "AVR Variable Attributes" as of alphabetical order.
7391
7392 2011-10-24 Richard Guenther <rguenther@suse.de>
7393
7394 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
7395 to vector element type.
7396 (vectorizable_assignment): Bail out for non-mode-precision operations.
7397 (vectorizable_shift): Likewise.
7398 (vectorizable_operation): Likewise.
7399 (vectorizable_type_demotion): Likewise.
7400 (vectorizable_type_promotion): Likewise.
7401 (vectorizable_store): Handle non-mode-precision stores.
7402 (vectorizable_load): Handle non-mode-precision loads.
7403 (get_vectype_for_scalar_type_and_size): Return a vector type
7404 for non-mode-precision integers.
7405 * tree-vect-loop.c (vectorizable_reduction): Bail out for
7406 non-mode-precision reductions.
7407
7408 2011-10-24 Julian Brown <julian@codesourcery.com>
7409
7410 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
7411 setting CC_REVERSED for FP comparisons.
7412
7413 2011-10-24 Richard Guenther <rguenther@suse.de>
7414
7415 PR tree-optimization/50838
7416 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
7417 a MEM_REF base if we change it.
7418
7419 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
7420
7421 PR bootstrap/50836
7422 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
7423
7424 PR rtl-optimization/50833
7425 * function.c (thread_prologue_and_epilogue_insns): Expect the
7426 return insn optimization only if optimize.
7427
7428 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
7429
7430 * config/avr/avr.c: Break long lines.
7431 Define target hooks on the fly if applicable.
7432 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
7433 overridden later.
7434 (targetm): Move definition to end of file.
7435 (avr_can_eliminate): Make static on the fly.
7436 (avr_frame_pointer_required_p): Ditto.
7437 (avr_hard_regno_scratch_ok): Ditto.
7438 (avr_builtin_setjmp_frame_value): Make static on the fly.
7439 Indent according to coding rules.
7440 (avr_case_values_threshold): Ditto.
7441 (avr_attribute_table): Move down.
7442
7443 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
7444
7445 PR tree-optimization/50730
7446 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
7447 analysis if encountered unsupported data-ref.
7448
7449 2011-10-23 David S. Miller <davem@davemloft.net>
7450
7451 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
7452 cpu adjustment.
7453 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
7454 append -mcpu=v9 when -mv8plus is given.
7455
7456 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
7457 between float and non-float regs when VIS3.
7458 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
7459 use a restore when the source is a float register.
7460 (sparc_split_regreg_legitimate): When VIS3 allow moves between
7461 float and integer regs.
7462 (sparc_register_move_cost): Adjust to account for VIS3 moves.
7463 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
7464 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
7465 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
7466 float and integer regs we sometimes need a FP_REGS class
7467 intermediate move to satisfy the reload. When this happens
7468 specify an extra cost of 2.
7469 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
7470 (*movdi_insn_sp32_v9): Likewise.
7471 (*movdi_insn_sp64): Likewise.
7472 (*movsf_insn): Likewise.
7473 (*movdf_insn_sp32_v9): Likewise.
7474 (*movdf_insn_sp64): Likewise.
7475 (*zero_extendsidi2_insn_sp64): Likewise.
7476 (*sign_extendsidi2_insn): Likewise.
7477 (*movsi_insn_vis3): New insn.
7478 (*movdi_insn_sp32_v9_vis3): New insn.
7479 (*movdi_insn_sp64_vis3): New insn.
7480 (*movsf_insn_vis3): New insn.
7481 (*movdf_insn_sp32_v9_vis3): New insn.
7482 (*movdf_insn_sp64_vis3): New insn.
7483 (*zero_extendsidi2_insn_sp64_vis3): New insn.
7484 (*sign_extendsidi2_insn_vis3): New insn.
7485 (TFmode reg/reg split): Make sure both REG operands are float.
7486 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
7487 easy constant to integer reg alternatives.
7488 (*mov<VM64:mode>_insn_sp64): Likewise.
7489 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
7490 (*mov<VM32:mode>_insn_vis3): New insn.
7491 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
7492 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
7493 (VM64 reg<-->reg split): New splitter for 32-bit.
7494
7495 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
7496 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
7497 Declare it.
7498 * config/sparc/sparc.md (DImode reg/reg split): Use it.
7499 (DFmode reg/reg split): Likewise.
7500
7501 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
7502 generating fzero and fone instructions.
7503 (DImode const_int --> reg splitter): Only trigger for integer regs.
7504
7505 * config/sparc/predicates.md (input_operand): Disallow vector
7506 constants other than 0 and -1.
7507 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
7508 NO_REGS for vector constants other than 0 and -1.
7509
7510 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
7511 SPARC_INT_REG_P): Define.
7512 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
7513 (REGNO_OK_FOR_INDEX_P): Likewise.
7514 * config/sparc/sparc.c (gen_df_reg): Likewise.
7515 (eligible_for_return_delay): Likewise.
7516 (eligible_for_sibcall_delay): Likewise.
7517 (sparc_legitimate_address_p): Likewise.
7518 (emit_save_or_restore_regs): Likewise.
7519 (registers_ok_for_ldd_peep): Likewise.
7520 * config/spac/sparc.md (DI mode splitters): Likewise.
7521 (SF mode const splitters): Likewise.
7522 (DF mode splitters): Likewise.
7523 (32-bit DI mode logical op splitters): Likewise.
7524
7525 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7526
7527 PR c++/50841
7528 Revert:
7529 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7530
7531 PR c++/50810
7532 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
7533
7534 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7535
7536 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
7537 (VI248_256): Remove mode iterator.
7538 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
7539 instead of gen_avx2_lshlv4di3.
7540 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
7541 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
7542
7543 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7544
7545 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
7546 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
7547 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
7548 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
7549 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
7550 iterator. Use sseintprefix mode attribute.
7551 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
7552 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
7553 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
7554 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
7555 iterator. Use sseintprefix mode attribute.
7556 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
7557 attributes.
7558 (*avx2_gatherdi<mode>): Ditto.
7559 (*avx2_gatherdi<mode>256): Ditto.
7560 (VI48_AVX2): Remove mode iterator.
7561 (gthrlastfp): Remove mode attribute.
7562
7563 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7564
7565 PR c++/50810
7566 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
7567
7568 2011-10-23 Tom de Vries <tom@codesourcery.com>
7569
7570 PR tree-optimization/50763
7571 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
7572 out of ...
7573 (same_succ_flush_bbs): Use same_succ_flush_bb.
7574 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
7575 release_last_vdef and delete_basic_block.
7576 (unlink_virtual_phi): New function.
7577 (update_vuses): Add and use vuse1_phi_args argument. Set var to
7578 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
7579 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
7580 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
7581 to limit replacement of uses. Propagate phi argument for phis with a
7582 single argument.
7583 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
7584 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
7585 vuse1_phi_args as argument to call to update_vuses. Call
7586 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
7587 CDI_DOMINATORS info.
7588 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
7589 call to free_dominance_info. Only call calculate_dominance_info once.
7590
7591 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
7592
7593 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
7594
7595 PR tree-optimization/44683
7596 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
7597 we can be sure that there are no signed zeros involved.
7598
7599 2011-10-23 Jan Hubicka <jh@suse.cz>
7600
7601 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
7602
7603 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7604
7605 PR target/50788
7606 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
7607 Remove (match_dup 0).
7608 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
7609 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
7610 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
7611 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
7612 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
7613 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
7614
7615 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
7616
7617 PR tree-optimization/50819
7618 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
7619 the last argument.
7620 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
7621 vect_analyze_data_ref_dependences.
7622 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
7623 the last argument. Check load-after-store dependence for unknown
7624 dependencies in basic blocks.
7625 (vect_analyze_data_ref_dependences): Update call to
7626 vect_analyze_data_ref_dependences.
7627 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
7628 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
7629 (vect_slp_analyze_bb_1): Update call to
7630 vect_analyze_data_ref_dependences. Don't call
7631 vect_bb_vectorizable_with_dependencies.
7632
7633 2011-10-22 David S. Miller <davem@davemloft.net>
7634
7635 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
7636 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
7637 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
7638 (sparc_secondary_reload): New function.
7639
7640 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
7641 (struct processor_costs): Move from here..
7642 * config/sparc/sparc.c (struct processor_costs): To here.
7643 (sparc_costs): Mark static.
7644
7645 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
7646 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
7647 Get rid of declarations.
7648
7649 2011-10-21 Paul Brook <paul@codesourcery.com>
7650
7651 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
7652 c6x_asm_init_sections): New functions.
7653 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
7654
7655 2011-10-21 Jakub Jelinek <jakub@redhat.com>
7656
7657 PR target/50813
7658 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
7659 V4DImode and V8SImode for !TARGET_AVX2.
7660
7661 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7662
7663 PR bootstrap/50825
7664 * sched-deps.c (add_dependence): If not doing predication, promote
7665 REG_DEP_CONTROL to REG_DEP_ANTI.
7666
7667 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
7668
7669 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
7670 instead of X to avr_legitimize_reload_address.
7671 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
7672 first argument's type from rtx to rtx*.
7673 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
7674 Pass PX to push_reload instead of &X. Change log messages for
7675 better distinction.
7676
7677 2011-10-21 Roland Stigge <stigge@antcom.de>
7678
7679 PR translation/47064
7680 * params.def: Fix typo "compilatoin" -> "compilation".
7681
7682 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
7683 Kirill Yukhin <kirill.yukhin@intel.com>
7684
7685 PR target/50740
7686 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
7687 if max_level allows that.
7688
7689 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7690
7691 * reg-notes.def (DEP_CONTROL): New.
7692 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
7693 not doing speculation.
7694 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
7695 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
7696 * function.c (record_hard_reg_sets, record_hard_reg_uses,
7697 record_hard_reg_uses_1): Remove; move to rtlanal.c.
7698 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
7699 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
7700 (MUST_RECOMPUTE_SPEC_P): New macro.
7701 (real_insn_for_shadow): New function.
7702 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
7703 toggle_cancelled_flags): New static functions.
7704 (schedule_insn): Relax an assert to only check for empty hard back
7705 dependencies. Skip cancelled dependencies. Call
7706 check_clobbered_conditions.
7707 (copy_insn_list): Remove function, renamed moved to lists.c.
7708 (save_backtrack_point): Use new spelling copy_INSN_LIST.
7709 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
7710 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
7711 (estimate_insn_tick): Ignore cancelled dependencies.
7712 (haifa_speculate_insn): Move declaration.
7713 (try_ready): Move code into recompute_todo_spec and call it. Tweak
7714 some asserts. Ensure predicated patterns are restored if necessary.
7715 Dump DEP_CONTROL flag.
7716 (haifa_change_pattern): Merge with sched_change_pattern.
7717 (sched_change_pattern): Remove function.
7718 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
7719 uses changed to simply not test NON_FLUSH_JUMP_P.
7720 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
7721 REG_DEP_CONTROL.
7722 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
7723 (reg_pending_control_uses, control_dependency_cache): New static
7724 variables.
7725 (sched_get_reverse_condition_uncached): New function.
7726 (sd_find_dep_between): Remove pointless assert. Look in
7727 control_dependency_cache.
7728 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
7729 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
7730 and control_dependency_cache.
7731 (sd_unresolve_dep): Use dep_spec_p.
7732 (add_dependence): Now a wrapper around add_dependence_1, handling
7733 REG_DEP_CONTROL specially.
7734 (flush_pending_lists): Clear pending_jump_insns.
7735 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
7736 (sched_analyze_2): Unconditionally add to pending memory flushes,
7737 keep previous behaviour but apply it to pending_jump_insns instead.
7738 (sched_analyze_insn): Defer adding jump reg dependencies using
7739 reg_pending_control_uses; add them to the control_uses list. Handle
7740 pending_jump_insns and control_uses when adding dependence lists.
7741 (deps_analyze_insn): Update INSN_COND_DEPS.
7742 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
7743 last_pending_memory_flush.
7744 (init_deps): Initialize pending_jump_insns.
7745 (free_deps): Free control_uses.
7746 (remove_from_deps): Remove from pending_jump_insns.
7747 (init_deps_global): Allocate reg_pending_control_uses).
7748 (finish_deps_global): Free it.
7749 (add_dependence_1): Renamed from add_dependence. Handle
7750 REG_DEP_CONTROL.
7751 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
7752 (copy_INSN_LIST, concat_INSN_LIST): Declare.
7753 * sched-int.h (struct deps_reg): Add control_uses.
7754 (struct deps_desc): Add pending_jump_insns.
7755 (struct _haifa_deps_insn_data): Add cond_deps.
7756 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
7757 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
7758 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
7759 (DEP_CONTROL): New macro.
7760 (DEP_TYPES): Include it.
7761 (HARD_DEP): Adjust definition.
7762 (DEP_CANCELLED): New macro.
7763 (enum SCHED_FLAGS): Add DO_PREDICATION.
7764 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
7765 * sched-rgn.c (concat_INSN_LIST): Remove function.
7766 (deps_join): Handle pending_jump_insns.
7767 (free_pending_lists): Likewise.
7768 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
7769 schedule.
7770
7771 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
7772
7773 PR target/50820
7774 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
7775 (__tablejump__): Consistently use EIND for indirect jump/call.
7776 (__tablejump_elpm__): Ditto.
7777
7778 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7779
7780 * config/c6x/c6x.md (attr "op_pattern"): New.
7781 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
7782 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
7783 Likewise.
7784 * config/c6x/c6x-mult.md: Regenerate.
7785 * config/c6x/c6x.c: Include "regrename.h".
7786 (unit_req_table): New typedef.
7787 (unit_reqs): Use it for the declaration.
7788 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
7789 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
7790 static functions.
7791 (count_unit_reqs): New arg reqs. All callers changed. Use
7792 get_unit_reqs, and don't merge here.
7793 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
7794 using unit_req_factor.
7795 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
7796 count_unit_reqs.
7797 (c6x_reorg): Add reg notes problem, and call df_analyze.
7798 * Makefile.in ($(out_object_file)): Depend on regrename.h.
7799
7800 2011-10-21 Kai Tietz <ktietz@redhat.com>
7801
7802 * fold-const.c (simple_operand_p_2): Handle integral
7803 casts from boolean-operands.
7804
7805 2011-10-21 Jan Hubicka <jh@suse.cz>
7806
7807 * cgraph.c (dump_cgraph_node): Dump alias flag.
7808 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
7809 no destination.
7810 (get_alias_symbol): New function.
7811 (output_weakrefs): Output also weakrefs with no destinatoin.
7812 (lto_output_node): Output weakref alias flag when at function boundary.
7813
7814 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
7815
7816 PR target/50809
7817 * config/arm/driver-arm.c (vendors): Make static.
7818
7819 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
7820
7821 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
7822 (ix86_emit_swsqrtsf): Force a into register.
7823
7824 2011-10-20 Mike Stump <mikestump@comcast.net>
7825
7826 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
7827 after validate_change wipes it out.
7828
7829 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7830
7831 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
7832 before using the shufb instruction.
7833
7834 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
7835
7836 PR target/50766
7837 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
7838 memory operand order.
7839 (bmi2_bzhi_<mode>3): Ditto.
7840 (bmi2_pdep_<mode>3): Ditto.
7841 (bmi2_pext_<mode>3): Ditto.
7842
7843 2011-10-20 Richard Henderson <rth@redhat.com>
7844
7845 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
7846 * optabs.c (can_vec_perm_expr_p): Update to match.
7847 (expand_vec_perm_expr): Likewise.
7848 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
7849 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
7850 * doc/tm.texi.in: Likewise.
7851
7852 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
7853
7854 PR target/50572
7855 * config/i386/i386.c (processor_target_table): Change Atom
7856 align_loops_max_skip to 15.
7857
7858 2011-10-20 Richard Henderson <rth@redhat.com>
7859
7860 * target.def (builtin_vec_perm): Remove.
7861 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7862
7863 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
7864 (IX86_BUILTIN_VEC_PERM_*): Remove.
7865 (bdesc_args): Remove vec_perm builtins
7866 (ix86_expand_builtin): Likewise.
7867 (ix86_expand_vec_perm_const_1): Rename from
7868 ix86_expand_vec_perm_builtin_1.
7869 (extract_vec_perm_cst): Merge into...
7870 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
7871 ix86_vectorize_builtin_vec_perm_ok.
7872 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7873
7874 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
7875 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7876
7877 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
7878 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7879
7880 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
7881
7882 PR target/47989
7883 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
7884 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
7885 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
7886 implements vectorized single float division and vectorized sqrtf(x)
7887 with reciprocal sequence with additional Newton-Raphson step with
7888 -ffast-math.
7889
7890 2011-10-20 Dodji Seketeli <dodji@redhat.com>
7891
7892 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
7893 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
7894 it was done in ggc-page.c.
7895
7896 PR other/50659
7897 * doc/cppopts.texi: Use @smallexample/@end smallexample in
7898 documentation for -fdebug-cpp instead of @quotation/@end quotation
7899 that is not supported by contrib/texi2pod.pl.
7900
7901 2011-10-19 Jan Hubicka <jh@suse.cz>
7902
7903 * ipa-inline.c (inline_small_functions): Always update all calles after
7904 inlining.
7905
7906 2011-10-19 Jan Hubicka <jh@suse.cz>
7907
7908 PR bootstrap/50709
7909 * ipa-inline.c (inline_small_functions): Fix checking code to not make
7910 effect on fibheap stability.
7911
7912 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
7913
7914 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
7915
7916 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7917
7918 PR target/50106
7919 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
7920 reg size from 1-3.
7921
7922 2011-10-20 Richard Guenther <rguenther@suse.de>
7923
7924 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
7925 and rotates to the set of expensive operations.
7926
7927 2011-10-19 David S. Miller <davem@davemloft.net>
7928
7929 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
7930 (sparc_emit_set_const32): Likewise.
7931 (sparc_emit_set_const64_longway): Likewise.
7932 (sparc_emit_set_const64): Likewise.
7933 (sparc_legitimize_pic_address): Likewise.
7934 (memory_ok_for_ldd): Likewise.
7935
7936 2011-10-20 Dehao Chen <dehao@google.com>
7937
7938 * profile.c (compute_branch_probabilities): Compute and dump the
7939 overlap between the static estimation and the instrumentation profile.
7940 (OVERLAP_BASE): New macro.
7941 (compute_frequency_overlap): New function
7942
7943 2011-10-19 Jakub Jelinek <jakub@redhat.com>
7944
7945 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
7946 d->op1 instead of d->op0 for the second vpshufb.
7947 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
7948 (ix86_expand_vec_perm_const): If mask indicates two operands are
7949 needed, but both are the same and expanding them as d.op0 == d.op1
7950 failed, retry with d.op0 != d.op1.
7951 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
7952 also for d.nelt == 32.
7953
7954 PR middle-end/50754
7955 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
7956 VEC_PERM_EXPR.
7957
7958 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
7959
7960 * regrename.h: New file.
7961 * regrename.c: Include it. Also include "emit-rtl.h".
7962 (struct du_head, struct du_chain, du_head_p DEF_VEC and
7963 DEF_VEC_ALLOC_P): Move to regrename.h.
7964 (do_replace): Remove declaration.
7965 (insn_rr): New variable.
7966 (cur_operand): New static variable.
7967 (regrename_chain_from_id): Renamed from chain_from_id and no longer
7968 static. All callers changed.
7969 (record_operand_use): New static function.
7970 (scan_rtx_reg): Use it.
7971 (find_best_rename_reg): New function, broken out of rename_chains.
7972 (rename_chains): Use it. Don't update chain regno and nregs here, ...
7973 (regrename_do_replace): ... do it here instead. Renamed from
7974 do_replace, and no longer static. All callers changed.
7975 (regrename_analyze): No longer static. New arg bb_mask.
7976 All callers changed. If bb_mask is nonzero, use it to limit the
7977 number of basic blocks we analyze. If we failed to analyze a block,
7978 clear insn operand data.
7979 (record_out_operands): New arg insn_info. Update cur_operand if it is
7980 nonnull.
7981 (build_def_use): If insn_rr is nonnull, pass an insn_info to
7982 record_out_operands, and update cur_operand here as well.
7983 (regrename_init, regrename_finish): New functions.
7984 (regrename_optimize): Use them.
7985 * Makefile.in (regrename.o): Adjust dependencies.
7986
7987 2011-10-19 Tom de Vries <tom@codesourcery.com>
7988
7989 PR tree-optimization/50769
7990 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
7991 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
7992 dummy argument .MEM to phi when increasing number of arguments of phi by
7993 redirecting edges to the block with phi.
7994
7995 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7996
7997 PR bootstrap/50777
7998 * configure.ac: Save and restore CXXFLAGS around
7999 gcc_AC_CHECK_DECLS uses.
8000 Check for madvise() declaration with g++ if --enable-build-with-cxx.
8001 * configure: Regenerate.
8002 * config.in: Regenerate.
8003 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
8004
8005 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
8006
8007 PR debug/49310
8008 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
8009 (variable_part): Replace offset with union.
8010 (enum onepart_enum, onepart_enum_t): New.
8011 (variable_def): Drop cur_loc_changed, add onepart.
8012 (value_chain_def, const_value_chain): Remove.
8013 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
8014 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
8015 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
8016 (value_chain_pool, value_chains): Remove.
8017 (dropped_values): New.
8018 (struct parm_reg): Only if HAVE_window_save.
8019 (vt_stack_adjustments): Don't record register arguments.
8020 (dv_as_rtx): New.
8021 (dv_onepart_p): Return a onepart_enum_t.
8022 (onepart_pool): New.
8023 (dv_pool): Remove.
8024 (dv_from_rtx): New.
8025 (variable_htab_free): Release onepart aux data. Reset flags.
8026 (value_chain_htab_hash, value_chain_htab_eq): Remove.
8027 (unshare_variable): Use onepart field. Propagate onepart aux
8028 data or offset. Drop cur_loc_changed.
8029 (val_store): Cope with NULL insn. Rephrase dump output. Check
8030 for unsuitable locs. Add FIXME on using cselib locs.
8031 (val_reset): Remove FIXME of unfounded concerns.
8032 (val_resolve): Check for unsuitable locs. Add FIXME on using
8033 cselib locs.
8034 (variable_union): Use onepart field, adjust access to offset.
8035 (NO_LOC_P): New.
8036 (VALUE_CHANGED, DECL_CHANGED): Update doc.
8037 (set_dv_changed): Clear NO_LOC_P when changed.
8038 (find_loc_in_1pdv): Use onepart field.
8039 (intersect_loc_chains): Likewise.
8040 (unsuitable_loc): New.
8041 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
8042 (add_value_chain, add_value_chains): Remove.
8043 (add_cselib_value_chains, remove_value_chain): Likewise.
8044 (remove_value_chains, remove_cselib_value_chains): Likewise.
8045 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
8046 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
8047 (variable_merge_over_cur): Likewise. Adjust access to offset.
8048 Drop cur_loc_changed.
8049 (variable_merge_over_src): Use onepart field.
8050 (remove_duplicate_values): Likewise.
8051 (variable_post_merge_new_vals): Likewise.
8052 (find_mem_expr_in_1pdv): Likewise.
8053 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
8054 and value chains.
8055 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
8056 (variable_different_p): Use onepart field. Move onepart test out
8057 of the loop.
8058 (argument_reg_set): Drop.
8059 (add_uses, add_stores): Preserve but do not record in dynamic
8060 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
8061 Avoid unsuitable address expressions.
8062 (EXPR_DEPTH): Unlimit.
8063 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
8064 (prepare_call_arguments): Use DECL_RTL_IF_SET.
8065 (dump_var): Adjust access to offset.
8066 (variable_from_dropped, recover_dropped_1paux): New.
8067 (variable_was_changed): Drop cur_loc_changed. Use onepart.
8068 Preserve onepart aux in empty_var. Recover empty_var and onepart
8069 aux from dropped_values.
8070 (find_variable_location_part): Special-case onepart. Adjust
8071 access to offset.
8072 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
8073 access to offset. Initialize onepaux. Drop value chains.
8074 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
8075 (VEC (variable, heap), VEC (rtx, stack)): Define.
8076 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
8077 ignore_cur_loc. Add expanding, pending, depth.
8078 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
8079 (loc_exp_dep_insert, loc_exp_dep_set): New.
8080 (notify_dependents_of_resolved_value): New.
8081 (update_depth, vt_expand_var_loc_chain): New.
8082 (vt_expand_loc_callback): Revamped.
8083 (resolve_expansions_pending_recursion): New.
8084 (INIT_ELCD, FINI_ELCD): New.
8085 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
8086 parameter, adjust all callers.
8087 (vt_expand_loc_dummy): Drop.
8088 (vt_expand_1pvar): New.
8089 (emit_note_insn_var_location): Operate on non-debug decls only.
8090 Revamp multi-part cur_loc recomputation and one-part expansion.
8091 Drop cur_loc_changed. Adjust access to offset.
8092 (VEC (variable, heap)): Drop.
8093 (changed_variables_stack, changed_values_stack): Drop.
8094 (check_changed_vars_0, check_changed_vars_1): Remove.
8095 (check_changed_vars_2, check_changed_vars_3): Remove.
8096 (values_to_stack, remove_value_from_changed_variables): New.
8097 (notify_dependents_of_changed_value, process_changed_values): New.
8098 (emit_notes_for_changes): Revamp onepart updates.
8099 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
8100 and value chains. Propagate onepaux. Recover empty_var and onepaux
8101 from dropped_values.
8102 (emit_notes_for_differences_2): Drop value chains.
8103 (emit_notes_in_bb): Adjust.
8104 (vt_emit_notes): Drop value chains, changed_variables_stack.
8105 Initialize and release dropped_values.
8106 (create_entry_value): Revamp.
8107 (vt_add_function_parameter): Use new interface.
8108 (note_register_arguments): Remove.
8109 (vt_initialize): Drop value chains and register arguments.
8110 (vt_finalize): Drop value chains. Release windowed_parm_regs only
8111 if HAVE_window_save.
8112 * rtl.h: Document various pass-local uses of RTL flags.
8113 * tree.h (DECL_RTL_KNOWN_SET): New.
8114 * doc/invoke.texi (param max-vartrack-expr-depth): Update
8115 description and default.
8116
8117 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
8118
8119 PR target/50447
8120 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
8121 (adjust_len): Ditto.
8122 (addhi3): Don't pipe through short; use gen_int_mode instead.
8123 Prior to reload, expand to gen_addhi3_clobber.
8124 (*addhi3): Use avr_out_plus_noclobber if applicable, use
8125 out_plus_noclobber in cc and adjust_len attribute.
8126 (addhi3_clobber): 2 new RTL peepholes.
8127 (addhi3_clobber): New insn.
8128 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
8129 * config/avr/avr.c (avr_out_plus_noclobber): New function.
8130 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
8131 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
8132 Set cc0 to set_zn for adiw on 16-bit values.
8133 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
8134 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
8135
8136 2011-10-19 Richard Guenther <rguenther@suse.de>
8137
8138 PR middle-end/50780
8139 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
8140 the condition is properly gimple before using it.
8141 * tree-eh (stmt_could_throw_1_p): Properly extract the
8142 operation type from comparisons.
8143
8144 2011-10-19 Roland Stigge <stigge@antcom.de>
8145
8146 PR translation/48638
8147 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
8148
8149 2011-10-19 Roland Stigge <stigge@antcom.de>
8150
8151 PR translation/49517
8152 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
8153
8154 2011-10-19 Richard Guenther <rguenther@suse.de>
8155
8156 PR middle-end/50768
8157 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
8158
8159 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
8160
8161 PR rtl-optimization/50340
8162 * sel-sched-ir.c (update_target_availability): LHS register
8163 availability is not known if the unavailable LHS of the other
8164 expression is a different register.
8165
8166 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8167
8168 PR target/50310
8169 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
8170 floating-point comparisons.
8171
8172 2011-10-19 Jan Hubicka <jh@suse.cz>
8173
8174 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
8175 destination declared.
8176 (output_weakrefs): New function.
8177 * varpool.c (varpool_create_variable_alias): Handle external aliases.
8178
8179 2011-10-19 Jakub Jelinek <jakub@redhat.com>
8180
8181 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
8182 second argument instead of mode.
8183
8184 2011-10-18 Jakub Jelinek <jakub@redhat.com>
8185
8186 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
8187 mode SUBREG of operands[0] as target.
8188 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
8189 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
8190 (expand_vec_perm_1): Handle identity and some broadcast
8191 permutations.
8192 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
8193 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
8194 For d->testing_p return true earlier to avoid creating more GC
8195 garbage.
8196 (expand_vec_perm_vpermq_perm_1): New function.
8197 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
8198 earlier to avoid creating more GC garbage. Fix handling of
8199 V16HImode. Avoid some SUBREGs in SET_DEST.
8200 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
8201 vector modes.
8202 (expand_vec_perm_vpshufb4_vpermq2): New function.
8203 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
8204 and expand_vec_perm_vpshufb4_vpermq2.
8205
8206 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8207
8208 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
8209 before exiting.
8210
8211 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8212
8213 PR tree-optimization/50717
8214 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
8215 parameter. Calculate 'type' from stmt.
8216 (convert_mult_to_widen): Update call the is_widening_mult_p.
8217 (convert_plusminus_to_widen): Likewise.
8218
8219 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8220
8221 * config/spu/spu.c (struct machine_function): New data structure.
8222 (spu_init_machine_status): New function.
8223 (spu_option_override): Install it.
8224 (get_pic_reg): Set and use cfun->machine->pic_reg.
8225 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
8226 (need_to_save_reg): Use cfun->machine->pic_reg instead of
8227 checking crtl->uses_pic_offset_table.
8228 (spu_expand_prologue): Likewise.
8229
8230 2011-10-18 Jakub Jelinek <jakub@redhat.com>
8231
8232 PR tree-optimization/50735
8233 * function.c (gimplify_parameters): Use create_tmp_var instead of
8234 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
8235 or vector type, set DECL_GIMPLE_REG_P.
8236
8237 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8238
8239 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
8240 * config/arm/arm.opt: Add 'native' processor_type and
8241 arm_arch enum values.
8242 * config/arm/arm.h (host_detect_local_cpu): New prototype.
8243 (EXTRA_SPEC_FUNCTIONS): New define.
8244 (MCPU_MTUNE_NATIVE_SPECS): New define.
8245 (DRIVER_SELF_SPECS): New define.
8246 * config/arm/driver-arm.c: New file.
8247 * config/arm/x-arm: New file.
8248 * doc/invoke.texi (ARM Options): Document -mcpu=native,
8249 -mtune=native and -march=native.
8250
8251 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
8252
8253 PR rtl-optimization/50205
8254 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
8255 p->x is a register. Forbid substitution when the same register is
8256 found in a different mode.
8257 (count_occurrences_equiv): Assert that 'what' is a register.
8258
8259 2011-10-18 Richard Guenther <rguenther@suse.de>
8260
8261 PR tree-optimization/50767
8262 * tree-ssa-pre.c (create_expression_by_pieces): Update the
8263 folded statement.
8264
8265 2011-10-18 Julian Brown <julian@codesourcery.com>
8266
8267 * config/arm/arm.c (arm_block_move_unaligned_straight)
8268 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
8269 (arm_movmemqi_unaligned): New.
8270 (arm_gen_movmemqi): Support unaligned block copies.
8271
8272 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
8273
8274 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
8275 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
8276 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
8277 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8278 (op_code_prio): Likewise.
8279 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
8280 * optabs.c (optab_for_tree_code): Handle
8281 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8282 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
8283 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
8284 * genopinit.c (optabs): Initialize the new optabs.
8285 * expr.c (expand_expr_real_2): Handle
8286 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8287 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
8288 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
8289 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
8290 VEC_WIDEN_LSHIFT_LO_EXPR): New.
8291 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
8292 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
8293 vect_recog_widen_shift_pattern.
8294 (vect_handle_widen_mult_by_const): Rename...
8295 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
8296 Add a new argument, update documentation.
8297 (vect_recog_widen_mult_pattern): Assume that only second
8298 operand can be constant. Update call to
8299 vect_handle_widen_op_by_const.
8300 (vect_recog_over_widening_pattern): Fix typo.
8301 (vect_recog_widen_shift_pattern): New.
8302 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
8303 widening shifts.
8304 (supportable_widening_operation): Likewise.
8305 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
8306 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8307 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
8308 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
8309 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
8310 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
8311 Likewise.
8312 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
8313 New.
8314 * config/arm/iterators.md (V_innermode): New.
8315 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
8316 for widening shift.
8317
8318 2011-10-18 Richard Guenther <rguenther@suse.de>
8319
8320 * tree-ssa-alias.h (struct pt_solution): Remove
8321 vars_contains_restrict member.
8322 (pt_solutions_same_restrict_base): Remove.
8323 (pt_solution_set): Adjust.
8324 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
8325 vars_contains_restrict handling.
8326 (dump_points_to_solution): Likewise.
8327 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
8328 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
8329 field.
8330 (new_var_info): Do not initialize it.
8331 (ipa_escaped_pt): Adjust.
8332 (make_constraint_from_restrict): Make the tag global.
8333 (make_constraint_from_global_restrict): New function.
8334 (make_constraint_from_heapvar): Remove.
8335 (create_variable_info_for): Do not make restrict vars point
8336 to NONLOCAL.
8337 (intra_create_variable_infos): Likewise.
8338 (find_what_var_points_to): Remove vars_contains_restrict handling.
8339 (pt_solution_set): Adjust.
8340 (pt_solution_ior_into): Likewise.
8341 (pt_solutions_same_restrict_base): Remove.
8342 (compute_points_to_sets): Do not test is_restrict_var.
8343 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
8344 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8345
8346 2011-10-18 Tom de Vries <tom@codesourcery.com>
8347
8348 PR tree-optimization/50672
8349 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
8350 factored out of ...
8351 (mark_virtual_phi_result_for_renaming): Use
8352 mark_virtual_operand_for_renaming.
8353 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
8354 * tree-ssa-tail-merge.c (release_last_vdef): New function.
8355 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
8356 deleted basic block.
8357 (tail_merge_optimize): Add argument to call to purge_bbs.
8358
8359 2011-10-18 Richard Guenther <rguenther@suse.de>
8360
8361 PR middle-end/50716
8362 * expr.c (get_object_or_type_alignment): New function.
8363 (expand_assignment): Use it.
8364 (expand_expr_real_1): Likewise.
8365
8366 2011-10-18 Dodji Seketeli <dodji@redhat.com>
8367
8368 PR bootstrap/50760
8369 * input.c (dump_line_table_statistics): Use long, not size_t.
8370
8371 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
8372
8373 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
8374
8375 2011-10-17 Simon Baldwin <simonb@google.com>
8376 Ian Lance Taylor <iant@google.com>
8377
8378 * configure.ac: Add --with-native-system-header-dir. Set and
8379 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
8380 when setting target_header_dir.
8381 * config.gcc: Always set native_system_header_dir.
8382 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
8383 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
8384 use i386/t-djgpp.
8385 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
8386 native_system_header_dir.
8387 (spu-*-elf*): Set native_system_header_dir.
8388 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
8389 @NATIVE_SYSTEM_HEADER_DIR@.
8390 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
8391 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
8392 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
8393 STANDARD_INCLUDE_COMPONENT.
8394 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
8395 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
8396 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
8397 STANDARD_INCLUDE_COMPONENT.
8398 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
8399 * config/i386/t-mingw-w32: Likewise.
8400 * config/i386/t-mingw-w64: Likewise.
8401 * config/spu/t-spu-elf: Likewise.
8402 * config/i386/t-djgpp: Remove.
8403 * config/t-gnu: Remove.
8404 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
8405 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
8406 STANDARD_INCLUDE_COMPONENT.
8407 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
8408 * config/spu/spu-elf.h: Likewise.
8409 * config/vms/xm-vms.h: Likewise.
8410 * config/gnu.h: Likewise.
8411 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
8412 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
8413 NATIVE_SYSTME_HEADER_COMPONENT.
8414 * doc/install.texi (Configuration): Document
8415 --with-native-system-header-dir. Mention it in the documentation
8416 for --with-sysroot and --with-build-sysroot.
8417 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
8418 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
8419 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
8420 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
8421 * doc/fragments.texi (Target Fragment): Don't document
8422 NATIVE_SYSTEM_HEADER_DIR.
8423 * configure, doc/tm.texi: Rebuild.
8424
8425 2011-10-17 Richard Henderson <rth@redhat.com>
8426
8427 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
8428 is the constraint.
8429
8430 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
8431 patterns.
8432 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
8433 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
8434
8435 2011-10-17 David S. Miller <davem@davemloft.net>
8436
8437 * config/sparc/sparc-modes.def: Add single entry vector modes for
8438 DImode and SImode.
8439 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
8440 mode iterators.
8441 (mov<V32:mode>): Revert back to plain SFmode pattern.
8442 (*movsf_insn): Likewise.
8443 (mov<V64:mode>): Revert back to plain DFmode pattern.
8444 (*movdf_insn_sp32): Likewise.
8445 (*movdf_insn_sp32_v9): Likewise.
8446 (*movdf_insn_sp64): Likewise.
8447 (V64 mode splitters) Likewise.
8448 (addsi3): Remove VIS alternatives.
8449 (subsi3): Likewise.
8450 (and<V64I:mode>3): Revert to DImode only pattern.
8451 (and<V64I:mode>3_sp32): Likewise.
8452 (*and<V64I:mode>3_sp64): Likewise.
8453 (and<V32I:mode>3): Likewise.
8454 (*and_not_<V64I:mode>_sp32): Likewise.
8455 (*and_not_<V64I:mode>_sp64): Likewise.
8456 (*and_not_<V32I:mode>): Likewise.
8457 (ior<V64I:mode>3): Likewise.
8458 (*ior<V64I:mode>3_sp32): Likewise.
8459 (*ior<V64I:mode>3_sp64): Likewise.
8460 (ior<V32I:mode>3): Likewise.
8461 (*or_not_<V64I:mode>_sp32): Likewise.
8462 (*or_not_<V64I:mode>_sp64): Likewise.
8463 (*or_not_<V32I:mode>): Likewise.
8464 (xor<V64I:mode>3): Likewise.
8465 (*xor<V64I:mode>3_sp32): Likewise.
8466 (*xor<V64I:mode>3_sp64): Likewise.
8467 (xor<V32I:mode>3): Likewise.
8468 (V64I mode splitters): Likewise.
8469 (*xor_not_<V64I:mode>_sp32): Likewise.
8470 (*xor_not_<V64I:mode>_sp64): Likewise.
8471 (*xor_not_<V32I:mode>): Likewise.
8472 (one_cmpl<V64I:mode>2): Likewise.
8473 (*one_cmpl<V64I:mode>2_sp32): Likewise.
8474 (*one_cmpl<V64I:mode>2_sp64): Likewise.
8475 (one_cmpl<V32I:mode>2): Likewise.
8476 (VM32, VM64, VMALL): New mode iterators.
8477 (vbits, vconstr, vfptype): New mode attributes.
8478 (mov<VMALL:mode>): New expander.
8479 (*mov<VM32:mode>_insn): New insn.
8480 (*mov<VM64:mode>_insn_sp64): New insn.
8481 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
8482 specifically for the register to memory case.
8483 (vec_init<mode>): New expander.
8484 (VADDSUB): New mode iterator.
8485 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
8486 with...
8487 (<plusminus_insn><mode>3): New consolidated pattern.
8488 (VL): New mode iterator for logical operations.
8489 (vlsuf): New more attribute.
8490 (vlop): New code iterator.
8491 (vlinsn, vlninsn): New code attributes.
8492 (<code><mode>3): New insn to non-negated vector logical ops.
8493 (*not_<code><mode>3): Likewise for negated variants.
8494 (*nand<mode>_vis): New insn.
8495 (vlnotop): New code iterator.
8496 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
8497 (one_cmpl<mode>2): New insn.
8498 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
8499 (bshuffle<VM64:mode>_vis): Likewise.
8500 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
8501 (fp<plusminus_insn>64_vis): Use V1DI mode.
8502 (VASS mode iterator): Use V1SI not SI mode.
8503 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
8504 single-entry vector mode changes.
8505 (sparc_expand_builtin): Likewise.
8506 (sparc_expand_vector_init): New function.
8507 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
8508
8509 2011-10-17 Kai Tietz <ktietz@redhat.com>
8510
8511 * fold-const.c (simple_operand_p_2): New function.
8512 (fold_truthop): Rename to
8513 (fold_truth_andor_1): function name.
8514 Additionally remove branching creation for logical and/or.
8515 (fold_truth_andor): Handle branching creation for logical and/or here.
8516
8517 2011-10-17 Andi Kleen <ak@linux.intel.com>
8518
8519 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
8520
8521 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
8522
8523 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
8524 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
8525 (adjust_len): Add alternative "call".
8526 (isa, enabled): New insn attributes.
8527 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
8528 mcu_mega attribute.
8529 (*sbrx_branch<mode>): Ditto.
8530 (*sbrx_and_branch<mode>): Ditto.
8531 (*sbix_branch): Ditto.
8532 (*sbix_branch_bit7): Ditto.
8533 (*sbix_branch_tmp): Ditto.
8534 (*sbix_branch_tmp_bit7): Ditto.
8535 (jump): Ditto.
8536 (negsi2): Use attribute "isa" instead of assembler dialect.
8537 (extendhisi2): Ditto.
8538 (call_insn, call_value_insn): Set adjust_len attribute.
8539 (indirect_jump): Indent to coding rules.
8540 (call_prologue_saves): Use isa attribute instead of mcu_mega.
8541 (epilogue_restores): Ditto. Fix setting of SP as described in the
8542 RTX pattern.
8543 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
8544 and *indirect_jump_avr6.
8545 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
8546 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
8547 (*tablejump_rjmp, *tablejump_lib): Remove.
8548 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
8549
8550 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
8551
8552 PR c++/50757
8553 * doc/invoke.texi ([Wnonnull]): Update.
8554
8555 2011-10-17 Richard Henderson <rth@redhat.com>
8556
8557 PR 50746
8558 * optabs.c (expand_vec_perm_expr): Fix indexing error.
8559
8560 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
8561
8562 * configure.ac: Display `yes' if the SystemTap header has been found.
8563 * configure: Regenerate.
8564
8565 2011-10-08 Andi Kleen <ak@linux.intel.com>
8566
8567 PR other/50636
8568 * config.in, configure: Regenerate.
8569 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
8570 * ggc-page.c (USING_MADVISE): Add.
8571 (page_entry): Add discarded field.
8572 (alloc_page): Check for discarded pages.
8573 (release_pages): Add USING_MADVISE branch.
8574
8575 2011-10-17 Richard Guenther <rguenther@suse.de>
8576
8577 PR tree-optimization/50729
8578 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
8579 (simplify_conversion_using_ranges): Properly test the
8580 intermediate result.
8581
8582 2011-10-15 Tom Tromey <tromey@redhat.com>
8583 Dodji Seketeli <dodji@redhat.com>
8584
8585 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
8586 * ggc-none.c (ggc_round_alloc_size): New public stub function.
8587 * ggc-page.c (ggc_alloced_size_order_for_request): New static
8588 function. Factorized from ggc_internal_alloc_stat.
8589 (ggc_round_alloc_size): New public function. Uses
8590 ggc_alloced_size_order_for_request.
8591 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
8592 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
8593 from ggc_internal_alloc_zone_stat.
8594 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
8595 * toplev.c (general_init): Initialize
8596 line_table->alloced_size_for_request.
8597
8598 2011-10-15 Tom Tromey <tromey@redhat.com>
8599 Dodji Seketeli <dodji@redhat.com>
8600
8601 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
8602 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
8603 new counters.
8604 (dump_line_table_statistics): Define new function.
8605 * input.h (dump_line_table_statistics): Declare new function.
8606 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
8607
8608 2011-10-15 Tom Tromey <tromey@redhat.com>
8609 Dodji Seketeli <dodji@redhat.com>
8610
8611 * doc/cppopts.texi: Document -fdebug-cpp.
8612 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
8613
8614 2011-10-15 Tom Tromey <tromey@redhat.com>
8615 Dodji Seketeli <dodji@redhat.com>
8616
8617 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
8618 location parameter.
8619 * diagnostic.c (diagnostic_report_current_module): Add a location
8620 parameter to the function definition. Use it instead of
8621 input_location. Resolve the virtual location rather than just
8622 looking up its map and risking to touch a resulting macro map.
8623 (default_diagnostic_starter): Pass the relevant diagnostic
8624 location to diagnostic_report_current_module.
8625 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
8626 (virt_loc_aware_diagnostic_finalizer): Likewise.
8627 (diagnostic_report_current_function): Pass the
8628 relevant location to diagnostic_report_current_module.
8629 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
8630 new function.
8631 * toplev.c (general_init): By default, use the new
8632 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
8633 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
8634
8635 2011-10-15 Tom Tromey <tromey@redhat.com>
8636 Dodji Seketeli <dodji@redhat.com>
8637
8638 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
8639 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
8640 preprocessor related options.
8641
8642 2011-10-15 Tom Tromey <tromey@redhat>
8643 Dodji Seketeli <dodji@redhat.com>
8644
8645 * input.h (struct expanded_location): Move to libcpp/line-map.h.
8646 (LOCATION_COLUMN): New accessor
8647 (in_system_header_at): Use linemap_location_in_system_header_p.
8648 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
8649 touching the internals of struct line_map. Use the public API instead.
8650 (diagnostic_report_diagnostic): Don't use relational operator '<'
8651 on virtual locations. Use linemap_location_before_p instead.
8652 * input.c (expand_location): Adjust to expand to the tokens'
8653 spelling location when macro location tracking is on.
8654
8655
8656 2011-10-08 Andi Kleen <ak@linux.intel.com>
8657
8658 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
8659
8660 2011-10-13 Andi Kleen <ak@linux.intel.com>
8661
8662 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
8663
8664 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
8665
8666 PR tree-optimization/50727
8667 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
8668 DEF_STMT to the list of statements to be replaced by the
8669 pattern statements.
8670
8671 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
8672
8673 PR rtl-optimization/50615
8674 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
8675
8676 2011-10-16 Jakub Jelinek <jakub@redhat.com>
8677
8678 PR tree-optimization/50596
8679 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
8680 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
8681 vect_recog_bool_pattern.
8682 (check_bool_pattern, adjust_bool_pattern_cast,
8683 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
8684
8685 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
8686
8687 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
8688 treat the first load of the node as the first element in its
8689 interleaving chain.
8690 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
8691 necessary and possible.
8692 (vect_build_slp_tree): Add new argument. Allow load groups of any size
8693 in basic blocks. Keep all the loads for further permutation check.
8694 Use the new argument to determine if there is a permutation. Update
8695 the recursive calls.
8696 (vect_supported_load_permutation_p): Allow subchains of interleaving
8697 chains in basic block vectorization.
8698 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
8699 Check load permutation based on the new parameter.
8700 (vect_schedule_slp_instance): Don't start from the first element in
8701 interleaving chain unless the loads are permuted.
8702
8703 2011-10-15 Jan Hubicka <jh@suse.cz>
8704
8705 PR target/48668
8706 PR target/50689
8707 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
8708 after function body.
8709
8710 2011-10-15 Richard Henderson <rth@redhat.com>
8711
8712 * tree-vect-slp.c: Include langhooks.h.
8713 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
8714 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
8715 mask creation for VEC_PERM_EXPR.
8716 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
8717 not the builtin.
8718 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
8719 * Makefile.in (tree-vect-slp.o): Update dependency.
8720 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
8721
8722 2011-10-15 Alan Modra <amodra@gmail.com>
8723
8724 PR bootstrap/50738
8725 * ifcvt.c (dead_or_predicable): Revert accidental commit with
8726 HAVE_simple_return test.
8727
8728 2011-10-15 Alan Modra <amodra@gmail.com>
8729
8730 * ifcvt.c (dead_or_predicable): Disable if-conversion when
8731 doing so is likely to kill a shrink-wrapping opportunity.
8732
8733 PR rtl-optimization/49941
8734 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
8735
8736 * rtl.h (set_return_jump_label): Declare.
8737 * function.c (set_return_jump_label): New function, extracted..
8738 (thread_prologue_and_epilogue_insns): ..from here. Use it in
8739 another instance to set return jump_label.
8740 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
8741 * reorg.c (find_end_label): Likewise.
8742
8743 2011-10-14 David S. Miller <davem@davemloft.net>
8744
8745 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
8746 with a more complete cpp test.
8747 * config/sparc/linux64.h: Likewise.
8748 * config/sparc/linux.h: Likewise.
8749 * config/sparc/sparc.opt (sparc_debug): New target variable.
8750 (mdebug): New target option.
8751 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
8752 TARGET_DEBUG_OPTIONS): New defines.
8753 * config/sparc/sparc.c (debug_target_flag_bits,
8754 debug_target_flags): New functions.
8755 (sparc_option_override): Add name strings back to cpu_table[].
8756 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
8757 out the target flags before and after override processing as well
8758 as the selected cpu. If MASK_V8PLUS, make sure that the selected
8759 cpu is at least v9.
8760
8761 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
8762
8763 PR target/49263
8764 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
8765 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
8766 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
8767 and instruction commutative.
8768 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
8769 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
8770 tstsi_t_zero_extract_subreg_xor_little,
8771 tstsi_t_zero_extract_subreg_xor_big): New insns.
8772 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
8773 asm output.
8774 (*andsi_compact): Reorder alternatives so that K08 is considered first.
8775
8776 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
8777
8778 PR target/50354
8779 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
8780 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
8781
8782 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
8783
8784 * invoke.texi (AVR Options): Avoid \leq{}.
8785
8786 2011-10-14 Kai Tietz <ktietz@redhat.com>
8787
8788 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
8789 transformation the operands have compatible types.
8790
8791 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8792
8793 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
8794 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
8795 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
8796 mode iterator and any_extend code iterator.
8797 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
8798 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
8799 also for TARGET_SSE4_1 using pmuldq insn.
8800 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
8801 (sse2_sse4_1): New code attr.
8802 (udot_prodv4si): Macroize using any_extend code iterator.
8803 (<s>dot_prodv8si): New expander.
8804
8805 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
8806
8807 * config/i386/i386.c (atom_cost): Changed cost for loading
8808 QImode using movzbl.
8809
8810 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8811
8812 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
8813 change on October 11th, 2011.
8814
8815 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8816
8817 * config/i386/sse.md (vec_interleave_high<mode>,
8818 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
8819 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
8820 (ix86_expand_vec_perm_builtin_1): Call it.
8821
8822 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
8823
8824 Fix thinko from r179765
8825 * config/avr/avr.c (avr_option_override): Don't override
8826 flag_omit_frame_pointer if not actually needed.
8827
8828 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
8829
8830 PR target/46278
8831 * doc/invoke.texi (AVR Options): Document -mstrict-X.
8832
8833 * config/avr/avr.opt (-mstrict-X): New option.
8834 (avr_strict_X): New variable reflecting -mstrict-X.
8835 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
8836 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
8837 (avr_legitimate_address_p): Pass outer_code to
8838 avr_reg_ok_for_addr_p and use that function in case PLUS.
8839 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
8840 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
8841 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
8842
8843 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8844
8845 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
8846 of VI_128.
8847
8848 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
8849 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
8850 Use <sseinsnmode> instead of TI in mode attr.
8851
8852 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8853
8854 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
8855 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
8856 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
8857 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
8858
8859 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8860
8861 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
8862 (arm_output_strex): Support strexd.
8863 (arm_output_it): New helper to output it in Thumb2 mode only.
8864 (arm_output_sync_loop): Support DI mode. Change comment to
8865 not support const_int.
8866 (arm_expand_sync): Support DI mode.
8867 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
8868 and LDREXD.
8869 * config/arm/iterators.md (NARROW): move from sync.md.
8870 (QHSD): New iterator for all current ARM integer modes.
8871 (SIDI): New iterator for SI and DI modes only.
8872 * config/arm/sync.md (sync_predtab): New mode_attr.
8873 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
8874 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
8875 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
8876 (sync_nandsi): Fold into sync_nand<mode>.
8877 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
8878 (sync_new_nandsi): Fold into sync_new_nand<mode>.
8879 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
8880 (sync_old_nandsi): Fold into sync_old_nand<mode>.
8881 (sync_compare_and_swap<mode>): Support SI & DI.
8882 (sync_lock_test_and_set<mode>): Likewise.
8883 (sync_<sync_optab><mode>): Likewise.
8884 (sync_nand<mode>): Likewise.
8885 (sync_new_<sync_optab><mode>): Likewise.
8886 (sync_new_nand<mode>): Likewise.
8887 (sync_old_<sync_optab><mode>): Likewise.
8888 (sync_old_nand<mode>): Likewise.
8889 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
8890 (arm_sync_lock_test_and_setsi): Likewise.
8891 (arm_sync_new_<sync_optab>si): Likewise.
8892 (arm_sync_new_nandsi): Likewise.
8893 (arm_sync_old_<sync_optab>si): Likewise.
8894 (arm_sync_old_nandsi): Likewise.
8895 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
8896 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
8897 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
8898 (arm_sync_new_nand<mode> NARROW): Likewise.
8899 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
8900 (arm_sync_old_nand<mode> NARROW): Likewise.
8901
8902 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8903
8904 PR target/48126
8905 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
8906
8907 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8908
8909 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
8910
8911 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8912
8913 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
8914
8915 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8916
8917 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
8918 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
8919
8920 2011-10-14 Richard Guenther <rguenther@suse.de>
8921
8922 PR tree-optimization/50723
8923 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
8924
8925 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
8926
8927 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
8928 objc/objc-map.c.
8929
8930 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8931
8932 PR c++/17212
8933 * doc/invoke.texi ([Wformat-zero-length]): Update.
8934
8935 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
8936
8937 PR bootstrap/50699
8938 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
8939 build for powerpc targets. (darwin_patch_builtins): Only build for
8940 powerpc targets.
8941
8942 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8943
8944 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
8945 (avx_cvtdq2pd256_2): ... this.
8946 (sseunpackfltmode): New mode attr.
8947 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
8948 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
8949 using VI2_AVX2 iterator.
8950 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
8951
8952 2011-10-13 David S. Miller <davem@davemloft.net>
8953
8954 * config/sparc/sparc.md (plusminus): New code iterator.
8955 (plusminus_insn): New code attr.
8956 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
8957 using plusminus and plusminus_insn.
8958 (fpadd64_vis, fpsub64_vis): Likewise.
8959
8960 2011-10-13 Richard Henderson <rth@redhat.com>
8961
8962 * doc/md.texi (vec_perm): Document fallback to byte permutation.
8963 * genopinit.c (optabs): Add vec_perm_const.
8964 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
8965 Reject non-vector modes. Allow fallback to byte permutation.
8966 (expand_vec_perm_expr_1): Split out from ...
8967 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
8968 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
8969 * tree-vect-generic.c (lower_vec_perm): Update for name change.
8970
8971 2011-10-13 Richard Henderson <rth@redhat.com>
8972
8973 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
8974
8975 * config/rs6000/spu.md (vec_permv16qi): New pattern.
8976
8977 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
8978 * config/i386/i386-protos.h: Update.
8979 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
8980 (vec_perm_const<VEC_PERM_CONST>): New expander.
8981
8982 * optabs.c (expand_vector_broadcast): New.
8983 (expand_binop): Expand scalar shifts of vectors to vector shifts
8984 of vectors, if the former isn't supported.
8985 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
8986 here; always simplify to scalar shift of vector if possible.
8987
8988 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
8989 test for vector splat.
8990
8991 2011-10-13 Jakub Jelinek <jakub@redhat.com>
8992
8993 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
8994
8995 2011-10-13 Jakub Jelinek <jakub@redhat.com>
8996 Richard Guenther <rguenther@suse.de>
8997
8998 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
8999 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
9000
9001 2011-10-13 Jakub Jelinek <jakub@redhat.com>
9002
9003 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
9004 * config/i386/i386.c (ix86_build_const_vector): Handle
9005 also V32QI, V16QI, V16HI and V8HI modes.
9006 (emit_reduc_half): New function.
9007 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
9008 Use emit_reduc_half helper function.
9009
9010 2011-10-13 Lawrence Crowl <crowl@google.com>
9011 Diego Novillo <dnovillo@google.com>
9012
9013 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
9014 (input_function): ... here.
9015 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
9016 (output_function): ... here.
9017
9018 2011-10-13 Gabriel Charette <gchare@google.com>
9019 Diego Novillo <dnovillo@google.com>
9020
9021 * streamer-hooks.h (struct streamer_hooks): Add hooks
9022 input_location and output_location.
9023 * lto-streamer-in.c (lto_input_location): Use
9024 streamer_hooks.input_location, if set.
9025 * lto-streamer-out.c (lto_output_location): Use
9026 streamer_hooks.output_location, if set.
9027
9028 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
9029
9030 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
9031 * config/sparc/sparc.opt (mfix-at697f): New option.
9032 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
9033 (sparc_reorg): New function.
9034
9035 2011-10-13 Richard Guenther <rguenther@suse.de>
9036
9037 PR tree-optimization/50712
9038 * ipa-split.c (split_function): Always re-gimplify parameters
9039 when they are not gimple vals before passing them. Properly
9040 check for type compatibility.
9041
9042 2011-10-13 Tom de Vries <tom@codesourcery.com>
9043
9044 * function.c (gimplify_parameters): Set number of arguments of call to
9045 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
9046
9047 2011-10-13 Tom de Vries <tom@codesourcery.com>
9048
9049 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
9050 for static const strings.
9051 * varasm.c (build_constant_desc): Generate the memory location of the
9052 constant using gen_const_mem.
9053
9054 2011-10-13 Richard Guenther <rguenther@suse.de>
9055
9056 PR tree-optimization/50698
9057 * tree-data-ref.c (split_constant_offset_1): Also process
9058 offsets of &MEM.
9059
9060 2011-10-12 David S. Miller <davem@davemloft.net>
9061
9062 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
9063 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
9064 unspecs.
9065 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
9066 of a vec_concat.
9067 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
9068 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
9069 Reimplement as unspecs and remove inaccurate comments.
9070 (vis3_shift_patname): New code attr.
9071 (<vis3_shift_insn><vbits>_vis): Rename to
9072 "v<vis3_shift_patname><mode>3".
9073 (vis3_addsub_ss_patname): New code attr.
9074 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
9075 "<vis3_addsub_ss_patname><mode>3".
9076 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
9077 accommodate pattern name changes.
9078
9079 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
9080 to zero when assembler lacks support for such instructions.
9081 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
9082 and MASK_FMAF in defaults when assembler lacks necessary support.
9083
9084 2011-10-12 Jakub Jelinek <jakub@redhat.com>
9085
9086 * config/i386/sse.md (vec_unpacks_lo_<mode>,
9087 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
9088 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
9089 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
9090 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
9091
9092 * config/i386/sse.md (vec_avx2): New mode_attr.
9093 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
9094 (mul<mode>3): ... this.
9095
9096 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
9097 * config/i386/i386.c (ix86_expand_vec_perm): Handle
9098 V16QImode and V32QImode for TARGET_AVX2.
9099 (MAX_VECT_LEN): Increase to 32.
9100 (expand_vec_perm_blend): Add support for 32-byte integer
9101 vectors with TARGET_AVX2.
9102 (valid_perm_using_mode_p): New function.
9103 (expand_vec_perm_pshufb): Add support for 32-byte integer
9104 vectors with TARGET_AVX2.
9105 (expand_vec_perm_vpshufb2_vpermq): New function.
9106 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
9107 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
9108 with TARGET_AVX2.
9109 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
9110 and expand_vec_perm_vpshufb2_vpermq_even_odd.
9111 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
9112 32-byte integer vector modes.
9113 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
9114 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
9115 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
9116 4 new operands.
9117 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
9118 match_dup, instead add 4 new operands and require they have
9119 right cross-lane values.
9120 (avx2_permv4di): Change into define_expand.
9121 (avx2_permv4di_1): New instruction.
9122 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
9123 for "xm" constrained operand.
9124 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
9125
9126 * config/i386/sse.md (avx2_gathersi<mode>,
9127 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
9128 match_scratch, change memory_operand to register_operand,
9129 add (mem:BLK (scratch)) use.
9130 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
9131 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
9132 add earlyclobber to the output operand and match_scratch,
9133 add (mem:BLK (scratch)) use, change the other mem to match_operand.
9134 Use %p6 instead of %c6 in the pattern.
9135 * config/i386/i386.c (ix86_expand_builtin): Adjust for
9136 operand 2 being a Pmode register_operand instead of memory_operand.
9137
9138 2011-10-12 Kai Tietz <ktietz@redhat.com>
9139
9140 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
9141
9142 2011-10-12 Steve Ellcey <sje@cup.hp.com>
9143
9144 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
9145
9146 2011-10-12 Richard Guenther <rguenther@suse.de>
9147
9148 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
9149 of the first store we visit in a basic-block.
9150 (get_continuation_for_phi): Search for a candidate VUSE that
9151 might dominates all others. Do pairwise disambiguation against
9152 that candidate.
9153
9154 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
9155
9156 PR tree-optimization/50189
9157 * tree-vrp.c (extract_range_from_assert): Use the type of
9158 the variable, not the limit.
9159
9160 2011-10-12 Richard Guenther <rguenther@suse.de>
9161
9162 PR tree-optimization/50700
9163 * tree-object-size.c (addr_object_size): Simplify and treat
9164 MEM_REF bases consistently.
9165
9166 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
9167
9168 * function.c (prepare_shrink_wrap, bb_active_p): New function.
9169 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
9170 prepare_shrink_wrap, then recompute bb_active_p for the last block.
9171
9172 2011-10-12 Joseph Myers <joseph@codesourcery.com>
9173
9174 PR c/50565
9175 * convert.c (convert_to_integer): Do not narrow operands of
9176 pointer subtraction.
9177
9178 2011-10-12 Nick Clifton <nickc@redhat.com>
9179
9180 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
9181 emit a .eabi_attribute assembler directive, possibly with a
9182 comment attached.
9183 * config/arm/arm.c (arm_file_start): Use the new macro.
9184 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
9185
9186 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
9187
9188 PR target/49939
9189 * config/avr/avr.md (*movqi): Rename to movqi_insn.
9190 (*call_insn): Rename to call_insn.
9191 (*call_value_insn): Rename to call_value_insn.
9192 * config/avr/avr.c (avr_2word_insn_p): New static function.
9193 (jump_over_one_insn_p): Use it.
9194
9195 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
9196
9197 PR middle-end/48660
9198 * expr.h (copy_blkmode_to_reg): Declare.
9199 * expr.c (copy_blkmode_to_reg): New function.
9200 (expand_assignment): Don't expand register RESULT_DECLs before
9201 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
9202 RESULT_DECL register.
9203 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
9204 * stmt.c (expand_return): Move BLKmode-to-register code into
9205 copy_blkmode_to_reg.
9206
9207 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
9208
9209 PR target/49965
9210 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
9211 (mov<F:mode>cc): Likewise.
9212
9213 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9214
9215 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
9216
9217 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9218
9219 * tree.h (built_in_decls): Delete old interface with two parallel
9220 arrays to hold standard builtin declarations, and replace it with
9221 a function based interface that can support creating builtins on
9222 the fly in the future. Change all uses, and poison the old
9223 names. Make sure 0 is not a legitimate builtin index.
9224 (implicit_built_in_decls): Ditto.
9225 (built_in_info): Ditto.
9226 (BUILTIN_VALID_P): Ditto.
9227 (builtin_decl_explicit): Ditto.
9228 (builtin_decl_implicit): Ditto.
9229 (set_builtin_decl): Ditto.
9230 (set_builtin_decl_implicit_p): Ditto.
9231 (builtin_decl_explicit_p): Ditto.
9232 (builtin_decl_implicit_p): Ditto.
9233 * tree-complex.c (expand_complex_libcall): Ditto.
9234 * tree-loop-distribution.c (generate_memset_zero): Ditto.
9235 * tree-ssa-strlen.c (get_string_length): Ditto.
9236 (handle_builtin_strcpy): Ditto.
9237 (handle_builtin_strcat): Ditto.
9238 * tree.c (iterative_hash_expr): Ditto.
9239 (local_define_builtin): Ditto.
9240 (build_common_builtin_nodes): Ditto.
9241 * builtins.c (built_in_decls): Ditto.
9242 (implicit_built_in_decls): Ditto.
9243 (built_in_info): Ditto
9244 (expand_builtin_classify_type): Ditto.
9245 (mathfn_built_in_1): Ditto.
9246 (expand_builtin_cexpi): Ditto.
9247 (expand_builtin_mempcpy_args): Ditto.
9248 (expand_builtin_stpcpy): Ditto.
9249 (gimplify_va_arg_expr): Ditto.
9250 (expand_builtin_sync_operation): Ditto.
9251 (build_builtin_expect_predicate): Ditto.
9252 (fold_builtin_memory_op): Ditto.
9253 (fold_builtin_strcpy): Ditto.
9254 (fold_builtin_stpcpy): Ditto.
9255 (fold_builtin_strncpy): Ditto.
9256 (fold_builtin_interclass_mathfn): Ditto.
9257 (fold_builtin_classify): Ditto.
9258 (fold_builtin_2): Ditto.
9259 (fold_builtin_strstr): Ditto.
9260 (fold_builtin_strrchr): Ditto.
9261 (fold_builtin_strpbrk): Ditto.
9262 (fold_builtin_strcat): Ditto.
9263 (fold_builtin_strncat): Ditto.
9264 (fold_builtin_strcspn): Ditto.
9265 (fold_builtin_fputs): Ditto.
9266 (fold_builtin_sprintf): Ditto.
9267 (fold_builtin_snprintf): Ditto.
9268 (expand_builtin_memory_chk): Ditto.
9269 (fold_builtin_memory_chk): Ditto.
9270 (fold_builtin_stxcpy_chk): Ditto.
9271 (fold_builtin_strncpy_chk): Ditto.
9272 (fold_builtin_strcat_chk): Ditto.
9273 (fold_builtin_strncat_chk): Ditto.
9274 (fold_builtin_sprintf_chk_1): Ditto.
9275 (fold_builtin_snprintf_chk_1): Ditto.
9276 (fold_builtin_printf): Ditto.
9277 (fold_builtin_fprintf): Ditto.
9278 (fold_call_stmt): Ditto.
9279 (set_builtin_user_assembler_name): Ditto.
9280 * tree-emutls.c (emutls_common_1): Ditto.
9281 * omp-low.c (scan_omp): Ditto.
9282 (lower_rec_input_clauses): Ditto.
9283 (lower_reduction_clauses): Ditto.
9284 (expand_parallel_call): Ditto.
9285 (expand_task_call): Ditto.
9286 (maybe_catch_exception): Ditto.
9287 (optimize_omp_library_calls): Ditto.
9288 (expand_omp_for_generic): Ditto.
9289 (expand_omp_for_static_nochunk): Ditto.
9290 (expand_omp_for_static_chunk): Ditto.
9291 (expand_omp_sections): Ditto.
9292 (expand_omp_atomic_fetch_op): Ditto.
9293 (expand_omp_atomic_pipeline): Ditto.
9294 (expand_omp_atomic_mutex): Ditto.
9295 (lower_omp_single_simple): Ditto.
9296 (lower_omp_single_copy): Ditto.
9297 (lower_omp_master): Ditto.
9298 (lower_omp_ordered): Ditto.
9299 (lower_omp_critical): Ditto.
9300 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
9301 * builtins.c (DEF_BUILTIN_STUB): Ditto.
9302 (BUILT_IN_NONE): Ditto.
9303 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
9304 * gimple-low.c (lower_function_body): Ditto.
9305 (lower_builtin_setjmp): Ditto.
9306 * c-decl.c (merge_decls): Ditto.
9307 * tree-eh.c (lower_resx): Ditto.
9308 (lower_resx): Ditto.
9309 (lower_eh_dispatch): Ditto.
9310 * function (gimplify_parameters): Ditto.
9311 * c-typeck.c (build_function_call_vec): Ditto.
9312 * gimplify.c (build_stack_save_restore): Ditto.
9313 (gimplify_vla_decl): Ditto.
9314 (gimplify_modify_expr_to_memcpy): Ditto.
9315 (gimplify_modify_expr_to_memset): Ditto.
9316 (gimplify_variable_sized_compare): Ditto.
9317 (gimplify_function_tree): Ditto.
9318 * calls.c (emit_call_1): Ditto.
9319 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
9320 * tree-nested.c (convert_nl_goto_reference): Ditto.
9321 (convert_tramp_reference_op): Ditto.
9322 (finalize_nesting_tree_1): Ditto.
9323 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9324 (tree_ssa_prefetch_arrays): Ditto.
9325 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
9326 * system.h (built_in_decls): Ditto.
9327 (implicit_built_in_decls): Ditto.
9328 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
9329 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
9330 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9331 (ix86_veclibabi_svml): Ditto.
9332 (ix86_veclibabi_acml): Ditto.
9333 * config/vms/vms.c (vms_patch_builtins): Ditto.
9334 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
9335 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
9336 (rs6000_builtin_vectorized_libmass): Ditto.
9337 (rs6000_init_builtins): Ditto.
9338 * config/darwin.c (darwin_override_options): Ditto.
9339 (darwin_patch_builtin): Ditto.
9340 (darwin_rename_builtins): Ditto.
9341 * config/pa/pa.c (pa_init_builtins): Ditto.
9342
9343 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9344
9345 * tree.h (copy_ref_info): Expose existing function.
9346 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
9347 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
9348
9349 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
9350
9351 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
9352 prototype.
9353 (avr_regno_mode_code_ok_for_base_p): New prototype.
9354 * config/avr/avr.h (BASE_REG_CLASS): Remove.
9355 (REGNO_OK_FOR_BASE_P): Remove.
9356 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
9357 (REG_OK_FOR_BASE_STRICT_P): Remove.
9358 (MODE_CODE_BASE_REG_CLASS): New define.
9359 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
9360 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
9361 (avr_regno_mode_code_ok_for_base_p): New function.
9362 (avr_reg_ok_for_addr_p): New static function.
9363 (avr_legitimate_address_p): Use it. Beautify.
9364
9365 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
9366
9367 PR target/50447
9368 * config/avr/avr.md (cc): Add out_plus attribute alternative.
9369 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
9370 avr_out_plus for all CONST_INT addends.
9371 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
9372 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
9373 CC_OUT_PLUS.
9374 (avr_out_plus_1): Change prototype and report effect on cc0.
9375 (avr_out_plus): Ditto.
9376 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
9377
9378 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
9379
9380 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
9381 the extra break.
9382
9383 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9384
9385 * doc/invoke.texi: Document new warning.
9386 * common.opt (Wvector-operation-performance): Define new warning.
9387 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
9388 vector operation.
9389 (exapnd_vector_parallel): Warn about expanded vector operation.
9390 (lower_vec_shuffle): Warn about expanded vector operation.
9391 * c-typeck.c (c_build_vec_perm_expr): Store correct location
9392 when creating VEC_PERM_EXPR.
9393
9394 2011-10-11 Richard Guenther <rguenther@suse.de>
9395
9396 PR tree-optimization/50204
9397 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
9398 two argument handling from ...
9399 (get_continuation_for_phi): ... here. Handle arbitrary number
9400 of PHI args.
9401
9402 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
9403
9404 * modulo-sched.c: Fix comment typo. Mention the possibility
9405 of using scheduling windows of II+1 cycles.
9406
9407 2011-10-11 Tristan Gingold <gingold@adacore.com>
9408
9409 * doc/invoke.texi (C Dialect Options): Document
9410 -fallow-parameterless-variadic-functions.
9411 * c-parser.c (c_parser_parms_list_declarator): Handle it.
9412
9413 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9414
9415 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
9416 to 0 if frame pointer is needed for unwinding.
9417
9418 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
9419
9420 PR bootstrap/50665
9421 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
9422 optab_index to enum direct_optab_index.
9423 (vec_perm_optab): Update.
9424
9425 2011-10-10 Anatoly Sokolov <aesok@post.ru>
9426
9427 * config/cris/cris.c (cris_preferred_reload_class): New function.
9428 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9429 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
9430
9431 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9432
9433 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
9434 !AVR_HAVE_JMP_CALL.
9435 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
9436 (*tablejump_enh, *tablejump): Remove insns.
9437 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
9438 EIJMP for indirect jump. Use LPM Z+ where available.
9439
9440 2011-10-10 Richard Henderson <rth@redhat.com>
9441
9442 * doc/md.texi (vec_perm_const): Fix typo in cindex.
9443
9444 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
9445 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
9446
9447 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
9448
9449 2011-10-10 Richard Guenther <rguenther@suse.de>
9450
9451 PR middle-end/50389
9452 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9453 mark symbols for renaming. Append the VUSE to all statements
9454 that possibly can have one.
9455
9456 2011-10-10 Richard Guenther <rguenther@suse.de>
9457
9458 * ipa-split.c (pass_split_functions): Add verification TODOs.
9459 (pass_feedback_split_functions): Likewise.
9460
9461 2011-10-10 Richard Guenther <rguenther@suse.de>
9462
9463 PR middle-end/50195
9464 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
9465 only when optimizing.
9466
9467 2011-10-10 Nick Clifton <nickc@redhat.com>
9468
9469 PR middle-end/49801
9470 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
9471 df_get_live_out instead of accessing the bitmaps directly.
9472 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
9473 df_live_add_problem and df_analyze.
9474
9475 2011-10-10 Michael Matz <matz@suse.de>
9476
9477 PR middle-end/50638
9478 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
9479
9480 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9481
9482 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
9483 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
9484 (node_sched_params): Remove first_reg_move and nreg_moves.
9485 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
9486 (update_node_sched_params): Move up file.
9487 (print_node_sched_params): Print the stage. Don't dump info related
9488 to first_reg_move and nreg_moves.
9489 (set_columns_for_row): New function.
9490 (set_columns_for_ps): Move up file and use set_columns_for_row.
9491 (schedule_reg_move): New function.
9492 (schedule_reg_moves): Call extend_node_sched_params and
9493 schedule_reg_move. Extend size of uses bitmap. Initialize
9494 num_consecutive_stages. Return false if a move could not be
9495 scheduled.
9496 (apply_reg_moves): Don't emit moves here.
9497 (permute_partial_schedule): Handle register moves.
9498 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
9499 to the same stage-count test as ddg nodes.
9500 (generate_prolog_epilog): Update calls accordingly.
9501 (sms_schedule): Allow move-scheduling to add a new first stage.
9502
9503 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9504
9505 * modulo-sched.c (ps_insn): Adjust comment.
9506 (ps_reg_move_info): New structure.
9507 (partial_schedule): Add reg_moves field.
9508 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
9509 (node_sched_params): Turn first_reg_move into an identifier.
9510 (ps_reg_move): New function.
9511 (ps_rtl_insn): Cope with register moves.
9512 (ps_first_note): Adjust comment and assert that the instruction
9513 isn't a register move.
9514 (node_sched_params): Replace with...
9515 (node_sched_param_vec): ...this vector.
9516 (set_node_sched_params): Adjust accordingly.
9517 (print_node_sched_params): Take a partial schedule instead of a ddg.
9518 Use ps_rtl_insn and ps_reg_move.
9519 (generate_reg_moves): Rename to...
9520 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
9521 move in the partial schedule, but don't emit it here. Don't perform
9522 register substitutions here either.
9523 (apply_reg_moves): New function.
9524 (duplicate_insns_of_cycles): Use register indices directly,
9525 rather than finding instructions using PREV_INSN. Use ps_reg_move.
9526 (sms_schedule): Call schedule_reg_moves before committing to
9527 a partial schedule. Try the next ii if the schedule fails.
9528 Use apply_reg_moves instead of generate_reg_moves. Adjust
9529 call to print_node_sched_params. Free node_sched_param_vec
9530 instead of node_sched_params.
9531 (create_partial_schedule): Initialize reg_moves.
9532 (free_partial_schedule): Free reg_moves.
9533
9534 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9535
9536 * modulo-sched.c (ps_insn): Replace node field with an identifier.
9537 (SCHED_ASAP): Replace with..
9538 (NODE_ASAP): ...this macro.
9539 (SCHED_PARAMS): New macro.
9540 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
9541 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
9542 (node_sched_params): Remove asap.
9543 (ps_rtl_insn, ps_first_note): New functions.
9544 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
9545 asap values.
9546 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
9547 (generate_reg_moves): Pass ids to the SCHED_* macros.
9548 (update_node_sched_params): Take a ps insn identifier rather than
9549 a node as parameter. Use ps_rtl_insn.
9550 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
9551 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
9552 (optimize_sc): Update for above field and SCHED_* macro changes.
9553 Update calls to try_scheduling_node_in_cycle and
9554 update_node_sched_params.
9555 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
9556 macro changes. Use ps_rtl_insn and ps_first_note.
9557 (sms_schedule): Pass ids to the SCHED_* macros.
9558 (get_sched_window): Adjust for above field and SCHED_* macro changes.
9559 Use NODE_ASAP instead of SCHED_ASAP.
9560 (try_scheduling_node_in_cycle): Remove node parameter. Update
9561 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
9562 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
9563 (ps_insert_empty_row): Adjust for above field changes.
9564 (compute_split_row): Use ids rather than nodes.
9565 (verify_partial_schedule): Adjust for above field changes.
9566 (print_partial_schedule): Use ps_rtl_insn.
9567 (create_ps_insn): Take an id rather than a node.
9568 (ps_insn_find_column): Adjust for above field changes.
9569 Use ps_rtl_insn.
9570 (ps_insn_advance_column): Adjust for above field changes.
9571 (add_node_to_ps): Remove node parameter. Update call to
9572 create_ps_insn.
9573 (ps_has_conflicts): Use ps_rtl_insn.
9574 (ps_add_node_check_conflicts): Replace node parameter than an id.
9575
9576 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9577
9578 * modulo-sched.c (undo_replace_buff_elem): Delete.
9579 (generate_reg_moves): Don't build and return an undo list.
9580 (free_undo_replace_buff): Delete.
9581 (sms_schedule): Adjust call to generate_reg_moves.
9582 Don't call free_undo_replace_buff.
9583
9584 2011-10-10 Matthias Klose <doko@ubuntu.com>
9585
9586 * common/config/m32c: Remove empty directory.
9587
9588 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9589
9590 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
9591
9592 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9593
9594 PR target/50652
9595 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
9596 atmega164a to 0x100.
9597
9598 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
9599
9600 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
9601 the replacement if the conversion to the LHS type is not useless.
9602
9603 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
9604
9605 PR tree-optimization/50635
9606 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
9607 DEF_STMT to the list of statements to be replaced by the
9608 pattern statements.
9609 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
9610
9611 2011-10-09 Anatoly Sokolov <aesok@post.ru>
9612
9613 * system.h: Commit forgotten hunk in previous patch.
9614 (OUTPUT_ADDR_CONST_EXTRA): Poison.
9615
9616 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
9617
9618 PR libobjc/50428
9619 * doc/objc.texi (Garbage Collection): Updated example to protect
9620 +initialize against execution in subclasses.
9621
9622 2011-10-07 Richard Henderson <rth@redhat.com>
9623
9624 * doc/extend.texi (__builtin_shuffle): Improve the description to
9625 include the modulus of the selector. Mention OpenCL.
9626 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
9627
9628 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
9629 * genopinit.c (optabs): Rename vshuffle to vec_perm.
9630 * c-typeck.c (c_build_vec_perm_expr): Rename from
9631 c_build_vec_shuffle_expr. Update for name changes.
9632 * optabs.c (expand_vec_perm_expr_p): Rename from
9633 expand_vec_shuffle_expr_p.
9634 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
9635 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
9636 (vec_perm_optab): Rename from vshuffle_optab.
9637 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
9638 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
9639 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
9640
9641 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
9642 ix86_expand_vshuffle.
9643 * config/i386/i386-protos.h: Update.
9644 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
9645 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
9646
9647 2011-10-07 Richard Henderson <rth@redhat.com>
9648
9649 * config/i386/predicates.md (avx2_pblendw_operand): New.
9650 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
9651 (avx2_pblendw, *avx2_pblendw): New expander and insn.
9652
9653 2011-10-07 Richard Henderson <rth@redhat.com>
9654
9655 * config/i386/i386.c (bdesc_args): Update code for
9656 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
9657 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
9658 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
9659 * config/i386/sse.md (mode iterator V16): Add V2TI.
9660 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
9661 (mode attr ssse3_avx2): Add V2TI.
9662 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
9663
9664 2011-10-07 David S. Miller <davem@davemloft.net>
9665
9666 PR 50655
9667 * configure.ac: Add .register directives to VIS3 test.
9668 * configure: Regenerate.
9669
9670 2011-10-07 Richard Henderson <rth@redhat.com>
9671
9672 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
9673
9674 2011-10-07 Richard Henderson <rth@redhat.com>
9675
9676 PR 49752
9677 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
9678
9679 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
9680
9681 * config/arm/predicates.md (shift_amount_operand): Remove constant
9682 range check.
9683 (shift_operator): Check range of constants for all shift operators.
9684
9685 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9686
9687 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
9688 Load GOT pointer for non-pic builds.
9689 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
9690 (s390_emit_call): Likewise.
9691
9692 2011-10-07 Tom de Vries <tom@codesourcery.com>
9693
9694 PR middle-end/50527
9695 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
9696 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
9697 throw.
9698 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
9699 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
9700 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9701 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9702 * tree-ssa-ccp.c (evaluate_stmt): Set align for
9703 BUILT_IN_ALLOCA_WITH_ALIGN.
9704 (fold_builtin_alloca_for_var): Rename to ...
9705 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
9706 BUILT_IN_ALLOCA_WITH_ALIGN argument.
9707 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
9708 fold_builtin_alloca_with_align.
9709 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9710 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
9711 DEF_BUILTIN_STUB.
9712 * ipa-pure-const.c (special_builtin_state): Handle
9713 BUILT_IN_ALLOCA_WITH_ALIGN.
9714 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
9715 (call_may_clobber_ref_p_1): Same.
9716 * function.c (gimplify_parameters): Lower vla to
9717 BUILT_IN_ALLOCA_WITH_ALIGN.
9718 * gimplify.c (gimplify_vla_decl): Same.
9719 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9720 * tree-mudflap.c (mf_xform_statements): Same.
9721 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
9722 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
9723 * varasm.c (incorporeal_function_p): Same.
9724 * tree-object-size.c (alloc_object_size): Same.
9725 * gimple.c (gimple_build_call_from_tree): Same.
9726
9727 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
9728
9729 * function.c (frame_required_for_rtx): Remove function.
9730 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
9731 changed. Compute a set of mentioned registers and compare against
9732 the new arg rather than calling frame_required_for_rtx.
9733 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
9734 reg set. Convert the unconverted_simple_returns mechanism to store
9735 jump insns rather than their basic blocks. Also check the
9736 orig_entry_edge destination for new blocks.
9737
9738 2011-10-07 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR tree-optimization/50650
9741 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
9742 call vect_is_simple_cond here, instead fail if cond_expr isn't
9743 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
9744 for cond_expr's first operand.
9745 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
9746 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
9747
9748 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9749
9750 * config/s390/s390.md (DWH, dwh): New mode macros.
9751 ("umulsidi3"): Extend to support "umulditi3" as well.
9752
9753 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
9754 H.J. Lu <hongjiu.lu@intel.com>
9755
9756 PR target/50603
9757 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
9758 integer PLUS RTX to a register to improve address combine.
9759
9760 2011-10-06 Richard Henderson <rth@redhat.com>
9761
9762 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
9763 parameter; use it to decide whether to merge two notes.
9764 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
9765 for the deallocation case as well.
9766
9767 2011-10-06 Anatoly Sokolov <aesok@post.ru>
9768
9769 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
9770 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
9771 * doc/tm.texi: Regenerate.
9772 * target.def (output_addr_const_extra): Use
9773 hook_bool_FILEptr_rtx_false.
9774 * targhooks.c (default_asm_output_addr_const_extra): Remove.
9775 * targhooks.h (default_asm_output_addr_const_extra): Remove.
9776 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
9777 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
9778
9779 2011-10-06 David S. Miller <davem@davemloft.net>
9780
9781 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
9782 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
9783 SI mode 64-bit code gen case explicitly zero-extend and truncate.
9784 (*popcount<mode>_sp64): Split up into...
9785 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
9786 SImode case use truncate.
9787 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
9788 subtract so the compiler can optimize it.
9789 (SIDI): Remove unused mode iterator.
9790
9791 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9792
9793 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
9794 on the orig_entry_edge. Don't account for it in prologue_clobbered.
9795
9796 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9797
9798 PR tree-optimization/50596
9799 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
9800 (NUM_PATTERNS): Change to 6.
9801 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
9802 function.
9803 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
9804 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
9805 if it already has one, and don't set STMT_VINFO_VECTYPE in it
9806 if it is already set.
9807 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
9808 COND_EXPR in pattern stmts.
9809 (vect_is_simple_cond): No longer static.
9810
9811 2001-10-06 Richard Henderson <rth@redhat.com>
9812
9813 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
9814 * config/i386/sse.md (sseshuffint): Remove.
9815 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
9816 (VSHUFFLE_AVX2): New mode iterator.
9817 (vshuffle<mode>): Use it.
9818 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
9819
9820 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
9821 for vector_all_ones_operand.
9822 (ix86_expand_int_vcond): Distinguish between comparison mode
9823 and data mode. Allow them to differ.
9824 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
9825
9826 2001-10-06 Richard Henderson <rth@redhat.com>
9827
9828 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
9829 mask operand. Tidy the code.
9830
9831 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9832
9833 * tree-vect-patterns.c (vect_pattern_recog_1): Use
9834 vect_recog_func_ptr typedef for the first argument.
9835 (vect_pattern_recog): Rename vect_recog_func_ptr variable
9836 to vect_recog_func, use vect_recog_func_ptr typedef for it.
9837
9838 PR tree-optimization/49279
9839 * tree-ssa-structalias.c (find_func_aliases): Don't handle
9840 CAST_RESTRICT.
9841 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
9842 restrict propagation.
9843 * tree-ssa.c (useless_type_conversion_p): Don't return false
9844 if TYPE_RESTRICT differs.
9845
9846 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9847
9848 * function.c (thread_prologue_and_epilogue_insns): Build a vector
9849 of unconverted simple return blocks rather than trying to
9850 recompute them later based on bb_flags bitmap tests.
9851
9852 2011-10-06 Michael Matz <matz@suse.de>
9853
9854 * tree-flow.h (get_var_ann): Don't declare.
9855 * tree-flow-inline.h (get_var_ann): Remove.
9856 (set_is_used): Use var_ann, not get_var_ann.
9857 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
9858 * tree-profile.c (gimple_gen_edge_profiler): Call
9859 find_referenced_var_in.
9860 (gimple_gen_interval_profiler): Ditto.
9861 (gimple_gen_pow2_profiler): Ditto.
9862 (gimple_gen_one_value_profiler): Ditto.
9863 (gimple_gen_average_profiler): Ditto.
9864 (gimple_gen_ior_profiler): Ditto.
9865 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
9866 (gimple_gen_ic_func_profiler): Call add_referenced_var.
9867 * tree-mudflap.c (execute_mudflap_function_ops): Call
9868 add_referenced_var.
9869
9870 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9871
9872 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
9873 don't set SSA_NAME_DEF_STMT that has been already set by
9874 gimple_build_assign_with_ops.
9875 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
9876 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
9877 Likewise.
9878
9879 * tree.h (avoid_folding_inline_builtin): New prototype.
9880 * builtins.c (avoid_folding_inline_builtin): No longer static.
9881 * gimple-fold.c (gimple_fold_builtin): Give up if
9882 avoid_folding_inline_builtin returns true.
9883
9884 2011-10-06 Richard Guenther <rguenther@suse.de>
9885
9886 * tree-vect-generic.c (vector_element): Look at previous
9887 generated results.
9888
9889 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
9890
9891 PR target/39950
9892 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
9893 __powerpc__, __PPC__, __unix__.
9894
9895 2011-10-06 Michael Matz <matz@suse.de>
9896
9897 * i386/i386.opt (recip_mask, recip_mask_explicit,
9898 x_recip_mask_explicit): New variables and cl_target member.
9899 (mrecip=): New option.
9900 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
9901 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
9902 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
9903 TARGET_RECIP_VEC_SQRT): New tests.
9904 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
9905 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
9906 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
9907 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
9908 * i386/i386.c (ix86_option_override_internal): Set recip_mask
9909 for -mrecip and -mrecip=options.
9910 (ix86_function_specific_save): Save recip_mask_explicit.
9911 (ix86_function_specific_restore): Restore recip_mask_explicit.
9912
9913 * doc/invoke.texi (ix86 Options): Document the new option.
9914
9915 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9916
9917 PR target/49049
9918 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
9919
9920 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
9921
9922 PR target/50305
9923 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
9924 output of a previous pass through legitimize_reload_address.
9925 Do not attempt to optimize addresses if the base register is
9926 equivalent to a constant.
9927
9928 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9929
9930 * function.c (thread_prologue_and_epilogue_insns): Mark
9931 last_bb_active as possibly unused. It is unused for targets which
9932 do neither have "return" nor "simple_return" expanders.
9933
9934 2011-10-06 Richard Guenther <rguenther@suse.de>
9935
9936 * fold-const.c (fold_ternary_loc): Also fold non-constant
9937 vector CONSTRUCTORs. Make more efficient.
9938 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
9939 (cprop_into_stmt): Don't propagate into virtual operands.
9940 (optimize_stmt): Really dump original statement.
9941
9942 2011-10-06 Nick Clifton <nickc@redhat.com>
9943
9944 * config/rx/rx.md (smin3): Revert previous delta.
9945
9946 2011-10-06 Richard Guenther <rguenther@suse.de>
9947
9948 PR tree-optimization/38884
9949 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
9950 reads from aggregate SSA names.
9951
9952 2011-10-05 Jakub Jelinek <jakub@redhat.com>
9953
9954 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
9955 argument, truncate it at the beginning instead of allocating there
9956 and freeing at the end.
9957 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
9958 pass its address to vect_pattern_recog_1.
9959
9960 2011-10-05 David S. Miller <davem@davemloft.net>
9961
9962 * config/sparc/sparc.opt (POPC): New option.
9963 * doc/invoke.texi: Document it.
9964 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
9965 default on Niagara-2 and later.
9966 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9967 * config/sparc/sparc.md (SIDI): New mode iterator.
9968 (ffsdi2): Delete commented out pattern and comments.
9969 (popcount<mode>2, clz<mode>2): New expanders.
9970 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
9971 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
9972
9973 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9974
9975 PR middle-end/50607
9976 * c-tree.h (c_expr_t): New typedef for struct c_expr.
9977 (C_EXPR_APPEND): New macro.
9978 * c-parser.c (c_parser_get_builtin_args): Preserve
9979 original_tree_code of c_expr structure.
9980 (c_parser_postfix_expression): Adjust to the new function.
9981
9982 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
9983
9984 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
9985 if profiling after the prologue.
9986
9987 2011-10-05 Jakub Jelinek <jakub@redhat.com>
9988
9989 PR tree-optimization/50613
9990 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
9991 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
9992 and if it is neither that not SSA_NAME, give up.
9993
9994 2011-10-05 Richard Henderson <rth@redhat.com>
9995
9996 * tree-vect-generic.c (vector_element): Never fail. Use
9997 build_zero_cst. Tidy up type references.
9998 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
9999 code duplication. Do update_stmt here ...
10000 (expand_vector_operations_1): ... not here.
10001
10002 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
10003 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
10004 duplication. Handle V2DI without SSE4.1.
10005 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
10006 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
10007
10008 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
10009
10010 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
10011 of "found". Simplify return value calculation.
10012 (distance_agu_use): Ditto.
10013
10014 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
10015
10016 PR bootstrap/50621
10017 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
10018 if the function was not shrink-wrapped.
10019 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
10020 to an insn.
10021 * function.c (thread_prologue_and_epilogue_insns): Make sure the
10022 shrink_wrapped flag is set even if there is no dump file.
10023
10024 2011-10-05 DJ Delorie <dj@redhat.com>
10025 Nick Clifton <nickc@redhat.com>
10026
10027 * config/rx/rx.opt (mpid): Define.
10028 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
10029 (MULTILIB_DIRNAMES): Add pid.
10030 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
10031 (rx_num_interrupt_regs): New variable.
10032 (rx_gp_base_regnum): New function. Returns the number of the
10033 small data area register.
10034 (rx_pid_base_regnum): New function. Returns the number of the pid
10035 base register.
10036 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
10037 (rx_pid_data_operand): New function. Returns whether an object is
10038 in the position independent data area.
10039 (rx_legitimize_address): New function. Puts undecided PID
10040 objects in the PID data area.
10041 (rx_is_legitimate_address): Add support for PID operands.
10042 (rx_print_operand_address): Likewise.
10043 (rx_print_operand): Likewise.
10044 (rx_maybe_pidify_operand): New function. Determine if an operand
10045 is suitable for PID addressing.
10046 (rx_gen_move_template): Add PID support.
10047 (rx_conditional_register_usage): Likewise.
10048 (rx_option_override): Initialise rx_num_interrupt_regs.
10049 (rx_is_legitimate_constant): Add support for PID constants.
10050 (TARGET_LEGITIMIZE_ADDRESS): Define.
10051 * config/rx/constraints.md (Rpid): Define.
10052 (Rpda): Define.
10053 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
10054 (tablejump): Add PID support.
10055 (mov<>): Likewise.
10056 (mov<>_internal): Likewise.
10057 (addsi3): Convert to an expander. Add PID support.
10058 (pid_addr): New pattern.
10059 * config/rx/rx.h (CPP_SPEC): Define.
10060 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
10061 (CASE_VECTOR_PC_RELATIVE): Define.
10062 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
10063 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
10064 * doc/invoke.texi (RX Options): Document -mpid command line option.
10065
10066 2011-10-05 Richard Guenther <rguenther@suse.de>
10067
10068 PR tree-optimization/38885
10069 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
10070 from constants.
10071
10072 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
10073
10074 * doc/invoke.texi (-fshrink-wrap): Document.
10075 * opts.c (default_options_table): Add it.
10076 * common.opt (fshrink-wrap): Add.
10077 * function.c (emit_return_into_block): Remove useless declaration.
10078 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
10079 requires_stack_frame_p, gen_return_pattern): New static functions.
10080 (emit_return_into_block): New arg simple_p. All callers changed.
10081 Use gen_return_pattern.
10082 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
10083 * config/i386/i386.md (return): Expand into a simple_return.
10084 (simple_return): New expander):
10085 (simple_return_internal, simple_return_internal_long,
10086 simple_return_pop_internal_long, simple_return_indirect_internal):
10087 Renamed from return_internal, return_internal_long,
10088 return_pop_internal_long and return_indirect_internal; changed to use
10089 simple_return.
10090 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
10091 simple returns.
10092 (ix86_pad_returns): Likewise.
10093 * function.h (struct rtl_data): Add member shrink_wrapped.
10094 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
10095 are not jumps or sibcalls can't be compared.
10096
10097 2011-10-05 Richard Guenther <rguenther@suse.de>
10098
10099 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
10100 vector type.
10101 (simplify_unary_expression): Handle BIT_FIELD_REFs.
10102 (try_to_simplify): Handle BIT_FIELD_REFs.
10103
10104 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
10105
10106 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
10107 * config/avr/avr.c (avr_out_addto_sp): New function.
10108 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
10109 * config/avr/avr.md (adjust_len): Add "addto_sp".
10110 (*movhi_sp): Remove insn.
10111 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
10112
10113 2011-10-05 Richard Guenther <rguenther@suse.de>
10114
10115 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
10116 with an embedded expression valueize and fold that as well.
10117 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
10118 results from gimple_fold_stmt_to_constant_1.
10119
10120 2011-10-05 Nick Clifton <nickc@redhat.com>
10121
10122 * config/rx/rx.md (tablejump): Add missing label.
10123 (adddi3_internal): Mark operand 0 as early-clobbered.
10124 (smaxsi3): Revert previous delta.
10125 (adc_internal): Fix whitespace in generated asm.
10126 (adc_flags): Likewise.
10127
10128 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10129
10130 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
10131 with the new widening_optab_handler.
10132
10133 2011-10-05 Richard Guenther <rguenther@suse.de>
10134
10135 PR tree-optimization/50609
10136 * gimple-fold.c (fold_array_ctor_reference): Also handle
10137 vector typed constructors.
10138 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
10139 for vector typed constructors.
10140
10141 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
10142
10143 * config/i386/i386.c (ix86_emit_binop): New static function.
10144 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
10145 instructions.
10146 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
10147
10148 2011-10-04 David S. Miller <davem@davemloft.net>
10149
10150 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
10151 UNSPEC_XMUL): New unspecs.
10152 (muldi3_v8plus): Use output_v8plus_mult.
10153 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
10154 New VIS 3.0 combiner patterns.
10155 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
10156 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
10157 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
10158 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
10159 builtins patterns.
10160 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
10161 (output_v8plus_mult): New function.
10162 * config/sparc/sparc-protos.h: Declare it.
10163 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
10164 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
10165 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
10166 * doc/extend.texi: Document new builtins.
10167
10168 2011-10-04 Richard Henderson <rth@redhat.com>
10169
10170 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
10171 Avoid save_expr unless two_arguments.
10172
10173 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
10174
10175 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
10176 * config/i386/mingw32.h (CPP_SPEC): Likewise.
10177
10178 2011-10-04 David S. Miller <davem@davemloft.net>
10179
10180 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
10181 under Linux.
10182
10183 2011-10-04 Jakub Jelinek <jakub@redhat.com>
10184
10185 PR tree-optimization/50604
10186 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
10187 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
10188 last argument to memcpy has size_type_node type instead of ssizetype.
10189 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
10190 instead of TREE_TYPE (len) as type for newlen.
10191
10192 PR tree-optimization/50522
10193 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
10194 TYPE_RESTRICT.
10195 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
10196 unconditionally.
10197
10198 * fold-const.c (fold_unary_loc): Don't optimize
10199 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
10200 casting the inner pointer if it isn't TYPE_RESTRICT.
10201 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
10202 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
10203
10204 2011-10-04 Joseph Myers <joseph@codesourcery.com>
10205
10206 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
10207
10208 2011-10-04 Jan Hubicka <jh@suse.cz>
10209
10210 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
10211 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
10212 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
10213 * lto-cgraph.c (order_base): New static var.
10214 (lto_output_node): Stream in order.
10215 (lto_output_varpool_node): Stream out order.
10216 (input_node): Stream in order.
10217 (input_varpool_node): Stream out order.
10218 (input_cgraph_1): Initialize order base; update call of
10219 lto_input_toplevel_asms.
10220
10221 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
10222
10223 PR target/50566
10224 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
10225 prototype.
10226 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
10227 from here...
10228 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
10229 function. Log if avr_log.legitimize_reload_address.
10230
10231 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
10232
10233 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
10234
10235 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10236
10237 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
10238 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
10239
10240 2011-10-03 David S. Miller <davem@davemloft.net>
10241
10242 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
10243 GSR_REG an input operand to UNSPEC instead of a parallel USE.
10244 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
10245 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
10246 Reference GSR_REG in DI mode, simplify convoluted expressions by using
10247 zero_extract.
10248 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
10249
10250 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
10251
10252 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
10253
10254 2011-10-03 Jakub Jelinek <jakub@redhat.com>
10255 Ian Lance Taylor <iant@google.com>
10256
10257 * godump.c (go_output_typedef): Support printing enum values that
10258 don't fit in a signed HOST_WIDE_INT.
10259
10260 2011-10-03 Anatoly Sokolov <aesok@post.ru>
10261
10262 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
10263 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10264 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10265 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
10266
10267 2011-10-03 Anatoly Sokolov <aesok@post.ru>
10268
10269 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
10270 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10271 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10272 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
10273
10274 2011-10-03 Steve Ellcey <sje@cup.hp.com>
10275
10276 PR target/49967
10277 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
10278 (gcc_cv_ld_static_option): Ditto.
10279 (gcc_cv_ld_dynamic_option): Ditto.
10280 * configure: Regenerate.
10281
10282 2011-10-03 David S. Miller <davem@davemloft.net>
10283
10284 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
10285 and 'si' patterns which describe the GSR changes explicitly in the
10286 RTL using zero_extract.
10287 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
10288
10289 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
10290 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
10291
10292 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10293
10294 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
10295 if given expression can be expanded by the target.
10296 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
10297 using target vector instructions.
10298 * optabs.h: New optab vshuffle.
10299 (expand_vec_shuffle_expr_p): New prototype.
10300 (expand_vec_shuffle_expr): New prototype.
10301 (vshuffle_optab): New optab.
10302 * genopinit.c: Adjust to support vecshuffle.
10303 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
10304 * expr.c (expand_expr_real_2): Adjust.
10305 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
10306 recognizing the cases of two and three arguments.
10307 (convert_arguments) (build_binary_op)
10308 (scalar_to_vector) (build_array_ref): Spurious whitespace.
10309 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
10310 * tree.def: New tree code VEC_SHUFFLE_EXPR.
10311 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
10312 * tree-vect-generic.c (vector_element): New function. Returns an
10313 element of the vector at the given position.
10314 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
10315 by the backend or expand an expression piecewise.
10316 (expand_vector_operations_1): Adjusted.
10317 (gate_expand_vector_operations_noop): New gate function.
10318 * Makefile.in (tree-vect-generic.o): New include.
10319 * gimple.c (get_gimple_rhs_num_ops): Adjust.
10320 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
10321 * passes.c: Move veclower down.
10322 * tree-pretty-print.c (dump_generic_node): Recognize
10323 VEC_SHUFFLE_EXPR as valid expression.
10324 * c-parser.c (c_parser_get_builtin_args): Helper function for the
10325 builtins with variable number of arguments.
10326 (c_parser_postfix_expression): Use a new helper function for
10327 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
10328 * tree-ssa-operands: Adjust.
10329 * c-family/c-common.c: New __builtin_shuffle keyword.
10330 * c-family/c-common.h: New __builtin_shuffle keyword.
10331 * gcc/doc/extend.texi: Adjust.
10332
10333 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
10334 between the vector and the type of the mask when shuffling.
10335 (vecshuffle<mode>): New expansion.
10336 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
10337 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
10338 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
10339
10340 2011-10-03 Jakub Jelinek <jakub@redhat.com>
10341
10342 PR tree-optimization/50587
10343 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
10344 arg0 is not a SSA_NAME.
10345
10346 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
10347
10348 * ipa-inline-analysis.c (MAX_TIME): Update comment.
10349
10350 2011-10-02 Richard Henderson <rth@redhat.com>
10351 David S. Miller <davem@davemloft.net>
10352
10353 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
10354 conditional insn type setting, we always emit a shift.
10355 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
10356 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
10357 * config/sparc/predicates.md (const_one_operand): Delete.
10358
10359 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
10360
10361 * invoke.texi (SPARC Options): Refer to GNU/Linux.
10362
10363 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
10364
10365 * config/mips/mips.c (mips_frame_barrier): New function.
10366 (mips_expand_prologue): Call it after allocating stack space.
10367 (mips_deallocate_stack): New function.
10368 (mips_expand_epilogue): Call mips_frame_barrier and
10369 mips_deallocate_stack.
10370
10371 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
10372
10373 PR target/49696
10374 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
10375 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
10376 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
10377
10378 2011-10-02 Jan Hubicka <jh@suse.cz>
10379
10380 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
10381
10382 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
10383 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
10384 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
10385 functions are reachable when address is taken.
10386 * tree-sra.c (modify_function): Free dominance info.
10387
10388 2011-10-02 Jan Hubicka <jh@suse.cz>
10389
10390 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
10391
10392 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
10393 (reset_inline_summary): New function.
10394 (compute_inline_parameters, inline_node_removal_hook,
10395 inline_edge_removal_hook): Use it.
10396 (inline_free_summary): Reset holders correctly.
10397 (inline_generate_summary): Free summary before computing it.
10398
10399 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
10400
10401 PR preprocessor/36819
10402 * incpath.c (merge_include_chains): Call free_path on
10403 heads[QUOTE] and tails[QUOTE].
10404
10405 2011-10-02 Jan Hubicka <jh@suse.cz>
10406
10407 PR lto/47247
10408 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
10409 when resolution is already availbale from plugin.
10410 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
10411 * cgraph.c (ld_plugin_symbol_resolution): Add
10412 prevailing_def_ironly_exp.
10413 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
10414 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
10415 externally visible.
10416 * varasm.c (resolution_to_local_definition_p): Add
10417 LDPR_PREVAILING_DEF_IRONLY_EXP.
10418 (resolution_local_p): Likewise.
10419
10420 2011-10-01 David S. Miller <davem@davemloft.net>
10421
10422 * config/sparc/sparc.opt (VIS3): New option.
10423 * doc/invoke.texi: Document it.
10424 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
10425 not capable of such instructions.
10426 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
10427 to 0x300 when TARGET_VIS3.
10428 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
10429 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
10430 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
10431 (V64N8, VASS): New mode iterators.
10432 (vis3_shift, vis3_addsub_ss): New code iterators.
10433 (vbits, vconstr): New mode attributes.
10434 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
10435 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
10436 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
10437 fmean16_vis, fpadd64_vis, fpsub64_vis,
10438 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
10439 VIS 3.0 instruction patterns.
10440 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
10441 default when targetting capable cpus. TARGET_VIS3 implies
10442 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
10443 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
10444 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
10445 is ignored.
10446 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
10447 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
10448 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
10449 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
10450 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
10451 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
10452 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
10453 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
10454 * doc/extend.texi: Document new VIS 3.0 builtins.
10455
10456 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
10457
10458 * ira-color.c (assign_hard_reg): Fix typo.
10459
10460 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
10461
10462 * doc/extend.texi: Add missing ','.
10463
10464 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10465
10466 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
10467 Enable -fmodulo-sched at -O2 and above.
10468 * config/c6x/c6x.md (doloop_end): New expander.
10469 (mvilc, sploop, spkernel, loop_end): New patterns.
10470 (loop_end with memory destination splitter): New.
10471 * config/c6x/c6x.c: Include "hw-doloop.h".
10472 (enum unitreqs): New.
10473 (unit_req_table): New typedef.
10474 (unit_reqs): New static variable.
10475 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
10476 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
10477 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
10478 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
10479 (struct c6x_sched_context): New member last_scheduled_iter0.
10480 (init_sched_state): Initialize it.
10481 (c6x_variable_issue): Update it.
10482 (sploop_max_uid_iter0): New static variable.
10483 (c6x_sched_reorder_1): Be careful about issuing sploop.
10484 (c6x_reorg): Call c6x_hwlooops before the final schedule.
10485
10486 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
10487
10488 PR target/50566
10489 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
10490 * config/avr/avr.c (avr_address_cost): Use it.
10491 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
10492 (avr_log_vadump): Unknown %-codes finish printing.
10493
10494 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10495
10496 PR inline-asm/50571
10497 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
10498 input constraints allow mem and not reg, pass true instead of
10499 false as second argument to maybe_fold_reference.
10500
10501 PR tree-optimization/46309
10502 * fold-const.c (make_range, merge_ranges): Remove prototypes.
10503 (make_range_step): New function.
10504 (make_range): Use it.
10505 * tree.h (make_range_step): New prototypes.
10506 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
10507 * tree-ssa-reassoc.c: Include diagnostic-core.h.
10508 (struct range_entry): New type.
10509 (init_range_entry, range_entry_cmp, update_range_test,
10510 optimize_range_tests): New functions.
10511 (reassociate_bb): Call optimize_range_tests.
10512
10513 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10514 Richard Guenther <rguenther@suse.de>
10515
10516 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
10517 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
10518 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
10519 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
10520 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
10521 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
10522
10523 2011-09-30 Jan Beulich <jbeulich@suse.com>
10524
10525 * lto-cgraph.c (output_cgraph): Remove processing of
10526 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
10527 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
10528 lto_input_toplevel_asms() instead.
10529 * lto-section-in.c (lto_section_name): Add "asm" entry.
10530 * lto-streamer-in.c (lto_input_toplevel_asms): New.
10531 * lto-streamer-out.c (lto_output_toplevel_asms): New.
10532 * lto-streamer.h (LTO_minor_version): Bump.
10533 (enum lto_section_type): Add LTO_section_asm.
10534 (struct lto_asm_header): New.
10535 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
10536 * tree-streamer.h (streamer_write_string_cst): Declare.
10537 * tree-streamer-out.c (write_string_cst): Rename to
10538 streamer_write_string_cst and make global. Handle incoming string
10539 being NULL.
10540 (streamer_write_tree_header): Adjust call to renamed function.
10541
10542 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10543
10544 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
10545 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
10546 modulo_last_stage): New static variables.
10547 (set_modulo_params, discard_delay_pairs_above): New functions.
10548 (struct delay_pair): New member stages.
10549 (htab_i2_traverse, htab_i1_traverse): New static functions.
10550 (record_delay_slot_pair): New arg stages. All callers changed.
10551 Record it.
10552 (pair_delay): Take stages into account.
10553 (add_delay_dependencies): Don't do so for stage pairs.
10554 (struct sched_block_state): New member modulo_epilogue.
10555 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
10556 (unschedule_insns_until): Decrease modulo_insns_scheduled.
10557 Set HARD_DEP without using or.
10558 (resolve_dependencies): New static function.
10559 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
10560 If it is true, allow only insns with INSN_EXACT_TICK set.
10561 (schedule_block): Return bool, always true for normal scheduling,
10562 true or false depending on modulo scheduling success otherwise.
10563 Add bookkeeping for modulo scheduling, and call resolve_dependencies
10564 on everything left over after a modulo schedule.
10565 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
10566 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
10567 declarations.
10568 (set_modulo_params, discard_delay_pairs_above): Declare.
10569 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
10570 * doc/invoke.texi (--param): Document it.
10571
10572 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
10573 New arg modulo_scheduling. All callers changed. Move note handling
10574 code here from schedule_ebbs.
10575 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
10576 out of schedule_ebbs.
10577 (schedule_ebbs): Call them. Remove note handling code moved to
10578 schedule_ebb.
10579 * sched-int.h (schedule_ebb, schedule_ebbs_init,
10580 schedule_ebbs_finish): Declare.
10581
10582 2011-09-30 Richard Guenther <rguenther@suse.de>
10583
10584 PR middle-end/50574
10585 * tree-cfg.c (verify_gimple_comparison): Compare component
10586 mode sizes for vector comparisons.
10587
10588 2011-09-30 Revital Eres <revital.eres@linaro.org>
10589
10590 * ddg.c (autoinc_var_is_used_p): New function.
10591 (create_ddg_dep_from_intra_loop_link,
10592 add_cross_iteration_register_deps): Call it.
10593 * ddg.h (autoinc_var_is_used_p): Declare.
10594 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
10595 (sms_schedule): Handle instructions with REG_INC.
10596
10597 2011-09-30 Revital Eres <revital.eres@linaro.org>
10598
10599 * modulo-sched.c (generate_reg_moves): Skip instructions that
10600 do not set a register and verify no regmoves are created for
10601 !single_set instructions.
10602
10603 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10604
10605 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
10606 insns.
10607
10608 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10609
10610 PR target/50099
10611 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
10612 (qhs_zextenddi_op): New.
10613 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
10614 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
10615 Distinguish between ARM and Thumb2 states.
10616
10617 2011-09-30 David S. Miller <davem@davemloft.net>
10618
10619 * config/sparc/sparc.opt (VIS2): New option.
10620 * doc/invoke.texi: Document it.
10621 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
10622 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
10623 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
10624 (define_attr type): New insn type 'edgen'.
10625 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
10626 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
10627 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
10628 patterns.
10629 * niagara.md: Handle edgen.
10630 * niagara2.md: Likewise.
10631 * ultra1_2.md: Likewise.
10632 * ultra3.md: Likewise.
10633 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
10634 to 0x200 when TARGET_VIS2.
10635 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
10636 default when targetting capable cpus. TARGET_VIS2 implies
10637 TARGET_VIS, clear and it when TARGET_FPU is disabled.
10638 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
10639 (sparc_expand_builtin): Fix predicate indexing when builtin returns
10640 void.
10641 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
10642 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
10643 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
10644 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
10645 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
10646 * doc/extend.texi: Document new VIS 2.0 builtins.
10647
10648 2011-09-29 Nick Clifton <nickc@redhat.com>
10649 Bernd Schmidt <bernds@codesourcery.com>
10650
10651 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
10652 * config/frv/frvend.c: Likewise.
10653 * config/frv/frv.c (frv_function_prologue): Move misplaced
10654 CALL_ARG_LOCATION notes back to their proper locations.
10655
10656 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
10657
10658 PR target/50566
10659 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
10660 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
10661 from avr_rtx_costs.
10662 (avr_legitimate_address_p): Use avr_edump to print log information
10663 filtered by avr_log.
10664 (extra_constraint_Q): Ditto.
10665 (avr_legitimize_address): Ditto.
10666 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
10667 (final_prescan_insn): Use avr_log.rtx_costs as filter.
10668
10669 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
10670
10671 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
10672 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
10673 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
10674 NEON vector and structure modes to be tied.
10675
10676 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10677
10678 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
10679 forward declaration.
10680 (remove_duplicate_close_phi): Detect and repair creation of
10681 duplicate close-phis for a containing loop.
10682
10683 2011-09-27 Andi Kleen <ak@linux.intel.com>
10684
10685 * gcc.c (get_local_tick). Rename to get_random_number. Read from
10686 /dev/urandom. Add getpid call.
10687 (compare_debug_dump_opt_spec_function): Drop getpid call.
10688
10689 2011-09-26 Andi Kleen <ak@linux.intel.com>
10690
10691 * toplev.c (init_local_tick): Try reading random seed
10692 from /dev/urandom.
10693
10694 2011-09-26 Andi Kleen <ak@linux.intel.com>
10695
10696 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
10697 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
10698 Handle numerical random seed.
10699 * lto-streamer.h (lto_file_decl_data): Change id to
10700 unsigned HOST_WIDE_INT.
10701 * toplev.c (random_seed): Add.
10702 (init_random_seed): Change for numerical random seed.
10703 (get_random_seed): Return as HOST_WIDE_INT.
10704 (set_random_seed): Crc32 existing string.
10705 * toplev.h (get_random_seed): Change to numercal return.
10706 * tree.c (get_file_function_name): Remove CRC. Handle
10707 numerical random seed.
10708
10709 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
10710
10711 PR target/50566
10712 * config.gcc (extra_objs): Add avr-log.o for $target in:
10713 avr-*-rtems*, avr-*-*.
10714 * config/avr/t-avr (avr-log.o): New rule to compile...
10715 * config/avr/avr-log.c: ...this new file.
10716 * config/avr/avr.opt (mlog=): New option.
10717 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
10718 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
10719 (avr_log_set_avr_log): New prototype.
10720 (avr_log_t): New typedef.
10721 (avr_log): New declaration.
10722 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
10723
10724 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10725
10726 * expr.c (do_store_flag): Expand vector comparison by
10727 building an appropriate VEC_COND_EXPR.
10728 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
10729 (c_objc_common_truthvalue_conversion): Adjust.
10730 * tree-vect-generic.c (do_compare): Helper function.
10731 (expand_vector_comparison): Check if hardware supports
10732 vector comparison of the given type or expand vector piecewise.
10733 (expand_vector_operation): Treat comparison as binary
10734 operation of vector type.
10735 (expand_vector_operations_1): Adjust.
10736
10737 2011-09-29 Richard Guenther <rguenther@suse.de>
10738
10739 * tree.c (build_opaque_vector_type): Make opaque vectors
10740 variant types of the corresponding non-opaque type. Make
10741 sure to share opaque vector types properly.
10742
10743 2011-09-29 David S. Miller <davem@davemloft.net>
10744
10745 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
10746 UNSPEC_ARRAY32): New unspec.
10747 (define_attr type): New type 'array'.
10748 (array{8,16,32}<P:mode>_vis): New patterns.
10749 * config/sparc/ultra1_2.md: Add reservations for 'array'.
10750 * config/sparc/ultra3.md: Likewise.
10751 * config/sparc/niagara.md: Likewise.
10752 * config/sparc/niagara2.md: Likewise.
10753 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
10754 array builtins.
10755 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
10756 __vis_array32): New.
10757 * doc/extend.texi: Document new VIS builtins.
10758
10759 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
10760 (VIS pixel-compare insn): Just use <gcond:name>.
10761
10762 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
10763 code iterator used, so just use <code>. There are two mode iterators
10764 so explicitly use <GCM:gcm_name>.
10765
10766 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
10767
10768 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
10769 Darwin >= 9.
10770
10771 2011-09-28 David S. Miller <davem@davemloft.net>
10772
10773 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
10774 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
10775 (UNSPEC_FCMP): New unspec.
10776 (gcond): New code iterator.
10777 (gcond_name): New code attr.
10778 (GCM): New mode iterator.
10779 (gcm_name): New mode attr.
10780 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
10781
10782 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
10783
10784 PR target/49486
10785 * config/sh/sh.md (negdi2): Move expansion into split to
10786 allow more combination options. Add T_REG clobber.
10787 (abssi2): New expander.
10788 (*negdi2, *abssi2, *negabssi2): New insns.
10789 (cneg): Change from insn to insn_and_split. Rename to
10790 negsi_cond. Add alternative for non-SH4.
10791
10792 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
10793
10794 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
10795 (neon_move_hi_quad_<mode>): Likewise.
10796 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
10797
10798 2011-09-28 Nick Clifton <nickc@redhat.com>
10799
10800 * config/rx/predicates.md (rx_minmax_operand): New predicate.
10801 Accepts immediates and a restricted subset of MEMs.
10802 * config/rx/rx.md (int_modes): New iterator.
10803 (smaxsi3, sminsi3): Delete and replace with...
10804 (smax<int_mode>3, smin<int_mode>3): New patterns.
10805 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
10806
10807 2011-09-28 Richard Guenther <rguenther@suse.de>
10808
10809 PR middle-end/50460
10810 * fold-const.c (try_move_mult_to_index): Handle &a.array the
10811 same as &a.array[0].
10812
10813 2011-09-28 Kai Tietz <ktietz@redhat.com>
10814
10815 * configure.ac: Add test for new section attribute
10816 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
10817 * config.in: Regenerated.
10818 * configure: Regenerated.
10819 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
10820 new section flag "e" for excluded sections, if supported.
10821 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
10822
10823 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10824
10825 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
10826 throughout file.
10827
10828 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10829
10830 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
10831 throughout file.
10832
10833 2011-09-27 Sriraman Tallam <tmsriram@google.com>
10834
10835 * output.h (SECTION_EXCLUDE): New macro.
10836 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
10837
10838 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10839
10840 * fwprop.c (forward_propagate_and_simplify): After checking
10841 reg/subreg combinations, check whether the modes are the same.
10842
10843 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
10844 Richard Sandiford <rdsandiford@googlemail.com>
10845
10846 * config/mips/mips.c (mips_add_cfa_restore): New function.
10847 (mips16e_save_restore_reg): Use it.
10848 (mips_restore_reg): Likewise. Split double FPRs for
10849 REG_CFA_RESTORE notes.
10850
10851 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10852
10853 PR middle-end/50386
10854 PR middle-end/50326
10855 * tree-sra.c (build_ref_for_model): Use the type of the field as
10856 the type of the COMPONENT_REF.
10857
10858 2011-09-27 Jeff Law <law@redhat.com>
10859
10860 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
10861 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
10862 (find_if_case_1): Use the probability of the THEN clause when
10863 determining if speculation is profitable.
10864 (find_if_case_2): Similarly for the ELSE clause.
10865
10866 2011-09-27 Jakub Jelinek <jakub@redhat.com>
10867
10868 * common.opt: Add -foptimize-strlen option.
10869 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
10870 (tree-sssa-strlen.o): Add dependencies.
10871 * opts.c (default_options_table): Enable -foptimize-strlen
10872 by default at -O2 if not -Os.
10873 * passes.c (init_optimization_passes): Add pass_strlen
10874 after pass_object_sizes.
10875 * timevar.def (TV_TREE_STRLEN): New timevar.
10876 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
10877 * tree-pass.h (pass_strlen): Declare.
10878 * tree-ssa-strlen.c: New file.
10879 * c-decl.c (merge_decls): If compatible stpcpy prototype
10880 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
10881
10882 2011-09-27 Tom de Vries <tom@codesourcery.com>
10883
10884 PR middle-end/43864
10885 * tree-ssa-tail-merge.c: New file.
10886 (struct same_succ_def): Define.
10887 (same_succ, const_same_succ): New typedef.
10888 (struct bb_cluster_def): Define.
10889 (bb_cluster, const_bb_cluster): New typedef.
10890 (struct aux_bb_info): Define.
10891 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
10892 (gvn_uses_equal): New function.
10893 (same_succ_print, same_succ_print_traverse, update_dep_bb)
10894 (stmt_update_dep_bb, local_def, same_succ_hash)
10895 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
10896 (same_succ_reset): New function.
10897 (same_succ_htab, same_succ_edge_flags)
10898 (deleted_bbs, deleted_bb_preds): New var.
10899 (debug_same_succ): New function.
10900 (worklist): New var.
10901 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
10902 (init_worklist, delete_worklist, delete_basic_block_same_succ)
10903 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
10904 (print_cluster, debug_cluster, update_rep_bb)
10905 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
10906 (all_clusters): New var.
10907 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
10908 (merge_clusters, set_cluster): New function.
10909 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
10910 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
10911 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
10912 (find_clusters_1, find_clusters): New function.
10913 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
10914 (update_bbs): New var.
10915 (apply_clusters): New function.
10916 (update_debug_stmt, update_debug_stmts): New function.
10917 (tail_merge_optimize): New function.
10918 tree-pass.h (tail_merge_optimize): Declare.
10919 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
10920 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
10921 (tree-ssa-tail-merge.o): New rule.
10922 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
10923 default at OPT_LEVELS_2_PLUS.
10924 * tree-ssa-sccvn.c (vn_valueize): Move to ...
10925 * tree-ssa-sccvn.h (vn_valueize): Here.
10926 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
10927 * common.opt (ftree-tail-merge): New switch.
10928 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
10929 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
10930 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
10931 (-ftree-tail-merge, max-tail-merge-comparisons)
10932 (max-tail-merge-iterations): New item.
10933
10934 2011-09-27 Jan Hubicka <jh@suse.cz>
10935
10936 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
10937
10938 2011-09-27 Jan Hubicka <jh@suse.cz>
10939
10940 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
10941 parameters passed by reference; handle loads from non-SSA scalars
10942 and update comments.
10943
10944 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
10945
10946 PR rtl-optimization/50249
10947 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
10948 instead of opnum and type. All callers changed. Remove useless
10949 declaration.
10950 Search forward for other reloads of the same type for the same operand
10951 using the same register; if any are found, return false.
10952 (reload_regs_reach_end_p): Same argument changes; all callers changed.
10953
10954 2011-09-27 Andi Kleen <ak@linux.intel.com>
10955 Jan Hubicka <jh@suse.cz>
10956
10957 * doc/invoke.texi (ffat-lto-objects): Document.
10958 * toplev.c (compile_file): Do not output assembly when doing slim lto;
10959 Output __gnu_slim_lto when doing slim lto.
10960 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
10961 (cgraph_optimize): Return early when doing slim lto.
10962 * opts.c (finish_options): Complain about lack of linker plugin
10963 when doing slim lto.
10964 * common.opt (ffat-lto-objects): New.
10965
10966 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
10967
10968 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
10969 between signed and unsigned.
10970
10971 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
10972
10973 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
10974 vectorization.
10975 (vectorizable_type_promotion): Likewise.
10976 (vect_analyze_stmt): Call vectorizable_type_demotion and
10977 vectorizable_type_promotion for basic blocks.
10978 (supportable_widening_operation): Don't assume loop vectorization.
10979 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
10980 basic blocks. Update vectorization factor for basic block
10981 vectorization.
10982 (vect_analyze_slp_instance): Allow multiple types for basic block
10983 vectorization. Recheck unrolling factor after construction of SLP
10984 instance.
10985
10986 2011-09-27 Richard Guenther <rguenther@suse.de>
10987
10988 * tree-object-size.c (compute_object_sizes): Fix dumping of
10989 folded statement.
10990
10991 2011-09-27 Richard Guenther <rguenther@suse.de>
10992
10993 PR tree-optimization/50363
10994 * tree-ssa-pre.c (create_expression_by_pieces): Handle
10995 pointer conversions in POINTER_PLUS_EXPRs properly.
10996
10997 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
10998
10999 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
11000 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
11001 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
11002 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
11003 that produce subreg moves. Define using VQX iterators.
11004
11005 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
11006
11007 * config/avr/avr.md (ashrqi3): Split alternative "n"
11008 into its remaining parts C03, C04, C05, C06, C07 and describe
11009 impact in CC by attribute "cc" appropriately.
11010 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
11011 by digging RTX.
11012
11013 2011-09-27 Jakub Jelinek <jakub@redhat.com>
11014
11015 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
11016 from 3 x MAX_MACHINE_MODE.
11017 (CONSTM1_RTX): Define.
11018 * emit-rtl.c (const_tiny_rtx): Change into array of
11019 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
11020 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
11021 CONSTM1_RTX.
11022 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
11023 MODE_VECTOR_INT modes.
11024 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
11025 Optimize if one operand is CONSTM1_RTX.
11026 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
11027 into mask | x.
11028
11029 2011-09-26 David S. Miller <davem@davemloft.net>
11030
11031 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
11032 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
11033 * config/sparc/visintrin.h: Update edge and pixel-compare
11034 intrinsics to return 'long' instead of 'int'.
11035 * doc/extend.texi: Update documentation to match.
11036 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
11037 flat, allow any instruction. Otherwise, when V9 allow parallels
11038 which consist only of sets to registers outside of %o0 to %o5.
11039 (sparc_vis_init_builtins): Update VIS builtin types for edge
11040 and pixel-compare.
11041
11042 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
11043 is enabled, mark %gsr as global.
11044 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
11045 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
11046
11047 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
11048 which will now define __VIS and __VIS__ when -mvis is enabled.
11049 * config/sparc/t-sparc: Likewise.
11050 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
11051 and add t-sparc to tmake_file for all sparc targets.
11052 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
11053 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
11054
11055 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
11056 builtins for VIS vector addition and subtraction.
11057 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
11058 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
11059 __vis_fpsub32, __vis_fpsub32s): New.
11060 * doc/extend.texi: Document new VIS intrinsics.
11061
11062 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
11063
11064 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
11065 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
11066 EQ/NE comparisons against +/-1 in the case of unused-after,
11067 non-ld-regs target.
11068
11069 2011-09-26 Jakub Jelinek <jakub@redhat.com>
11070
11071 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
11072 gctx.into_ssa after push_gimplify_context.
11073
11074 * gimple.c (gimple_build_call_valist): New function.
11075 * gimple.h (gimple_build_call_valist): New prototype.
11076 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
11077 (update_gimple_call): Likewise.
11078 (update_call_from_tree): Use finish_update_gimple_call.
11079 * tree-ssa-propagate.h (update_gimple_call): New prototype.
11080
11081 2011-09-26 Richard Guenther <rguenther@suse.de>
11082
11083 PR tree-optimization/50472
11084 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
11085 volatile references.
11086
11087 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
11088
11089 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
11090 * target.def: (addr_space_subset_p): Likewise.
11091
11092 2011-09-26 Tom de Vries <tom@codesourcery.com>
11093
11094 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
11095 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
11096 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
11097 of new var.
11098
11099 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
11100
11101 PR target/50465
11102 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
11103 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
11104 output_reload_insisf.
11105 (adjust_len): Set default to "no".
11106 Remove alternative "yes". Add alternatives: "mov8", "mov16",
11107 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
11108 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
11109 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
11110 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
11111 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
11112 *lshrsi3_const): Set attribute "adjust_len".
11113 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
11114 (output_movsisf): Don't pass insn to output_reload_insisf.
11115 (adjust_insn_length): Handle new alternatives to adjust_len.
11116 Remove handling of ADJUST_LEN_YES. Clean-up code.
11117
11118 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
11119
11120 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
11121 may_trap_p to detect loads that may trap of fault.
11122
11123 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
11124
11125 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
11126 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
11127 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
11128 prototype.
11129 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
11130 * config/avr/avr.c: Rename output_reload_insisf_1 to
11131 output_reload_in_const.
11132 (avr_popcount_each_byte): Handle SFmode, too.
11133 (output_reload_in_const): Change so it can handle HI loads, too.
11134 Use avr_popcount_each_byte to work out if scratch register must be
11135 created on the fly.
11136 (output_reload_inhi): Rewrite using output_reload_in_const and...
11137 (output_movhi): ...use it to print constants' loads.
11138 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
11139
11140 2011-09-25 David S. Miller <davem@davemloft.net>
11141
11142 * config/sparc/constraints.md (C, P, Z): New constraints for
11143 const_doube, const_int, and const_vector "all ones" values.
11144 Make unused constraint letters comment match reality.
11145 * config/sparc/predicates.md (const_all_ones_operand,
11146 register_or_zero_or_all_ones_operand): New predicates.
11147 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
11148 as well as zero constants when VIS.
11149 (sparc_legitimate_constant_p): Likewise.
11150 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
11151 (movsf_insn): Likewise
11152 (movdi_insn_sp64): Add fone alternative.
11153 (movdf_insn_sp32_v9): Likewise.
11154 (movdf_insn_sp64): Likewise.
11155
11156 * configure.ac: Add feature check to make sure the assembler
11157 supports the FMAF, HPC, and VIS 3.0 instructions found on
11158 Niagara-3 and later cpus.
11159 * configure: Rebuild.
11160 * config.in: Likewise.
11161 * config/sparc/sparc.opt: New option '-mfmaf'.
11162 * config/sparc/sparc.md: Add float fused multiply-add patterns.
11163 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
11164 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
11165 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
11166 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
11167 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
11168 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
11169 disabled.
11170 (sparc_rtx_costs): Handle 'FMA'.
11171 * doc/invoke.texi: Document -mfmaf.
11172
11173 2011-09-25 Jakub Jelinek <jakub@redhat.com>
11174
11175 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
11176 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
11177 DECL_BY_REFERENCE parameters.
11178
11179 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
11180
11181 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
11182 if there is no outgoing edge.
11183
11184 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
11185 integral types.
11186
11187 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
11188
11189 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
11190 of vect_analyze_bb here.
11191 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
11192
11193 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
11194
11195 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
11196 Allow not simple iv if analyzing basic block.
11197 (create_data_ref): Update call to dr_analyze_innermost.
11198 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
11199 * tree-loop-distribution.c (generate_memset_zero): Likewise.
11200 * tree-predcom.c (find_looparound_phi): Likewise.
11201 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
11202
11203 2011-09-24 David S. Miller <davem@davemloft.net>
11204
11205 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
11206 (SPARC_GSR_REG): Define.
11207 (FIXED_REGISTERS): Mark GSR as fixed.
11208 (CALL_USED_REGISTERS): Mark GSR as call used.
11209 (HARD_REGNO_NREGS): GSR is always 1 register.
11210 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
11211 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
11212 (REGISTER_NAMES): Add "%gsr".
11213 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
11214 (UNSPEC_WRGSR): New unspec.
11215 (GSR_REG): New constant.
11216 (type): Add new insn type 'gsr'.
11217 (fpack16_vis, fpackfix_vis, fpack32_vis,
11218 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
11219 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
11220 rdgsr_v8plus): New expanders and insns.
11221 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
11222 using patterns which show that this is a plus in addition to a
11223 modification of GSR_REG, instead of an unspec.
11224 * config/sparc/ultra1_2.md: Handle 'gsr'.
11225 * config/sparc/ultra3.md: Likewise.
11226 * config/sparc/niagara.md: Likewise.
11227 * config/sparc/niagara2.md: Likewise.
11228 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
11229 end of table.
11230 (sparc_option_override): Make -mvis imply -mv8plus.
11231 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
11232 for %gsr.
11233 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
11234 __builtin_vis_read_gsr.
11235 (sparc_expand_buildin): Handle builtins that take one argument and
11236 return void.
11237 (sparc_fold_builtin): Never fold writes to %gsr.
11238 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
11239 * doc/extend.texi: Document new VIS intrinsics.
11240
11241 2011-09-23 Jan Hubicka <jh@suse.cz>
11242
11243 * ipa-inline-transform.c (inline_call): Add comment.
11244 * ipa-inline.h (inline_param_summary): New structure and vector.
11245 (struct inline_edge_summary): Add param field.
11246 * ipa-inline-analysis.c (CHANGED): New constant.
11247 (add_clause): Handle CHANGED and NOT_CONSTANT.
11248 (predicate_probability): New function.
11249 (dump_condition): Dump CHANGED predicate.
11250 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
11251 of unknown function wide invariant.
11252 (evaluate_conditions_for_edge): Handle change probabilities.
11253 (inline_edge_duplication_hook): Copy param summaries.
11254 (inline_edge_removal_hook): Free param summaries.
11255 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
11256 sizes; dump param summaries.
11257 (will_be_nonconstant_predicate): Use CHANGED predicate.
11258 (record_modified_bb_info): New structure.
11259 (record_modified): New function.
11260 (param_change_prob): New function.
11261 (estimate_function_body_sizes): Compute param summaries.
11262 (estimate_edge_size_and_time): Add probability argument.
11263 (estimate_node_size_and_time): Add inline_param_summary argument;
11264 handle predicate probabilities.
11265 (remap_predicate): Fix formating.
11266 (remap_edge_change_prob): New function.
11267 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
11268 (remap_edge_predicates): ... this one.
11269 (inline_merge_summary): Remap edge summaries; handle predicate
11270 probabilities; remove param summaries after we are done.
11271 (do_estimate_edge_time): Update.
11272 (do_estimate_edge_growth): Update.
11273 (read_inline_edge_summary): Read param info.
11274 (inline_read_summary): Fix formating.
11275 (write_inline_edge_summary): Write param summaries.
11276
11277 2011-09-23 Jakub Jelinek <jakub@redhat.com>
11278
11279 * config/i386/i386.c (ix86_print_operand): Handle %~.
11280 (ix86_print_operand_punct_valid_p): Return true also for '~'.
11281 * config/i386/sse.md (i128): New mode_attr.
11282 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
11283 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
11284 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
11285 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
11286 patterns, use "<sseinsnmode>" for "mode" attribute.
11287 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
11288 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
11289 %~128 in the patterns, use "OI" for "mode" attribute.
11290
11291 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11292
11293 PR target/50447
11294 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
11295 "tstsi", "compare".
11296 (*cmpqi_sign_extend): Use s8_operand.
11297 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
11298 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
11299 prototypes.
11300 (out_tsthi, out_tstsi): Remove prototypes.
11301 (avr_out_tsthi, avr_out_tstsi): New prototypes.
11302 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
11303 (avr_asm_len): Negative length now sets *plen to -length.
11304 (compare_sign_p): Return bool instead of int.
11305 (compare_diff_p, compare_eq_p): Ditto and make static.
11306 (avr_out_tsthi): New function.
11307 (avr_out_tstsi): New function.
11308 (avr_out_compare): New function.
11309 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
11310 ADJUST_LEN_COMPARE.
11311
11312 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11313
11314 PR target/50447
11315 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
11316 (addsi3): Rewrite using QI scratch register. Adjust text
11317 peepholes using plus:SI.
11318 (*addsi3_zero_extend.hi): New insn.
11319 (*subsi3_zero_extend.hi): New insn.
11320 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
11321 (*subsi3_zero_extend): Ditto.
11322 (subsi3): Change predicate #2 to register_operand.
11323 * config/avr/avr-protos.h (avr_out_plus): New prototype.
11324 (avr_out_plus_1): New static function.
11325 (avr_out_plus): New function.
11326 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
11327
11328 2011-09-23 Jakub Jelinek <jakub@redhat.com>
11329
11330 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
11331 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
11332
11333 2011-09-23 Ian Lance Taylor <iant@google.com>
11334
11335 * godump.c (go_define): Treat a single character in single quotes,
11336 or a string, as an operand.
11337
11338 2011-09-23 Martin Jambor <mjambor@suse.cz>
11339
11340 * ipa-prop.h (jump_func_type): Updated comments.
11341 (ipa_known_type_data): New type.
11342 (ipa_jump_func): Use it to describe known type jump functions.
11343 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
11344 reflect the new known type jump function contents.
11345 (compute_known_type_jump_func): Likewise.
11346 (combine_known_type_and_ancestor_jfs): Likewise.
11347 (try_make_edge_direct_virtual_call): Likewise.
11348 (ipa_write_jump_function): Likewise.
11349 (ipa_read_jump_function): Likewise.
11350 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
11351 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
11352 (propagate_accross_jump_function): Likewise.
11353
11354 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11355
11356 PR target/50446
11357 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
11358 (rotlqi3_4): Turn insn into expander.
11359 (*rotlqi3): New insn.
11360 (rotlhi3, rotlsi3): Support rotate left/right by 1.
11361 (*rotlhi2.1, *rotlhi2.15): New insns.
11362 (*rotlsi2.1, *rotlsi2.31): New insns.
11363 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
11364
11365 2011-09-23 Bin Cheng <bin.cheng@arm.com>
11366
11367 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
11368
11369 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11370
11371 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
11372
11373 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11374
11375 * reload.c (find_reloads): Set operand_mode to Pmode for address
11376 operands consisting of just a CONST_INT.
11377
11378 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
11379
11380 PR target/50482
11381 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
11382 blendv, force op_true to register if it doesn't satisfy
11383 nonimmediate_operand predicate.
11384
11385 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
11386
11387 PR middle-end/50113
11388 PR middle-end/50061
11389 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
11390 get the locate.where_pad value for register-only arguments.
11391 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
11392 (arm_pad_reg_upward): Handle null types.
11393
11394 2011-09-22 Jan Hubicka <jh@suse.cz>
11395
11396 * ipa-inline-analysis.c: Fix overly long lines.
11397
11398 2011-09-22 Jan Hubicka <jh@suse.cz>
11399
11400 * ipa-inline-transform.c (inline_call): Always update jump functions
11401 after inlining.
11402 * ipa-inline.c (ipa_inline): Likewise; do not call
11403 ipa_create_all_structures_for_iinln.
11404 (ipa_inline): Always free jump functions.
11405 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
11406 (remap_edge_predicates): Fix pasto.
11407 (inline_merge_summary): Remove nlined edge predicate; remove hack.
11408 (inline_analyze_function): Always initialize jump functions.
11409 (inline_generate_summary): Likewise.
11410 (inline_write_summary): Always write jump functions when ipa-cp
11411 is not doing that.
11412 (inline_read_summary): Always read jump functions when ipa-cp
11413 is not doing that.
11414 * ipa-prop.c (iinlining_processed_edges): Remove.
11415 (update_indirect_edges_after_inlining): Do not use
11416 iinlining_processed_edges; instead set param_index to -1.
11417 (propagate_info_to_inlined_callees): Only try to indirect inlining
11418 when asked to do so; update jump functions of indirect calls, too;
11419 remove jump functions of the inlined edge.
11420 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
11421 (ipa_create_all_structures_for_iinln): Remove.
11422 (ipa_free_all_structures_after_iinln): Do not free
11423 iinlining_processed_edges.
11424 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
11425
11426 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
11427
11428 * config/arm/predicates.md (expandable_comparison_operator): New
11429 predicate, extracted from...
11430 (arm_comparison_operator): ...here.
11431 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
11432 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
11433 (movdfcc): Use expandable_comparison_operator.
11434
11435 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
11436
11437 PR target/50447
11438 PR target/50465
11439 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
11440 (avr_popcount_each_byte): New prototype.
11441 * config/avr/avr.c (avr_popcount): New static function.
11442 (avr_popcount_each_byte): New function.
11443 (avr_out_bitop): New function.
11444 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
11445 avr_out_bitop. Cleanup code.
11446 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
11447 (Ca4, Co4, Cx4): New constraints.
11448 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
11449 alternative.
11450 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
11451 (andsi3, iorsi3, xorsi3): Ditto.
11452 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
11453
11454 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
11455
11456 PR tree-optimization/50451
11457 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
11458 constant operands in reduction.
11459 (vect_get_slp_defs): Don't create vector operand for NULL scalar
11460 operand.
11461
11462 2011-09-22 David S. Miller <davem@davemloft.net>
11463
11464 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
11465 fpack16, fpack32, fpackfix as const.
11466
11467 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
11468 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
11469 constants. Use them everywhere.
11470
11471 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
11472
11473 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
11474 Added AND special case. Adapted comments.
11475 (sh_rtx_costs): Added XOR and IOR case.
11476
11477 2011-09-21 Jan Hubicka <jh@suse.cz>
11478
11479 * ipa-inline-analsis.c (compute_inline_parameters): Set
11480 cfun and current_function_decl.
11481
11482 2011-09-21 Jan Hubicka <jh@suse.cz>
11483
11484 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
11485 handled components in parameter of builtin_constant_p.
11486 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
11487
11488 2011-09-21 Jan Hubicka <jh@suse.cz>
11489
11490 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
11491 * ipa-inline.h (estimate_edge_time): Fix pasto.
11492 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
11493
11494 2011-09-21 Jakub Jelinek <jakub@redhat.com>
11495
11496 * config/i386/i386.c (ix86_expand_sse_movcc): Use
11497 blendvps, blendvpd and pblendvb if possible.
11498
11499 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
11500
11501 PR target/50464
11502 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
11503 operand 1 predicate to register_operand and operand 2 predicate
11504 to nonimmediate_operand.
11505 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
11506 xop_pcmov, force op_true to register. Also, force op_false to
11507 register if it doesn't satisfy nonimmediate_operand predicate.
11508
11509 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
11510
11511 * config/i386/bmi2intrin.h (_mulx_u64): New.
11512 (_mulx_u32): Ditto.
11513
11514 2011-09-21 Jan Hubicka <jh@suse.cz>
11515
11516 PR tree-optimization/50433
11517 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
11518 Use get_base_address.
11519
11520 2011-09-21 Jakub Jelinek <jakub@redhat.com>
11521
11522 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
11523 nonimmediate_operand instead of register_operand predicate for operands
11524 1 and 2, force them into registers if expanding them as comparison.
11525 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
11526 V8HImode force into register just operand 1.
11527
11528 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
11529
11530 PR target/45099
11531 * config/avr/avr.c (avr_function_arg_advance): Change error to
11532 warning if a fixed register is needed as function argument.
11533
11534 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
11535
11536 PR target/50449
11537 PR target/50465
11538 * config/avr/avr.md (adjust_len): New insn attribute.
11539 (*reload_insi, *reload_insf): Use it.
11540 (*movsi, *movsf): Use new interface of output_movsisf.
11541 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11542 * config/avr/avr.c (output_movsisf): Ditto.
11543 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
11544 lengths of insns *reload_insi, *reload_insf.
11545 (output_reload_insisf_1): New static function.
11546 (output_reload_insisf): Use it.
11547
11548 2011-09-21 David S. Miller <davem@davemloft.net>
11549
11550 * config/sparc/sparc.c (def_builtin): Change from macro into function.
11551 (def_builtin_const): New.
11552 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
11553 other than alignaddr and falignaddr.
11554
11555 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
11556 UNSPEC_FCMPEQ): New unspec codes.
11557 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
11558 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
11559 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
11560 new pixel compare VIS patterns.
11561 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
11562 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
11563 __vis_fcmpeq16, __vis_fcmpeq32): New.
11564 * doc/extend.texi: Document new pixel compare VIS intrinsics.
11565
11566 2011-09-21 Tom de Vries <tom@codesourcery.com>
11567
11568 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
11569
11570 2011-09-20 David S. Miller <davem@davemloft.net>
11571
11572 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
11573 (aligneddrl<P:mode>_vis): New pattern.
11574 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
11575 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
11576 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
11577 alignaddrl insn, and adjust edge operations for updated types.
11578 * config/sparc/visintrin.h: Likewise.
11579 * doc/extend.texi: Make typing in VIS documentation match reality.
11580
11581 2011-09-20 Terry Guo <terry.guo@arm.com>
11582
11583 * config/arm/arm-arches.def: Add armv6s-m.
11584 * config/arm/arm-tables.opt: Regenerate.
11585
11586 2011-09-20 Wei Guozhi <carrot@google.com>
11587
11588 PR rtl-optimization/49452
11589 * postreload.c (reload_combine): Invalidate use information when across
11590 volatile insn.
11591
11592 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
11593
11594 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
11595 Remove maintenance overhead.
11596 (haifa_sched_init, sched_finish): Update.
11597
11598 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
11599
11600 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
11601 to calculate unit, prefix_rep and prefix_data16 attributes.
11602 (*mov<mode>_internal): Ditto for unit attribute.
11603 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
11604 (*movv2sf_internal): Ditto.
11605 * config/i386/sse.md (VI1248_256): Remove mode iterator.
11606 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
11607 (*avx2_eq<mode>3): Ditto.
11608 (avx2_gt<mode>3): Ditto.
11609
11610 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
11611
11612 * config/i386/i386.md (maxmin): New code iterator.
11613 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
11614 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
11615 code iterator.
11616 (*avx2_<maxmin:code><mode>3): Macroize isn from
11617 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
11618 maxmin code iterator.
11619 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
11620 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
11621 <umaxmin:code>v16qi3.
11622
11623 2011-09-19 Alan Modra <amodra@gmail.com>
11624 Michael Meissner <meissner@linux.vnet.ibm.com>
11625
11626 PR target/50341
11627 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
11628 split the load of the indirect function's TOC from the call to
11629 prevent the compiler from moving the load of the new TOC above
11630 code that references the current function's TOC.
11631 (call_indirect_aix<ptrsize>_internal): Ditto.
11632 (call_indirect_aix<ptrsize>_nor11): Ditto.
11633 (call_indirect_aix<ptrsize>_internal2): Ditto.
11634 (call_value_indirect_aix<ptrsize>): Ditto.
11635 (call_value_indirect_aix<ptrsize>_internal): Ditto.
11636 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11637 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11638
11639 2011-09-19 Jakub Jelinek <jakub@redhat.com>
11640
11641 * config/i386/sse.md (*sse4_1_extractps): Change into
11642 define_insn_and_split, add =x 0 n and =x x n alternatives
11643 and split them after reload.
11644
11645 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
11646
11647 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
11648
11649 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
11650
11651 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
11652
11653 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
11654
11655 PR tree-optimization/50413
11656 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
11657 a basic block if one of its data-refs can't be analyzed.
11658
11659 2011-09-19 Paul Brook <paul@codesourcery.com>
11660
11661 * config/arm/predicates.md (shift_amount_operand): Check constant
11662 shift count is in range.
11663 (const_shift_operand): Remove.
11664
11665 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
11666 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11667
11668 PR target/50091
11669 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
11670 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
11671
11672 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
11673
11674 * config/i386/bmiintrin.h: Remove tmp.
11675 * config/i386/tbmintrin.h: Likewise.
11676
11677 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
11678
11679 PR tree-optimization/50414
11680 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
11681 MIN_EXPR.
11682
11683 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
11684
11685 PR tree-optimization/50412
11686 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
11687 acceses that require epilogue loop if vectorizing outer loop.
11688
11689 2011-09-17 David S. Miller <davem@davemloft.net>
11690
11691 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
11692 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
11693 New unspecs.
11694 (define_attr type): New type 'edge'.
11695 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
11696 edge32l_vis): New patterns.
11697 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
11698 * config/sparc/ultra3.md: Likewise.
11699 * config/sparc/niagara.md: Likewise.
11700 * config/sparc/niagara2.md: Likewise.
11701 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
11702 builtins for VIS edge instructions.
11703 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
11704 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
11705 intrinsics.
11706 (__v8qi, __v4qi): Make unsigned.
11707 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
11708 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
11709 __vis_fpack32): Fix types.
11710 * doc/extend.texi: Document new 'edge' VIS intrinsics.
11711
11712 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
11713 divide costs.
11714 (niagara3_costs): New.
11715 (sparc_option_override): Use it.
11716 * gcc/config/sparc/niagara2.md: Adjust with more accurate
11717 Niagara-3 reservations.
11718
11719 2011-09-17 Jakub Jelinek <jakub@redhat.com>
11720
11721 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
11722 (sse2_avx, sseinsnmode): Add V2TI.
11723 (REDUC_SMINMAX_MODE): New mode iterator.
11724 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
11725 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
11726 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
11727 (sse2_lshrv1ti3): Rename to...
11728 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
11729 iterator. Move before umaxmin expanders.
11730 * config/i386/i386.h (VALID_AVX256_REG_MODE,
11731 SSE_REG_MODE_P): Accept V2TImode.
11732 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
11733 V16HImode, V8SImode and V4DImode.
11734
11735 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
11736 and V4DImode.
11737 (ix86_build_signbit_mask): Likewise.
11738 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
11739 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
11740 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
11741 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
11742 (<code><mode>3) ... this.
11743 (avx2_<code><mode>3 smaxmin expand): Rename to...
11744 (<code><mode>3) ... this.
11745 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
11746 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
11747 VI8_AVX2 mode iterator.
11748 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
11749 VI8_AVX2 mode iterator.
11750 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
11751 New expanders.
11752
11753 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
11754
11755 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
11756 throughout file.
11757
11758 2011-09-16 David S. Miller <davem@davemloft.net>
11759
11760 * config/sparc/visintrin.h: New file.
11761 * config.gcc: Add it to extra_headers on sparc.
11762
11763 2011-09-16 Jakub Jelinek <jakub@redhat.com>
11764
11765 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
11766 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
11767 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
11768 reduc_smin_v4sf): Adjust callers.
11769 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
11770 New expanders.
11771
11772 * config/i386/sse.md (vec_extract_hi_<mode>,
11773 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
11774 vextracti128 instead of vextractf128 for -mavx2 and
11775 integer vectors. For V4DFmode fix up mode attribute.
11776 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
11777 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
11778 instead of V8SF mode attribute.
11779 (avx2_extracti128): Change into define_expand.
11780 * config/i386/i386.c (ix86_expand_vector_extract): Handle
11781 32-byte vector modes if TARGET_AVX.
11782
11783 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
11784
11785 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
11786 (umulqi3_highpart, smulqi3_highpart): Ditto.
11787 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
11788 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
11789 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
11790
11791 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
11792
11793 PR target/50358
11794 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
11795 (*maddqi4, *maddqi4.const): New insns.
11796 (*msubqi4, *msubqi4.const): New insns.
11797 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
11798 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
11799 HImode by 1 in the case of multiplying with a CONST_INT.
11800 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
11801
11802 2011-09-15 Jan Hubicka <jh@suse.cz>
11803
11804 PR lto/50430
11805 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
11806 error_mark_node in the DECL_INITIAL of vtable.
11807
11808 2011-09-15 Diego Novillo <dnovillo@google.com>
11809
11810 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
11811 @SYSROOT_CFLAGS_FOR_TARGET@.
11812 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
11813 * configure: Regenerate.
11814 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
11815 Remove setting of GCC_UNDER_TEST.
11816
11817 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
11818
11819 * config/i386/i386.c (output_fp_compare): Return %v prefixed
11820 instruction mnemonics for TARGET_AVX.
11821
11822 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
11823 "type" attribute calculation.
11824 (*movdf_internal): Ditto.
11825 (*movsf_internal): Ditto.
11826
11827 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
11828
11829 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
11830
11831 2011-09-15 Jason Merrill <jason@redhat.com>
11832
11833 PR c++/50361
11834 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
11835
11836 2011-09-15 Jan Hubicka <jh@suse.cz>
11837
11838 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
11839 simplify obviously true clauses.
11840 (and_predicates, or_predicates): Add conditions parameter.
11841 (inline_duplication_hoook): Update.
11842 (mark_modified): New function.
11843 (unmodified_parm): New function.
11844 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
11845 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
11846 Use unmodified_parm.
11847 (estimate_function_body_sizes): Update.
11848 (remap_predicate): Update.
11849
11850 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
11851
11852 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
11853 read-after-read dependencies in basic block SLP.
11854
11855 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11856
11857 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
11858 throughout file.
11859
11860 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11861
11862 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
11863 throughout file.
11864
11865 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11866
11867 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
11868 throughout file.
11869
11870 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11871
11872 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
11873 throughout file.
11874 * config/rs6000/constraints.md: Likewise.
11875
11876 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11877
11878 * config/microblaze/microblaze.md: Use match_test rather than
11879 eq/ne symbol_ref throughout file.
11880
11881 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11882
11883 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
11884 throughout file.
11885
11886 2011-09-14 Tom de Vries <tom@codesourcery.com>
11887
11888 PR middle-end/50251
11889 * explow.c (emit_stack_restore): Set crtl->need_drap if
11890 stack_restore is emitted.
11891
11892 2011-09-14 Julian Brown <julian@codesourcery.com>
11893
11894 * config/arm/arm.c (arm_override_options): Add unaligned_access
11895 support.
11896 (arm_file_start): Emit attribute for unaligned access as appropriate.
11897 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
11898 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
11899 (insv, extzv): Add unaligned-access support.
11900 (extv): Change to expander. Likewise.
11901 (extzv_t1, extv_regsi): Add helpers.
11902 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
11903 (unaligned_storesi, unaligned_storehi): New.
11904 (*extv_reg): New (previous extv implementation).
11905 * config/arm/arm.opt (munaligned_access): Add option.
11906 * config/arm/constraints.md (Uw): New constraint.
11907 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
11908 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
11909 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
11910 volatile accesses when -fstrict-volatile-bitfields is in effect.
11911 (extract_bit_field_1): Likewise.
11912
11913 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11914
11915 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
11916 a scalar integer before applying integer-only optimisations to
11917 inner arithmetic.
11918
11919 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
11920
11921 * config/mips/mips.c (mips_expand_epilogue): Generate a
11922 simple_return only if the return address is in r31.
11923
11924 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
11925
11926 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
11927 NULL for a jump that is a cc0 insn, pick the previous insn for
11928 move_before.
11929
11930 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11931
11932 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
11933 throughout file.
11934
11935 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11936
11937 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
11938 throughout file.
11939
11940 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11941
11942 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
11943 symbol_ref throughout file.
11944
11945 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11946
11947 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
11948 throughout file.
11949
11950 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11951
11952 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
11953 throughout file.
11954
11955 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11956
11957 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
11958 throughout file.
11959 * config/arm/neon.md: Likewise.
11960 * config/arm/vfp.md: Likewise.
11961 * config/arm/thumb2.md: Likewise.
11962 * config/arm/cortex-m4.md: Likewise.
11963
11964 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
11965
11966 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
11967 define_insn patterns for combine.
11968
11969 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
11970
11971 * reorg.c: Always define make_return_insns.
11972
11973 2011-09-13 Jan Hubicka <jh@suse.cz>
11974
11975 PR other/49533
11976 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
11977
11978 2011-09-13 Jan Hubicka <jh@suse.cz>
11979
11980 PR other/49533
11981 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
11982
11983 2011-09-13 Paul Brook <paul@codesourcery.com>
11984
11985 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11986 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
11987 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
11988 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
11989 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
11990 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
11991 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
11992 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
11993 enabling unwind tables.
11994 (c6x_debug_unwind_info): New function.
11995 (TARGET_ARM_EABI_UNWINDER): Define.
11996 (TARGET_DEBUG_UNWIND_INFO): Define.
11997 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
11998 (TARGET_EXTRA_CFI_SECTION): Remove.
11999 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
12000 * ginclude/unwind-arm-common.h: New file.
12001
12002 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
12003
12004 PR target/50358
12005 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
12006 * config/avr/avr.md: (extend_s): New code attribute.
12007 (mul_r_d): New code attribute.
12008 (*maddqihi4, *umaddqihi4): New insns.
12009 (*msubqihi4, *umsubqihi4): New insns.
12010 (*usmaddqihi4, *sumaddqihi4): New insns.
12011 (*usmsubqihi4, *susubdqihi4): New insns.
12012 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
12013 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
12014 (*umsubqihi4.uconst.ashift): New insn-and-split.
12015 (*msubqihi4.sconst.ashift): New insn-and-split.
12016 (*sumaddqihi4.uconst): New insn-and-split.
12017 (*sumsubqihi4.uconst): New insn-and-split.
12018 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
12019 PLUS:HI and MINUS:HI.
12020
12021 2011-09-13 Revital Eres <revital.eres@linaro.org>
12022
12023 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
12024 (optimize_sc): Adjust call to remove_node_from_ps.
12025 (sms_schedule): Add print info.
12026
12027 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
12028
12029 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
12030 flags specially.
12031
12032 2011-09-12 Jakub Jelinek <jakub@redhat.com>
12033
12034 PR bootstrap/50010
12035 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
12036 NOTE_INSN_CFI notes, with the exception of
12037 NOTE_INSN_SWITCH_TEXT_SECTIONS.
12038
12039 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
12040 Richard Sandiford <rdsandiford@googlemail.com>
12041
12042 * config/mips/mips.c (mips_epilogue): New structure.
12043 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
12044 restoring registers.
12045 (mips_epilogue_emit_cfa_restores): New function.
12046 (mips_epilogue_set_cfa): Likewise.
12047 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
12048 the current CFA register from the stack, redefine the CFA in terms
12049 of the stack pointer.
12050 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
12051 to the epilogue instructions.
12052
12053 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
12054
12055 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
12056 argument.
12057 (mips16e_build_save_restore): Update accordingly.
12058
12059 2011-09-12 Jakub Jelinek <jakub@redhat.com>
12060
12061 PR rtl-optimization/50212
12062 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12063 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
12064
12065 PR debug/50299
12066 * calls.c (load_register_parameters): Use use_reg_mode instead
12067 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
12068 entry.
12069 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
12070 for stack CALL_INSN_FUNCTION_USAGE uses.
12071 * expr.h (use_reg_mode): New prototype.
12072 (use_reg): Changed into inline around use_reg_mode.
12073 * expr.c (use_reg): Renamed to...
12074 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
12075 mode to that mode instead of VOIDmode.
12076 * var-tracking.c (prepare_call_arguments): Don't track parameters
12077 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
12078 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
12079 EXPR_LIST mode.
12080
12081 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
12082
12083 PR target/43746
12084 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
12085 (progmem_section): New Variable.
12086 (avr_asm_init_sections): Initialize it.
12087 (TARGET_ASM_SELECT_SECTION): Define to...
12088 (avr_asm_select_section): ... this new Function.
12089 (avr_replace_prefix): New Function.
12090 (avr_asm_function_rodata_section): Use it.
12091 (avr_insert_attributes): Don't add section attribute for PROGMEM.
12092 (avr_section_type_flags): Use avr_progmem_p instead of section
12093 name to detect if object is in PROGMEM.
12094 (avr_asm_named_section): Set section name prefix for objects in
12095 PROGMEM.
12096
12097 2011-09-12 Jakub Jelinek <jakub@redhat.com>
12098
12099 PR bootstrap/50352
12100 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
12101 sprintf format string.
12102
12103 2011-09-12 Richard Guenther <rguenther@suse.de>
12104
12105 PR tree-optimization/50343
12106 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
12107 that the reduction is over an SSA name before checking its definition.
12108
12109 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
12110
12111 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
12112 throughout file.
12113
12114 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
12115
12116 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
12117 throughout file.
12118 * config/mips/sb1.md: Likewise.
12119 * config/mips/predicates.md: Replace (match_test "!...")
12120 with (not (match_test "..."))
12121 * config/mips/constraints.md: Likewise.
12122
12123 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
12124
12125 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
12126 * config/arm/arm-tables.opt: Regenerate.
12127 * config/arm/arm-tune.md: Regenerate.
12128 * config/arm/arm.c (arm_file_start): Output .arch directive when
12129 user passes -mcpu=generic-*.
12130 (arm_issue_rate): Add genericv7a support.
12131 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
12132 (ASM_CPU_SPEC): New define.
12133 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
12134 * config/arm/semi.h (ASM_SPEC): Likewise.
12135 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
12136 and -mtune=generic-*.
12137
12138 2011-09-09 Richard Guenther <rguenther@suse.de>
12139
12140 PR tree-optimization/50328
12141 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
12142 constant or default-def operand.
12143
12144 2011-09-09 Richard Guenther <rguenther@suse.de>
12145
12146 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
12147 last statement.
12148
12149 2011-09-09 Richard Guenther <rguenther@suse.de>
12150
12151 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
12152 instead of a statement.
12153 * gimple-fold.c (fold_stmt_inplace): Likewise.
12154 * sese.c (graphite_copy_stmts_from_block): Adjust.
12155 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
12156 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
12157 fold_stmt.
12158 (forward_propagate_addr_into_variable_array_index): Likewise.
12159 (forward_propagate_addr_expr_1): adjust.
12160 (associate_plusminus): Likewise.
12161 (ssa_forward_propagate_and_combine): Likewise.
12162 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
12163 (execute_cse_reciprocals): Likewise.
12164 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
12165
12166 2011-09-09 Nick Clifton <nickc@redhat.com>
12167
12168 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
12169 Return a positive value to indicate that the bits at the
12170 bottom of the register should be cleared.
12171
12172 2011-09-09 Richard Guenther <rguenther@suse.de>
12173
12174 * tree-ssa-operands.c (swap_tree_operands): Always adjust
12175 existing operand positions.
12176
12177 2011-09-09 Richard Guenther <rguenther@suse.de>
12178
12179 PR middle-end/50333
12180 * tree-data-ref.c (split_constant_offset): Do not try to handle
12181 ternary ops.
12182
12183 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
12184
12185 PR tree-optimization/50318
12186 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
12187 typo in use of mult_rhs1 and mult_rhs2.
12188
12189 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
12190
12191 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
12192 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
12193
12194 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
12195
12196 * config/arm/arm.md (push_multi): Emit predicates.
12197 (push_fp_multi): Likewise.
12198 * config/arm/arm.c (vfp_output_fstmd): Likewise.
12199
12200 2011-09-08 Dodji Seketeli <dodji@redhat.com>
12201
12202 PR c++/33255 - Support -Wunused-local-typedefs warning
12203 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
12204 (pushdecl): Use the new record_locally_defined_typedef.
12205 (store_parm_decls): Allocate cfun->language.
12206 (finish_function): Use the new maybe_warn_unused_local_typedefs,
12207 and free cfun->language.
12208 (c_push_function_context): Allocate cfun->language here only if needed.
12209 (c_pop_function_context): Likewise, mark cfun->language
12210 for collection only when it should be done.
12211 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
12212 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
12213 maybe_record_local_typedef_use.
12214 * doc/invoke.texi: Update documentation for
12215 -Wunused-local-typedefs.
12216
12217 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
12218
12219 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
12220 (ix86_avoid_lea_for_add): Likewise.
12221 (ix86_avoid_lea_for_addr): Likewise.
12222 (ix86_split_lea_for_addr): Likewise.
12223
12224 * config/i386/i386.c (LEA_MAX_STALL): New.
12225 (increase_distance): Likewise.
12226 (insn_defines_reg): Likewise.
12227 (insn_uses_reg_mem): Likewise.
12228 (distance_non_agu_define_in_bb): Likewise.
12229 (distance_agu_use_in_bb): Likewise.
12230 (ix86_lea_outperforms): Likewise.
12231 (ix86_ok_to_clobber_flags): Likewise.
12232 (ix86_avoid_lea_for_add): Likewise.
12233 (ix86_avoid_lea_for_addr): Likewise.
12234 (ix86_split_lea_for_addr): Likewise.
12235 (distance_non_agu_define): Search in pred BBs added.
12236 (distance_agu_use): Search in succ BBs added.
12237 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
12238 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
12239 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
12240
12241 * config/i386/i386.md: Split added to transform non destructive
12242 add into move and add.
12243 (lea_1): transformed into insn_and_split to avoid AGU stalls.
12244 (lea<mode>_2): Likewise.
12245
12246 2011-09-08 Martin Jambor <mjambor@suse.cz>
12247
12248 PR tree-optimization/50287
12249 * ipa-split.c (split_function): Do not create SSA names for
12250 non-gimple-registers.
12251
12252 2011-09-08 Richard Guenther <rguenther@suse.de>
12253
12254 PR tree-optimization/19831
12255 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
12256 skip builtins with vdefs that do not really store something.
12257 (propagate_necessity): For calls to free that we can associate
12258 with an allocation function do not mark the freed pointer
12259 definition necessary.
12260 (eliminate_unnecessary_stmts): Remove a call to free if
12261 the associated call to an allocation function is not necessary.
12262
12263 2011-09-08 Richard Guenther <rguenther@suse.de>
12264
12265 PR tree-optimization/19831
12266 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
12267 allocation functions as necessary.
12268
12269 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
12270
12271 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
12272 cut from ...
12273 (darwin_default_min_version): Amended to provide defaults
12274 for the cross directory case.
12275 (darwin_driver_init): call darwin_default_min_version unconditionally.
12276 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
12277 * config/darwin9.h: Likewise.
12278 * config/darwin10.h: Likewise.
12279 * config/rs6000/darwin7.h: Likewise.
12280
12281 2011-09-08 Jakub Jelinek <jakub@redhat.com>
12282
12283 PR target/50310
12284 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
12285 code early if TARGET_AVX.
12286 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
12287
12288 2011-09-07 Jakub Jelinek <jakub@redhat.com>
12289
12290 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
12291 duplicates.
12292
12293 PR target/50310
12294 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
12295 "mode" attribute computation.
12296
12297 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
12298
12299 * regrename.c (struct du_head): Make nregs signed.
12300 (closed_chains): Remove.
12301 (create_new_chain): Return the new chain.
12302 (chain_from_id): New static function.
12303 (dump_def_use_chain): Change argument to be an int, indicating
12304 the first ID to print. All callers changed.
12305 (merge_overlapping_regs): Use chain_from_id. Assert that
12306 chains don't conflict with themselves.
12307 (rename_chains): Take no argument. Iterate over id_to_chain
12308 rather to find chains to rename. Clear tick before the main loop.
12309 (struct incoming_reg_info): New struct.
12310 (struct bb_rename_info): New struct.
12311 (init_rename_info, set_incoming_from_chain, merge_chains): New
12312 static functions.
12313 (regrename_analyze): New static function, broken out of
12314 regrename_optimize. Record and make use of open chain information
12315 at basic block boundaries, and merge chains where possible.
12316 (scan_rtx_reg): Make this_nregs signed. Don't update
12317 closed_chains.
12318 (build_def_use): Return a bool to indicate success. All callers
12319 changed. Don't initialize global data here.
12320 (regrename_optimize): Move most code out of here into
12321 regrename_analyze.
12322 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
12323 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
12324 static inline functions.
12325 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
12326
12327 * bb-reorder.c (insert_section_boundary_note): Don't check
12328 optimize_function_for_speed_p.
12329 (gate_handle_partition_blocks): Do it here instead.
12330 (gate_handle_reorder_blocks): Move preliminary checks here ...
12331 (rest_of_handle_reorder_blocks): ... from here.
12332
12333 2011-09-07 Martin Jambor <mjambor@suse.cz>
12334
12335 PR middle-end/50301
12336 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
12337 function index bounds.
12338 (perhaps_add_new_callers): Likewise.
12339
12340 2011-09-07 Martin Jambor <mjambor@suse.cz>
12341
12342 PR tree-optimization/49911
12343 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
12344 enumerations to the corresponding plain integer type.
12345
12346 2011-09-07 Richard Guenther <rguenther@suse.de>
12347
12348 PR tree-optimization/50319
12349 * tree-if-conv.c (set_bb_predicate): Assert we only set
12350 canonical predicates.
12351 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
12352 around canonical predicates.
12353 (predicate_bbs): Do not re-gimplify already canonical
12354 predicates. Properly unshare them though.
12355 (find_phi_replacement_condition): Simplify.
12356
12357 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
12358
12359 PR target/49030
12360 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
12361 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
12362 reusing the old code from get_arm_condition_code. Return ARM_NV
12363 for invalid comparison codes.
12364 (get_arm_condition_code): Redefine in terms of
12365 maybe_get_arm_condition_code.
12366 * config/arm/predicates.md (arm_comparison_operator): Use
12367 maybe_get_arm_condition_code.
12368
12369 2011-09-07 Richard Guenther <rguenther@suse.de>
12370
12371 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12372 Canonicalize negated predicates by swapping edges.
12373 (forward_propagate_into_cond): Likewise.
12374
12375 2011-09-07 Richard Guenther <rguenther@suse.de>
12376
12377 PR tree-optimization/50213
12378 * tree-flow.h (simple_iv_increment_p): Declare.
12379 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
12380 POINTER_PLUS_EXPR.
12381 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
12382 not propagate simple IV counter increments.
12383
12384 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
12385 Iain Sandoe <iains@gcc.gnu.org>
12386
12387 * config/rs6000/rs6000.c (compute_save_world_info): Test
12388 cfun->has_nonlocal_label to determine if the out-of-line save
12389 world call may be used.
12390
12391 2011-09-07 Nick Clifton <nickc@redhat.com>
12392
12393 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
12394 label on the parallel part of the insn.
12395
12396 2011-09-07 Jakub Jelinek <jakub@redhat.com>
12397
12398 PR debug/50191
12399 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
12400 avoid_constant_pool_reference first instead of last.
12401
12402 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12403
12404 * doc/configfiles.texi (Configuration Files): Update documentation
12405 about tm_p.h and remove FIXME comment.
12406
12407 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
12408
12409 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
12410 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
12411
12412 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
12413
12414 * config/darwin10.h Remove duplicate LIB_SPEC.
12415
12416 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
12417
12418 PR middle-end/44382
12419 * target.def (reassociation_width): New hook.
12420
12421 * doc/tm.texi.in (reassociation_width): Likewise.
12422
12423 * doc/tm.texi (reassociation_width): Likewise.
12424
12425 * doc/invoke.texi (tree-reassoc-width): New param documented.
12426
12427 * hooks.h (hook_int_uint_mode_1): New default hook.
12428
12429 * hooks.c (hook_int_uint_mode_1): Likewise.
12430
12431 * config/i386/i386.h (ix86_tune_indices): Add
12432 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
12433
12434 (TARGET_REASSOC_INT_TO_PARALLEL): New.
12435 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
12436
12437 * config/i386/i386.c (initial_ix86_tune_features): Add
12438 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
12439
12440 (ix86_reassociation_width): New function.
12441
12442 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
12443
12444 * tree-ssa-reassoc.c (get_required_cycles): New function.
12445 (get_reassociation_width): Likewise.
12446 (swap_ops_for_binary_stmt): Likewise.
12447 (rewrite_expr_tree_parallel): Likewise.
12448
12449 (rewrite_expr_tree): Refactored. Part of code moved into
12450 swap_ops_for_binary_stmt.
12451
12452 (reassociate_bb): Now checks reassociation width to be used and
12453 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
12454
12455 2011-09-06 Richard Guenther <rguenther@suse.de>
12456
12457 PR tree-optimization/47025
12458 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
12459 uses nothing.
12460 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
12461 BUILT_IN_FREE.
12462 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
12463 definitely points to.
12464 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12465 BUILT_IN_VA_START doesn't let its va_list argument escape.
12466 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
12467 not make any previous stores necessary.
12468
12469 2011-09-06 Martin Jambor <mjambor@suse.cz>
12470
12471 * ipa-inline.h (struct inline_summary): Move versionable flag...
12472 * cgraph.h (struct cgraph_local_info): ...here
12473 * ipa-cp.c (determine_versionability): Use the new versionable flag.
12474 (determine_versionability): Likewise.
12475 (ipcp_versionable_function_p): Likewise.
12476 (ipcp_generate_summary): Likewise.
12477 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
12478 versionable flag.
12479 (compute_inline_parameters): Do not clear the versionable flag.
12480 (inline_read_section): Do not stream the versionable flag.
12481 (inline_write_summary): Likewise.
12482 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
12483 (input_overwrite_node): Likewise.
12484
12485 2011-09-06 Richard Guenther <rguenther@suse.de>
12486
12487 PR tree-optimization/48149
12488 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
12489 (vn_valueize): Move earlier.
12490 (valueize_expr): Use vn_valueize.
12491 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
12492 operands.
12493 (simplify_unary_expression): Simplify.
12494
12495 2011-09-06 Richard Guenther <rguenther@suse.de>
12496
12497 PR tree-optimization/48317
12498 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
12499 trailing array.
12500 (sizeof_vn_nary_op): New inline function.
12501 (vn_nary_op_lookup_pieces): Adjust.
12502 (vn_nary_op_insert_pieces): Likewise.
12503 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
12504 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
12505 any number of operands.
12506 (vn_nary_length_from_stmt): New function.
12507 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
12508 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
12509 sized temporary.
12510 (vn_nary_op_lookup): Likewise.
12511 (vn_nary_op_lookup_stmt): Likewise.
12512 (vn_nary_op_insert_into): Likewise.
12513 (vn_nary_op_insert_stmt): Likewise.
12514 (visit_use): Handle CONSTRUCTOR as nary.
12515 * tree-ssa-pre.c (phi_translate_1): Adjust.
12516 (create_expression_by_pieces): Likewise.
12517 (compute_avail): Likewise.
12518
12519 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
12520
12521 * config/arm/arm.c (arm_preferred_simd_mode): Check
12522 TARGET_NEON_VECTORIZE_DOUBLE instead of
12523 TARGET_NEON_VECTORIZE_QUAD.
12524 (arm_autovectorize_vector_sizes): Likewise.
12525 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
12526 mask of mvectorize-with-neon-double. Add RejectNegative.
12527 (mvectorize-with-neon-double): New.
12528
12529 2011-09-06 Richard Guenther <rguenther@suse.de>
12530
12531 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
12532
12533 2011-09-06 Tom de Vries <tom@codesourcery.com>
12534
12535 * recog.c (asm_labels_ok): New function.
12536 (check_asm_operands): Use asm_labels_ok.
12537
12538 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
12539
12540 PR target/49606
12541 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
12542 (PMODE_INSN): New macro.
12543 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
12544 (mips_got_load, mips_expand_synci_loop): Likewise.
12545 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
12546 cprestore patterns.
12547 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
12548 copygp_mips16 patterns.
12549 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
12550 and use_cprestore patterns.
12551 (mips_override_options): Check for incompatible -mabi and -mlong
12552 combinations.
12553 * config/mips/mips.md (unspec_got<mode>): Rename to...
12554 (unspec_got_<mode>): ...this.
12555 (copygp_mips16): Use the Pmode iterator.
12556 (potential_cprestore, cprestore, use_cprestore): Likewise.
12557 (clear_cache, indirect_jump): Use PMODE_INSN.
12558 (indirect_jump<mode>): Rename to...
12559 (indirect_jump_<mode>): ...this.
12560 (tablejump): Use PMODE_INSN.
12561 (tablejump<mode>): Rename to...
12562 (tablejump_<mode>): ...this.
12563 (exception_receiver): Handle restore_gp_si and restore_gp_di.
12564 (restore_gp): Use the Pmode iterator.
12565 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
12566 PMODE_INSN.
12567
12568 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
12569
12570 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
12571 Fix the type of the BIT_AND_EXPR.
12572
12573 2011-09-05 David S. Miller <davem@davemloft.net>
12574
12575 * config.host: Add driver-sparc.o and sparc/x-sparc on
12576 native sparc*-*-linux* builds.
12577 * config/sparc/driver-sparc.c: Correct Linux strings.
12578 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
12579 * config/sparc/linux64.h: Likewise.
12580 * doc/invoke.texi: Document that Linux also supports
12581 -mcpu=native and -mtune=native on sparc.
12582
12583 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
12584 PROCESSOR_NIAGARA4): New.
12585 * config/sparc/sparc.opt: Handle new processor types.
12586 * config/sparc/sparc.md: Add to "cpu" attribute.
12587 * config/sparc/sparc.h (TARGET_CPU_niagara3,
12588 TARGET_CPU_niagara4): New, treat as niagara2.
12589 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
12590 * config/sparc/sol2.h: Likewise.
12591 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
12592 * config/sparc/sparc.c (sparc_option_override): Add
12593 niagara3 and niagara4 handling.
12594 (sparc32_initialize_trampoline): Likewise.
12595 (sparc64_initialize_trampoline): Likewise.
12596 (sparc_use_sched_lookahead): Likewise.
12597 (sparc_issue_rate): Likewise.
12598 (sparc_register_move_cost): Likewise.
12599 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
12600 and niagara4 as appropriate.
12601 * doc/invoke.texi: Document new processor types.
12602 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
12603 and --with-tune options.
12604
12605 * config/sparc/sol2-64.h: Move ...
12606 * config/sparc/default-64.h: ... to here. Update comment.
12607 * config.gcc: Update Solaris sparc to use default-64.h, also
12608 prefix this header into the list on sparc64-*-linux.
12609 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
12610 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
12611 to MASK_HARD_QUAD.
12612
12613 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
12614
12615 PR target/50289
12616 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
12617 that contain global register variable.
12618
12619 2011-09-05 Richard Guenther <rguenther@suse.de>
12620
12621 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
12622
12623 2011-09-05 Richard Guenther <rguenther@suse.de>
12624
12625 * stor-layout.c (layout_type): Use size_binop for array size
12626 calculations.
12627
12628 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
12629
12630 * config/avr/avr.h (progmem_section): Remove Declaration.
12631 * config/avr/avr.c (progmem_section): Make static and rename to
12632 progmem_swtable_section.
12633 (avr_output_addr_vec_elt): No need to switch sections.
12634 (avr_asm_init_sections): Use output_section_asm_op as section
12635 callback for progmem_swtable_section.
12636 (avr_output_progmem_section_asm_op): Remove Function.
12637 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
12638 (avr_asm_function_rodata_section): New static Function.
12639 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
12640 alignment 2**1 for jump tables.
12641
12642 2011-09-04 Jan Hubicka <jh@suse.cz>
12643
12644 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
12645 parameter is SSA name.
12646
12647 2011-09-04 Richard Guenther <rguenther@suse.de>
12648
12649 Revert
12650 2011-08-31 Richard Guenther <rguenther@suse.de>
12651
12652 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
12653 special-casing.
12654
12655 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
12656
12657 PR debug/49901
12658 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
12659
12660 2011-09-04 Jakub Jelinek <jakub@redhat.com>
12661 Ira Rosen <ira.rosen@linaro.org>
12662
12663 PR tree-optimization/50208
12664 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
12665 argument. Check that def_stmt is inside the loop.
12666 (vect_recog_widen_mult_pattern): Update calls to
12667 vect_handle_widen_mult_by_cons.
12668 (vect_operation_fits_smaller_type): Check that def_stmt is
12669 inside the loop.
12670
12671 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
12672
12673 * tree-vectorizer.c (vect_print_dump_info): Print line
12674 number when dumping to a file.
12675 (vectorize_loops): Add new messages to dump file.
12676
12677 2011-09-03 Martin Jambor <mjambor@suse.cz>
12678
12679 * ipa-prop.h (ipa_jump_func_t): New typedef.
12680 (struct ipa_edge_args): Removed field argument_count, field
12681 jump_functions turned into a vector.
12682 (ipa_set_cs_argument_count): Removed.
12683 (ipa_get_cs_argument_count): Updated to work on vectors.
12684 (ipa_get_ith_jump_func): Likewise.
12685 * ipa-prop.c (ipa_count_arguments): Removed.
12686 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
12687 jump functions. Update caller.
12688 (compute_pass_through_member_ptrs): Likewise.
12689 (compute_cst_member_ptr_arguments): Likewise.
12690 (ipa_compute_jump_functions_for_edge): Get number of arguments from
12691 the statement, allocate vector.
12692 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
12693 (duplicate_ipa_jump_func_array): Removed.
12694 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
12695 (ipa_read_node_info): Allocate vector.
12696
12697 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12698
12699 PR middle-end/50232
12700 * config/pa/pa.md (return): Define "return" insn pattern.
12701 (epilogue): Use it when no epilogue is needed.
12702 * config/pa/pa.c (pa_can_use_return_insn): New function.
12703 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
12704
12705 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
12706
12707 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
12708 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
12709 Force at least BITS_PER_UNIT alignment on the new variable.
12710
12711 2011-09-02 Gary Funck <gary@intrepid.com>
12712
12713 * opts.c (print_specific_help): Fix off-by-one compare in
12714 assertion check.
12715 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12716 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
12717 Increase by +5 to allow for more languages.
12718 * optc-gen.awk: Generate #if that ensures that the number of
12719 languages is within the implementation-defined limit.
12720
12721 2011-09-02 Michael Matz <matz@suse.de>
12722
12723 PR middle-end/50260
12724 * ipa-split.c (split_function): Call add_referenced_var.
12725
12726 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
12727 (cond_if_else_store_replacement_1): Ditto.
12728 * tree-ssa-pre.c (get_representative_for): Ditto.
12729 (create_expression_by_pieces): Ditto.
12730 (insert_into_preds_of_block): Ditto.
12731 * tree-sra.c (create_access_replacement): Ditto.
12732 (get_replaced_param_substitute): Ditto.
12733
12734 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
12735
12736 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
12737 automata_options.
12738 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
12739 (l1w, s1w, l2w, s2w): Define in the main automaton.
12740 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
12741 units.
12742 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
12743 (c6x_unit_names): Add the new units.
12744 (c6x_unit_codes): New static array.
12745 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
12746 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
12747 UNIT_QID_SIDE_OFFSET): New macros.
12748 (RESERVATION_S2): Adjust value.
12749 (c6x_option_override): Compute c6x_unit_codes.
12750 (assign_reservations): Take the unit_mask of the last instruction
12751 into account. Detect floating point reservations by looking for
12752 the new units. Don't assign reservations if the field is already
12753 nonzero.
12754 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
12755 (init_sched_state): Initialize it.
12756 (c6x_clear_sched_context): Free it.
12757 (insn_set_clock): Clear reservation.
12758 (prev_cycle_state): New static variable.
12759 (c6x_init_sched_context): Save it.
12760 (c6x_sched_init): Allocate space for it and clear it.
12761 (c6x_sched_dfa_pre_cycle_insn): New static function.
12762 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
12763 (c6x_variable_issue): Only record units in the unit_mask that
12764 were not set at the start of the cycle.
12765 (c6x_variable_issue): Compute and store the unit_mask from the
12766 current state.
12767 (reorg_split_calls): Ensure the new information remains correct.
12768 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
12769 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
12770 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
12771 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
12772 Add special reservations.
12773 * config/c6x/c6x-sched.md: Regenerate.
12774
12775 2011-09-02 Martin Jambor <mjambor@suse.cz>
12776
12777 * ipa-prop.h (ipa_node_params): Removed fields
12778 called_with_var_arguments and node_versionable.
12779 (ipa_set_called_with_variable_arg): Removed.
12780 (ipa_is_called_with_var_arguments): Likewise.
12781 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
12782 (determine_versionability): Do not check for type attributes and va
12783 builtins. Record versionability into inline summary.
12784 (initialize_node_lattices): Do not check
12785 ipa_is_called_with_var_arguments.
12786 (propagate_constants_accross_call): Likewise, ignore arguments we do
12787 not have PARM_DECLs for, set variable flag for parameters that were
12788 not passed a value.
12789 (create_specialized_node): Dump info that we cannot change signature.
12790 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
12791 number of arguments.
12792 (ipa_make_edge_direct_to_target): Likewise.
12793 (ipa_update_after_lto_read): Likewise.
12794 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
12795 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
12796 they were remapped.
12797
12798 2011-09-02 Richard Guenther <rguenther@suse.de>
12799
12800 PR tree-optimization/27460
12801 PR middle-end/29269
12802 * doc/md.texi (vcond): Document.
12803 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
12804 optab with two modes.
12805 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
12806 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
12807 (vcond_optab): Adjust.
12808 (vcondu_optab): Likewise.
12809 (expand_vec_cond_expr_p): Adjust prototype.
12810 * optabs.c (get_vcond_icode): Adjust.
12811 (expand_vec_cond_expr_p): Likewise.
12812 (expand_vec_cond_expr): Likewise.
12813 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
12814 vector type.
12815 (vectorizable_condition): Allow differing types for comparison
12816 and result.
12817 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
12818 for the comparison.
12819 * config/i386/sse.md (vcond<mode>): Split to
12820 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
12821 vcond<V_128:mode><VI124_128:mode> and
12822 vcondu<V_128:mode><VI124_128:mode>.
12823 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
12824 (vconduv2di): Likewise.
12825 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
12826 (vcondu<mode>): Likewise.
12827 * config/ia64/vect.md (vcond<mode>): Likewise.
12828 (vcondu<mode>): Likewise.
12829 (vcondv2sf): Likewise.
12830 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
12831 * config/rs6000/paired.md (vcondv2sf): Likewise.
12832 * config/rs6000/vector.md (vcond<mode>): Likewise.
12833 (vcondu<mode>): Likewise.
12834 * config/spu/spu.md (vcond<mode>): Likewise.
12835 (vcondu<mode>): Likewise.
12836
12837 2011-09-02 Richard Guenther <rguenther@suse.de>
12838
12839 * pretty-print.h (pp_unsigned_wide_integer): New.
12840 * tree-pretty-print.c (dump_generic_node): Print unsigned
12841 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
12842
12843 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
12844
12845 PR target/49987
12846 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
12847 valid CONST_VECTOR operands.
12848 (rs6000_expand_vector_init): Likewise.
12849
12850 2011-09-02 Martin Jambor <mjambor@suse.cz>
12851
12852 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
12853 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
12854 BINFO_VTABLE. Parameter delta removed, all callers updated.
12855 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
12856 BINFO_VTABLE.
12857 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
12858 all calls.
12859 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
12860 handling of thunk_delta.
12861 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
12862 (devirtualization_time_bonus): Do not handle thunk deltas.
12863 (ipcp_discover_new_direct_edges): Likewise.
12864 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12865 (try_make_edge_direct_simple_call): Likewise.
12866 (try_make_edge_direct_virtual_call): Likewise.
12867 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
12868 parameter set as unused.
12869 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
12870 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
12871 parameter set as unused.
12872 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
12873 (input_edge_opt_summary): Likewise.
12874 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
12875 BINFO_VIRTUALS at all.
12876 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
12877
12878 2011-09-02 Richard Guenther <rguenther@suse.de>
12879
12880 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
12881 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
12882
12883 2011-08-31 Richard Guenther <rguenther@suse.de>
12884
12885 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
12886 handling here, from ...
12887 (expand_expr_real_1): ... here.
12888 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
12889 and VEC_COND_EXPR.
12890 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
12891 a GIMPLE_TERNARY_RHS.
12892 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
12893 and VEC_COND_EXPR here ...
12894 (verify_gimple_assign_single): ... not here.
12895 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
12896 * tree-object-size.c (cond_expr_object_size): Adjust.
12897 (collect_object_sizes_for): Likewise.
12898 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
12899 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
12900 (ssa_forward_propagate_and_combine): Adjust.
12901 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
12902 as ternary.
12903 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
12904 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
12905 * tree-vect-stmt.c (vectorizable_condition): Likewise.
12906 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
12907 (extract_range_from_assignment): Likewise.
12908
12909 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12910
12911 * config/i386/i386.md: Use (match_test ...) for attribute tests.
12912 * config/i386/mmx.md: Likewise.
12913 * config/i386/sse.md: Likewise.
12914 * config/i386/predicates.md (call_insn_operand): Use
12915 (not (match_test "...")) instead of (match_test "!...")
12916 * config/i386/constraints.md (w): Likewise.
12917
12918 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12919
12920 * doc/md.texi: Describe the use of match_tests in attribute tests.
12921 * rtl.def (MATCH_TEST): Update commentary.
12922 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
12923 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
12924
12925 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12926
12927 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
12928 (attr_string): Use copy_md_ptr_loc.
12929
12930 2011-08-31 Martin Jambor <mjambor@suse.cz>
12931
12932 PR middle-end/49886
12933 * ipa-inline-analysis.c (compute_inline_parameters): Set
12934 can_change_signature of noes with typde attributes.
12935 * ipa-split.c (split_function): Do not skip any arguments if
12936 can_change_signature is set.
12937
12938 2011-08-31 Martin Jambor <mjambor@suse.cz>
12939
12940 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
12941 check removed.
12942
12943 2011-08-31 Richard Guenther <rguenther@suse.de>
12944
12945 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
12946 special-casing.
12947
12948 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
12949
12950 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
12951
12952 2011-08-31 Tom de Vries <tom@codesourcery.com>
12953
12954 PR middle-end/43513
12955 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
12956 * tree-ssa-ccp.c (params.h): Include.
12957 (fold_builtin_alloca_for_var): New function.
12958 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
12959
12960 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
12961
12962 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12963 Handle FMA option.
12964
12965 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
12966
12967 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
12968 b3 and b4 unsigned.
12969
12970 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
12971
12972 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
12973 when code is SET.
12974
12975 2011-08-30 Richard Guenther <rguenther@suse.de>
12976
12977 PR middle-end/48571
12978 * gimple.h (maybe_fold_offset_to_address): Remove.
12979 (maybe_fold_offset_to_reference): Likewise.
12980 (maybe_fold_stmt_addition): Likewise.
12981 (may_propagate_address_into_dereference): Likewise.
12982 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
12983 array references.
12984 * gimple-fold.c (canonicalize_constructor_val): Likewise.
12985 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
12986 addresses instead.
12987 (may_propagate_address_into_dereference): Remove.
12988 (maybe_fold_offset_to_array_ref): Likewise.
12989 (maybe_fold_offset_to_reference): Likewise.
12990 (maybe_fold_offset_to_address): Likewise.
12991 (maybe_fold_stmt_addition): Likewise.
12992 (fold_gimple_assign): Do not reconstruct array references but
12993 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
12994 MEM_REF addresses.
12995 (gimple_fold_stmt_to_constant_1): Likewise.
12996 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12997 * gimplify.c (gimplify_conversion): Likewise.
12998 (gimplify_expr): Likewise.
12999
13000 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
13001
13002 * config/i386/fmaintrin.h: New.
13003 * config.gcc: Add fmaintrin.h.
13004 * config/i386/i386.c
13005 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
13006 <IX86_BUILTIN_VFMADDSD3>: Likewise.
13007 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
13008 (*fmai_fmadd_<mode>): Likewise.
13009 (*fmai_fmsub_<mode>): Likewise.
13010 (*fmai_fnmadd_<mode>): Likewise.
13011 (*fmai_fnmsub_<mode>): Likewise.
13012 * config/i386/immintrin.h: Add fmaintrin.h.
13013
13014 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
13015
13016 * genautomata.c (NO_COMB_OPTION): New macro.
13017 (no_comb_flag): New static variable.
13018 (gen_automata_option): Handle NO_COMB_OPTION.
13019 (comb_vect_p): False if no_comb_flag.
13020 (add_vect): Move computation of min/max values. Return early if
13021 no_comb_flag.
13022 * doc/md.texi (automata_option): Document no-comb-vect.
13023
13024 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
13025 "__x86.get_pc_thunk".
13026
13027 * bb-reorder.c (insert_section_boundary_note): Only do it if
13028 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
13029
13030 2011-08-30 Christian Bruel <christian.bruel@st.com>
13031
13032 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
13033 flag_profile_use.
13034
13035 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
13036
13037 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
13038 to off. Document switch.
13039 * doc/invoke.texi (-msave-toc-indirect): Ditto.
13040
13041 2011-08-29 Jakub Jelinek <jakub@redhat.com>
13042
13043 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
13044 conditionals and comments inside macro arguments.
13045
13046 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
13047 Richard Guenther <rguenther@suse.de>
13048
13049 * tree.h (constant_boolean_node): Adjust prototype.
13050 * fold-const.c (fold_convert_loc): Move aggregate conversion
13051 leeway down.
13052 (constant_boolean_node): Make value parameter boolean, add
13053 vector type handling.
13054 (fold_unary_loc): Use constant_boolean_node.
13055 (fold_binary_loc): Preserve types properly when folding
13056 COMPLEX_EXPR <__real x, __imag x>.
13057 * gimplify.c (gimplify_expr): Handle vector comparison.
13058 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
13059 comparison.
13060 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
13061 comparisons.
13062
13063 2011-08-29 Jakub Jelinek <jakub@redhat.com>
13064
13065 PR middle-end/48722
13066 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
13067 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
13068 (verify_rtl_sharing): Likewise and verify_rtx_sharing
13069 in there too.
13070 (unshare_all_rtl_in_chain): For CALL_INSNs
13071 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
13072
13073 2011-08-29 Richard Guenther <rguenther@suse.de>
13074
13075 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
13076 on the built ADDR_EXPR.
13077
13078 2011-08-29 Jakub Jelinek <jakub@redhat.com>
13079
13080 PR debug/50215
13081 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
13082 before adding ENTRY_VALUE to val->locs.
13083
13084 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
13085
13086 PR bootstrap/50218
13087 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
13088 comp.
13089
13090 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
13091
13092 * doc/rtl.texi (simple_return): Document.
13093 (parallel, PATTERN): Here too.
13094 * doc/md.texi (return): Mention it's allowed to expand to simple_return
13095 in some cases.
13096 (simple_return): Document standard pattern.
13097 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
13098 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
13099 * reorg.c (function_return_label, function_simple_return_label):
13100 New static variables, replacing...
13101 (end_of_function_label): ... this.
13102 (simplejump_or_return_p): New static function.
13103 (optimize_skip, steal_delay_list_from_fallthrough,
13104 fill_slots_from_thread): Use it.
13105 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
13106 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
13107 (find_end_label): Take a new arg which is one of the two return
13108 rtxs. Depending on which, set either function_return_label or
13109 function_simple_return_label. All callers changed.
13110 (make_return_insns): Make both kinds.
13111 (dbr_schedule): Adjust for two kinds of end labels.
13112 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
13113 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
13114 (gen_expand, gen_split): Use ANY_RETURN_P.
13115 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
13116 * rtl.def (SIMPLE_RETURN): New code.
13117 * ifcvt.c (find_if_case_1): Be more careful about
13118 redirecting jumps to the EXIT_BLOCK.
13119 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
13120 returnjump_p_1): Handle SIMPLE_RETURNs.
13121 * print-rtl.c (print_rtx): Likewise.
13122 * rtl.c (copy_rtx): Likewise.
13123 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
13124 * combine.c (simplify_set): Likewise.
13125 * resource.c (find_dead_or_set_registers, mark_set_resources):
13126 Likewise.
13127 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
13128 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
13129 (init_emit_regs): Initialize simple_return_rtx.
13130 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
13131 force_nonfallthru_and_redirect.
13132 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
13133 (GR_SIMPLE_RETURN): New enum value.
13134 (simple_return_rtx): New macro.
13135 * basic-block.h (force_nonfallthru_and_redirect): Adjust
13136 declaration.
13137 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
13138 argument. All callers changed. Be careful about what kinds of
13139 returnjumps to generate.
13140 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
13141 ix86_pad_short_function): Likewise.
13142 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
13143 of return.
13144 * config/mips/mips.md (any_return): New code_iterator.
13145 (optab): Add cases for return and simple_return.
13146 (return): Expand to a simple_return.
13147 (simple_return): New pattern.
13148 (*<optab>, *<optab>_internal for any_return): New patterns.
13149 (return_internal): Remove.
13150 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
13151 a simple_return_internal.
13152
13153 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
13154
13155 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
13156 (vec_extract_lo_<mode>): Prevent both operands in memory.
13157 (vec_extract_lo_v16hi): Ditto.
13158 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
13159
13160 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
13161
13162 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
13163 (*sse2_mulv4si3): Ditto.
13164 (mulv2di3): Ditto.
13165 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
13166 notes to REG_EQUAL.
13167
13168 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
13169
13170 PR target/50202
13171 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
13172 when all outputs are unused.
13173 (sse4_2_pcmpistr): Ditto.
13174
13175 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
13176
13177 * config/i386/i386.md (round<mode>2): New expander.
13178 * config/i386/i386.c (enum ix86_builtins): Add
13179 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
13180 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
13181 descriptions.
13182 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
13183 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
13184
13185 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
13186
13187 PR middle-end/50083
13188 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
13189 only when TARGET_C99_FUNCTIONS.
13190 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
13191 <BUILT_IN_RINT{,F,L}>: Ditto.
13192
13193 2011-08-26 Michael Matz <matz@suse.de>
13194 Jakub Jelinek <jakub@redhat.com>
13195
13196 PR lto/50165
13197 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
13198 don't call strlen twice, use memcpy.
13199
13200 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
13201
13202 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
13203 * config/i386/bmiintrin.h: Likewise.
13204 * config/i386/lzcntintrin.h: Likewise.
13205
13206 * config/i386/immintrin.h: Include <lzcntintrin.h>,
13207 <bmiintrin.h> and <bmi2intrin.h>.
13208
13209 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13210
13211 PR target/50166
13212 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
13213 * configure: Regenerate.
13214
13215 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13216
13217 PR c/50179
13218 * c-typeck.c (c_process_expr_stmt): Skip over nops and
13219 call mark_exp_read even if exprv is ADDR_EXPR.
13220
13221 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
13222
13223 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
13224 to df_set_dead_notes_for_mw.
13225
13226 2011-08-26 Richard Guenther <rguenther@suse.de>
13227
13228 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
13229
13230 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
13231 Tom de Vries <tom@codesourcery.com>
13232
13233 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
13234 (struct ivopts_data): Add loop_single_exit_p field.
13235 (niter_for_exit): Change parameter desc_p into return value. Return
13236 desc if desc->may_be_zero. Free desc if unused.
13237 (niter_for_single_dom_exit): Change return type.
13238 (find_induction_variables): Handle changed return type of
13239 niter_for_single_dom_exit. Dump may_be_zero.
13240 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
13241 (set_use_iv_cost): Add and handle comp parameter.
13242 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
13243 comp argument to set_use_iv_cost.
13244 (strip_wrap_conserving_type_conversions, expr_equal_p)
13245 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
13246 (may_eliminate_iv): Add comp parameter. Handle new return type of
13247 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
13248 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
13249 and may_eliminate_iv.
13250 (rewrite_use_compare): Move call to iv_elimination_compare to ...
13251 (may_eliminate_iv): Here.
13252 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
13253
13254 2011-08-26 Tom de Vries <tom@codesourcery.com>
13255
13256 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
13257 accessing TREE_TYPE.
13258
13259 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
13260
13261 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
13262 (*ior_scc_scc_cmp): Likewise
13263 (*and_scc_scc): Likewise.
13264 (*and_scc_scc_cmp): Likewise.
13265 (*and_scc_scc_nodom): Likewise.
13266 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
13267
13268 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13269
13270 * rtlanal.c (nonzero_bits1): Handle CLRSB.
13271
13272 2011-08-26 Richard Guenther <rguenther@suse.de>
13273
13274 * expr.c (string_constant): Handle &MEM_REF.
13275
13276 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
13277
13278 * config/arm/arm.c (struct four_ints): New type.
13279 (count_insns_for_constant): Delete function.
13280 (find_best_start): Delete function.
13281 (optimal_immediate_sequence): New function.
13282 (optimal_immediate_sequence_1): New function.
13283 (arm_gen_constant): Move constant splitting code to
13284 optimal_immediate_sequence.
13285 Rewrite constant negation/invertion code.
13286
13287 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
13288
13289 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
13290 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
13291 Remove prototype. Remove static function type.
13292 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
13293 Add arch attribute.
13294 * config/arm/constraints.md (Pj, PJ): New constraints.
13295
13296 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13297
13298 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
13299 ("cortex_a9_multiply_long"): New and use above. Handle all
13300 long multiply cases.
13301 ("cortex_a9_multiply"): Handle smmul and smmulr.
13302 ("cortex_a9_mac"): Handle smmla.
13303
13304 2011-08-25 Richard Henderson <rth@redhat.com>
13305
13306 PR 50132
13307 PR 49864
13308 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
13309 non-constant stack adjutment.
13310 * expr.c (find_args_size_adjust): Break out from ...
13311 (fixup_args_size_notes): ... here.
13312 * rtl.h (find_args_size_adjust): Declare.
13313
13314 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
13315
13316 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
13317 sse4 and sse4_noavx.
13318 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
13319 (*pushdf_rex64): Change Y2 register constraint to x.
13320 (*movdf_internal_rex64): Ditto.
13321 (*zero_extendsidi2_rex64): Ditto.
13322 (*movdi_internal): Change Y2 register constraint to x
13323 and update "isa" attribute.
13324 (*pushdf): Ditto.
13325 (*movdf internal): Ditto.
13326 (zero_extendsidi2_1): Ditto.
13327 (*truncdfdf_mixed): Ditto.
13328 (*truncxfdf2_mixed): Ditto.
13329 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
13330 register constraint to x.
13331 (*movv2sf_internal_rex64): Ditto.
13332 (*mov<mode>_internal): Change Y2 register constraint to x
13333 and add "isa" attribute.
13334 (*movv2sf_internal): Ditto.
13335 (*vec_extractv2si_1): Ditto.
13336 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
13337 constraints to x and update "isa" attribute.
13338 (*vec_interleave_highv2df): Change Y3 registerconstraint
13339 to x and update "isa" attribute.
13340 (*vec_interleave_lowv2df): Ditto.
13341 (*vec_concatv2df): Change Y2 register constraint to x and
13342 update "isa" attribute.
13343 (sse2_loadld): Ditto.
13344 (*vec_extractv2di_1): Ditto.
13345 (*vec_dupv4si): Ditto.
13346 (*vec_dupv2di): Ditto.
13347 (*vec_concatv4si): Ditto.
13348 (vec_concatv2di): Ditto.
13349 * config/i386/constraints.md (Y2): Remove.
13350 (Y3): Ditto.
13351 (Y4): Ditto.
13352
13353 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13354
13355 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
13356 dump_def_use_chain): Don't declare.
13357 (mark_conflict, create_new_chain): Move before users.
13358 (regrename_optimize): Move to near end of file.
13359
13360 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13361
13362 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
13363 (secondary_input_reload_class): Remove Prototype.
13364 * config/avr/avr.c (byte_immediate_operand): Remove Function.
13365 * config/avr/avr.md (setmemhi): Use u8_operand.
13366 (strlenhi): Use const0_rtx for comparison.
13367 * config/avr/avr.h (avr_reg_order): Remove Declaration.
13368
13369 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13370
13371 * config/avr/avr.c (reg_class_tab): Make local to
13372 avr_regno_reg_class. Return smallest register class available.
13373
13374 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13375
13376 * config/avr/avr.c (STR_PREFIX_P): New Define.
13377 (avr_asm_declare_function_name): Use it.
13378 (avr_asm_named_section): Use it.
13379 (avr_section_type_flags): Use it.
13380
13381 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13382
13383 * doc/md.texi (automata_option): Document collapse-ndfa.
13384 * genautomata.c (COLLAPSE_OPTION): New macro.
13385 (collapse_flag): New static variable.
13386 (struct description): New member normal_decls_num.
13387 (struct automaton): New members advance_ainsn and collapse_ainsn.
13388 (gen_automata_option): Check for COLLAPSE_OPTION.
13389 (collapse_ndfa_insn_decl): New static variable.
13390 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
13391 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
13392 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
13393 necessary. Use normal_decls_num rather than decls_num, remove
13394 test for special decls.
13395 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
13396 (make_automaton); Likewise. Use the new advance_cycle_insn member
13397 of struct automaton.
13398 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
13399 is set.
13400 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
13401 transition. Create the necessary transitions for it.
13402 (create_ainsns): Return void. Take an automaton_t argument, and
13403 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
13404 callers changed.
13405 (COLLAPSE_NDFA_VALUE_NAME): New macro.
13406 (output_tables): Output code to define it.
13407 (output_internal_insn_code_evaluation): Output code to accept
13408 const0_rtx as collapse-ndfa transition.
13409 (output_default_latencies, output_print_reservation_func,
13410 output_print_description): Reorganize loops to use normal_decls_num
13411 as loop bound; remove special case for advance_cycle_insn_decl.
13412 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
13413 (check_automata_insn_issues): Check for collapse_ainsn.
13414 (expand_automate): Allocate sufficient space. Initialize
13415 normal_decls_num.
13416
13417 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13418
13419 * config/avr/avr.md: Fix indentation from r177991.
13420
13421 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13422
13423 * regrename.c (struct du_head): Remove member terminated.
13424 (create_new_chain): Don't initialize it.
13425 (scan_rtx_reg): Don't set or test it, test the open_chains_set
13426 bitmap instead.
13427 (tick, this_tick): New global variables, moved out of
13428 regrename_optimize.
13429 (current_id, open_chains, closed_chains, open_chains_set,
13430 live_in_chains, live_hard_regs): Reorder declarations.
13431 (dump_def_use_chain): Move function earlier in the file.
13432 (rename_chains): New static function, broken out of
13433 regrename_optimize.
13434 (regrename_optimize): Use it. Remove #if 0'ed code.
13435
13436 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13437
13438 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
13439
13440 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
13441
13442 PR target/50172
13443 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
13444
13445 2011-08-24 Richard Guenther <rguenther@suse.de>
13446
13447 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
13448 ref in the basic-block case. Move stripping array-refs
13449 to the place we create an access-function for it. Remove
13450 bogus stripping down a MEM_REF to its base.
13451
13452 2011-08-24 Richard Guenther <rguenther@suse.de>
13453
13454 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
13455 with -fno-strict-overflow.
13456
13457 2011-08-24 Richard Guenther <rguenther@suse.de>
13458
13459 * tree-vectorizer.c (vect_print_dump_info): Avoid the
13460 file and location clutter when dumping to dump files.
13461
13462 2011-08-24 Simon Baldwin <simonb@google.com>
13463
13464 * gengtype-state.c (write_state): Remove timestamped header line.
13465
13466 2011-08-24 Joseph Myers <joseph@codesourcery.com>
13467
13468 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
13469 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
13470 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
13471 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
13472 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
13473 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
13474 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
13475 rules.
13476 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
13477
13478 2011-08-24 Joseph Myers <joseph@codesourcery.com>
13479
13480 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
13481
13482 2011-08-24 Richard Guenther <rguenther@suse.de>
13483
13484 PR tree-optimization/50067
13485 * tree-data-ref.c (dr_analyze_indices): Do not add an access
13486 function for a MEM_REF base that has no evolution in the loop
13487 nest or that is not analyzable.
13488
13489 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
13490
13491 * ira.c (ira_init_register_move_cost): Check small subclasses
13492 through ira_reg_class_max_nregs and ira_available_class_regs.
13493
13494 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
13495
13496 * config/i386/constraints.md (Yp): New register constraint.
13497 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
13498 Yp register constraint.
13499 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
13500 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
13501 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
13502
13503 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13504
13505 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
13506
13507 2011-08-23 Mark Heffernan <meheff@google.com>
13508
13509 PR middle-end/38509
13510 * common.opt (Wfree-nonheap-object): New option.
13511 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
13512 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
13513 to warning.
13514 (expand_builtin): Make warning conditional.
13515
13516 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
13517
13518 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
13519 (length_immediate): Handle imulx, ishiftx and rotatex.
13520 (imm_disp): Ditto.
13521 (isa): Add bmi2.
13522 (enabled): Handle bmi2.
13523 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
13524 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
13525 (*bmi2_umulditi3_1): New insn pattern.
13526 (*bmi2_umulsidi3_1): Ditto.
13527 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
13528 (*bmi2_ashl<mode>3_1): New insn pattern.
13529 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
13530 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
13531 (*bmi2_ashlsi3_1_zext): New insn pattern.
13532 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
13533 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
13534 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
13535 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
13536 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
13537 flags dependency.
13538 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
13539 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
13540 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
13541 flags dependency.
13542 (*bmi2_rorx<mode>3_1): New insn pattern.
13543 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
13544 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
13545 (*rotatert<mode>3_1 splitter): Ditto.
13546 (*bmi2_rorxsi3_1_zext): New insn pattern.
13547 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
13548 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
13549 (*rotatertsi3_1_zext splitter): Ditto.
13550
13551 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13552
13553 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
13554 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
13555 (ix86_handle_option): Handle OPT_mbmi2 case.
13556 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
13557 (x86_64-*-*): Likewise.
13558 * config/i386/bmi2intrin.h: New file.
13559 * config/i386/cpuid.h (bit_BMI2): New.
13560 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13561 BMI2 feature.
13562 * config/i386/i386-c.c (ix86_target_macros_internal):
13563 Conditionally define __BMI2__.
13564 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
13565 Handle BMI2 option.
13566 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
13567 (print_reg): New code.
13568 (ix86_print_operand): Likewise.
13569 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
13570 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
13571 IX86_BUILTIN_PEXT64.
13572 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
13573 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
13574 IX86_BUILTIN_PEXT64.
13575 * config/i386/i386.h (TARGET_BMI2): New.
13576 * config/i386/i386.md (UNSPEC_PDEP): New.
13577 (UNSPEC_PEXT): Likewise.
13578 (*bmi2_bzhi_<mode>3): Likewise.
13579 (*bmi2_pdep_<mode>3): Likewise.
13580 (*bmi2_pext_<mode>3): Likewise.
13581 * config/i386/i386.opt (mbmi2): New.
13582 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
13583 is defined.
13584 * doc/extend.texi: Document BMI2 built-in functions.
13585 * doc/invoke.texi: Document -mbmi2.
13586
13587 2011-08-23 Jakub Jelinek <jakub@redhat.com>
13588
13589 PR middle-end/50161
13590 * simplify-rtx.c (simplify_const_unary_operation): If
13591 op is CONST_INT, don't look at op_mode, but use instead mode.
13592 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
13593 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
13594 operation and TRUNCATE/ZERO_EXTEND if needed.
13595 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
13596 Document that operand mode must be same as operation mode,
13597 or VOIDmode.
13598 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
13599 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
13600 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
13601 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
13602 use the mode of operand for the operation and add truncate
13603 or zero_extend around if needed.
13604 * config/c6x/c6x.md (ctzdi2): Likewise.
13605 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
13606
13607 2011-08-12 Michael Matz <matz@suse.de>
13608
13609 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
13610 (gimple_expand_cfg): Merge alignment info for coalesced pointer
13611 SSA names.
13612
13613 2011-08-23 Richard Guenther <rguenther@suse.de>
13614
13615 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
13616 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
13617 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
13618 from ...
13619 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
13620 (mem_refs_may_alias_p): Adjust.
13621 * tree-data-ref.h (dr_may_alias_p): Adjust.
13622 * tree-data-ref.c: Include tree-affine.h.
13623 (dr_analyze_indices): Do nothing for the non-loop case.
13624 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
13625 more cases in the non-loop case.
13626 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
13627 calls to dr_may_alias_p.
13628 (write_alias_graph_to_ascii_ecc): Likewise.
13629 (write_alias_graph_to_ascii_dot): Likewise.
13630 (build_alias_set_optimal_p): Likewise.
13631
13632 2011-08-23 Richard Guenther <rguenther@suse.de>
13633
13634 PR tree-optimization/50162
13635 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
13636
13637 2011-08-23 Richard Guenther <rguenther@suse.de>
13638
13639 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
13640 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
13641 (create_data_ref): Also dump access functions for the created data-ref.
13642
13643 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
13644 Kirill Yukhin <kirill.yukhin@intel.com>
13645
13646 PR target/50155
13647 * config/i386/sse.md (VI_AVX2): New.
13648 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
13649 (*<plusminus_insn><mode>3): Ditto.
13650 (<sse2_avx2>_andnot<mode>3): Ditto.
13651 (*andnot<mode>3): Fix order of cond operands.
13652 Add asserts for correct TARGET_xxx.
13653 (*<any_logic:code><mode>3): Ditto.
13654
13655 2011-08-22 Anatoly Sokolov <aesok@post.ru>
13656
13657 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
13658 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
13659 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
13660 regclass argument type to reg_class_t. Change 'max' and 'v' vars
13661 and return types to unsigned char. Use reg_class_contents instead
13662 of class_contents.
13663 (TARGET_CLASS_MAX_NREGS): Define.
13664
13665 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
13666
13667 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
13668 to make computed_jump_p return true.
13669
13670 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13671
13672 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
13673 (PICFLAG_FOR_TARGET): Substitute.
13674 * aclocal.m4: Regenerate.
13675 * configure: Regenerate.
13676
13677 2011-08-22 Dodji Seketeli <dodji@redhat.com>
13678
13679 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
13680 after reading in the pch.
13681
13682 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
13683
13684 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
13685 * configure: Regenerated.
13686
13687 2011-08-22 Jakub Jelinek <jakub@redhat.com>
13688
13689 PR tree-optimization/50133
13690 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
13691 from stmt instead of some statement around gsi.
13692
13693 PR middle-end/50141
13694 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
13695 innerdecl is a VAR_DECL.
13696
13697 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13698
13699 * config/i386/avx2intrin.h: New file.
13700 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
13701 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
13702 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
13703 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
13704 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
13705 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
13706 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
13707 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
13708 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
13709 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
13710 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
13711 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
13712 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
13713 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
13714 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
13715 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
13716 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
13717 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
13718 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
13719 VOID_FTYPE_PV8SI_V8SI_V8SI,
13720 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
13721 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
13722 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
13723 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
13724 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
13725 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
13726 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
13727 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
13728 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
13729 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
13730 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
13731 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
13732 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
13733 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
13734 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
13735 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
13736 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
13737 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
13738 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
13739 V4DI_FTYPE_V4DI_INT_CONVERT,
13740 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
13741 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
13742 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
13743 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
13744 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
13745 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
13746 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
13747 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
13748 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
13749 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
13750 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
13751 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
13752 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
13753 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13754 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13755 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13756 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
13757 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
13758 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
13759 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
13760 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
13761 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
13762 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
13763 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
13764 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
13765 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
13766 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
13767 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
13768 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
13769 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
13770 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
13771 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
13772 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
13773 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
13774 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
13775 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
13776 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
13777 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
13778 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
13779 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
13780 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
13781 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
13782 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
13783 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
13784 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
13785 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
13786 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
13787 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
13788 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
13789 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
13790 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
13791 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
13792 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
13793 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
13794 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
13795 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
13796 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
13797 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
13798 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
13799 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
13800 IX86_BUILTIN_VBROADCASTSS_PS256,
13801 IX86_BUILTIN_VBROADCASTSD_PD256,
13802 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
13803 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
13804 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
13805 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
13806 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
13807 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
13808 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
13809 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
13810 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
13811 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
13812 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
13813 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
13814 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
13815 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
13816 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
13817 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
13818 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
13819 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
13820 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
13821 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
13822 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
13823 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
13824 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
13825 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
13826 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
13827 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
13828 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
13829 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
13830 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
13831 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
13832 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
13833 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
13834 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
13835 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
13836 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
13837 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
13838 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
13839 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
13840 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
13841 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
13842 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
13843 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
13844 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
13845 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13846 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13847 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13848 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
13849 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
13850 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
13851 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
13852 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
13853 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
13854 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
13855 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
13856 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
13857 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
13858 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
13859 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
13860 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
13861 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
13862 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
13863 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
13864 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
13865 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
13866 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
13867 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
13868 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
13869 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
13870 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
13871 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
13872 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
13873 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
13874 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
13875 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
13876 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
13877 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
13878 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
13879 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
13880 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
13881 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
13882 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
13883 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
13884 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
13885 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
13886 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
13887 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
13888 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
13889 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
13890 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
13891 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
13892 IX86_BUILTIN_VBROADCASTSD_PD256,
13893 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
13894 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
13895 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
13896 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
13897 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
13898 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
13899 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
13900 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
13901 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
13902 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
13903 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
13904 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
13905 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
13906 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
13907 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
13908 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
13909 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
13910 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
13911 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
13912 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
13913 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
13914 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
13915 IX86_BUILTIN_GATHERDIV8SI.
13916 (ix86_preferred_simd_mode): Support AVX2 modes.
13917 (ix86_expand_args_builtin): Support AVX2 builtins.
13918 (ix86_expand_special_args_builtin): Likewise.
13919 (ix86_expand_builtin): Likewise.
13920 * config/i386/i386.md (UNSPEC_VPERMSI): New.
13921 (UNSPEC_VPERMDF): Likewise.
13922 (UNSPEC_VPERMSF): Likewise.
13923 (UNSPEC_VPERMDI): Likewise.
13924 (UNSPEC_VPERMTI): Likewise.
13925 (UNSPEC_GATHER): Likewise.
13926 (ssemodesuffix): Extend.
13927 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
13928 is defined.
13929 * config/i386/predicates.md (const1248_operand): New.
13930 * config/i386/sse.md (VI1_AVX2): New mode iterator.
13931 (VI2_AVX2): Likewise.
13932 (VI4_AVX2): Likewise.
13933 (VI8_AVX2): Likewise.
13934 (VIMAX_AVX2): Likewise.
13935 (SSESCALARMODE): Likewise.
13936 (VI12_AVX2): Likewise.
13937 (VI24_AVX2): Likewise.
13938 (VI124_AVX2): Likewise.
13939 (VI248_AVX2): Likewise.
13940 (VI48_AVX2): Likewise.
13941 (VI4SD_AVX2): Likewise.
13942 (V48_AVX2): Likewise.
13943 (AVX256MODE2P): Likewise.
13944 (AVXMODE48P_DI): Likewise.
13945 (sse2_avx2): New mode attribute.
13946 (ssse3_avx2): Likewise.
13947 (sse4_1_avx2): Likewise.
13948 (avx_avx2): Likewise.
13949 (ssebytemode): Likewise.
13950 (AVXTOSSEMODE): Likewise.
13951 (AVXMODE48P_DI): Likewise.
13952 (gthrfirstp): Likewise.
13953 (gthrlastp): Likewise.
13954 (lshift): New code_iterator
13955 (lshift): New code attribute.
13956 (lshift): Likewise.
13957 (ssescalarmodesuffix): Update.
13958 (sseunpackmode): Likewise.
13959 (ssepackmode): Likewise.
13960 (avx2_vec_dupv4sf): New insn pattern.
13961 (avx2_vec_dupv8sf): Likewise.
13962 (avx2_interleave_highv4di): Likewise.
13963 (avx2_interleave_lowv4di): Likewise.
13964 (avx2_umulv4siv4di3): Likewise
13965 (*avx2_umulv4siv4di3): Likewise
13966 (avx2_pmaddwd): Likewise.
13967 (*avx2_pmaddwd): Likewise.
13968 (avx2_lshrqv4di3): Likewise.
13969 (avx2_lshlqv4di3): Likewise.
13970 (avx2_lshl<mode>3): Likewise.
13971 (avx2_<umaxmin:code><mode>3): Likewise.
13972 (*avx2_<umaxmin:code><mode>3): Likewise.
13973 (avx2_<smaxmin:code><mode>3): Likewise.
13974 (*avx2_<smaxmin:code><mode>3): Likewise.
13975 (avx2_eq<mode>3): Likewise.
13976 (*avx2_eq<mode>3): Likewise.
13977 (avx2_gt<mode>3): Likewise.
13978 (avx2_interleave_highv32qi): New.
13979 (avx2_interleave_lowv32qi): Likewise.
13980 (avx2_interleave_highv16hi): Likewise.
13981 (avx2_interleave_lowv16hi): Likewise.
13982 (avx2_interleave_highv8si): Likewise.
13983 (avx2_interleave_lowv8si): Likewise.
13984 (avx2_pshufd): Likewise.
13985 (avx2_pshufd_1): Likewise.
13986 (avx2_pshuflwv3): Likewise.
13987 (avx2_pshuflw_1): Likewise.
13988 (avx2_pshufhwv3): Likewise.
13989 (avx2_pshufhw_1): Likewise.
13990 (avx2_uavgv32qi3): Likewise.
13991 (*avx2_uavgv32qi3): Likewise.
13992 (avx2_uavgv16hi3): Likewise.
13993 (*avx2_uavgv16hi3): Likewise.
13994 (avx2_pmovmskb): Likewise.
13995 (avx2_phaddwv16hi3): Likewise.
13996 (avx2_phadddv8si3): Likewise.
13997 (avx2_phaddswv16hi3): Likewise.
13998 (avx2_phsubwv16hi3): Likewise.
13999 (avx2_phsubdv8si3): Likewise.
14000 (avx2_phsubswv16hi3): Likewise.
14001 (avx2_pmaddubsw256): Likewise.
14002 (avx2_umulhrswv16hi3): Likewise.
14003 (*avx2_umulhrswv16hi3): Likewise.
14004 (avx2_packusdw): Likewise.
14005 (avx2_pblendd<mode>): Likewise.
14006 (avx2_<code>v16qiv16hi2): Likewise.
14007 (avx2_<code>v8qiv8si2): Likewise.
14008 (avx2_<code>v8hiv8si2): Likewise.
14009 (avx2_<code>v4qiv4di2): Likewise.
14010 (avx2_<code>v4hiv4di2): Likewise.
14011 (avx2_<code>v4siv4di2): Likewise.
14012 (avx2_pbroadcast<mode>): Likewise.
14013 (avx2_permvarv8si): Likewise.
14014 (avx2_permv4df): Likewise.
14015 (avx2_permvarv8sf): Likewise.
14016 (avx2_permv4di): Likewise.
14017 (avx2_permv2ti): Likewise.
14018 (avx2_vec_dupv4df): Likewise.
14019 (avx2_vbroadcasti128_<mode>): Likewise.
14020 (avx2_vec_set_lo_v4di): Likewise.
14021 (avx2_vec_set_hi_v4di): Likewise.
14022 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
14023 (avx2_extracti128): Likewise.
14024 (avx2_inserti128): Likewise.
14025 (avx2_ashrvv8si): Likewise.
14026 (avx2_ashrvv4si): Likewise.
14027 (avx2_<lshift>vv8si): Likewise.
14028 (avx2_<lshift>v<mode>): Likewise.
14029 (avx2_<lshift>vv2di): Likewise.
14030 (avx2_gathersi<mode>): Likewise.
14031 (*avx2_gathersi<mode>): Likewise.
14032 (avx2_gatherdi<mode>): Likewise.
14033 (*avx2_gatherdi<mode>): Likewise.
14034 (avx2_gatherdi<mode>256): Likewise.
14035 (*avx2_gatherdi<mode>256): Likewise.
14036 (<plusminus_insn><mode>3): Use VI mode iterator.
14037 (*<plusminus_insn><mode>3): Use VI mode iterator.
14038 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
14039 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
14040 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
14041 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
14042 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
14043 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
14044 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
14045 Use VI2_AVX2 mode iterator.
14046 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
14047 Use VI2_AVX2 mode iterator.
14048 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
14049 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
14050 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
14051 Use VI4_AVX2 mode iterator.
14052 (ashr<mode>3): Use VI24_AVX2 mode iterator.
14053 (lshr<mode>3): Use VI248_AVX2 mode iterator.
14054 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
14055 Use VIMAX_AVX2 mode iterator.
14056 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
14057 Use VI mode iterator.
14058 (*andnot<mode>3): Update for AVX2.
14059 (*<any_logic:code><mode>3): Likewise.
14060 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
14061 Use VI1_AVX mode iterator.
14062 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
14063 Use VI2_AVX mode iterator.
14064 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
14065 Use VI1_AVX mode iterator.
14066 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
14067 Use VI8_AVX2 mode iterator.
14068 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
14069 Use VI1_AVX2 mode iterator.
14070 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
14071 Use VI124_AVX2 mode iterator.
14072 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
14073 Use SSESCALARMODE mode iterator.
14074 (abs<mode>2): Use VI124_AVX2 mode iterator.
14075 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
14076 Use VI8_AVX2 mode iterator.
14077 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
14078 Use VI1_AVX2 mode iterator.
14079 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
14080 Use VI1_AVX2 mode iterator.
14081 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
14082 Use VI2_AVX2 mode iterator.
14083 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
14084 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
14085 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
14086 avx_maskstore<ssemodesuffix><avxsizesuffix>.
14087 Use V48_AVX2 mode iterator.
14088 * doc/extend.texi: Document AVX2 built-in functions.
14089 * doc/invoke.texi: Document -mavx2.
14090
14091 2011-08-22 Matthias Klose <doko@debian.org>
14092
14093 Revert:
14094 2011-07-11 Arthur Loiret <aloiret@debian.org>
14095 Matthias Klose <doko@debian.org>
14096 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
14097 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
14098 convention.
14099 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
14100
14101 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
14102
14103 PR bootstrap/50146
14104 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
14105 to #ifndef HONOR_REG_ALLOC_ORDER block.
14106
14107 2011-08-21 Richard Henderson <rth@redhat.com>
14108
14109 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
14110 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
14111 * resource.c (next_insn_no_annul): Likewise.
14112 (mark_set_resources): Likewise.
14113 * reorg.c (delete_from_delay_slot): Likewise.
14114 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
14115 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
14116
14117 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
14118
14119 * config/i386/i386.md (any_div): Remove.
14120 (sgnprefix): Update for removal.
14121 (u): Ditto.
14122
14123 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
14124
14125 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
14126 for ira_reg_class_max_nregs. Increase pressure by 1.
14127 (mark_pseudo_regno_subword_dead): Use allocno class
14128 for ira_reg_class_max_nregs.
14129
14130 2011-08-20 Richard Henderson <rth@redhat.com>
14131
14132 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
14133 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
14134 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
14135 config/c6x/ltf.c: Adjust include path for soft-fp.
14136
14137 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
14138
14139 PR other/46770
14140 * config.gcc (tm_file): Add initfini-array.h if
14141 .init_arrary/.fini_array are supported.
14142
14143 * crtstuff.c: Don't generate .ctors nor .dtors sections if
14144 USE_INITFINI_ARRAY is defined.
14145
14146 * output.h (default_elf_init_array_asm_out_constructor): New.
14147 (default_elf_fini_array_asm_out_destructor): Likewise.
14148 * varasm.c (elf_init_array_section): Likewise.
14149 (elf_fini_array_section): Likewise.
14150 (get_elf_initfini_array_priority_section): Likewise.
14151 (default_elf_init_array_asm_out_constructor): Likewise.
14152 (default_elf_fini_array_asm_out_destructor): Likewise.
14153
14154 * config/initfini-array.h: New.
14155
14156 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
14157
14158 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
14159 OK for ST_REGS and FP_REGS before taking those classes into account.
14160
14161 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
14162
14163 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
14164 before checking for annulled branches.
14165
14166 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
14167
14168 * config/i386/i386.c (ix86_binary_operator_ok): Use
14169 satisfies_constraint_L.
14170
14171 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
14172 Michael Matz <matz@suse.de>
14173
14174 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
14175 trunc (a + copysign (nextafter (0.5, 0.0), a)).
14176
14177 2011-08-20 Anatoly Sokolov <aesok@post.ru>
14178
14179 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14180 * doc/tm.texi: Regenerate.
14181 * targhooks.c (default_preferred_output_reload_class): Don't use
14182 PREFERRED_OUTPUT_RELOAD_CLASS macro.
14183 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
14184
14185 2011-08-20 Jakub Jelinek <jakub@redhat.com>
14186
14187 PR tree-optimization/48739
14188 * tree-ssa.c: Include cfgloop.h.
14189 (execute_update_addresses_taken): When updating ssa, if in loop closed
14190 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
14191 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
14192
14193 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
14194
14195 PR rtl-optimization/49936
14196 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
14197 for calculation of max register move costs.
14198
14199 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14200
14201 * c-parser.c (c_parser_postfix_expression): Convert operands of
14202 __builtin_complex to their semantic types.
14203
14204 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14205
14206 PR middle-end/49721
14207 * explow.c (convert_memory_address_addr_space): Also permute the
14208 conversion and addition of constant for zero-extend.
14209
14210 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14211
14212 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
14213 * doc/extend.texi (__builtin_complex): Document.
14214
14215 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14216
14217 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
14218 beyond conversions.
14219 (convert_mult_to_widen): Convert constant inputs to the right type.
14220 (convert_plusminus_to_widen): Don't automatically reject inputs that
14221 are not an SSA_NAME.
14222 Convert constant inputs to the right type.
14223
14224 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14225
14226 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
14227 to the correct type.
14228
14229 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14230
14231 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
14232 unsigned inputs of different modes.
14233 (convert_plusminus_to_widen): Likewise.
14234
14235 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14236
14237 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
14238 'type'.
14239 Use 'type' from caller, not inferred from 'rhs'.
14240 Don't reject non-conversion statements. Do return lhs in this case.
14241 (is_widening_mult_p): Add new argument 'type'.
14242 Use 'type' from caller, not inferred from 'stmt'.
14243 Pass type to is_widening_mult_rhs_p.
14244 (convert_mult_to_widen): Pass type to is_widening_mult_p.
14245 (convert_plusminus_to_widen): Likewise.
14246
14247 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14248
14249 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
14250 Ensure the the larger type is the first operand.
14251
14252 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14253
14254 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
14255 unsupported unsigned multiplies to signed.
14256 (convert_plusminus_to_widen): Likewise.
14257
14258 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14259
14260 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
14261 conversion statement separating multiply-and-accumulate.
14262
14263 2011-08-19 Richard Guenther <rguenther@suse.de>
14264
14265 PR tree-optimization/50067
14266 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
14267 offset only if we accounted for it.
14268
14269 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14270
14271 * config/arm/arm.md (maddhidi4): Remove '*' from name.
14272 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
14273 * optabs.c (find_widening_optab_handler_and_mode): New function.
14274 (expand_widen_pattern_expr): Use find_widening_optab_handler.
14275 (expand_binop_directly): Likewise.
14276 (expand_binop): Likewise.
14277 * optabs.h (find_widening_optab_handler): New macro define.
14278 (find_widening_optab_handler_and_mode): New prototype.
14279 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
14280 type precision rules.
14281 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
14282 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
14283 (is_widening_mult_rhs_p): Allow widening by more than one mode.
14284 Explicitly disallow mis-matched input types.
14285 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
14286 input types to fit the new handler.
14287 (convert_plusminus_to_widen): Likewise.
14288
14289 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14290
14291 * expr.c (expand_expr_real_2): Use widening_optab_handler.
14292 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
14293 (gen_insn): $N now means $a must be wider than $b, not consecutive.
14294 * optabs.c (widened_mode): New function.
14295 (expand_widen_pattern_expr): Use widening_optab_handler.
14296 (expand_binop_directly): Likewise.
14297 (expand_binop): Likewise.
14298 * optabs.h (widening_optab_handlers): New struct.
14299 (optab_d): New member, 'widening'.
14300 (widening_optab_handler): New function.
14301 (set_widening_optab_handler): New function.
14302 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
14303 widening_optab_handler.
14304 (convert_plusminus_to_widen): Likewise.
14305
14306 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14307
14308 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
14309 pedantic.
14310 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
14311 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
14312
14313 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14314
14315 * opth-gen.awk: Do not declare target save/restore structures and
14316 functions if IN_RTS defined.
14317
14318 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14319
14320 PR target/49437
14321 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
14322 when stack was realigned in interrupt handler prologue.
14323
14324 2011-08-18 Joseph Myers <joseph@codesourcery.com>
14325
14326 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
14327 (quals_from_declspecs): Assert _Noreturn not present.
14328 (grokdeclarator): Handle _Noreturn.
14329 (build_null_declspecs): Initialize noreturn_p.
14330 (declspecs_add_scspec): Handle RID_NORETURN.
14331 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
14332 (c_parser_attributes): Handle RID_NORETURN.
14333 * c-tree.h (struct c_declspecs): Add noreturn_p.
14334 * ginclude/stdnoreturn.h: New.
14335 * Makefile.in (USER_H): Add stdnoreturn.h.
14336
14337 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
14338
14339 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
14340 (OPTION_MASK_ISA_AVX_UNSET): Update.
14341 (OPTION_MASK_ISA_AVX2_UNSET): New.
14342 (ix86_handle_option): Handle OPT_mavx2 case.
14343 * config/i386/cpuid.h (bit_AVX2): New.
14344 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14345 AVX2 feature.
14346 * config/i386/i386-c.c (ix86_target_macros_internal):
14347 Conditionally define __AVX2__.
14348 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
14349 Define "core-avx2" processor alias. Handle avx2 option.
14350 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
14351 * config/i386/i386.h (TARGET_AVX2): New.
14352 * config/i386/i386.opt (mavx2): New.
14353 * doc/invoke.texi: Document -mavx2.
14354
14355 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
14356
14357 PR rtl-optimization/49890
14358 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
14359 subclasses of class which is superset of a pressure class.
14360
14361 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
14362 Igor Zamyatin <igor.zamyatin@intel.com>
14363
14364 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
14365 with HOST_WIDE_INT for isa_flag.
14366 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
14367 isa variables.
14368
14369 * config/i386/i386.c (ix86_target_string): Replace int with
14370 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
14371 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
14372 (pta_flags): Removed.
14373 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
14374 (pta): Use HOST_WIDE_INT on flags.
14375 (builtin_isa): Use HOST_WIDE_INT on isa.
14376 (ix86_add_new_builtins): Likewise.
14377 (def_builtin): Use HOST_WIDE_INT on mask.
14378 (def_builtin_const): Likewise.
14379 (builtin_description): Likewise.
14380
14381 * config/i386/i386.opt (ix86_isa_flags): Replace int with
14382 HOST_WIDE_INT.
14383 (ix86_isa_flags_explicit): Likewise.
14384 (x_ix86_isa_flags_explicit): Likewise.
14385
14386 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
14387
14388 PR rtl-optimization/50107
14389 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
14390 (ira_hard_reg_in_set_p): New.
14391
14392 * ira-color.c (calculate_saved_nregs): New.
14393 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
14394 hard regs.
14395 (allocno_reload_assign, fast_allocation): Use
14396 ira_hard_reg_set_intersection_p instead of
14397 ira_hard_reg_not_in_set_p.
14398
14399 * ira.c (setup_reg_renumber): Use
14400 ira_hard_reg_set_intersection_p instead of
14401 ira_hard_reg_not_in_set_p.
14402 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
14403 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
14404
14405 * ira-costs.c (ira_tune_allocno_costs): Use
14406 ira_hard_reg_set_intersection_p instead of
14407 ira_hard_reg_not_in_set_p.
14408
14409 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
14410 Igor Zamyatin <igor.zamyatin@intel.com>
14411
14412 * hwint.h (HOST_WIDE_INT_1): New.
14413
14414 * opt-functions.awk (switch_bit_fields): Initialize the
14415 host_wide_int field.
14416 (host_wide_int_var_name): New.
14417 (var_type_struct): Check and return HOST_WIDE_INT.
14418
14419 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
14420
14421 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
14422
14423 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
14424 check masks for HOST_WIDE_INT.
14425
14426 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
14427 (option_enabled): Likewise.
14428 (get_option_state): Likewise.
14429
14430 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
14431 to HOST_WIDE_INT.
14432
14433 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14434 Marc Glisse <marc.glisse@normalesup.org>
14435
14436 PR libstdc++-v3/1773
14437 * target.def (decl_mangling_context): New C++ hook.
14438 * doc/tm.texi: Regenerate.
14439 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
14440 * config/sol2-protos.h: Group by source file.
14441 (solaris_cxx_decl_mangling_context): Declare.
14442 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
14443 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
14444 Use $<.
14445 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
14446 Add sol2-stubs.o to extra_objs.
14447
14448 2011-08-18 Jakub Jelinek <jakub@redhat.com>
14449
14450 PR target/50009
14451 * stor-layout.c (update_alignment_for_field): Don't ICE on
14452 packed flexible array members if ms_bitfield_layout_p.
14453
14454 PR target/50092
14455 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
14456 on the result before returning it.
14457
14458 PR debug/50017
14459 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
14460 is a debug stmt, use location of the first non-debug stmt after it.
14461
14462 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14463
14464 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
14465 (arm_size_rtx_costs): Likewise.
14466
14467 2011-08-18 Richard Guenther <rguenther@suse.de>
14468
14469 * tree.h (tree_int_cst_msb): Remove.
14470 * tree.c (tree_int_cst_msb): Likewise.
14471 (tree_int_cst_sign_bit): Move from ...
14472 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
14473
14474 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14475
14476 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
14477 * doc/tm.texi: Regenerate.
14478 * target.def (rtx_costs): Add an opno parameter.
14479 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
14480 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
14481 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
14482 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
14483 * cse.c (COST_IN): Add an opno parameter.
14484 (notreg_cost): Likewise. Update call to rtx_cost.
14485 (COST, fold_rtx): Update accordingly.
14486 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
14487 * expmed.c (emit_store_flag): Likewise.
14488 * optabs.c (avoid_expensive_constant): Add an opno parameter.
14489 Update call to rtx_cost.
14490 (expand_binop_directly, expand_binop): Likewise.
14491 (expand_twoval_binop, prepare_cmp_insn): Likewise.
14492 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
14493 (set_src_cost, get_full_set_src_cost): Update accordingly.
14494 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
14495 to target hook.
14496 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
14497 (default_adress_cost): Update calls to rtx_cost.
14498
14499 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
14500 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
14501 (arm_rtx_costs): Add an opno parameter.
14502 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
14503 adjust any recursive rtx-cost calls.
14504 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
14505 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14506 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14507 * config/cris/cris.c (cris_rtx_costs): Likewise.
14508 * config/frv/frv.c (frv_rtx_costs): Likewise.
14509 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14510 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14511 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14512 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14513 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14514 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14515 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14516 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14517 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14518 * config/mep/mep.c (mep_rtx_cost): Likewise.
14519 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14520 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
14521 (mips_zero_extend_cost): Add an opno parameter.
14522 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14523 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
14524 to rtx_cost.
14525 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
14526 rtx-cost calls.
14527 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14528 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14529 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
14530 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14531 (rs6000_debug_rtx_costs): Likewise.
14532 * config/s390/s390.c (s390_rtx_costs): Likewise.
14533 * config/score/score-protos.h (score_rtx_costs): Likewise.
14534 * config/score/score.c (score_rtx_costs): Likewise.
14535 * config/sh/sh.c (andcosts): Update call to rtx_cost.
14536 (sh_rtx_costs): Add an opno parameter.
14537 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14538 * config/spu/spu.c (spu_rtx_costs): Likewise.
14539 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14540 * config/v850/v850.c (v850_rtx_costs): Likewise.
14541 * config/vax/vax.c (vax_rtx_costs): Likewise.
14542 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14543
14544 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14545
14546 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
14547 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
14548 rtx_cost.
14549 * calls.c (precompute_register_parameters): Likewise.
14550 * combine.c (expand_compound_operation, make_extraction): Likewise.
14551 (force_to_mode, distribute_and_simplify_rtx): Likewise.
14552 * dse.c (find_shift_sequence): Likewise.
14553 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
14554 * expr.c (compress_float_constant): Likewise.
14555 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14556 * gcse.c (want_to_gcse_p): Likewise.
14557 * ifcvt.c (noce_try_sign_mask): Likewise.
14558 * loop-doloop.c (doloop_optimize): Likewise.
14559 * loop-invariant.c (create_new_invariant): Likewise.
14560 * optabs.c (avoid_expensive_constant): Likewise.
14561 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
14562 (try_replace_in_use, reload_cse_move2add): Likewise.
14563 * reload1.c (calculate_elim_costs_all_insns): Likewise.
14564 (note_reg_elim_costly): Likewise.
14565 * rtlanal.c (insn_rtx_cost): Likewise.
14566 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14567 * stmt.c (lshift_cheap_p): Likewise.
14568 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
14569 * config/avr/avr.c (final_prescan_insn): Likewise.
14570 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14571 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
14572
14573 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14574
14575 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
14576 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
14577 * cfgloopanal.c (seq_cost): Likewise.
14578 * loop-invariant.c (create_new_invariant): Likewise.
14579 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
14580 (reload_cse_move2add): Use get_full_set_rtx_cost.
14581
14582 2011-08-18 Richard Guenther <rguenther@suse.de>
14583
14584 * expr.c (get_inner_reference): Fix typo in last change.
14585
14586 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
14587 Joseph Myers <joseph@codesourcery.com>
14588
14589 PR tree-optimization/49963
14590 * hwint.c (absu_hwi): Define.
14591 * hwint.h (absu_hwi): Declare.
14592 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
14593 of abs_hwi.
14594 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
14595 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
14596
14597 2011-08-18 Richard Guenther <rguenther@suse.de>
14598
14599 * expr.c (get_inner_reference): Sign-extend the constant
14600 twos-complement offset before doing arbitrary precision
14601 arithmetic on it.
14602 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
14603 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
14604 to get_constraint_for_ptr_offset.
14605
14606 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
14607
14608 PR target/50068
14609 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
14610
14611 2011-08-17 Richard Guenther <rguenther@suse.de>
14612
14613 * tree.h (convert_to_ptrofftype_loc): New function.
14614 (convert_to_ptrofftype): Define.
14615 * builtins.c (expand_builtin_bzero): Use size_type_node.
14616 (fold_builtin_bzero): Likewise.
14617 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
14618 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
14619 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
14620 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
14621 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
14622 * fold-const.c (build_range_check): Negate using the original type.
14623 (fold_unary_loc): Use fold_build_pointer_plus_loc.
14624 * gimple-fold.c (gimple_adjust_this_by_delta): Use
14625 convert_to_ptrofftype.
14626 * gimplify.c (gimplify_self_mod_expr): Likewise.
14627 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
14628 (graphite_create_new_loop_guard): Likewise.
14629 * graphite-sese-to-poly.c (my_long_long): Remove.
14630 (scop_ivs_can_be_represented): Adjust.
14631 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
14632 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
14633 * tree-loop-distribution.c (build_size_arg_loc): Use
14634 size_type_node.
14635 (generate_memset_zero): Simplify.
14636 * tree-mudflap.c: Use fold_convert, not convert.
14637 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
14638 its own type.
14639 (determine_offset): Likewise for DR_STEP.
14640 (valid_initializer_p): Likewise.
14641 * tree-profile.c (prepare_instrumented_value): Convert the pointer
14642 to an integer type of same size.
14643 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
14644 to sizetype without need.
14645 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
14646 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
14647 * tree-ssa-loop-manip.c (create_iv): Likewise.
14648 (determine_exit_conditions): Adjust comment.
14649 * tree-ssa-pre.c (create_expression_by_pieces): Use
14650 convert_to_ptrofftype.
14651 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
14652 * varasm.c (array_size_for_constructor): Compute using double_ints.
14653
14654 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14655
14656 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
14657 when generating an integer result where possible. Short-cut
14658 comparison against 0 also for QImode.
14659
14660 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14661
14662 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
14663 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
14664 prototype.
14665 * config/spu/spu.c (spu_legitimize_reload_address): New function.
14666 (spu_legitimate_address_p): Do not check displacement if the base
14667 is an eliminable stack register.
14668
14669 2011-08-16 Anatoly Sokolov <aesok@post.ru>
14670
14671 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
14672 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
14673 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
14674 m32c_preferred_output_reload_class): Remove.
14675 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
14676 Change rclass argument and return types to reg_class_t. Use
14677 reg_class_subset_p instead of class_sizes.
14678 (m32c_preferred_output_reload_class): Make static. Change rclass
14679 argument and return types to reg_class_t.
14680 (TARGET_PREFERRED_RELOAD_CLASS,
14681 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14682
14683 2011-08-16 Kai Tietz <ktietz@redhat.com>
14684
14685 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
14686
14687 2011-08-16 Richard GUenther <rguenther@suse.de>
14688
14689 PR tree-optimization/50082
14690 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
14691 warnings here, instead of ...
14692 (ssa_forward_propagate_and_combine): ... here.
14693 (forward_propagate_into_comparison_1): Adjust.
14694 (forward_propagate_into_comparison): Likewise.
14695 (forward_propagate_into_gimple_cond): Likewise.
14696 (forward_propagate_into_cond): Likewise.
14697
14698 2011-08-16 Andreas Schwab <schwab@redhat.com>
14699
14700 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
14701 instead of ggc_alloc_zone_vec_rtvec_def.
14702
14703 2011-08-16 Richard Guenther <rguenther@suse.de>
14704
14705 * tree.h (ptrofftype_p): New helper function.
14706 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
14707 offset verification.
14708 (verify_gimple_assign_binary): Likewise.
14709 * tree.c (build2_stat): Likewise.
14710 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
14711 (reset_evolution_in_loop): Likewise.
14712 * tree-chrec.h (build_polynomial_chrec): Likewise.
14713
14714 2011-08-16 Liang Wang <lwang1@marvell.com>
14715
14716 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
14717 ggc_alloc_zone_vec_rtvec_def.
14718
14719 2011-08-16 Richard Guenther <rguenther@suse.de>
14720
14721 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
14722 helper factored out from ...
14723 (extract_range_from_binary_expr_1): ... here. Re-structure
14724 to not glob handling too different tree codes.
14725
14726 2011-08-15 Richard Henderson <rth@redhat.com>
14727
14728 PR middle-end/50006
14729 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
14730 setting out to include allocate_stack named pattern as well.
14731 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
14732 * stmt.c (expand_stack_restore): Likewise.
14733
14734 2011-08-15 Richard Guenther <rguenther@suse.de>
14735
14736 PR middle-end/50082
14737 * fold-const.c (maybe_canonicalize_comparison_1): Properly
14738 convert the modified operand to the other operand type.
14739 (fold_comparison): Call maybe_canonicalize_comparison_1 with
14740 useless conversions stripped from comparison operands.
14741
14742 2011-08-15 Richard Guenther <rguenther@suse.de>
14743
14744 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
14745 (extract_range_from_unary_expr_1): Restructure.
14746
14747 2011-08-15 Richard Guenther <rguenther@suse.de>
14748
14749 PR tree-optimization/50058
14750 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
14751 copy matching.
14752
14753 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14754
14755 PR target/50022
14756 * config/arm/arm.c (output_move_double): Add 2 parameters
14757 to count the number of insns emitted and whether to emit or not.
14758 Use the flag to decide when to emit and count number of instructions
14759 that will be emitted.
14760 Handle case where output_move_double might be called for calculating
14761 lengths with an invalid constant.
14762 (arm_count_output_move_double_insns): Define.
14763 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
14764 (output_move_double): Adjust prototype.
14765 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
14766 output_move_double.
14767 ("*movdi_vfp_cortexa8"): Likewise and add attribute
14768 for ce_count.
14769 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
14770 ("*movdf_soft_insn"): Likewise.
14771 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
14772 ("*cirrus_thumb2_movdi"): Likewise.
14773 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
14774 ("*cirrus_movdf_hard_insn"): Likewise.
14775 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
14776 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
14777 ("mov<mode>_internal VMMX"): Likewise.
14778 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
14779
14780 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
14781
14782 * config/i386/i386.c (ix86_expand_round_sse4): New function.
14783 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
14784 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
14785 for TARGET_ROUND.
14786
14787 (rint<mode>2): Simplify TARGET_ROUND check.
14788 (floor<mode>2): Ditto.
14789 (ceil<mode>2): Ditto.
14790 (btrunc<mode>2): Ditto.
14791
14792 2011-08-14 Anatoly Sokolov <aesok@post.ru>
14793
14794 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
14795 as mmix_preferred_output_reload_class.
14796
14797 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
14798
14799 * PR target/49903
14800 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
14801 (branch_unspec): New insn.
14802 (branch): Beauty farm.
14803 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
14804 to be IF_THEN_ELSE.
14805 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
14806 New static functions.
14807 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
14808 Use CONST_INT_P. Beauty.
14809
14810 2011-08-12 Richard Henderson <rth@redhat.com>
14811
14812 PR rtl-opt/49994
14813 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
14814 * sched-deps.c (init_deps): Clear it.
14815 (deps_analyze_insn): Consume it.
14816 (sched_analyze_insn): Fill it.
14817
14818 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14819
14820 PR target/48328
14821 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
14822 for tbh instructions.
14823
14824 2011-08-12 Diego Novillo <dnovillo@google.com>
14825
14826 * data-streamer.h (streamer_write_zero): Rename from output_zero.
14827 (streamer_write_uhwi): Rename from lto_output_uleb128.
14828 (streamer_write_hwi): Rename from output_sleb128.
14829 (streamer_write_string): Rename from lto_output_string.
14830 (streamer_string_index): Rename from lto_string_index.
14831 (streamer_write_string_with_length): Rename from
14832 lto_output_string_with_length.
14833 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
14834 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
14835 (streamer_read_string): Rename from lto_input_string.
14836 (streamer_read_indexed_string): Rename from input_string_internal.
14837 (streamer_read_uhwi): Rename from lto_input_uleb128.
14838 (streamer_read_hwi): Rename from lto_input_sleb128.
14839 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
14840 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
14841 (streamer_write_enum): Rename from lto_output_enum.
14842 (streamer_read_enum): Rename from lto_input_enum.
14843 (streamer_write_record_start): Rename from output_record_start.
14844 (streamer_read_record_start): Rename from input_record_start.
14845 (streamer_write_bitpack): Rename from lto_output_bitpack.
14846 (streamer_read_bitpack): Rename from lto_input_bitpack.
14847 (streamer_write_char_stream): Rename from lto_output_1_stream.
14848 (streamer_read_uchar): Rename from lto_input_1_unsigned.
14849 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
14850 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
14851 (streamer_read_string_cst): Rename from input_string_cst.
14852 (streamer_read_chain): Rename from lto_input_chain.
14853 (streamer_alloc_tree): Rename from lto_materialize_tree.
14854 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
14855 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
14856 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
14857 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
14858 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
14859 (streamer_write_chain): Rename from lto_output_chain.
14860 (streamer_write_tree_header): Rename from lto_output_tree_header.
14861 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
14862 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
14863 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
14864 (streamer_write_builtin): Rename from lto_output_builtin_tree.
14865 (streamer_check_handled_ts_structures): Rename from
14866 check_handled_ts_structures.
14867 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
14868 (streamer_tree_cache_insert_at): Rename from
14869 lto_streamer_cache_insert_at.
14870 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
14871 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
14872 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
14873 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
14874 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
14875 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
14876 (write_identifier): Rename from output_identifier.
14877 (write_ts_common_tree_pointers): Rename from
14878 lto_output_ts_common_tree_pointers.
14879 (write_ts_vector_tree_pointers): Rename from
14880 lto_output_ts_vector_tree_pointers.
14881 (write_ts_complex_tree_pointers): Rename from
14882 lto_output_ts_complex_tree_pointers.
14883 (write_ts_decl_minimal_tree_pointers): Rename from
14884 lto_output_ts_decl_minimal_tree_pointers.
14885 (write_ts_decl_common_tree_pointers): Rename from
14886 lto_output_ts_decl_common_tree_pointers.
14887 (write_ts_decl_non_common_tree_pointers): Rename from
14888 lto_output_ts_decl_non_common_tree_pointers.
14889 (write_ts_decl_with_vis_tree_pointers): Rename from
14890 lto_output_ts_decl_with_vis_tree_pointers.
14891 (write_ts_field_decl_tree_pointers): Rename from
14892 lto_output_ts_field_decl_tree_pointers.
14893 (write_ts_function_decl_tree_pointers): Rename from
14894 lto_output_ts_function_decl_tree_pointers.
14895 (write_ts_type_common_tree_pointers): Rename from
14896 lto_output_ts_type_common_tree_pointers.
14897 (write_ts_type_non_common_tree_pointers): Rename from
14898 lto_output_ts_type_non_common_tree_pointers.
14899 (write_ts_list_tree_pointers): Rename from
14900 lto_output_ts_list_tree_pointers.
14901 (write_ts_vec_tree_pointers): Rename from
14902 lto_output_ts_vec_tree_pointers.
14903 (write_ts_exp_tree_pointers): Rename from
14904 lto_output_ts_exp_tree_pointers.
14905 (write_ts_block_tree_pointers): Rename from
14906 lto_output_ts_block_tree_pointers.
14907 (write_ts_binfo_tree_pointers): Rename from
14908 lto_output_ts_binfo_tree_pointers.
14909 (write_ts_constructor_tree_pointers): Rename from
14910 lto_output_ts_constructor_tree_pointers.
14911 (write_ts_target_option): Rename from lto_output_ts_target_option.
14912 (write_ts_translation_unit_decl_tree_pointers): Rename from
14913 lto_output_ts_translation_unit_decl_tree_pointers.
14914 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
14915 Rename from lto_streamer_cache_add_to_node_array.
14916 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
14917 (record_common_node): Rename from lto_record_common_node.
14918
14919 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
14920 declarations.
14921 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
14922 function.
14923 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
14924 unused function.
14925 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
14926 (ipa-reference.o): Likewise.
14927 * lto-section-out.c: Include data-streamer.h.
14928 * ipa-reference.c: Include data-streamer.h.
14929
14930 2011-08-12 Nick Clifton <nickc@redhat.com>
14931
14932 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
14933 * doc/md.texi (cmpstrn): Note that the comparison stops if both
14934 fetched bytes are zero.
14935 (cmpstr): Likewise.
14936 (cmpmem): Note that the comparison does not stop if both of the
14937 fetched bytes are zero.
14938
14939 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
14940
14941 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
14942 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
14943 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
14944 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
14945 to integer_type_node.
14946 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
14947 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
14948 * builtins.c (expand_builtin_in): Ditto.
14949 (mathfn_built_in_1): Ditto.
14950 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
14951 BUILT_IN_IFLOOR.
14952 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
14953 BUILT_IN_IROUND.
14954 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
14955 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
14956 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
14957
14958 2011-08-12 Richard Guenther <rguenther@suse.de>
14959
14960 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
14961
14962 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
14963
14964 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
14965
14966 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
14967
14968 * config/arm/arm.c (get_label_padding): New function.
14969 (create_fix_barrier, arm_reorg): Use it.
14970
14971 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
14972
14973 PR target/49781
14974 * config/i386/i386.md (*lea_5_zext): New.
14975 (*lea_6_zext): Ditto.
14976 * config/i386/predicates.md (const_32bit_mask): New predicate.
14977 (lea_address_operand): Reject AND.
14978 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
14979 const_32bit_mask immediate.
14980 (ix86_print_operand_address): Handle AND.
14981 (memory_address_length): Ditto.
14982
14983 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
14984 Brian Hackett <bhackett1024@gmail.com>
14985
14986 * plugin.def: Add event for finish_decl.
14987 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
14988 * c-decl.c (finish_decl): Invoke callbacks on above event.
14989 * doc/plugins.texi: Document above event.
14990
14991 2011-08-11 Richard Guenther <rguenther@suse.de>
14992
14993 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
14994 lookups, make looking through aggregate copies stronger.
14995
14996 2011-08-11 Richard Henderson <rth@redhat.com>
14997
14998 PR bootstrap/50018
14999 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
15000
15001 2011-08-11 Richard Guenther <rguenther@suse.de>
15002
15003 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
15004 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
15005 (vrp_visit_stmt): Likewise.
15006
15007 2011-08-11 Richard Guenther <rguenther@suse.de>
15008
15009 PR middle-end/50040
15010 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
15011 load of the other piece with TREE_NO_WARNING.
15012 * tree-flow.h (warn_uninit): Adjust prototype.
15013 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
15014 the base variable and the expression that is used separately.
15015 Properly query all TREE_NO_WARNING flags.
15016 (struct walk_data): Remove.
15017 (warn_uninitialized_var): Likewise.
15018 (warn_uninitialized_vars): Do not walk gimple pieces but simply
15019 look at all SSA uses of the statement. Handle unused memory
15020 separately.
15021 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
15022
15023 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
15024
15025 * config/rx/rx.md (movsicc): Allow register to register transfers.
15026 (*movsicc): Likewise.
15027 (*stcc): Restrict this pattern to EQ and NE compares.
15028 (*stcc_reg): New pattern. Works for any comparison but only for
15029 register transfers.
15030
15031 2011-08-11 Diego Novillo <dnovillo@google.com>
15032
15033 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
15034 Call stream_write_tree instead of output_record_start.
15035 (lto_output_ts_binfo_tree_pointers): Likewise.
15036
15037 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
15038 Convert it to a macro.
15039 (stream_read_tree): Likewise.
15040
15041 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
15042 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
15043
15044 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
15045 and tree_read_bitfields.
15046 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
15047 (lto_write_tree): Call it.
15048 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
15049 * streamer-hooks.h (struct streamer_hooks): Remove fields
15050 name, is_streamable and alloc_tree. Update all users.
15051 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
15052 (lto_materialize_tree): ... here.
15053 Handle CALL_EXPR codes.
15054 Remove call to lto_streamer_cache_append.
15055 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
15056 * tree-streamer.h (tree_read_bitfields): Declare.
15057
15058 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
15059 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
15060 * tree-streamer.h (stream_read_tree): New. Replace all calls
15061 to lto_input_tree with it.
15062 (stream_write_tree): New. Replace all calls to lto_output_tree,
15063 lto_output_tree_ref and lto_output_tree_or_ref with it.
15064 * lto-streamer-in.c (lto_read_tree): Inline code from
15065 lto_streamer_read_tree.
15066 (lto_input_tree): Move from tree-streamer-in.c.
15067 * lto-streamer-out.c (lto_output_tree_ref): Make static.
15068 Remove handling of NULL values for EXPR.
15069 Do not handle EXPRs that are not indexable.
15070 (lto_write_tree): Move from tree-streamer-out.c.
15071 Inline lto_streamer_write_tree.
15072 (lto_output_tree): Move from tree-streamer-out.c.
15073 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
15074 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
15075 (lto_preload_common_nodes): Likewise.
15076 Remove assertions and adjustments for nodes
15077 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
15078 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
15079 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
15080 * lto-streamer.h (lto_input_tree): Declare.
15081 (lto_output_tree_ref): Remove.
15082 * streamer-hooks.h (struct streamer_hooks): Remove fields
15083 preload_common_nodes, indexable_with_decls_p,
15084 pack_value_fields, unpack_value_fields and output_tree_header.
15085 Update all users.
15086 * tree-streamer-in.c (lto_materialize_tree): Make extern.
15087 (lto_input_tree_pointers): Likewise.
15088 (lto_read_tree): Move to lto-streamer-in.c.
15089 (lto_input_integer_cst): Make extern.
15090 (lto_get_pickled_tree): Likewise.
15091 (lto_get_builtin_tree): Likewise.
15092 (lto_input_tree): Move to lto-streamer-in.c.
15093 * tree-streamer-out.c (pack_value_fields): Make extern.
15094 (lto_output_tree_or_ref): Remove. Replace all callers with
15095 calls to stream_write_tree.
15096 (lto_output_builtin_tree): Make extern.
15097 (lto_streamer_write_tree): Inline into lto_write_tree.
15098 (lto_output_tree_pointers): Make extern.
15099 (lto_output_tree_header): Likewise.
15100 (lto_output_integer_cst): Likewise.
15101 (lto_write_tree): Move to lto-streamer-out.c.
15102 (lto_output_tree): Likewise.
15103 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
15104 (preload_common_nodes): Likewise.
15105 (lto_streamer_cache_create): Call it.
15106 * tree-streamer.h: Include streamer-hooks.h.
15107 (stream_write_tree): New.
15108 (stream_read_tree): New.
15109 (lto_input_tree): Remove.
15110 (lto_materialize_tree): Declare.
15111 (lto_input_tree_pointers): Declare.
15112 (lto_get_pickled_tree): Declare.
15113 (lto_get_builtin_tree): Declare.
15114 (lto_input_integer_cst): Declare.
15115 (lto_output_tree_header): Declare.
15116 (pack_value_fields): Declare.
15117 (lto_output_tree_pointers): Declare.
15118 (lto_output_integer_cst): Declare.
15119 (lto_output_builtin_tree): Declare.
15120
15121 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15122
15123 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
15124 only if producer writes to the register given by regno.
15125
15126 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15127 Alexander Monakov <amonakov@ispras.ru>
15128
15129 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
15130 (sched_get_condition_with_rev_uncached): ... this. Factor out
15131 condition caching logic into ...
15132 (sched_get_condition_with_rev): ... this. Reimplement. Do not
15133 attempt to use cache for instructions with zero luid.
15134 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
15135 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
15136
15137 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15138
15139 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
15140 get_seqno_for_a_jump. Update the caller.
15141 (get_seqno_by_succs): New. Use it ...
15142 (get_seqno_for_a_jump): ... here to find a seqno if looking at
15143 predecessors was not sufficient.
15144 (get_seqno_by_preds): Include head in iteration range, exclude insn.
15145
15146 2011-08-11 Dmitry Melnik <dm@ispras.ru>
15147
15148 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
15149
15150 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15151
15152 * sel-sched-ir.h (register_unavailable_p): Declare.
15153 * sel-sched-ir.c (register_unavailable_p): New. Use it...
15154 (set_unavailable_target_for_expr): ... here to properly test
15155 availability of a register.
15156 (speculate_expr): Ditto.
15157 * sel-sched.c (substitute_reg_in_expr): Ditto.
15158 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
15159
15160 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15161
15162 * sel-sched.c (verify_target_availability): Fix usage of
15163 hard_regno_nregs.
15164
15165 2011-08-11 Dmitry Melnik <dm@ispras.ru>
15166
15167 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
15168 recognized by cannot_copy_insn_p hook and volatile instructions.
15169
15170 2011-08-11 Dmitry Melnik <dm@ispras.ru>
15171
15172 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
15173
15174 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
15175
15176 * doc/md.texi (define_bypass): Say that the instruction names can
15177 be filename-style globs.
15178 * Makefile.in (FNMATCH_H): Define.
15179 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
15180 * genattrtab.c: Include fnmatch.h.
15181 (bypass_list): Change field name from "insn" to "pattern".
15182 (gen_bypass_1): Update accordingly.
15183 (process_bypasses): Use fnmatch to check for matches between
15184 insn reservations and define_bypasses.
15185 * genautomata.c: Include fnmatch.h.
15186 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
15187 and out_pattern respectively.
15188 (gen_bypass, insert_bypass): Update accordingly.
15189 (for_each_matching_insn, process_bypass_2, process_bypass_1)
15190 (process_bypass): New functions.
15191 (process_decls): Use process_bypass. Update after field name changes.
15192
15193 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
15194
15195 PR target/49687
15196 * config/avr/avr.md (smulqi3_highpart): New insn.
15197 (umulqi3_highpart): New insn.
15198 (*subqi3.ashiftrt7): New insn.
15199 (smulhi3_highpart): New expander.
15200 (umulhi3_highpart): Nex expander.
15201 (*smulhi3_highpart_call): New insn.
15202 (*umulhi3_highpart_call): New insn.
15203 (extend_u): New code attribute.
15204 (extend_prefix): Rename code attribute to extend_su.
15205 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
15206 widening QI/HI multiply.
15207
15208 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
15209
15210 PR tree-optimization/50039
15211 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
15212 that DEF_STMT has a stmt_vec_info.
15213
15214 2011-08-10 Richard Guenther <rguenther@suse.de>
15215
15216 * tree.h (can_trust_pointer_alignment): Remove.
15217 * builtins.c (can_trust_pointer_alignment): Remove.
15218
15219 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
15220
15221 * c-typeck.c (scalar_to_vector): New function. Try scalar to
15222 vector conversion.
15223 (stv_conv): New enum for scalar_to_vector return type.
15224 (build_binary_op): Adjust.
15225 * doc/extend.texi: Description of scalar to vector expansion.
15226
15227 2011-08-10 Richard Guenther <rguenther@suse.de>
15228
15229 * tree.h (get_pointer_alignment): Remove max-align argument.
15230 (get_object_alignment): Likewise.
15231 * builtins.c (get_object_alignment_1): Adjust.
15232 (get_object_alignment): Remove max-align argument.
15233 (get_pointer_alignment): Likewise.
15234 (expand_builtin_strlen): Adjust.
15235 (expand_builtin_memcpy): Likewise.
15236 (expand_builtin_mempcpy_args): Likewise.
15237 (expand_builtin_strncpy): Likewise.
15238 (expand_builtin_memset_args): Likewise.
15239 (expand_builtin_memcmp): Likewise.
15240 (expand_builtin_strcmp): Likewise.
15241 (expand_builtin_strncmp): Likewise.
15242 (get_builtin_sync_mem): Likewise.
15243 (fold_builtin_memset): Likewise.
15244 (fold_builtin_memory_op): Likewise.
15245 (expand_builtin_memory_chk): Likewise.
15246 * emit-rtl.c (get_mem_align_offset): Likewise.
15247 (set_mem_attributes_minus_bitpos): Likewise.
15248 * expr.c (expand_assignment): Likewise.
15249 (expand_expr_real_1): Likewise.
15250 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
15251 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
15252 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
15253 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15254 * value-prof.c (gimple_stringops_transform): Likewise.
15255
15256 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
15257
15258 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
15259 * doc/tm.texi: Regenerate.
15260
15261 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
15262
15263 PR target/29560
15264 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
15265 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
15266 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
15267 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
15268 shift target is unused.
15269
15270 2011-08-10 Richard Guenther <rguenther@suse.de>
15271
15272 PR tree-optimization/49937
15273 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
15274 using get_object_alignment_1.
15275
15276 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
15277
15278 * config/i386/i386.c (ix86_emit_i387_round): New function.
15279 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
15280 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
15281 Use ix86_emit_i387_round to expand round function for i387 math.
15282 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
15283 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
15284
15285 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15286
15287 * config/sync.c: Move to ../libgcc.
15288 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
15289 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
15290 Remove.
15291
15292 2011-08-09 Anatoly Sokolov <aesok@post.ru>
15293
15294 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
15295 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
15296 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
15297 Change 'from' and 'to' arguments type to reg_class_t.
15298 (TARGET_REGISTER_MOVE_COST): Define.
15299
15300 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
15301
15302 PR target/50026
15303 Revert:
15304 PR rtl-optimization/49990
15305 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
15306 ignore classes which can not change mode.
15307 (find_costs_and_classes): Ditto.
15308
15309 2011-08-09 Richard Guenther <rguenther@suse.de>
15310
15311 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
15312 information for ranges with only negative values.
15313 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
15314 BIT_AND_EXPR handling to handle ranges with negative values.
15315
15316 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
15317
15318 * config/i386/i386.c: Remove traling spaces.
15319 * config/i386/sse.md: Likewise.
15320 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
15321 (*fma_fmsub_<mode>): Likewise.
15322 (*fma_fnmadd_<mode>): Likewise.
15323 (*fma_fnmsub_<mode>): Likewise.
15324
15325 2011-08-09 Nick Clifton <nickc@redhat.com>
15326
15327 * config/rx/rx.md: Disable extender peepholes at -O3.
15328
15329 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
15330
15331 PR target/49781
15332 * config/i386/i386.md (reload_noff_load): New.
15333 (reload_noff_store): Ditto.
15334 * config/i386/i386.c (ix86_secondary_reload): Use
15335 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
15336 double-word moves from/to non-offsetable addresses instead of
15337 generating XMM temporary.
15338
15339 2011-08-09 Anatoly Sokolov <aesok@post.ru>
15340
15341 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
15342
15343 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
15344
15345 PR tree-optimization/50014
15346 * tree-vect-loop.c (vectorizable_reduction): Get def type before
15347 calling vect_get_vec_def_for_stmt_copy ().
15348
15349 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
15350
15351 PR rtl-optimization/49990
15352 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
15353 ignore classes which can not change mode.
15354 (find_costs_and_classes): Ditto.
15355
15356 2011-08-08 Richard Henderson <rth@redhat.com>
15357
15358 PR middle-end/49990
15359 * config/i386/i386.c (ix86_expand_prologue): Call
15360 for SEH target gen_prologue_use instead of gen_blockage
15361 at prologue's end.
15362
15363 2011-08-08 Martin Jambor <mjambor@suse.cz>
15364
15365 PR middle-end/49923
15366 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
15367 memory alignment.
15368
15369 2011-08-08 Diego Novillo <dnovillo@google.com>
15370
15371 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
15372 (DATA_STREAMER_H): New.
15373 (GIMPLE_STREAMER_H): New.
15374 (TREE_STREAMER_H): New.
15375 (STREAMER_HOOKS_H): New.
15376 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
15377 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
15378 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
15379 (data-streamer.o): New.
15380 (data-streamer-in.o): New.
15381 (data-streamer-out.o): New.
15382 (gimple-streamer-in.o): New.
15383 (gimple-streamer-out.o): New.
15384 (streamer-hooks.o): New.
15385 (tree-streamer.o): New.
15386 (tree-streamer-in.o): New.
15387 (tree-streamer-out.o): New.
15388 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
15389 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
15390 GIMPLE_STREAMER_H and TREE_STREAMER_H.
15391 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
15392 GIMPLE_STREAMER_H and TREE_STREAMER_H.
15393 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
15394 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
15395 (ipa-inline-analysis.o): Likewise.
15396 (ipa-pure-const.o): Likewise.
15397 * data-streamer-in.c: New.
15398 * data-streamer-out.c: New.
15399 * data-streamer.c: New.
15400 * data-streamer.h: New.
15401 * gimple-streamer-in.c: New.
15402 * gimple-streamer-out.c: New.
15403 * gimple-streamer.h: New.
15404 * ipa-inline-analysis.c: Include data-streamer.h.
15405 * ipa-prop.c: Include data-streamer.h.
15406 * ipa-pure-const.c: Include data-streamer.h.
15407 * lto-cgraph.c: Include data-streamer.h.
15408 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
15409 (lto_input_widest_uint_uleb128): Likewise.
15410 (lto_input_sleb128): Likewise.
15411 (bp_unpack_var_len_unsigned): Likewise.
15412 (bp_unpack_var_len_int): Likewise.
15413 * lto-section-out.c (lto_output_uleb128_stream): Move to
15414 data-streamer-out.c.
15415 (lto_output_widest_uint_uleb128_stream): Likewise.
15416 (lto_output_sleb128_stream): Likewise.
15417 (bp_pack_var_len_unsigned): Likewise.
15418 (bp_pack_var_len_int): Likewise.
15419 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
15420 (struct string_slot): Remove. Update all users.
15421 (lto_tag_check_set): Make extern.
15422 (lto_tag_check_range): Move to lto-streamer.h.
15423 (lto_tag_check): Likewise.
15424 (hash_string_slot_node): Remove. Update all users.
15425 (eq_string_slot_node): Remove. Update all users.
15426 (string_for_index): Move to data-streamer-in.c
15427 (input_string_internal): Likewise.
15428 (input_string_cst): Move to tree-streamer-in.c.
15429 (input_identifier): Likewise.
15430 (lto_input_string): Move to data-streamer-in.c
15431 (input_record_start): Move to data-streamer.h
15432 (canon_file_name): Use new definition of struct string_slot
15433 from data-streamer.h. Set S_SLOT.LEN.
15434 (lto_input_location): Make extern.
15435 (lto_input_chain): Move to tree-streamer-in.c.
15436 (lto_init_eh): Make extern.
15437 (input_phi): Move to gimple-streamer-in.c.
15438 (input_gimple_stmt): Likewise.
15439 (input_bb): Likewise.
15440 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
15441 (unpack_ts_real_cst_value_fields): Likewise.
15442 (unpack_ts_fixed_cst_value_fields): Likewise.
15443 (unpack_ts_decl_common_value_fields): Likewise.
15444 (unpack_ts_decl_wrtl_value_fields): Likewise.
15445 (unpack_ts_decl_with_vis_value_fields): Likewise.
15446 (unpack_ts_function_decl_value_fields): Likewise.
15447 (unpack_ts_type_common_value_fields): Likewise.
15448 (unpack_ts_block_value_fields): Likewise.
15449 (unpack_ts_translation_unit_decl_value_fields): Likewise.
15450 (unpack_value_fields): Likewise.
15451 (lto_materialize_tree): Likewise.
15452 (lto_input_ts_common_tree_pointers): Likewise.
15453 (lto_input_ts_vector_tree_pointers): Likewise.
15454 (lto_input_ts_complex_tree_pointers): Likewise.
15455 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
15456 (lto_input_ts_decl_common_tree_pointers): Likewise.
15457 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
15458 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
15459 (lto_input_ts_field_decl_tree_pointers): Likewise.
15460 (lto_input_ts_function_decl_tree_pointers): Likewise.
15461 (lto_input_ts_type_common_tree_pointers): Likewise.
15462 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15463 (lto_input_ts_list_tree_pointers): Likewise.
15464 (lto_input_ts_vec_tree_pointers): Likewise.
15465 (lto_input_ts_exp_tree_pointers): Likewise.
15466 (lto_input_ts_block_tree_pointers): Likewise.
15467 (lto_input_ts_binfo_tree_pointers): Likewise.
15468 (lto_input_ts_constructor_tree_pointers): Likewise.
15469 (lto_input_ts_target_option): Likewise.
15470 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
15471 (lto_input_tree_pointers): Likewise.
15472 (lto_get_pickled_tree): Likewise.
15473 (lto_get_builtin_tree): Likewise.
15474 (lto_read_tree): Likewise.
15475 (lto_input_integer_cst): Likewise.
15476 (lto_input_tree): Likewise.
15477 * lto-streamer-out.c: Include data-streamer.h,
15478 gimple-streamer.h and streamer-hooks.h.
15479 (struct string_slot): Move to data-streamer.h.
15480 (hash_string_slot_node): Likewise.
15481 (eq_string_slot_node): Likewise.
15482 (lto_string_index): Move to data-streamer-out.c.
15483 (lto_output_string_with_length): Likewise.
15484 (lto_output_string): Likewise.
15485 (output_string_cst): Move to tree-streamer-out.c.
15486 (output_identifier): Likewise.
15487 (output_zero): Move to data-streamer-out.c
15488 (output_uleb128): Likewise.
15489 (output_sleb128): Likewise.
15490 (output_record_start): Move to data-streamer.h
15491 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
15492 (pack_ts_real_cst_value_fields): Likewise.
15493 (pack_ts_fixed_cst_value_fields): Likewise.
15494 (pack_ts_decl_common_value_fields): Likewise.
15495 (pack_ts_decl_wrtl_value_fields): Likewise.
15496 (pack_ts_decl_with_vis_value_fields): Likewise.
15497 (pack_ts_function_decl_value_fields): Likewise.
15498 (pack_ts_type_common_value_fields): Likewise.
15499 (pack_ts_block_value_fields): Likewise.
15500 (pack_ts_translation_unit_decl_value_fields): Likewise.
15501 (pack_value_fields): Likewise.
15502 (lto_output_chain): Likewise.
15503 (lto_output_ts_common_tree_pointers): Likewise.
15504 (lto_output_ts_vector_tree_pointers): Likewise.
15505 (lto_output_ts_complex_tree_pointers): Likewise.
15506 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
15507 (lto_output_ts_decl_common_tree_pointers): Likewise.
15508 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
15509 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
15510 (lto_output_ts_field_decl_tree_pointers): Likewise.
15511 (lto_output_ts_function_decl_tree_pointers): Likewise.
15512 (lto_output_ts_type_common_tree_pointers): Likewise.
15513 (lto_output_ts_type_non_common_tree_pointers): Likewise.
15514 (lto_output_ts_list_tree_pointers): Likewise.
15515 (lto_output_ts_vec_tree_pointers): Likewise.
15516 (lto_output_ts_exp_tree_pointers): Likewise.
15517 (lto_output_ts_block_tree_pointers): Likewise.
15518 (lto_output_ts_binfo_tree_pointers): Likewise.
15519 (lto_output_ts_constructor_tree_pointers): Likewise.
15520 (lto_output_ts_target_option): Likewise.
15521 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
15522 (lto_output_tree_pointers): Likewise.
15523 (lto_output_tree_header): Likewise.
15524 (lto_output_builtin_tree): Likewise.
15525 (lto_write_tree): Likewise.
15526 (lto_output_integer_cst): Likewise.
15527 (lto_output_tree): Likewise.
15528 (output_phi): Move to gimple-streamer-out.c.
15529 (output_gimple_stmt): Likewise.
15530 (output_bb): Likewise.
15531 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
15532 (streamer_hooks): Move to streamer-hooks.c.
15533 (check_handled_ts_structures): Move to tree-streamer.c
15534 (lto_streamer_cache_add_to_node_array): Likewise.
15535 (lto_streamer_cache_insert_1): Likewise.
15536 (lto_streamer_cache_insert): Likewise.
15537 (lto_streamer_cache_insert_at): Likewise.
15538 (lto_streamer_cache_append): Likewise.
15539 (lto_streamer_cache_lookup): Likewise.
15540 (lto_streamer_cache_get): Likewise.
15541 (lto_record_common_node): Likewise.
15542 (lto_preload_common_nodes): Likewise.
15543 (lto_streamer_cache_create): Likewise.
15544 (lto_streamer_cache_delete): Likewise.
15545 (streamer_hooks_init): Move to streamer-hooks.c.
15546 * lto-streamer.h: Include diagnostic.h
15547 (struct output_block, struct lto_input_block,
15548 struct data_in, struct bitpack_d): Remove forward declarations.
15549 (struct bitpack_d): Move to data-streamer.h.
15550 (struct lto_streamer_cache_d): Move to tree-streamer.h.
15551 (struct streamer_hooks): Move to streamer-hooks.h.
15552 (bp_pack_var_len_unsigned): Move to data-streamer.h.
15553 (bp_pack_var_len_int): Likewise.
15554 (bp_unpack_var_len_unsigned): Likewise.
15555 (bp_unpack_var_len_int): Likewise.
15556 (lto_input_location): Declare.
15557 (lto_tag_check_set): Declare.
15558 (lto_init_eh): Declare.
15559 (lto_output_tree_ref): Declare.
15560 (lto_output_location): Declare.
15561 (bitpack_create): Move to data-streamer.h.
15562 (bp_pack_value): Likewise.
15563 (lto_output_bitpack): Likewise.
15564 (lto_input_bitpack): Likewise.
15565 (bp_unpack_value): Likewise.
15566 (lto_output_1_stream): Likewise.
15567 (lto_input_1_unsigned): Likewise.
15568 (lto_output_int_in_range): Likewise.
15569 (lto_input_int_in_range): Likewise.
15570 (bp_pack_int_in_range): Likewise.
15571 (bp_unpack_int_in_range): Likewise.
15572 (lto_output_enum): Likewise.
15573 (lto_input_enum): Likewise.
15574 (bp_pack_enum): Likewise.
15575 (bp_unpack_enum): Likewise.
15576 * streamer-hooks.c: New.
15577 * streamer-hooks.h: New.
15578 * tree-streamer-in.c: New.
15579 * tree-streamer-out.c: New.
15580 * tree-streamer.c: New.
15581 * tree-streamer.h: New.
15582
15583 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15584
15585 * gthr-posix95.h: Remove.
15586 * gthr.h [_PTHREADS95]: Remove.
15587 * configure.ac (enable_threads): Remove posix95.
15588 * configure: Regenerate.
15589 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
15590
15591 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
15592
15593 PR target/49781
15594 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
15595 SImode addresses.
15596 (ix86_print_operand_address): Handle zero-extended addresses.
15597 (memory_address_length): Add length of addr32 prefix for
15598 zero-extended addresses.
15599 (ix86_secondary_reload): Handle moves to/from double-word general
15600 registers from/to zero-extended addresses.
15601 * config/i386/predicates.md (lea_address_operand): Reject
15602 zero-extended operands.
15603
15604 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
15605
15606 PR other/48007
15607 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
15608
15609 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
15610 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
15611
15612 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
15613 (_Unwind_Context_Reg_Val): Likewise.
15614 (_Unwind_Get_Unwind_Word): Likewise.
15615 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
15616 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
15617 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
15618 for EXTENDED_CONTEXT_BIT.
15619 (__frame_state_for): Likewise.
15620 (uw_init_context_1): Likewise.
15621 (_Unwind_GetGR): Updated.
15622 (_Unwind_SetGR): Likewise.
15623 (_Unwind_GetGRPtr): Likewise.
15624 (_Unwind_SetGRPtr): Likewise.
15625 (_Unwind_SetGRValue): Likewise.
15626 (_Unwind_GRByValue): Likewise.
15627 (uw_install_context_1): Likewise.
15628
15629 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
15630 ASSUME_EXTENDED_UNWIND_CONTEXT.
15631 * doc/tm.texi: Regenerated.
15632
15633 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15634
15635 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
15636
15637 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15638
15639 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
15640 Linux/GNU-specific.
15641 (DEC Alpha Options, -mtune): Likewise.
15642 (MIPS Options, -march): native is supported on IRIX.
15643
15644 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15645
15646 * config/sparc/driver-sparc.c: New file.
15647 * config/sparc/x-sparc: New file.
15648 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
15649 * config/sparc/sparc.opt (native): New value for enum processor_type.
15650 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
15651 * config/sparc/sparc.c (sparc_option_override): Abort if
15652 PROCESSOR_NATIVE gets here.
15653 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
15654 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
15655 DRIVER_SELF_SPECS): Define.
15656 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
15657 (SPARC Options, -mtune): Likewise.
15658 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
15659 Substitute result.
15660 * configure: Regenerate.
15661 * Makefile.in (EXTRA_GCC_LIBS): Set.
15662 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
15663 (cpp$(exeext)): Likewise.
15664
15665 2011-08-08 Richard Guenther <rguenther@suse.de>
15666
15667 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
15668 split out from ...
15669 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
15670 by composition.
15671
15672 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
15673
15674 PR tree-optimization/50005
15675 * ipa-inline-analysis (remap_predicate): Add cast to
15676 silence signed/unsigned comparison warning.
15677
15678 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
15679
15680 * modulo-sched.c (get_sched_window): Use a table for the debug output.
15681 Print the current ii.
15682 (sms_schedule_by_order): Reduce whitespace in dump line.
15683
15684 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
15685
15686 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
15687 and one loop for successors. Fix upper bound of memory range.
15688
15689 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15690
15691 PR target/50001
15692 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
15693 (TARGET_INSTANTIATE_DECLS): New define.
15694
15695 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
15696 Mikael Morin <mikael.morin@sfr.fr>
15697
15698 * Makefile.in (INCLUDES_FOR_TARGET): New.
15699 (LIBGCC2_CFLAGS): Use it.
15700 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
15701
15702 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15703
15704 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
15705 frame->save_regs_using_mov calculation.
15706
15707 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15708
15709 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
15710 * config/i386/sse.md (castmode): New mode attribute.
15711 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
15712 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
15713
15714 2011-08-05 Jan Hubicka <jh@suse.cz>
15715
15716 PR middle-end/49494
15717 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
15718
15719 2011-08-05 Jan Hubicka <jh@suse.cz>
15720
15721 PR middle-end/49500
15722 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
15723 handle aliases.
15724 (create_emultls_var):New function.
15725 (ipa_lower_emutls): Handle aliases correctly.
15726
15727 2011-08-05 Jan Hubicka <jh@suse.cz>
15728
15729 PR middle-end/49735
15730 * ipa-inline.c (recursive_inlining): Look through aliases.
15731
15732 2011-08-05 Jason Merrill <jason@redhat.com>
15733
15734 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
15735 declarations to beginning of function.
15736
15737 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
15738
15739 PR rtl-optimization/49900
15740 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
15741 ensure basic blocks stay in the same order.
15742
15743 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
15744
15745 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
15746 store_bit_field.
15747 (s390_expand_atomic): Same.
15748
15749 2011-08-05 Richard Henderson <rth@redhat.com>
15750
15751 PR rtl-opt/49977
15752 * dwarf2cfi.c (scan_insn_after): Split out of ...
15753 (scan_trace): ... here. Correctly place notes wrt sequences.
15754
15755 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
15756 Richard Henderson <rth@redhat.com>
15757
15758 PR rtl-opt/49982
15759 * expr.c (fixup_args_size_notes): Look through no-op moves.
15760
15761 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15762
15763 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
15764 of "m" for operand 0. Add type and mode attribute.
15765 (*pushxf_nointeger"): Use "<" constraint for operand 0.
15766 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
15767 constraint instead of "o" for opreand 1.
15768 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
15769 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
15770 operand 0, alternative 4.
15771 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
15772
15773 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15774
15775 * config/i386/predicates.md (lea_address_operand): Rename from
15776 no_seg_address_operand.
15777 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
15778 (*lea_1_zext): Ditto.
15779 (*lea_2): Ditto.
15780 (*lea_2_zext): Ditto.
15781
15782 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15783
15784 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
15785 parts.base and parts.index.
15786 * config/i386/predicates.md (aligned_operand): Ditto.
15787 (cmpxchg8b_pic_memory_operand): Ditto.
15788
15789 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15790
15791 * config/soft-fp: Move to ../libgcc.
15792 * Makefile.in (SFP_MACHINE): Remove.
15793 (libgcc-support): Remove $(SFP_MACHINE) dependency.
15794 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
15795 * config/arm/t-arm-softfp: Move to
15796 ../libgcc/config/arm/t-softfp.
15797 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
15798 * config/c6x/t-c6x-softfp: Remove.
15799 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
15800 * config/i386/t-fprules-softfp: Move to
15801 ../libgcc/config/t-softfp-tf.
15802 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
15803 * config/ia64/t-fprules-softfp: Remove.
15804 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
15805 * config/lm32/t-fprules-softfp: Remove.
15806 * config/moxie/sfp-machine.h: Remove.
15807 * config/moxie/t-moxie-softfp: Remove.
15808 * config/rs6000/darwin-ldouble-format: Move to
15809 ../libgcc/config/rs6000/ibm-ldouble-format.
15810 * config/rs6000/darwin-ldouble.c: Move to
15811 ../libgcc/config/rs6000/ibm-ldouble.c
15812 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
15813 * config/rs6000/libgcc-ppc64.ver: Likewise.
15814 * config/rs6000/sfp-machine.h: Likewise.
15815 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
15816 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
15817 (LIB2FUNCS_EXTRA): Remove.
15818 (TARGET_LIBGCC2_CFLAGS): Remove.
15819 * config/rs6000/t-aix52: Likewise
15820 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
15821 $(srcdir)/config/rs6000/darwin-ldouble.c.
15822 (SHLIB_MAPFILES): Remove.
15823 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
15824 $(srcdir)/config/rs6000/darwin-ldouble.c.
15825 * config/rs6000/t-fprules-softfp: Move to
15826 ../libgcc/config/t-softfp-sfdf.
15827 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
15828 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
15829 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
15830 $(srcdir)/config/rs6000/darwin-ldouble.c.
15831 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
15832 * config/score/t-score-softfp: Remove.
15833 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
15834 soft-fp/t-softfp from tmake_file.
15835 (arm*-*-uclinux*): Likewise.
15836 (arm*-*-ecos-elf): Likewise.
15837 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
15838 (arm*-*-rtems*): Likewise.
15839 (arm*-*-elf): Likewise.
15840 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
15841 tmake_file.
15842 (moxie-*-uclinux*): Likewise.
15843 (moxie-*-rtems*): Likewise.
15844 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
15845 tmake_file.
15846 (lm32-*-rtems*): Likewise.
15847 (lm32-*-uclinux*): Likewise.
15848 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
15849 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
15850 (powerpc-*-linux*, powerpc64-*-linux*): Remove
15851 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
15852 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
15853 tmake_file.
15854 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
15855 tmake_file.
15856 (tic6x-*-uclinux): Likewise.
15857 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
15858 soft-fp/t-softfp from tmake_file.
15859 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
15860 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
15861 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
15862 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
15863 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
15864
15865 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15866
15867 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
15868 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
15869 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
15870 TPBIT, TPBIT_FUNCS.
15871 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
15872 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
15873 Remove.
15874 * config/arm/t-vxworks: Likewise.
15875 * config/arm/t-wince-pe: Likewise.
15876 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
15877 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15878 * config/bfin/t-bfin-elf: Likewise.
15879 * config/bfin/t-bfin-linux: Likewise.
15880 * config/bfin/t-bfin-uclinux: Likewise.
15881 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
15882 Remove.
15883 * config/fr30/t-fr30: Likewise.
15884 * config/frv/t-frv: Likewise.
15885 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
15886 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15887 * config/m32c/t-m32c: Likewise.
15888 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
15889 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15890 * config/mcore/t-mcore: Likewise.
15891 * config/mep/t-mep: Likewise.
15892 * config/microblaze/t-microblaze: Likewise.
15893 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
15894 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15895 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
15896 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15897 * config/mn10300/t-linux: Remove.
15898 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15899 * config/pdp11/t-pdp11: Likewise.
15900 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
15901 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
15902 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15903 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
15904 * config/rs6000/t-aix52: Likewise.
15905 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
15906 $(srcdir)/config/rs6000/ppc64-fp.c.
15907 * config/rs6000/t-fprules-fpbit: Remove.
15908 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
15909 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15910 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
15911 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15912 * config/sparc/t-elf: Likewise.
15913 * config/sparc/t-leon: Likewise.
15914 * config/sparc/t-leon3: Likewise.
15915 * config/spu/t-spu-elf: Likewise.
15916 (DPBIT_FUNCS): Remove.
15917 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15918 * config/v850/t-v850: Likewise.
15919 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
15920 (avr-*-*): Likewise.
15921 (h8300-*-rtems*): Set libgcc_tm_file.
15922 (h8300-*-elf*): Likewise.
15923 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
15924 tmake_file.
15925 (powerpc-*-eabisim*): Likewise.
15926 (powerpc-*-elf*): Likewise.
15927 (powerpc-*-eabialtivec*): Likewise.
15928 (powerpc-xilinx-eabi*): Likewise.
15929 (powerpc-*-eabi*): Likewise.
15930 (powerpc-*-rtems*): Likewise.
15931 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
15932 (powerpcle-*-elf*): Likewise.
15933 (powerpcle-*-eabisim*): Likewise.
15934 (powerpcle-*-eabi*): Likewise.
15935 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
15936 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
15937 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
15938 Remove.
15939
15940 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15941
15942 * Makefile.in (UNWIND_H): Remove.
15943 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
15944 ../libgcc/Makefile.in.
15945 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
15946 (LIBUNWINDDEP): Remove.
15947 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
15948 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
15949 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
15950 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
15951 Don't copy $(UNWIND_H).
15952 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
15953 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
15954 * aclocal.m4: Regenerate.
15955 * configure: Regenerate.
15956 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
15957 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
15958 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
15959 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
15960 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
15961 * config/arm/libunwind.S, config/arm/pr-support.c,
15962 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
15963 ../libgcc/config/arm.
15964 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
15965 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
15966 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
15967 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
15968 ($(T)frvend$(objext)): Likewise.
15969 * config/ia64/t-glibc (LIB2ADDEH): Remove.
15970 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
15971 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
15972 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
15973 ../libgcc/config/ia64.
15974 * config/ia64/t-hpux (LIB2ADDEH): Remove.
15975 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
15976 * config/ia64/t-vms (LIB2ADDEH): Remove.
15977 * config/ia64/vms.h (UNW_IVMS_MODE,
15978 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
15979 * config/picochip/t-picochip (LIB2ADDEH): Remove.
15980 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
15981 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
15982 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
15983 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
15984 $(srcdir)/../libgcc to refer to unwinder sources.
15985 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
15986 * config/t-darwin (LIB2ADDEH): Remove.
15987 * config/t-freebsd (LIB2ADDEH): Remove.
15988 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
15989 * config/t-libunwind-elf: Move to ../libgcc/config.
15990 * config/t-linux (LIB2ADDEH): Remove.
15991 * config/t-sol2 (LIB2ADDEH): Remove.
15992 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
15993 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
15994
15995 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
15996
15997 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
15998
15999 * doc/invoke.texi: Document core-avx-i.
16000
16001 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16002
16003 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
16004
16005 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
16006
16007 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
16008 result of multiple results reduction when extracting the final
16009 value using scalar code.
16010
16011 2011-08-05 Richard Guenther <rguenther@suse.de>
16012
16013 PR tree-optimization/49984
16014 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
16015
16016 2011-08-05 Richard Guenther <rguenther@suse.de>
16017
16018 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
16019 return true for constant integer ranges.
16020 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
16021 BIT_IOR_EXPR handling.
16022
16023 2011-08-04 Kai Tietz <ktietz@redhat.com>
16024
16025 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
16026 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
16027
16028 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
16029
16030 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
16031 pattern def statement, and its access macro.
16032 (NUM_PATTERNS): Set to 5.
16033 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
16034 pattern def statement.
16035 (vect_transform_loop): Likewise.
16036 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
16037 function vect_recog_over_widening_pattern ().
16038 (vect_operation_fits_smaller_type): New function.
16039 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
16040 Likewise.
16041 (vect_pattern_recog_1): Move the code that marks pattern
16042 statements to vect_mark_pattern_stmts (), and call it. Update
16043 documentation.
16044 * tree-vect-stmts.c (vect_supportable_shift): New function.
16045 (vect_analyze_stmt): Handle pattern def statement.
16046 (new_stmt_vec_info): Initialize pattern def statement.
16047
16048 2011-08-04 Richard Henderson <rth@redhat.com>
16049
16050 PR target/49964
16051 * config/i386/i386.c (ix86_expand_call): Don't create nested
16052 PARALLELs for TARGET_VZEROUPPER.
16053 (ix86_split_call_vzeroupper): Fix extraction of the original call.
16054 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
16055 recognize nested PARALLELs.
16056 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
16057 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
16058 *sibcall_value_pop_vzeroupper): Likewise.
16059
16060 2011-08-04 Richard Henderson <rth@redhat.com>
16061
16062 PR middle-end/49968
16063 * calls.c (expand_call): Use fixup_args_size_notes for
16064 emit_stack_restore.
16065 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
16066 in non-standard modes.
16067
16068 2011-08-04 Jakub Jelinek <jakub@redhat.com>
16069
16070 * gcc.c (self_spec): New variable.
16071 (static_specs): Add self_spec.
16072 (main): Call do_self_spec on "self_spec" specs after reading
16073 user specs files. Move compare_debug handling right after that.
16074
16075 2011-08-04 Richard Guenther <rguenther@suse.de>
16076
16077 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
16078 (value_range_nonnegative_p): New function.
16079 (ssa_name_nonnegative_p): Use it.
16080 (value_range_constant_singleton): New function.
16081 (op_with_constant_singleton_value_range): Use it.
16082 (extract_range_from_binary_expr_1): New function, split out from ...
16083 (extract_range_from_binary_expr): ... this. Remove fallback
16084 constant folding done here.
16085
16086 2011-08-04 Richard Guenther <rguenther@suse.de>
16087
16088 PR tree-optimization/49806
16089 * tree-vrp.c (op_with_boolean_value_range_p): New function.
16090 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
16091 a new statement for a final conversion to bool.
16092
16093 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
16094
16095 * gengtype-state.c: Include "bconfig.h" if
16096 GENERATOR_FILE is defined, "config.h" otherwise.
16097 * gengtype.c: Likewise.
16098 * gengtype-lex.l: Likewise.
16099 * gengtype-parse.c: Likewise.
16100 * Makefile.in (gengtype-lex.o-warn): New variable.
16101 (plugin_resourcesdir): Likewise.
16102 (plugin_bindir): Likewise.
16103 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
16104 (MOSTLYCLEANFILES): Add gengtype$(exeext).
16105 (native): Depend on gengtype$(exeext) is $enable_plugin
16106 is set to "yes".
16107 (gtype.state): Depend on s-gtype. Use temporary file.
16108 (gengtype-lex.o): New rule.
16109 (gengtype-parse.o): Likewise.
16110 (gengtype-state.o): Likewise.
16111 (gengtype$(exeext)): Likewise.
16112 (install-gengtype): Likewise.
16113 (gengtype.o): Likewise.
16114 (build/gengtype.o): Depend on version.h.
16115 (build/gengtype-state): Depend on double-int.h, version.h,
16116 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
16117 (install-plugin): Depend on install-gengtype.
16118
16119 2011-08-04 Jakub Jelinek <jakub@redhat.com>
16120
16121 PR middle-end/49905
16122 * tree.h (init_attributes): New prototype.
16123 * attribs.c (init_attributes): No longer static.
16124
16125 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16126
16127 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
16128 maybe_suffix.
16129
16130 2011-08-03 David Li <davidxl@google.com>
16131
16132 * tree-optimize.c (execute_fixup_cfg): Fix up entry
16133 outgoing edge counts after inlining.
16134
16135 2011-08-03 David Li <davidxl@google.com>
16136
16137 * profile.c (compute_branch_probabilities): Compute
16138 function frequency after profile annotation.
16139
16140 2011-08-04 Alan Modra <amodra@gmail.com>
16141
16142 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
16143 use_backchain_to_restore_sp initialisation.
16144 (rs6000_legitimate_offset_address_p): Simplify offset test.
16145
16146 2011-08-03 Richard Henderson <rth@redhat.com>
16147
16148 * config/spu/spu.md: Use define_c_enum instead of define_constants.
16149 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
16150 (UNSPECV_NOP): New.
16151
16152 2011-08-03 Richard Henderson <rth@redhat.com>
16153
16154 PR target/34888
16155 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
16156
16157 2011-08-03 Jakub Jelinek <jakub@redhat.com>
16158
16159 PR tree-optimization/49948
16160 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
16161
16162 2011-08-03 Anatoly Sokolov <aesok@post.ru>
16163
16164 * config/m32c/m32c.c (class_sizes): Remove.
16165 (reduce_class): Change arguments and return type to reg_class_t.
16166 Change type cc var to HARD_REG_SET. Change type best var to
16167 reg_class_t. Change type best_size var to unsigned int. Remove
16168 initialization class_sizes var. Use reg_class_size array instead
16169 of class_sizes. Use reg_class_contents array instead
16170 of class_contents.
16171
16172 2011-08-03 Richard Guenther <rguenther@suse.de>
16173
16174 PR middle-end/49958
16175 * fold-const.c (fold_binary_loc): Only associate
16176 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
16177 overflow wraps.
16178
16179 2011-08-03 Alan Modra <amodra@gmail.com>
16180
16181 PR rtl-optimization/49941
16182 * jump.c (mark_jump_label): Comment.
16183 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
16184 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
16185 (mark_used_flags): Don't mark RETURN.
16186
16187 2011-08-03 Richard Guenther <rguenther@suse.de>
16188
16189 PR tree-optimization/49938
16190 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
16191 deal with a POLYNOMIAL_CHREC.
16192
16193 2011-08-03 Revital Eres <revital.eres@linaro.org>
16194
16195 * modulo-sched.c (calculate_stage_count,
16196 calculate_must_precede_follow, get_sched_window,
16197 try_scheduling_node_in_cycle, remove_node_from_ps): Add
16198 declaration.
16199 (update_node_sched_params, set_must_precede_follow, optimize_sc):
16200 New functions.
16201 (reset_sched_times): Call update_node_sched_params.
16202 (sms_schedule): Call optimize_sc.
16203 (get_sched_window): Change function arguments.
16204 (sms_schedule_by_order): Update call to get_sched_window.
16205 Call set_must_precede_follow.
16206 (calculate_stage_count): Add function argument.
16207
16208 2011-08-02 Richard Henderson <rth@redhat.com>
16209
16210 PR target/49864
16211 PR target/49879
16212 * reg-notes.def (REG_ARGS_SIZE): New.
16213 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
16214 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
16215 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
16216 different stack levels.
16217 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
16218 (maybe_move_args_size_note): New.
16219 (combine_stack_adjustments_for_block): Use it.
16220 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
16221 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
16222 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
16223 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
16224 (cur_cfa): New.
16225 (queued_args_size): Remove.
16226 (add_cfi_args_size): Assert size is non-negative.
16227 (stack_adjust_offset, dwarf2out_args_size): Remove.
16228 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
16229 (notice_args_size, notice_eh_throw): New.
16230 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
16231 (dwarf2out_frame_debug_adjust_cfa): Likewise.
16232 (dwarf2out_frame_debug_cfa_offset): Likewise.
16233 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
16234 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
16235 (change_cfi_row): Don't emit args_size.
16236 (maybe_record_trace_start_abnormal): Split out from ...
16237 (maybe_record_trace_start): Here. Set args_size_undefined.
16238 (create_trace_edges): Update to match.
16239 (scan_trace): Handle REG_ARGS_SIZE.
16240 (connect_traces): Connect args_size between EH insns.
16241 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
16242 * explow.c (suppress_reg_args_size): New.
16243 (adjust_stack_1): Split out from ...
16244 (adjust_stack): ... here.
16245 (anti_adjust_stack): Use it.
16246 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
16247 * expr.c (mem_autoinc_base): New.
16248 (fixup_args_size_notes): New.
16249 (emit_single_push_insn_1): Rename from emit_single_push_insn.
16250 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
16251 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
16252 * reload1.c (reload_as_needed): Likewise.
16253 * rtl.h (fixup_args_size_notes): Declare.
16254
16255 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
16256
16257 PR bootstrap/49914
16258 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
16259 of abs.
16260 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
16261 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
16262
16263 2011-08-02 Richard Henderson <rth@redhat.com>
16264
16265 * config/h8300/h8300.c (push, pop): Return the insn.
16266 (h8300_swap_into_er6): Generate correct unwind info.
16267 (h8300_swap_out_of_er6): Likewise.
16268 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
16269 complex cfa expression.
16270 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
16271
16272 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16273
16274 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16275
16276 2011-08-02 Richard Henderson <rth@redhat.com>
16277
16278 PR target/49878
16279 * config/h8300/h8300.c (h8300_move_ok): New.
16280 * config/h8300/h8300-protos.h: Declare it.
16281 * config/h8300/h8300.md (P): New mode iterator.
16282 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
16283 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
16284 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
16285 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
16286 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
16287 and pushqi1_h8300hs_normal; use PRE_MODIFY and
16288 register_no_sp_elim_operand.
16289 (*pushhi1_h8300hs_<P>): Similarly.
16290 (pushqi1, pushhi1, pushhi1_h8300): Remove.
16291 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
16292
16293 2011-08-02 Richard Henderson <rth@redhat.com>
16294
16295 PR target/49881
16296 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
16297
16298 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16299
16300 * c-parser.c (enum c_parser_prec): New enum, moved from within
16301 c_parser_binary_expression.
16302 (c_parser_binary_expression): Add PREC argument. Stop parsing
16303 if operator has lower or equal precedence than PREC.
16304 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
16305 callers.
16306 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
16307 Adjust c_finish_omp_atomic caller.
16308 (c_parser_omp_taskyield): New function.
16309 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
16310 (c_parser_omp_clause_name): Handle final and mergeable clauses.
16311 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
16312 functions.
16313 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
16314 and PRAGMA_OMP_CLAUSE_MERGEABLE.
16315 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
16316 (c_parser_omp_clause_reduction): Handle min and max.
16317 * c-typeck.c (c_finish_omp_clauses): Don't complain about
16318 const qualified predetermined vars in firstprivate clause.
16319 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16320 Handle MIN_EXPR and MAX_EXPR.
16321 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
16322 and OMP_CLAUSE_MERGEABLE.
16323 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
16324 and OMP_ATOMIC_CAPTURE_NEW.
16325 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
16326 OMP_CLAUSE_MERGEABLE.
16327 (omp_clause_code_name): Likewise.
16328 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16329 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
16330 and OMP_CLAUSE_MERGEABLE.
16331 (OMP_CLAUSE_FINAL_EXPR): Define.
16332 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
16333 OMP_CLAUSE_MERGEABLE.
16334 (expand_task_call): Likewise.
16335 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
16336 (expand_omp_atomic_fetch_op): Handle cases where old or new
16337 value is needed afterwards.
16338 (expand_omp_atomic): Call expand_omp_atomic_load resp.
16339 expand_omp_atomic_store.
16340 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
16341 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
16342 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16343 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16344 * tree-nested.c (convert_nonlocal_omp_clauses,
16345 convert_local_omp_clauses): Likewise.
16346 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
16347 OMP_ATOMIC_CAPTURE_NEW): New.
16348 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
16349 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
16350 New inlines.
16351 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
16352 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
16353 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16354
16355 2011-08-02 Kai Tietz <ktietz@redhat.com>
16356
16357 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
16358 boolean-type.
16359 (ssa_forward_propagate_and_combine): Interprete result of
16360 forward_propagate_comparison.
16361 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
16362 boolean-typed operands for comparisons.
16363
16364 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
16365
16366 * config/avr/libgcc.S: Gather related function in the
16367 same input section.
16368 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
16369 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
16370 references.
16371 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
16372 __udivmodsi4, __divmodsi4, __prologue_saves__,
16373 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
16374 __do_copy_data, __do_clear_bss, __do_global_ctors,
16375 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
16376
16377 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
16378
16379 PR target/47766
16380 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
16381 (stack_protect_test): The pattern compares ptr_mode value.
16382
16383 2011-08-02 Alan Modra <amodra@gmail.com>
16384
16385 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
16386 note for save_LR_around_toc_setup sequence.
16387
16388 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16389
16390 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
16391
16392 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
16393 Joseph Myers <joseph@codesourcery.com>
16394
16395 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
16396 * hwint.c: Include diagnostic-core.h.
16397 (abs_hwi): New.
16398 (gcd): Moved here...
16399 (pos_mul_hwi): New.
16400 (mul_hwi): New.
16401 (least_common_multiple): Moved here...
16402 * hwint.h (gcd): ... from here.
16403 (least_common_multiple): ... from here.
16404 (HOST_WIDE_INT_MIN): New.
16405 (HOST_WIDE_INT_MAX): New.
16406 (abs_hwi): Declared.
16407 (gcd): Declared.
16408 (pos_mul_hwi): Declared.
16409 (mul_hwi): Declared.
16410 (least_common_multiple): Declared.
16411 * omega.c (check_pos_mul): Removed.
16412 (check_mul): Removed.
16413 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
16414 mul_hwi instead of check_mul.
16415
16416 2011-08-01 Richard Henderson <rth@redhat.com>
16417
16418 PR target/49881
16419 * config/avr/avr.h (PUSH_ROUNDING): New.
16420 * config/avr/avr.md (pushqi1): Rename from *pushqi.
16421 (*pushhi, *pushsi, *pushsf): Remove.
16422 (MPUSH): New mode iterator.
16423 (push<MPUSH>1): New expander.
16424
16425 2011-08-01 Anatoly Sokolov <aesok@post.ru>
16426
16427 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
16428 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
16429 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
16430 mmix_preferred_output_reload_class): Remove.
16431 * config/mmix/mmix.c (mmix_preferred_reload_class,
16432 mmix_preferred_output_reload_class): Make static. Change rclass
16433 argument and return type to reg_class_t.
16434 (TARGET_PREFERRED_RELOAD_CLASS,
16435 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16436
16437 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
16438
16439 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
16440 handling.
16441
16442 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16443
16444 PR target/47766
16445 * config/i386/i386.md (PTR): New.
16446 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
16447 (stack_protect_test): Likewise.
16448 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
16449 (stack_tls_protect_set_<mode>): Likewise.
16450 (stack_tls_protect_test_<mode>): Likewise.
16451
16452 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
16453
16454 PR target/49927
16455 * config/i386/i386.c (ix86_address_subreg_operand): New.
16456 (ix86_decompose_address): Use ix86_address_subreg_operand.
16457 (ix86_legitimate_address_p): Do not assert that subregs satisfy
16458 register_no_elim_operand in DImode.
16459
16460 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
16461
16462 PR tree-optimization/49926
16463 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
16464 in a chain doesn't have uses both inside and outside the loop.
16465
16466 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
16467
16468 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
16469 * config/avr/avr-devices.c (avr_mcu_types): Use it.
16470 * config/avr/avr-mcus.def (AVR_MCU): Use it.
16471 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
16472 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
16473 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
16474 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
16475 to detect if XJMP must not be skipped.
16476
16477 2011-08-02 Alan Modra <amodra@gmail.com>
16478
16479 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
16480 Delete.
16481 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
16482 (rs6000_emit_prologue): Don't prematurely return when
16483 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
16484 save_toc_in_prologue case.
16485 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
16486 calls_alloca.
16487
16488 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
16489
16490 * config/avr/avr-devices.c: Delete SVN property svn:executable.
16491 * config/avr/predicates.md: Ditto.
16492 * config/avr/driver-avr.c: Ditto.
16493 * config/avr/genopt.sh: Set SVN property svn:executable to *.
16494
16495 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16496
16497 * calls.c (emit_library_call_value_1): Declare size only if
16498 BLOCK_REG_PADDING is defined.
16499
16500 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
16501
16502 PR target/49547
16503 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
16504 (x86_64-*-*): Likewise.
16505 * config/i386/i386.opt (mlzcnt): New.
16506 * config/i386/abmintrin.h: File removed.
16507 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
16508 * config/i386/lzcntintrin.h: ... here. New file.
16509 (__lzcnt): Rename to ...
16510 (__lzcnt32): ... this.
16511 * config/i386/bmiintrin.h (head): Update copyright year.
16512 (__lzcnt_u16): Removed.
16513 (__lzcnt_u32): Likewise.
16514 (__lzcnt_u64): Likewise.
16515 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
16516 is defined, remove abmintrin.h.
16517 * config/i386/cpuid.h (bit_LZCNT): New.
16518 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16519 LZCNT feature.
16520 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16521 __LZCNT__ if needed.
16522 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
16523 (ix86_option_override_internal): Handle LZCNT option.
16524 (ix86_valid_target_attribute_inner_p): Likewise.
16525 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
16526 * config/i386/i386.h (TARGET_LZCNT): New.
16527 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
16528 * config/i386/i386.md (clz<mode>2): Update insn constraint.
16529 (clz<mode>2_lzcnt): Likewise.
16530 * doc/invoke.texi: Mention -mlzcnt option.
16531 * doc/extend.texi: Likewise.
16532
16533 2011-08-01 Julian Brown <julian@codesourcery.com>
16534
16535 * configure.ac (fixed-point): Add ARM support.
16536 * configure: Regenerate.
16537 * config/arm/arm.c (arm_fixed_mode_set): New struct.
16538 (arm_set_fixed_optab_libfunc): New.
16539 (arm_set_fixed_conv_libfunc): New.
16540 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
16541 ARM-specific names.
16542 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
16543 return values in SImode.
16544 (arm_return_in_msb): Return fixed-point types in the msb.
16545 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
16546 upwards.
16547 (arm_scalar_mode_supported_p): Support fixed-point modes.
16548 (arm_vector_mode_supported_p): Support vector fixed-point modes.
16549 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
16550 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
16551 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
16552 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
16553 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
16554 New mode iterators.
16555 (qaddsub_suf): New mode attribute.
16556 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
16557 vector modes.
16558 * config/arm/predicates.md (sat_shift_operator): New predicate.
16559 * config/arm/arm-fixed.md: New.
16560 * config/arm/arm.md: Include arm-fixed.md.
16561 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
16562
16563 2011-08-01 Julian Brown <julian@codesourcery.com>
16564
16565 * calls.c (emit_library_call_value_1): Support padding for libcall
16566 arguments and return values.
16567 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
16568 downwards in big-endian mode.
16569
16570 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16571
16572 PR debug/49887
16573 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
16574 * config/sol2-protos.h: Likewise.
16575 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
16576 solaris_code_end.
16577 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
16578 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
16579 solaris_file_end.
16580 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
16581
16582 2011-08-01 Julian Brown <julian@codesourcery.com>
16583
16584 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
16585
16586 2011-08-01 Julian Brown <julian@codesourcery.com>
16587
16588 * final.c (output_addr_const): Print fixed-point constants as
16589 decimal not hex.
16590
16591 2011-08-01 Richard Guenther <rguenther@suse.de>
16592
16593 * stor-layout.c (initialize_sizetypes): Properly sign-extend
16594 bitsiztype TYPE_MAX_VALUE.
16595
16596 2011-08-01 Julian Brown <julian@codesourcery.com>
16597
16598 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
16599 comparison helpers.
16600
16601 2011-07-31 Richard Henderson <rth@redhat.com>
16602
16603 * config/h8300/crti.asm: Add flags to .section directive.
16604 * config/h8300/crtn.asm: Likewise.
16605
16606 2011-07-31 Richard Henderson <rth@redhat.com>
16607
16608 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
16609 * tree.c (build_common_tree_nodes): Likewise.
16610
16611 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16612
16613 PR target/49880
16614 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
16615 (divsi3_i1): Likewise.
16616
16617 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16618
16619 PR tree-optimization/49749
16620 * tree-ssa-reassoc.c (get_rank): New forward declaration.
16621 (PHI_LOOP_BIAS): New macro.
16622 (phi_rank): New function.
16623 (loop_carried_phi): Likewise.
16624 (propagate_rank): Likewise.
16625 (get_rank): Add calls to phi_rank and propagate_rank.
16626
16627 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
16628
16629 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
16630 of TARGET_64BIT.
16631 (PTRDIFF_TYPE): Likewise.
16632
16633 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
16634
16635 PR target/49920
16636 * config/i386/i386.md (strset): Do not expand strset_singleop
16637 when %eax or $edi are fixed.
16638 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
16639 (*strsetsi_1): Ditto.
16640 (*strsethi_1): Ditto.
16641 (*strsetqi_1): Ditto.
16642 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
16643 (*rep_stossi): Ditto.
16644 (*rep_stosqi): Ditto.
16645 (*strlenqi_1): Ditto.
16646 (cmpstrnsi): Also fail when %ecx is fixed.
16647 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
16648 (*cmpstrnqi_1): Ditto.
16649 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
16650 (*strmovsi_1): Ditto.
16651 (*strmovhi_1): Ditto.
16652 (*strmovqi_1): Ditto.
16653 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
16654 (*rep_movsi): Ditto.
16655 (*rep_movqi): Ditto.
16656
16657 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
16658
16659 PR target/47908
16660 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
16661 Disable instruction scheduling for non-ColdFire targets.
16662 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
16663
16664 2011-07-31 Revital Eres <revital.eres@linaro.org>
16665
16666 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
16667 of anti-dep edge from a branch.
16668 (add_cross_iteration_register_deps): Create anti-dep edge from
16669 a branch.
16670
16671 2011-07-31 Revital Eres <revital.eres@linaro.org>
16672
16673 * modulo-sched.c: Change comment.
16674 (reset_sched_times): Fix print message.
16675 (print_partial_schedule): Add print info.
16676
16677 2011-07-31 Tom de Vries <tom@codesourcery.com>
16678
16679 PR middle-end/43513
16680 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
16681 get_object_alignment and TYPE_ALIGN.
16682
16683 2011-07-30 Tom de Vries <tom@codesourcery.com>
16684
16685 PR middle-end/43513
16686 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
16687 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
16688
16689 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16690
16691 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
16692 <sys/sbd.h>.
16693 (cpu_types): New array.
16694 (cputype): New function.
16695 (host_detect_local_cpu): Only define buf, f if !__sgi__.
16696 Use scaninvent instead of /proc/cpuinfo if __sgi__.
16697 * config.host: Also use driver-native.o, mips/x-native on
16698 mips-sgi-irix*.
16699 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
16700 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
16701 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
16702
16703 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16704
16705 PR middle-end/49897
16706 PR middle-end/49898
16707 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
16708 in nested parallel and outer is a gimple_reg, mark it as addressable
16709 and set its bit in task_shared_vars bitmap too.
16710
16711 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
16712
16713 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
16714
16715 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16716
16717 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
16718 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
16719 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
16720 AMASK_LOCKPFTCHOK): Define.
16721 (host_detect_local_cpu): Remove buf, f, cpu_names.
16722 Define cpu_types, implver, amask.
16723 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
16724 native CPU.
16725 * config.host: Also use driver-alpha.o, alpha/x-alpha on
16726 alpha*-dec-osf*.
16727 * config/alpha/osf5.h [__alpha__ || __alpha]
16728 (host_detect_local_cpu): Declare.
16729 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
16730 (DRIVER_SELF_SPECS): Define.
16731
16732 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
16733
16734 PR target/47715
16735 * config/i386/i386.md (*load_tp_x32): New.
16736 (*load_tp_x32_zext): Ditto.
16737 (*add_tp_x32): Ditto.
16738 (*add_tp_x32_zext): Ditto.
16739 (*load_tp_<mode>): Disable for TARGET_X32 targets.
16740 (*add_tp_<mode>): Ditto.
16741 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
16742 ptr_mode and convert to Pmode if needed.
16743
16744 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
16745
16746 PR target/49687
16747 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
16748 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
16749 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
16750 Add X to register footprint: Clobber r26/r27.
16751
16752 2011-07-29 Richard Guenther <rguenther@suse.de>
16753
16754 * builtins.c (fold_builtin_signbit): Build the comparison
16755 with a proper type.
16756
16757 2011-07-29 Richard Guenther <rguenther@suse.de>
16758
16759 PR tree-optimization/49893
16760 * tree-predcom.c (suitable_reference_p): Volatile references
16761 are not suitable.
16762
16763 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
16764
16765 PR target/49313
16766 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
16767 (__ctzsi2): Result for 0 may be undefined.
16768 (__ctzhi2): Result for 0 may be undefined.
16769 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
16770 (__popcountsi2): Ditto. And don't clobber r26.
16771 (__popcountdi2): Ditto. And don't clobber r27.
16772 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
16773 (parityhi2): New expand.
16774 (paritysi2): New expand.
16775 (popcounthi2): New expand.
16776 (popcountsi2): New expand.
16777 (clzhi2): New expand.
16778 (clzsi2): New expand.
16779 (ctzhi2): New expand.
16780 (ctzsi2): New expand.
16781 (ffshi2): New expand.
16782 (ffssi2): New expand.
16783 (copysignsf3): New insn.
16784 (bswapsi2): New expand.
16785 (*parityhi2.libgcc): New insn.
16786 (*parityqihi2.libgcc): New insn.
16787 (*paritysihi2.libgcc): New insn.
16788 (*popcounthi2.libgcc): New insn.
16789 (*popcountsi2.libgcc): New insn.
16790 (*popcountqi2.libgcc): New insn.
16791 (*popcountqihi2.libgcc): New insn-and-split.
16792 (*clzhi2.libgcc): New insn.
16793 (*clzsihi2.libgcc): New insn.
16794 (*ctzhi2.libgcc): New insn.
16795 (*ctzsihi2.libgcc): New insn.
16796 (*ffshi2.libgcc): New insn.
16797 (*ffssihi2.libgcc): New insn.
16798 (*bswapsi2.libgcc): New insn.
16799
16800 2011-07-29 Richard Guenther <rguenther@suse.de>
16801
16802 * tree-vrp.c (get_value_range): Only set parameter default
16803 definitions to varying, leave others at undefined.
16804 (extract_range_from_binary_expr): Fix undefined handling.
16805 (vrp_visit_phi_node): Handle merged undefined state.
16806
16807 2011-07-29 Wei Guozhi <carrot@google.com>
16808
16809 PR rtl-optimization/49799
16810 * combine.c (make_compound_operation): Check if the bit field is valid
16811 before change it to bit field extraction.
16812
16813 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
16814
16815 PR rtl-optimization/49891
16816 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
16817 newly created returnjumps.
16818
16819 2011-07-28 DJ Delorie <dj@redhat.com>
16820
16821 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
16822 local frame in a naked function, and produce a suitable error for
16823 that specific case.
16824
16825 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
16826 registers to be reloaded in HI classes when the target is HI.
16827
16828 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16829
16830 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
16831 bound_one, bound_two.
16832
16833 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16834
16835 PR middle-end/48648
16836 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
16837 CLAST assignments.
16838 (translate_clast): Same.
16839 (translate_clast_assignment): New.
16840
16841 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16842
16843 PR tree-optimization/49876
16844 * sese.c (rename_uses): Do not return false on gloog_error: set
16845 the new_expr to integer_zero_node and continue code generation.
16846 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
16847
16848 2011-07-28 Jakub Jelinek <jakub@redhat.com>
16849
16850 PR debug/49846
16851 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
16852 arguments also check if they aren't initialized with a MODE_INT
16853 mode of the same size.
16854
16855 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
16856
16857 * expr.c (get_bit_range): Handle *MEM_REF's.
16858
16859 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
16860
16861 * rtlanal.c (tablejump_p): False for returns.
16862 * reorg.c (first_active_target_insn): New static function.
16863 (find_end_label): Set JUMP_LABEL for a new returnjump.
16864 (optimize_skip, get_jump_flags, rare_destination,
16865 mostly_true_jump, get_branch_condition,
16866 steal_delay_list_from_target, own_thread_p,
16867 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
16868 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
16869 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
16870 * jump.c (delete_related_insns): Likewise.
16871 (jump_to_label_p): New function.
16872 (redirect_target): New static function.
16873 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
16874 (redirect_jump_1): Assert that the new label is nonnull.
16875 (redirect_jump): Likewise.
16876 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
16877 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
16878 exit block.
16879 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
16880 changed. Ensure that the right label is passed to redirect_jump.
16881 * function.c (emit_return_into_block,
16882 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
16883 ret_rtx in their JUMP_LABEL.
16884 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
16885 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
16886 pass ret_rtx as label.
16887 * cfglayout.c (fixup_reorder_chain): Use
16888 force_nonfallthru_and_redirect rather than force_nonfallthru.
16889 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
16890 * rtl.h (ANY_RETURN_P): New macro.
16891 (jump_to_label_p): Declare.
16892 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
16893 JUMP_LABELs.
16894 (mark_target_live_regs): Likewise.
16895 * basic-block.h (force_nonfallthru_and_redirect): Declare.
16896 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
16897 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
16898 alpha_tablejump_best_label): Remove functions.
16899 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
16900 alpha_tablejump_best_label): Remove declarations.
16901 * config/sh/sh.c (barrier_align, split_branches): Adjust for
16902 ret_rtx in JUMP_LABELs.
16903 * config/arm/arm.c (is_jump_table): Likewise.
16904
16905 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16906
16907 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
16908 special predicate. Remove explicit mode checks.
16909
16910 2011-07-28 Jakub Jelinek <jakub@redhat.com>
16911
16912 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
16913 DW_AT_data_member_location containing just DW_OP_plus_uconst.
16914
16915 PR debug/49871
16916 * dwarf2out.c (size_of_die, value_format, output_die): Use
16917 DW_FORM_udata instead of DW_FORM_data[48] for
16918 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
16919
16920 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16921
16922 * config/i386/i386.md (*tls_global_dynamic_64): Update
16923 length attribute.
16924
16925 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16926
16927 PR target/47715
16928 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
16929 tls_symbolic_operand check. Update code sequence for TARGET_X32.
16930 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
16931 (tls_dynamic_gnu2_64): Ditto.
16932 (*tls_dynamic_gnu2_lea_64): Ditto.
16933 (*tls_dynamic_gnu2_call_64): Ditto.
16934 (*tls_dynamic_gnu2_combine_64): Ditto.
16935
16936 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16937
16938 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
16939
16940 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16941
16942 PR target/47364
16943 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
16944
16945 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16946
16947 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
16948 before the core constraints. Adjust attributes.
16949 ("*thumb2_movdf_vfp"): Likewise.
16950
16951 2011-07-28 Kai Tietz <ktietz@redhat.com>
16952
16953 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
16954 (simplify_truth_ops_using_ranges): Likewise.
16955 (build_assert_expr_for): Likewise.
16956 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
16957 and handle BIT_NOT_EXPR for truth-operation.
16958
16959 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
16960
16961 PR target/49313
16962 Undo r176835 from trunk
16963 2011-07-27 Georg-Johann Lay
16964
16965 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
16966
16967 PR target/49687
16968 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
16969 Add _muluhisi3, _mulshisi3, _usmulhisi3.
16970 * config/avr/libgcc.S (__mulsi3): Rewrite.
16971 (__mulhisi3): Rewrite.
16972 (__umulhisi3): Rewrite.
16973 (__usmulhisi3): New.
16974 (__muluhisi3): New.
16975 (__mulshisi3): New.
16976 (__mulohisi3): New.
16977 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
16978 declare.
16979 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
16980 (pseudo_register_or_const_int_operand): New.
16981 (combine_pseudo_register_operand): New.
16982 (u16_operand): New.
16983 (s16_operand): New.
16984 (o16_operand): New.
16985 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
16986 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
16987 (any_extend, any_extend2): New code iterators.
16988 (extend_prefix): New code attribute.
16989 (mulsi3): Rewrite. Turn insn to expander.
16990 (mulhisi3): Ditto.
16991 (umulhisi3): Ditto.
16992 (usmulhisi3): New expander.
16993 (*mulsi3): New insn-and-split.
16994 (mulu<mode>si3): New insn-and-split.
16995 (muls<mode>si3): New insn-and-split.
16996 (mulohisi3): New insn-and-split.
16997 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
16998 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
16999 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
17000 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
17001 insn-and-split.
17002 (*mulsi3_call): Rewrite.
17003 (*mulhisi3_call): Rewrite.
17004 (*umulhisi3_call): Rewrite.
17005 (*usmulhisi3_call): New insn.
17006 (*muluhisi3_call): New insn.
17007 (*mulshisi3_call): New insn.
17008 (*mulohisi3_call): New insn.
17009 (extendqihi2): Use combine_pseudo_register_operand as predicate
17010 for operand 1.
17011 (extendqisi2): Ditto.
17012 (zero_extendqihi2): Ditto.
17013 (zero_extendqisi2): Ditto.
17014 (zero_extendhisi2): Ditto.
17015 (extendhisi2): Ditto. Don't early-clobber operand 0.
17016
17017 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
17018
17019 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
17020
17021 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
17022
17023 PR tree-optimization/49471
17024 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
17025 iv only when the largest type is unsigned. Do not call
17026 lang_hooks.types.type_for_size.
17027
17028 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
17029
17030 PR middle-end/45450
17031 * graphite-poly.c (apply_poly_transforms): Disable legality check
17032 after an openscop read.
17033
17034 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
17035
17036 PR middle-end/47691
17037 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
17038 copy_bb_and_scalar_dependences.
17039 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
17040 (graphite_copy_stmts_from_block): Update call to rename_uses.
17041 (copy_bb_and_scalar_dependences): Update call to
17042 graphite_copy_stmts_from_block.
17043 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
17044
17045 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
17046
17047 PR target/49313
17048 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
17049 (__ctzsi2): Result for 0 may be undefined.
17050 (__ctzhi2): Result for 0 may be undefined.
17051 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
17052 (__popcountsi2): Ditto. And don't clobber r26.
17053 (__popcountdi2): Ditto. And don't clobber r27.
17054 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
17055 (parityhi2): New expand.
17056 (paritysi2): New expand.
17057 (popcounthi2): New expand.
17058 (popcountsi2): New expand.
17059 (clzhi2): New expand.
17060 (clzsi2): New expand.
17061 (ctzhi2): New expand.
17062 (ctzsi2): New expand.
17063 (ffshi2): New expand.
17064 (ffssi2): New expand.
17065 (copysignsf3): New insn.
17066 (bswapsi2): New expand.
17067 (*parityhi2.libgcc): New insn.
17068 (*parityqihi2.libgcc): New insn.
17069 (*paritysihi2.libgcc): New insn.
17070 (*popcounthi2.libgcc): New insn.
17071 (*popcountsi2.libgcc): New insn.
17072 (*popcountqi2.libgcc): New insn.
17073 (*popcountqihi2.libgcc): New insn-and-split.
17074 (*clzhi2.libgcc): New insn.
17075 (*clzsihi2.libgcc): New insn.
17076 (*ctzhi2.libgcc): New insn.
17077 (*ctzsihi2.libgcc): New insn.
17078 (*ffshi2.libgcc): New insn.
17079 (*ffssihi2.libgcc): New insn.
17080 (*bswapsi2.libgcc): New insn.
17081
17082 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
17083
17084 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
17085 the mode of symbolic_opreand RTXes.
17086
17087 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
17088
17089 * config/i386/predicates.md (x86_64_movabs_operand): Return false
17090 for pic_32bit_operand RTXes.
17091 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
17092 in DImode.
17093
17094 2011-07-27 Kai Tietz <ktietz@redhat.com>
17095
17096 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
17097 for 32-bit, too.
17098 (ix86_handle_abi_attribute): Allow function attributes
17099 ms_abi/sysv_abi in 32-bit mode, too.
17100 * doc/extend.texi: Adjust attribute documentation.
17101
17102 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
17103 expression handling.
17104 (and_var_with_comparison_1): Likewise.
17105
17106 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
17107
17108 * params.h (ALLOW_STORE_DATA_RACES): New.
17109 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
17110 * Makefile.in (expr.o): Depend on PARAMS_H.
17111 * machmode.h (get_best_mode): Add argument.
17112 * fold-const.c (optimize_bit_field_compare): Add argument to
17113 get_best_mode.
17114 (fold_truthop): Same.
17115 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
17116 * expr.c (emit_group_store): Same.
17117 (copy_blkmode_from_reg): Same.
17118 (write_complex_part): Same.
17119 (optimize_bitfield_assignment_op): Add argument.
17120 Add argument to get_best_mode.
17121 (get_bit_range): New.
17122 (expand_assignment): Calculate maxbits and pass it down accordingly.
17123 (store_field): New argument.
17124 (expand_expr_real_2): New argument to store_field. Include params.h.
17125 * expr.h (store_bit_field): New argument.
17126 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
17127 into account maxbits.
17128 * calls.c (store_unaligned_arguments_into_pseudos): New argument
17129 to store_bit_field.
17130 * expmed.c (store_bit_field_1): New argument. Use it.
17131 (store_bit_field): Same.
17132 (store_fixed_bit_field): Same.
17133 (store_split_bit_field): Same.
17134 (extract_bit_field_1): Pass new argument to get_best_mode.
17135 (extract_bit_field): Same.
17136 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
17137 * doc/invoke.texi: Document parameter allow-store-data-races.
17138
17139 2011-07-27 Jakub Jelinek <jakub@redhat.com>
17140
17141 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
17142
17143 2011-07-27 Kai Tietz <ktietz@redhat.com>
17144
17145 * tree-vrp.c (extract_range_from_binary_expr): Remove
17146 TRUTH-binary cases and add new bitwise-cases.
17147 (extract_range_from_assignment): Likewise.
17148 (register_edge_assert_for_1): Likeiwise.
17149 (register_edge_assert_for): Likewise.
17150 (simplify_truth_ops_using_ranges): Likewise.
17151 (simplify_stmt_using_ranges): Likewise.
17152
17153 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
17154
17155 PR target/47372
17156 * config/i386/i386.c (ix86_delegitimize_address): Call
17157 simplify_gen_subreg for PIC with mode of x only if modes of
17158 x and orig_x are different.
17159
17160 2011-07-26 Jakub Jelinek <jakub@redhat.com>
17161
17162 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
17163 to GC allocated copy of the string.
17164 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
17165 before .debug_line, not after it.
17166
17167 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17168
17169 PR middle-end/47046
17170 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
17171 evolution_function_is_affine_p on CHREC_RIGHT.
17172
17173 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17174
17175 * tree-data-ref.c (max_stmt_executions_tree): Do not call
17176 lang_hooks.types.type_for_size.
17177
17178 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17179
17180 PR middle-end/47653
17181 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
17182 loops using wrapping semantics.
17183
17184 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17185
17186 PR middle-end/48805
17187 * tree-scalar-evolution.c (instantiate_scev_r): Return
17188 chrec_dont_know for ADDR_EXPR.
17189
17190 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17191 H.J. Lu <hongjiu.lu@intel.com>
17192
17193 PR target/47369
17194 PR target/49853
17195 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
17196 if legitimize_tls_address returned operand in wrong mode. Allow
17197 SImode and DImode symbolic operand for PIC. Call convert_to_mode
17198 if legitimize_pic_address returned operand in wrong mode.
17199
17200 2011-07-26 Martin Jambor <mjambor@suse.cz>
17201
17202 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
17203 return false for invariants.
17204
17205 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17206
17207 * config/i386/i386.md (add->lea splitter): Implement using SWI
17208 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
17209 (add->lea zext splitter): Change operand 2 predicate to
17210 x86_64_nonmemory_operand.
17211
17212 2011-07-26 Richard Guenther <rguenther@suse.de>
17213
17214 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
17215 frequency makes everything hot.
17216
17217 2011-07-26 Richard Guenther <rguenther@suse.de>
17218
17219 PR tree-optimization/49840
17220 * tree-vrp.c (range_fits_type_p): Properly handle full
17221 double-int precision.
17222
17223 2011-07-26 Martin Jambor <mjambor@suse.cz>
17224
17225 PR bootstrap/49786
17226 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
17227 counts.
17228 (update_specialized_profile): Likewise.
17229
17230 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17231 H.J. Lu <hongjiu.lu@intel.com>
17232
17233 PR target/47381
17234 PR target/49832
17235 PR target/49833
17236 * config/i386/i386.md (i): Change SImode attribute to "e".
17237 (g): Change SImode attribute to "rme".
17238 (di): Change SImode attribute to "nF".
17239 (general_operand): Change SImode attribute to x86_64_general_operand.
17240 (general_szext_operand): Change SImode attribute to
17241 x86_64_szext_general_operand.
17242 (immediate_operand): Change SImode attribute to
17243 x86_64_immediate_operand.
17244 (nonmemory_operand): Change SImode attribute to
17245 x86_64_nonmemory_operand.
17246 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
17247 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
17248 (*lea_1): Use SWI48 mode iterator.
17249 (*lea_1_zext): New insn pattern.
17250 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
17251 (*bt<mode>): Ditto.
17252 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
17253 Update operand constraints.
17254 (addsi_1_zext): Ditto.
17255 (*add<mode>2): Ditto.
17256 (*addsi_3_zext): Ditto.
17257 (*subsi_1_zext): Ditto.
17258 (*subsi_2_zext): Ditto.
17259 (*subsi_3_zext): Ditto.
17260 (*addsi3_carry_zext): Ditto.
17261 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
17262 (*mulsi3_1_zext): Ditto.
17263 (*andsi_1): Ditto.
17264 (*andsi_1_zext): Ditto.
17265 (*andsi_2_zext): Ditto.
17266 (*<any_or:code>si_1_zext): Ditto.
17267 (*<any_or:code>si_2_zext): Ditto.
17268 (*test<mode>_1): Use <general_operand> predicate for operand 1.
17269 (*and<mode>_2): Ditto.
17270 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
17271 (add->lea splitter): Check operand modes in insn constraint. Extend
17272 operands less than SImode wide to SImode.
17273 (add->lea zext splitter): Do not extend input operands to DImode.
17274 (*lea_general_1): Handle only QImode and HImode operands.
17275 (*lea_general_2): Ditto.
17276 (*lea_general_3): Ditto.
17277 (*lea_general_1_zext): Remove.
17278 (*lea_general_2_zext): Ditto.
17279 (*lea_general_3_zext): Ditto.
17280 (*lea_general_4): Check operand modes in insn constraint. Extend
17281 operands less than SImode wide to SImode.
17282 (ashift->lea splitter): Ditto.
17283 * config/i386/i386.c (ix86_print_operand_address): Print address
17284 registers with 'q' modifier on 64bit targets.
17285 * config/i386/predicates.md (pic_32bit_opreand): Define as special
17286 predicate. Reject non-SI and non-DI modes.
17287
17288 2011-07-25 Andrew Pinski <apinski@cavium.com>
17289
17290 PR tree-opt/49671
17291 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
17292 TREE_THIS_NOTRAP into the inner most MEM_REF.
17293 Always copy TREE_THIS_VOLATILE.
17294 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
17295 arguments are not volatile references.
17296
17297 2011-07-25 Richard Henderson <rth@redhat.com>
17298
17299 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
17300 * final.c (final_scan_insn): Don't test for it.
17301 (rest_of_clean_state): Likewise.
17302
17303 2011-07-25 Richard Henderson <rth@redhat.com>
17304
17305 PR debug/49841
17306 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
17307 (emit_frame_save): Likewise.
17308 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
17309 insn onto a dummy blockage insn after the join label.
17310
17311 2011-07-25 Richard Henderson <rth@redhat.com>
17312
17313 * dwarf2cfi.c (dw_trace_info): Add ID member.
17314 (get_trace_index): Remove. Change users to use ID member.
17315 (before_next_cfi_note): New.
17316 (connect_traces): Remove unreachable traces before the main loop.
17317 Look across one trace and generate remember/restore_state if needed.
17318
17319 2011-07-25 Richard Henderson <rth@redhat.com>
17320
17321 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
17322
17323 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
17324
17325 * genattr.c (write_upcase, gen_attr <enum definition writing>):
17326 Move to ...
17327 * genattr-common.c ... here.
17328 (main): Call gen_attr.
17329 * optc-gen.awk: Make generated program include insn-attr-common.h .
17330 * Makefile.in (oprions.o): Depend on insn-attr-common.h
17331
17332 2011-07-25 Anatoly Sokolov <aesok@post.ru>
17333
17334 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17335 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
17336 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
17337 m32c_print_operand, m32c_print_operand_address): Remove.
17338 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
17339 Change return type to bool. Change argument type to bool.
17340 (m32c_print_operand, m32c_print_operand_address): Make static.
17341 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
17342 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17343
17344 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17345
17346 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
17347 attributes): Document mmap.
17348
17349 2011-07-25 Anatoly Sokolov <aesok@post.ru>
17350
17351 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17352 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
17353 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
17354 mmix_print_operand, mmix_print_operand_address): Remove.
17355 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
17356 Change return type to bool. Change argument type to bool.
17357 (mmix_print_operand, mmix_print_operand_address): Make static.
17358 (mmix_intval, mmix_output_condition): Change 'x' argument type
17359 to const_rtx.
17360 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
17361 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17362
17363 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
17364
17365 PR target/39386
17366 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
17367 shift counter for x << x and x >> x shifts.
17368
17369 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17370
17371 PR target/47124
17372 * config.gcc: Reject *-*-solaris2 configuration.
17373
17374 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
17375
17376 PR tree-optimization/49809
17377 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
17378 gimple_get_lhs instead of gimple_assign_lhs.
17379
17380 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17381
17382 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
17383
17384 2011-07-25 Richard Guenther <rguenther@suse.de>
17385
17386 PR tree-optimization/49822
17387 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
17388 more. Make sure to preserve stmts with side-effects. Properly
17389 handle virtual defs, follow a longer def chain.
17390
17391 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
17392
17393 PR plugins/45348
17394 PR plugins/48425
17395 PR plugins/46577
17396 * Makefile.in: Do not flatten c-family directory when installing
17397 plugin headers.
17398
17399 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
17400
17401 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
17402 original nodes if we are dealing with virtual clones.
17403
17404 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
17405
17406 * common/config/c6x/c6x-common.c: New file.
17407
17408 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
17409
17410 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
17411
17412 2011-07-25 Richard Guenther <rguenther@suse.de>
17413
17414 PR tree-optimization/49715
17415 * tree-vrp.c: Include expr.h and optabs.h.
17416 (range_fits_type_): New function.
17417 (simplify_float_conversion_using_ranges): Likewise.
17418 (simplify_stmt_using_ranges): Call it.
17419 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
17420 * optabs.c (can_float_p): Export.
17421 * optabs.h (can_float_p): Declare.
17422
17423 2011-07-25 Richard Guenther <rguenther@suse.de>
17424
17425 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
17426 (get_value_range): For out-of-range SSA names or names created
17427 after propagation return a read-only varying range.
17428 (dump_all_value_ranges): Adjust.
17429 (vrp_initialize): Likewise.
17430 (vrp_finalize): Likewise.
17431
17432 2011-07-24 Richard Henderson <rth@redhat.com>
17433
17434 PR debug/49831
17435 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
17436 them entirely.
17437
17438 2011-07-24 Richard Henderson <rth@redhat.com>
17439
17440 PR debug/49825
17441 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
17442 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
17443
17444 2011-07-24 Richard Henderson <rth@redhat.com>
17445
17446 PR debug/49827
17447 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
17448
17449 2011-07-24 Richard Henderson <rth@redhat.com>
17450
17451 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
17452 Zero args_size for abnormal edges. Adjust all callers.
17453
17454 2011-07-24 Richard Henderson <rth@redhat.com>
17455
17456 PR debug/49825
17457 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
17458
17459 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
17460
17461 PR bootstrap/49835
17462 * collect2.c (demangle_flag): Removed.
17463
17464 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
17465
17466 * configure.ac (demangler_in_ld): Default to yes.
17467 * configure: Regenerated.
17468 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
17469 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
17470 --no-demangle options straight through to ld. When
17471 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
17472 way that has the intended effect on Windows.
17473
17474 2011-07-23 Richard Henderson <rth@redhat.com>
17475
17476 * dwarf2cfi.c: Include basic-block.h.
17477 (dw_label_info): Remove.
17478 (trace_work_list, trace_index): New.
17479 (remember_row, emit_cfa_remember): Remove.
17480 (dw_trace_info_hash, dw_trace_info_eq): New.
17481 (get_trace_index, get_trace_info): New.
17482 (save_point_p): New.
17483 (free_cfi_row): Remove.
17484 (add_cfi): Do not emit DW_CFA_remember_state.
17485 (cfa_row_equal_p): New.
17486 (barrier_args_size): Remove.
17487 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
17488 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
17489 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
17490 (dwarf2out_cfi_begin_epilogue): Remove.
17491 (dwarf2out_frame_debug_restore_state): Remove.
17492 (connect_traces, create_pseudo_cfg): New.
17493 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
17494 * Makefile.in (dwarf2cfi.o): Update.
17495
17496 2011-07-23 Richard Henderson <rth@redhat.com>
17497
17498 * dwarf2cfi.c (dw_trace_info): New.
17499 (dw_label_info): New.
17500 (cie_return_save): New.
17501 (cur_trace): New.
17502 (queued_args_size): Rename from args_size. Update all users.
17503 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
17504 (def_cfa_1): Use cur_trace instead of cfa_*.
17505 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
17506 (clobbers_queued_reg_save, reg_saved_in): Likewise.
17507 (dwarf2out_frame_debug_expr): Likewise.
17508 (create_cie_data): Split out from ...
17509 (execute_dwarf2_frame): ... here. Initialize cur_trace.
17510
17511 2011-07-23 Richard Henderson <rth@redhat.com>
17512
17513 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
17514 Update all users to match.
17515 (execute_dwarf2_frame): Free reg_saved_in_data.
17516
17517 2011-07-23 Richard Henderson <rth@redhat.com>
17518
17519 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
17520 (queued_reg_saves): Don't GTY. Change to a VEC.
17521 (queue_reg_save): Update to match.
17522 (dwarf2out_flush_queued_reg_saves): Likewise.
17523 (clobbers_queued_reg_save): Likewise.
17524 (reg_saved_in): Likewise.
17525 (execute_dwarf2_frame): Free queued_reg_saves.
17526
17527 2011-07-23 Richard Henderson <rth@redhat.com>
17528
17529 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
17530
17531 2011-07-23 Richard Henderson <rth@redhat.com>
17532
17533 * dwarf2cfi.c (add_cfi_args_size): Split out from...
17534 (dwarf2out_args_size): ... here.
17535 (add_cfi_restore): Split out from ...
17536 (dwarf2out_frame_debug_cfa_restore): ... here.
17537 (def_cfa_0): Split out from ...
17538 (def_cfa_1): ... here.
17539 (cfi_oprnd_equal_p, cfi_equal_p): New.
17540 (change_cfi_row): New.
17541 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
17542 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
17543 (output_cfis): Remove.
17544 * dwarf2out.c (output_fde): Simplify output_cfi loop.
17545 (dwarf2out_switch_text_section): Don't call output_cfis.
17546 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
17547 * dwarf2out.h: Update decls.
17548 (enum dw_val_class): Add dw_val_class_none.
17549
17550 2011-07-23 Richard Henderson <rth@redhat.com>
17551
17552 * dwarf2cfi.c (update_row_reg_save): New.
17553 (dwarf2out_frame_debug_cfa_expression): Use it.
17554 (dwarf2out_frame_debug_cfa_restore): Likewise.
17555 (reg_save): Likewise. Do not emit DW_CFA_same_value.
17556
17557 2011-07-23 Richard Henderson <rth@redhat.com>
17558
17559 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
17560
17561 2011-07-23 Richard Henderson <rth@redhat.com>
17562
17563 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
17564 (cie_cfi_row): New.
17565 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
17566 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
17567 (cur_row, remember_row): New.
17568 (def_cfa_1): Use cur_row instead of the old_* variables.
17569 (dwarf2out_frame_debug_restore_state): Similarly.
17570 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
17571 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
17572 (dwarf2out_frame_debug_adjust_cfa): Likewise.
17573 (dwarf2out_frame_debug_cfa_offset): Likewise.
17574 (dwarf2out_frame_debug_expr): Likewise.
17575 (execute_dwarf2_frame): Set up cur_row.
17576 * dwarf2out.h (struct cfa_loc): Mark for GTY.
17577
17578 2011-07-23 Richard Henderson <rth@redhat.com>
17579
17580 * basic-block.h (EDGE_PRESERVE): New.
17581 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
17582 * bb-reorder.c: Include except.h.
17583 (fix_up_crossing_landing_pad): New.
17584 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
17585 landing pads in the right partition. Duplicate as necessary.
17586 (partition_hot_cold_basic_blocks): Fix up DF info after
17587 duplicating landing pads.
17588 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
17589 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
17590 is set properly. Validate that EH edges are not CROSSING.
17591 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
17592 (dw2_build_landing_pads): ... here.
17593 (convert_to_eh_region_ranges): Remove code to fixup crossing
17594 landing pads.
17595 * except.h (expand_dw2_landing_pad_for_region): Declare.
17596 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
17597
17598 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
17599
17600 PR target/49816
17601 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
17602
17603 2011-07-22 Jason Merrill <jason@redhat.com>
17604
17605 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
17606
17607 2011-07-22 Richard Henderson <rth@redhat.com>
17608
17609 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
17610
17611 2011-07-22 Richard Henderson <rth@redhat.com>
17612
17613 * jump.c (maybe_propagate_label_ref): Split out of...
17614 (mark_all_labels): ... here. Do not attempt label_ref
17615 propagation while in cfglayout mode.
17616
17617 2011-07-22 Jakub Jelinek <jakub@redhat.com>
17618
17619 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
17620 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
17621 (dwarf_attr_name): Handle DW_AT_GNU_macros.
17622 (dwarf2out_define): If the vector is empty and
17623 lineno is 0, emit a dummy entry first.
17624 (dwarf2out_undef): Likewise. Remove redundant semicolon.
17625 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
17626 optimize_macinfo_range): New functions.
17627 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
17628 mergeable, optimize longer strings using
17629 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
17630 optimize longer sequences of define/undef ops from headers
17631 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
17632 emit a section headers.
17633 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
17634 and macinfo_section_label to DEBUG_MACRO_SECTION
17635 resp. DEBUG_MACRO_SECTION_LABEL.
17636 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
17637 instead of DW_AT_macro_info.
17638
17639 PR other/32998
17640 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
17641 options.
17642 * dwarf2out.c: Include opts.h.
17643 (dchar_p): New typedef. Define heap VEC for it.
17644 (producer_string): New variable.
17645 (gen_producer_string): New function.
17646 (gen_compile_unit_die): Use it.
17647 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
17648 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
17649 * doc/invoke.texi: Document -grecord-gcc-switches and
17650 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
17651 to -frecord-gcc-switches description.
17652
17653 2011-07-22 Jason Merrill <jason@redhat.com>
17654
17655 PR c++/30112
17656 * c-decl.c (c_linkage_bindings): Define.
17657
17658 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
17659
17660 PR debug/49815
17661 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
17662
17663 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
17664
17665 * config/i386/i386.c (ix86_option_override_internal): Disallow
17666 MS ABI in x32 mode.
17667 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
17668 only for TARGET_LP64.
17669 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
17670
17671 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17672
17673 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
17674 avoid warnings when GCC is built with a C++ compiler.
17675
17676 2011-07-22 Martin Jambor <mjambor@suse.cz>
17677
17678 PR lto/49796
17679 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
17680 if decl node is in another partition, call cgraph_get_node only once.
17681
17682 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
17683
17684 * config.gcc (x86_64-*-linux*): Set
17685 default_gnu_indirect_function to yes.
17686
17687 2011-07-22 Richard Guenther <rguenther@suse.de>
17688
17689 PR tree-optimization/45819
17690 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
17691 preserve volatile and notrap flags.
17692
17693 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17694 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17695
17696 PR bootstrap/49794
17697 * configure.ac: Test AM_ICONV with CXX.
17698 * configure: Regenerate.
17699 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
17700
17701 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17702
17703 PR bootstrap/49797
17704 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
17705 (set_cloog_options): Use it.
17706
17707 2011-07-22 Jakub Jelinek <jakub@redhat.com>
17708
17709 PR c++/49756
17710 * gcc.c (main): Call stack_limit_increase (64MB).
17711 * toplev.c (toplev_main): Likewise.
17712
17713 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17714
17715 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
17716 instead of force_reg.
17717
17718 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17719
17720 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
17721 needed and use force_reg after convert.
17722 (ix86_expand_call): Likewise.
17723 (ix86_expand_special_args_builtin): Likewise.
17724 (ix86_expand_builtin): Likewise.
17725
17726 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17727
17728 PR middle-end/47654
17729 PR middle-end/49649
17730 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
17731 in parameter. Initialize v1 and v2 based on the values returned
17732 by clast_name_to_lb_ub.
17733 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
17734 values.
17735 (type_for_clast_bin): Same.
17736 (type_for_clast_expr): Same.
17737 (type_for_clast_eq): Update calls to type_for_clast_expr.
17738 (type_for_clast_for): Same.
17739 (build_iv_mapping): Same.
17740 * graphite-ppl.h (value_min): New.
17741
17742 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17743
17744 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
17745 types whenever possible.
17746
17747 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17748
17749 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
17750 and ub fields.
17751 (new_clast_name_index): Add lb and ub parameters.
17752 (free_clast_name_index): New.
17753 (clast_name_to_lb_ub): New.
17754 (save_clast_name_index): Add lb and ub parameters.
17755 (compute_bounds_for_param): New.
17756 (type_for_level): Removed.
17757 (type_for_clast_for): Removed level parameter. Do not call
17758 type_for_level.
17759 (graphite_create_new_loop): Store the lb and ub for the clast_name
17760 of the iterator of the loop that has been generated.
17761 (graphite_create_new_loop_guard): Remove parameter level.
17762 (create_params_index): Store the lb and ub of each parameter.
17763 (gloog): Use free_clast_name_index. Pass to create_params_index
17764 the current scop.
17765
17766 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17767
17768 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
17769 (max_precision_type): Inline max_signed_precision_type.
17770 (type_for_clast_red): Use max_precision_type.
17771 (type_for_clast_bin): Same.
17772 (type_for_clast_for): Same.
17773
17774 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17775
17776 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
17777 type_for_interval.
17778 (gcc_type_for_value): Renamed type_for_value.
17779 (gcc_type_for_clast_term): Renamed type_for_clast_term.
17780 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
17781 (gcc_type_for_clast_red): Renamed type_for_clast_red.
17782 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
17783 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
17784 (graphite_translate_clast_equation): Update calls.
17785 (compute_type_for_level): Renamed type_for_level.
17786 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
17787 (build_iv_mapping): Update calls.
17788 (graphite_create_new_loop_guard): Same.
17789
17790 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17791
17792 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
17793 comment.
17794
17795 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17796
17797 * graphite-clast-to-gimple.c (struct ivs_params): New.
17798 (clast_name_to_gcc): Use ivs_params to pass around parameters.
17799 (clast_to_gcc_expression): Same.
17800 (clast_to_gcc_expression_red): Same.
17801 (gcc_type_for_clast_term): Same.
17802 (gcc_type_for_clast_expr): Same.
17803 (gcc_type_for_clast_red): Same.
17804 (gcc_type_for_clast_bin): Same.
17805 (gcc_type_for_clast_eq): Same.
17806 (graphite_translate_clast_equation): Same.
17807 (graphite_create_guard_cond_expr): Same.
17808 (graphite_create_new_guard): Same.
17809 (graphite_create_new_loop): Same.
17810 (build_iv_mapping): Same.
17811 (translate_clast_user): Same.
17812 (graphite_create_new_loop_guard): Same.
17813 (translate_clast): Same.
17814 (translate_clast_for_loop): Same.
17815 (translate_clast_for): Same.
17816 (translate_clast_guard): Same.
17817 (initialize_cloog_names): Fix typo.
17818 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
17819
17820 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17821
17822 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
17823 (new_clast_name_index): Add level parameter.
17824 (clast_name_to_level): New.
17825 (save_clast_name_index): Add level parameter.
17826 (newivs_to_depth_to_newiv): Removed.
17827 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
17828 (graphite_create_new_loop): Add level parameter. Pass level to
17829 save_clast_name_index.
17830 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
17831 (create_params_index): Pass level to save_clast_name_index.
17832
17833 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17834
17835 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
17836 recompute type, lb, and ub. Get them from...
17837 (graphite_create_new_loop_guard): ...here. Pass in parameter
17838 pointers to type, lb, and ub.
17839 (translate_clast_for_loop): Update function calls.
17840 (translate_clast_for): Same.
17841
17842 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17843
17844 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
17845 psct_dynamic_dim.
17846 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
17847 (gcc_type_for_iv_of_clast_loop): Update use of level.
17848 (gloog): Start counting nesting level from 0.
17849 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
17850 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
17851 psct_dynamic_dim on level.
17852
17853 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17854
17855 * config/i386/i386.c (ix86_legitimize_address): Convert to
17856 Pmode if needed.
17857
17858 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17859
17860 * config/i386/i386.c (function_value_64): Always return pointers
17861 in Pmode.
17862 (ix86_promote_function_mode): New.
17863 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
17864
17865 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17866
17867 PR tree-optimization/49749
17868 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
17869 remove no-longer-used maxrank variable.
17870
17871 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
17872
17873 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
17874
17875 2011-07-21 Jason Merrill <jason@redhat.com>
17876
17877 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
17878 * recog.h (struct insn_data_d): Check it instead of
17879 HAVE_DESIGNATED_INITIALIZERS.
17880 * genoutput.c (output_insn_data): Likewise.
17881
17882 2011-07-21 Richard Guenther <rguenther@suse.de>
17883
17884 PR tree-optimization/49770
17885 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
17886 valueized any operand. Renamed from ...
17887 (valueize_refs): ... this. New wrapper around valueize_refs_1.
17888 (valueize_shared_reference_ops_from_ref): Return whether we
17889 valueized any operand.
17890 (vn_reference_lookup): Only when we valueized any operand
17891 use the valueized reference for alias analysis. Do not preserve
17892 the original reference tree in this case.
17893
17894 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
17895
17896 * config/i386/i386.c (ix86_decompose_address): Reject all but
17897 register operands and subregs of DImode hard registers in index.
17898
17899 2011-07-21 Kai Tietz <ktietz@redhat.com>
17900
17901 * fold-const.c (fold_unary_loc): Preserve indirect
17902 comparison cast to none-boolean type.
17903 * tree-ssa.c (useless_type_conversion_p): Preserve cast
17904 from/to boolean-type.
17905 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
17906 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
17907 * tree-cfg.c (verify_gimple_comparison): Check result
17908 type of comparison expression.
17909 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
17910 of condition result and disallow type-cast sinking into comparison.
17911
17912 2011-07-21 Richard Guenther <rguenther@suse.de>
17913
17914 * tree-ssa-forwprop.c (combine_conversions): Return whether
17915 we have to run cfg-cleanup. Properly remove dead stmts.
17916 (ssa_forward_propagate_and_combine): Adjust.
17917
17918 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
17919
17920 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
17921
17922 2011-07-21 Kai Tietz <ktietz@redhat.com>
17923
17924 * tree-ssa-propagate.c (substitute_and_fold): Use
17925 do_dce flag to deside, if BB's statements are scanned
17926 in last to first, or first to last order.
17927
17928 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
17929
17930 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
17931
17932 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
17933 Uros Bizjak <ubizjak@gmail.com>
17934 Richard Henderson <rth@redhat.com>
17935
17936 * config/i386/constraints.md (w): New.
17937
17938 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
17939 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
17940
17941 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
17942 instead of TARGET_64BIT.
17943
17944 * config/i386/i386.md (indirect_jump): Replace
17945 nonimmediate_operand with indirect_branch_operand.
17946 (*indirect_jump): Likewise. Replace constraint "m" with "w".
17947 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
17948 Convert operand 0 to Pmode for x32 if not PIC.
17949 (*tablejump_1): Replace nonimmediate_operand with
17950 indirect_branch_operand. Replace constraint "m" with "w".
17951 (*call_vzeroupper): Replace constraint "m" with "w".
17952 (*call): Likewise.
17953 (*call_rex64_ms_sysv_vzeroupper): Likewise.
17954 (*call_rex64_ms_sysv): Likewise.
17955 (*call_value_vzeroupper): Likewise.
17956 (*call_value): Likewise.
17957 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
17958 (*call_value_rex64_ms_sysv): Likewise.
17959 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
17960
17961 * config/i386/predicates.md (indirect_branch_operand): New.
17962 (call_insn_operand): Support x32.
17963
17964 2011-07-20 Michael Eager <eager@eagercon.com>
17965
17966 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
17967
17968 2011-07-20 Richard Henderson <rth@redhat.com>
17969
17970 * cfg.c (dump_bb_info): Dump basic_block->flags.
17971 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
17972
17973 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
17974
17975 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17976 of DImode hard registers in index.
17977 (ix86_legitimate_address_p): Allow subregs of base and index to span
17978 more than a word. Assert that subregs of base and index satisfy
17979 register_no_elim_operand predicates. Reject addresses where
17980 base and index have different modes.
17981
17982 2011-07-20 Robert Millan <rmh@gnu.org>
17983
17984 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
17985
17986 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17987
17988 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
17989 removing now-unnecessary assignment.
17990
17991 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17992
17993 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
17994 memory address space to the type's address space.
17995
17996 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
17997
17998 PR target/36467
17999 PR target/49687
18000 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
18001 and expand appropriately if there is a CONST_INT in operand2.
18002 (usmulqihi3): New insn.
18003 (*sumulqihi3): New insn.
18004 (*osmulqihi3): New insn.
18005 (*oumulqihi3): New insn.
18006 (*muluqihi3.uconst): New insn_and_split.
18007 (*muluqihi3.sconst): New insn_and_split.
18008 (*mulsqihi3.sconst): New insn_and_split.
18009 (*mulsqihi3.uconst): New insn_and_split.
18010 (*mulsqihi3.oconst): New insn_and_split.
18011 (*ashifthi3.signx.const): New insn_and_split.
18012 (*ashifthi3.signx.const7): New insn_and_split.
18013 (*ashifthi3.zerox.const): New insn_and_split.
18014 (mulsqihi3): New insn.
18015 (muluqihi3): New insn.
18016 (muloqihi3): New insn.
18017 * config/avr/predicates.md (const_2_to_7_operand): New.
18018 (const_2_to_6_operand): New.
18019 (u8_operand): New.
18020 (s8_operand): New.
18021 (o8_operand): New.
18022 (s9_operand): New.
18023 (register_or_s9_operand): New.
18024
18025 2011-07-20 Kai Tietz <ktietz@redhat.com>
18026
18027 * builtins.c (fold_builtin_expect): See through the cast
18028 from truthvalue_type_node to long.
18029
18030 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
18031
18032 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
18033 where we can use them from the standard and altivec instruction
18034 sets, instead of always using the 3 operand VSX forms that require
18035 the destination to overlap one of the inputs.
18036 (vsx_fms*): Ditto.
18037 (vsx_fnma*): Ditto.
18038 (vsx_fnms*): Ditto.
18039
18040 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
18041 for DF types.
18042 (fmsdf4_fpr): Ditto.
18043 (nfmadf4_fpr): Ditto.
18044 (nfmsdf4_fpr): Ditto.
18045
18046 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
18047
18048 * genrecog.c (make_insn_sequence): Correct position numbering
18049 when filtering out match_scratch and match_dup.
18050
18051 2011-07-20 Richard Guenther <rguenther@suse.de>
18052
18053 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
18054 against already removed statements.
18055 (forward_propagate_into_comparison): Remove dead defining stmts.
18056 (forward_propagate_into_gimple_cond): Likewise.
18057 (forward_propagate_into_cond): Simplify.
18058 (ssa_forward_propagate_and_combine): Handle changed cfg from
18059 forward_propagate_into_comparison.
18060 * tree-ssa-phiopt.c (conditional_replacement): Use proper
18061 locations for newly built statements.
18062
18063 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
18064
18065 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
18066
18067 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18068
18069 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
18070 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
18071
18072 2011-07-20 Richard Guenther <rguenther@suse.de>
18073
18074 PR middle-end/18908
18075 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
18076 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
18077 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
18078
18079 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
18080
18081 * config/frv/frv.c (frv_register_move_cost): Define explicitly
18082 costs for subclasses of GR_REGS.
18083
18084 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
18085
18086 PR target/49780
18087 * config/i386/predicates.md (no_seg_addres_operand): No more special.
18088 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
18089 of DImode hard registers in base.
18090 (ix86_legitimate_address_p): Allow SImode and DImode base and index
18091 registers.
18092
18093 2011-07-20 Richard Guenther <rguenther@suse.de>
18094
18095 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
18096 (unify_nodes): Deal with that.
18097 (solve_graph): Likewise.
18098
18099 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
18100
18101 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
18102 canonicalize left operand from ZERO_EXTEND to AND.
18103
18104 2011-07-20 Anatoly Sokolov <aesok@post.ru>
18105
18106 * target.def (class_max_nregs): New hook.
18107 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
18108 * doc/tm.texi: Regenerate.
18109 * targhooks.c (default_class_max_nregs): New function.
18110 * targhooks.h (default_class_max_nregs): Declare.
18111 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
18112 x_ira_reg_class_min_nregs arrays to unsigned char.
18113 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
18114 hook instead of CLASS_MAX_NREGS macro.
18115 * reginfo.c (restore_register_info): Ditto.
18116 * ira-conflicts.c (process_regs_for_copy): Use
18117 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
18118 Change type rclass and aclass vars to reg_class_t.
18119 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
18120 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
18121 reg_class_t.
18122 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
18123 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
18124
18125 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
18126 * config/i386/i386.c (ix86_class_max_nregs): New function.
18127 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
18128 instead of CLASS_MAX_NREGS macro.
18129 (TARGET_CLASS_MAX_NREGS): Define.
18130 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
18131 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
18132 * config/avr/avr.c (class_max_nregs): Remove function.
18133 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
18134 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
18135 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
18136 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
18137 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
18138 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
18139 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
18140 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
18141 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
18142 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
18143 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
18144 * config/score/score.h (CLASS_MAX_NREGS): Remove.
18145 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
18146 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
18147 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
18148
18149 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
18150
18151 * cif-code.def (OVERWRITABLE): Fix typo and move around.
18152 (TARGET_OPTIMIZATION_MISMATCH): Delete.
18153 (EH_PERSONALITY): Fix typo.
18154 (NON_CALL_EXCEPTIONS): Fix message.
18155 (OPTIMIZATION_MISMATCH): Adjust message.
18156 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
18157
18158 2011-07-19 Ian Lance Taylor <iant@google.com>
18159
18160 * doc/install.texi (Configuration): Document
18161 --enable-build-poststage1-with-cxx.
18162
18163 2011-07-19 Robert Millan <rmh@gnu.org>
18164
18165 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
18166 (GLIBC_DYNAMIC_LINKER): Remove.
18167
18168 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
18169 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
18170 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
18171 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
18172 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
18173 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
18174
18175 * config/mips/linux.h: Remove everything except for ...
18176 (GLIBC_DYNAMIC_LINKER): ... this macro.
18177
18178 * config/mips/linux64.h: Remove everything except for ...
18179 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
18180 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
18181 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
18182 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
18183 (GNU_USER_LINK_EMULATIONN32): New macros.
18184
18185 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
18186 Use the new headers.
18187
18188 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18189
18190 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
18191 Add offset_known_p and size_known_p fields.
18192 (MEM_OFFSET_KNOWN_P): Update accordingly.
18193 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
18194 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
18195 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
18196 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
18197 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
18198 (init_emit_regs): Likewise.
18199
18200 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18201
18202 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
18203 (MEM_OFFSET): Change from returning an rtx to returning a
18204 HOST_WIDE_INT.
18205 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
18206 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
18207 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
18208 (clear_mem_offset): Declare.
18209 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
18210 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
18211 MEM_OFFSET to get a HOST_WIDE_INT offset.
18212 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
18213 (adjust_offset_for_component_ref): Take a bool "known_p"
18214 parameter and a HOST_WIDE_INT "offset" parameter.
18215 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
18216 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
18217 than an rtx. Use clear_mem_offset to clear the offset.
18218 * cfgcleanup.c (merge_memattrs): Likewise.
18219 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
18220 * function.c (assign_parm_find_stack_rtl): Likewise.
18221 (assign_parm_setup_stack): Likewise.
18222 * print-rtl.c (print_rtx): Likewise.
18223 * reload.c (find_reloads_subreg_address): Likewise.
18224 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
18225 * var-tracking.c (INT_MEM_OFFSET): Likewise.
18226 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18227 (get_mem_align_offset): Likewise.
18228 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
18229 (clear_mem_offset): New function.
18230 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
18231 offset rather than an rtx. Assume both the expressio and offset
18232 are available.
18233 (r10k_needs_protection_p_1): Update accordingly, checking the
18234 expression and offset availability here instead.
18235
18236 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18237
18238 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
18239 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
18240 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
18241 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
18242 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
18243 (clear_mem_size): Declare.
18244 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
18245 (clear_mem_size): New function.
18246 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
18247 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
18248 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
18249 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
18250 to clear the size.
18251 (nonoverlapping_memrefs_p): Likewise.
18252 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
18253 (expand_builtin_init_trampoline): Likewise.
18254 * calls.c (compute_argument_addresses): Likewise.
18255 * cfgcleanup.c (merge_memattrs): Likewise.
18256 * dce.c (find_call_stack_args): Likewise.
18257 * dse.c (record_store, scan_insn): Likewise.
18258 * dwarf2out.c (dw_sra_loc_expr): Likewise.
18259 * expr.c (emit_block_move_hints): Likewise.
18260 * function.c (assign_parm_find_stack_rtl): Likewise.
18261 * print-rtl.c (print_rtx): Likewise.
18262 * reload.c (find_reloads_subreg_address): Likewise.
18263 * rtlanal.c (may_trap_p_1): Likewise.
18264 * var-tracking.c (track_expr_p): Likewise.
18265 * varasm.c (assemble_trampoline_template): Likewise.
18266 * config/arm/arm.c (arm_print_operand): Likewise.
18267 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
18268 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
18269 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
18270 (expand_constant_setmem_prologue): Likewise.
18271 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
18272 * config/rs6000/rs6000.c (expand_block_move): Likewise.
18273 (adjacent_mem_locations): Likewise.
18274 * config/s390/s390.c (s390_expand_setmem): Likewise.
18275 (s390_expand_insv): Likewise.
18276 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
18277 (*extendqi<mode>2_short_displ): Likewise.
18278 * config/sh/sh.c (expand_block_move): Likewise.
18279 * config/sh/sh.md (extv, extzv): Likewise.
18280
18281 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18282
18283 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
18284 (mem_attrs_htab_eq): ...here.
18285 (find_mem_attrs): Replace with...
18286 (set_mem_attrs): ...this function. Take a mem_attrs structure
18287 rather than individual fields.
18288 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
18289 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
18290 (set_mem_size, change_address, adjust_address_1, offset_address)
18291 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
18292 Update accordingly.
18293
18294 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18295
18296 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
18297 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
18298 Provide a dummy definition of MEM_ADDR_SPACE for generators.
18299 (target_rtl): Add x_mode_mem_attrs.
18300 (mode_mem_attrs): New macro.
18301 (get_mem_attrs): New function.
18302 * emit-rtl.c (get_mem_attrs): Rename to...
18303 (find_mem_attrs): ...this.
18304 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
18305 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
18306 (set_mem_size, change_address, adjust_address_1, offset_address)
18307 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
18308 Update accordingly.
18309 (init_emit_regs): Initialize mode_mem_attrs.
18310
18311 2011-07-19 Richard Guenther <rguenther@suse.de>
18312
18313 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
18314 TRUTH_*_EXPR handling.
18315 * tree-ssa-operands.c (get_expr_operands): Likewise.
18316 * tree-ssa-pre.c (fully_constant_expression): Likewise.
18317 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
18318 Likewise.
18319 (is_and_or_or): Likewise.
18320 (is_norm_cond_subset_of): Likewise.
18321
18322 2011-07-19 Richard Guenther <rguenther@suse.de>
18323
18324 * tree.h (fold_build_pointer_plus_loc): New helper function.
18325 (fold_build_pointer_plus_hwi_loc): Likewise.
18326 (fold_build_pointer_plus): Define.
18327 (fold_build_pointer_plus_hwi): Likewise.
18328 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
18329 (fold_builtin_memory_op): Likewise.
18330 (fold_builtin_stpcpy): Likewise.
18331 (fold_builtin_memchr): Likewise.
18332 (fold_builtin_strstr): Likewise.
18333 (fold_builtin_strchr): Likewise.
18334 (fold_builtin_strrchr): Likewise.
18335 (fold_builtin_strpbrk): Likewise.
18336 (fold_builtin_strcat): Likewise.
18337 (expand_builtin_memory_chk): Likewise.
18338 (fold_builtin_memory_chk): Likewise.
18339 * c-typeck.c (build_unary_op): Likewise.
18340 * cgraphunit.c (thunk_adjust): Likewise.
18341 * fold-const.c (build_range_check): Likewise.
18342 (fold_binary_loc): Likewise.
18343 * omp-low.c (extract_omp_for_data): Likewise.
18344 (expand_omp_for_generic): Likewise.
18345 (expand_omp_for_static_nochunk): Likewise.
18346 (expand_omp_for_static_chunk): Likewise.
18347 * tree-affine.c (add_elt_to_tree): Likewise.
18348 * tree-data-ref.c (split_constant_offset_1): Likewise.
18349 * tree-loop-distribution.c (generate_memset_zero): Likewise.
18350 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
18351 * tree-predcom.c (ref_at_iteration): Likewise.
18352 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
18353 (add_to_parts): Likewise.
18354 (create_mem_ref): Likewise.
18355 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18356 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
18357 (number_of_iterations_le): Likewise.
18358 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
18359 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
18360 (vect_create_addr_base_for_vector_ref): Likewise.
18361 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
18362 (vect_create_cond_for_alias_checks): Likewise.
18363 * tree-vrp.c (extract_range_from_assert): Likewise.
18364 * config/alpha/alpha.c (alpha_va_start): Likewise.
18365 (alpha_gimplify_va_arg_1): Likewise.
18366 * config/i386/i386.c (ix86_va_start): Likewise.
18367 (ix86_gimplify_va_arg): Likewise.
18368 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18369 * config/mep/mep.c (mep_expand_va_start): Likewise.
18370 (mep_gimplify_va_arg_expr): Likewise.
18371 * config/mips/mips.c (mips_va_start): Likewise.
18372 (mips_gimplify_va_arg_expr): Likewise.
18373 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
18374 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
18375 (rs6000_gimplify_va_arg): Likewise.
18376 * config/s390/s390.c (s390_va_start): Likewise.
18377 (s390_gimplify_va_arg): Likewise.
18378 * config/sh/sh.c (sh_va_start): Likewise.
18379 (sh_gimplify_va_arg_expr): Likewise.
18380 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
18381 * config/spu/spu.c (spu_va_start): Likewise.
18382 (spu_gimplify_va_arg_expr): Likewise.
18383 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
18384 Likewise.
18385 (xstormy16_gimplify_va_arg_expr): Likewise.
18386 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
18387 (xtensa_gimplify_va_arg_expr): Likewise.
18388
18389 2011-07-19 Richard Guenther <rguenther@suse.de>
18390
18391 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
18392 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
18393 handling.
18394
18395 PR middle-end/18908
18396 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
18397 result of BIT_*_EXPR to bitfield precision.
18398
18399 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
18400
18401 PR tree-optimization/49742
18402 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
18403 as a potential write.
18404
18405 2011-07-19 Richard Guenther <rguenther@suse.de>
18406
18407 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
18408 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
18409 (forward_propagate_comparison): Simplify, remove obsolete code.
18410
18411 2011-07-19 Richard Guenther <rguenther@suse.de>
18412
18413 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
18414 BIT_XOR_EXPR, same as the RTL expander does.
18415 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
18416 (verify_gimple_assign_unary): Likewise.
18417 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
18418 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
18419 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
18420
18421 2011-07-19 Jakub Jelinek <jakub@redhat.com>
18422
18423 PR tree-optimization/49768
18424 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
18425 if offset is smaller than bitoffset, but offset+size is bigger
18426 than bitoffset.
18427
18428 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
18429
18430 PR tree-optimization/49771
18431 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
18432 zero step, set segment length to the size of the data-ref's type.
18433
18434 2011-07-18 Martin Jambor <mjambor@suse.cz>
18435
18436 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
18437 comments.
18438 (ipcp_values_pool): Declare.
18439 (ipcp_sources_pool): Likewise.
18440 (ipcp_lattice): Changed to forward declaration.
18441 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
18442 cannot_devirtualize.
18443 (ipa_node_params): New fields descriptors, lattices, known_vals,
18444 clone_for_all_contexts and node dead, removed fields params and
18445 count_scale.
18446 (ipa_set_param_count): Removed.
18447 (ipa_get_param_count): Made to work with descriptors vector.
18448 (ipa_get_param): Updated.
18449 (ipa_param_cannot_devirtualize_p): Removed.
18450 (ipa_param_types_vec_empty): Likewise.
18451 (ipa_set_param_used): New function.
18452 (ipa_get_param_used): Updated to use descriptors vector.
18453 (ipa_func_list): Removed.
18454 (ipa_init_func_list): Removed declaration.
18455 (ipa_push_func_to_list_1): Likewise.
18456 (ipa_pop_func_from_list): Likewise.
18457 (ipa_push_func_to_list): Removed.
18458 (ipa_lattice_from_jfunc): Remove declaration.
18459 (ipa_get_jf_pass_through_result): Declare.
18460 (ipa_get_jf_ancestor_result): Likewise.
18461 (ipa_value_from_jfunc): Likewise.
18462 (ipa_get_lattice): Update.
18463 (ipa_lat_is_single_const): New function.
18464 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
18465 (ipa_init_func_list): Likewise.
18466 (ipa_pop_func_from_list): Likewise.
18467 (ipa_get_param_decl_index): Fix coding style.
18468 (count_formal_params): Removed.
18469 (count_formal_params_1): Renamed to count_formal_params.
18470 (ipa_populate_param_decls): Update to use descriptors vector.
18471 (ipa_initialize_node_params): Likewise.
18472 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
18473 (ipa_analyze_params_uses): Likewise.
18474 (ipa_free_node_params_substructures): Likewise and free also lattices
18475 and known values.
18476 (duplicate_array): Removed.
18477 (ipa_edge_duplication_hook): Add the new edge to the list of edge
18478 clones.
18479 (ipa_node_duplication_hook): Update to use new lattices.
18480 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
18481 (ipa_free_all_structures_after_iinln): Likewise.
18482 (ipa_write_node_info): Update to use new lattices.
18483 (ipa_read_node_info): Likewise.
18484 (ipa_get_jf_pass_through_result): New function.
18485 (ipa_get_jf_ancestor_result): Likewise.
18486 (ipa_value_from_jfunc): Likewise.
18487 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
18488 * ipa-cp.c: Reimplemented.
18489 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
18490 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
18491 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
18492 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
18493 * doc/invoke.texi (devirt-type-list-size): Removed description.
18494 (ipa-cp-value-list-size): Added description.
18495
18496 2011-07-18 Richard Henderson <rth@redhat.com>
18497
18498 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
18499 before calling create_basic_block.
18500
18501 2011-07-18 Jakub Jelinek <jakub@redhat.com>
18502
18503 PR middle-end/49675
18504 * tree.c (build_common_builtin_nodes): Register
18505 __builtin_return_address, __cyg_profile_func_enter
18506 and __cyg_profile_func_exit.
18507
18508 2011-07-18 Richard Henderson <rth@redhat.com>
18509
18510 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
18511 (add_labels_and_missing_jumps): ... here.
18512 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
18513
18514 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
18515
18516 PR target/47744
18517 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
18518 of DImode hard registers in PLUS address chains.
18519
18520 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18521
18522 PR bootstrap/49769
18523 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
18524 (alpha*-*-freebsd*): Likewise.
18525 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
18526 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
18527 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
18528 crtprec80.o, crtfastmath.o to extra_parts for all targets.
18529 (ia64*-*-elf*): Remove extra_parts.
18530 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
18531 (sparc64-*-linux*): Likewise.
18532 (sparc64-*-freebsd*): Likewise.
18533
18534 Revert:
18535 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
18536 (ia64*-*-linux*): Likewise.
18537 (mips64*-*-linux*): Likewise.
18538 (mips*-*-linux*): Likewise.
18539
18540 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
18541
18542 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
18543
18544 2011-07-18 Richard Guenther <rguenther@suse.de>
18545
18546 * gimplify.c (gimplify_expr): Use input_location, not saved_location
18547 when building new trees.
18548
18549 2011-07-18 Richard Guenther <rguenther@suse.de>
18550
18551 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
18552 expansion result to bitfield precision if required.
18553
18554 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18555
18556 * config.gcc (i[3456x]86-*-netware*): Remove.
18557
18558 * gthr-nks.h: Remove.
18559 * configure.ac (enable_threads): Remove nks.
18560 * configure: Regenerate.
18561
18562 * config/i386/i386.c (ix86_encode_section_info): Remove netware
18563 reference.
18564 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
18565 <netware.h> reference.
18566
18567 * config/i386/netware-libgcc.c,
18568 gcc/config/i386/netware-libgcc.def,
18569 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
18570 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
18571 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
18572 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
18573
18574 * doc/extend.texi (Function Attributes,
18575 callee_pop_aggregate_return): Remove i?86-netware reference.
18576 * doc/install.texi (Configuration, --enable-threads): Remove nks.
18577
18578 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18579
18580 PR target/49746
18581 Revert:
18582 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18583
18584 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
18585 patterns.
18586
18587 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
18588
18589 PR middle-end/49732
18590 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
18591
18592 2011-07-16 Matthias Klose <doko@ubuntu.com>
18593
18594 * doc/install.texi: Document --enable-static-libjava.
18595
18596 2011-07-15 Richard Henderson <rth@redhat.com>
18597
18598 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
18599 Replace all three arguments by returning a VEC of edges.
18600 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
18601 pointers and counts.
18602 (fix_edges_for_rarely_executed_code): Merge ...
18603 (rest_of_handle_partition_blocks): ... into...
18604 (partition_hot_cold_basic_blocks): ... here. Return todo items if
18605 any work was performed.
18606 (pass_partition_blocks): Clear todo_flags_finish.
18607
18608 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
18609 Jakub Jelinek <jakub@redhat.com>
18610 Jonathan Wakely <jwakely.gcc@gmail.com>
18611
18612 PR libstdc++/49745
18613 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
18614 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
18615
18616 2011-07-15 Jason Merrill <jason@redhat.com>
18617
18618 PR testsuite/49741
18619 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
18620 rather than --tool_opts.
18621
18622 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
18623
18624 * doc/plugins.texi (Building GCC plugins): gengtype needs its
18625 corresponding gtype.state.
18626
18627 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18628
18629 PR target/49723
18630 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
18631
18632 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
18633
18634 PR target/48220
18635 * doc/md.texi (Standard Names): Document window_save.
18636 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
18637 expand_debug_expr and expand_debug_source_expr. If the target has
18638 a window_save instruction, adjust the ENTRY_VALUE_EXP.
18639 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
18640 SSA_NAME_VAR is a parameter.
18641 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
18642 * var-tracking.c (parm_reg_t): New type and associated vector type.
18643 (windowed_parm_regs): New variable.
18644 (adjust_insn): If the target has a window_save instruction and this
18645 is the instruction, make its effect on parameter registers explicit.
18646 (next_non_note_insn_var_location): New function.
18647 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
18648 (vt_add_function_parameter): If the target has a window_save insn,
18649 adjust the incoming RTL and record that in windowed_parm_regs.
18650 (vt_finalize): Free windowed_parm_regs.
18651
18652 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
18653
18654 * doc/invoke.texi (C6X Options): New section.
18655 * doc/md.texi (TI C6X family): New section.
18656 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
18657 tic6x-*-uclinux.
18658 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
18659 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
18660 Provide C6X definitions.
18661 * config/c6x/c6x.md: New file.
18662 * config/c6x/constraints.md: New file.
18663 * config/c6x/predicates.md: New file.
18664 * config/c6x/c6x-sched.md.in: New file.
18665 * config/c6x/c6x-sched.md: New file.
18666 * config/c6x/gensched.sh: New file.
18667 * config/c6x/c6x-mult.md.in: New file.
18668 * config/c6x/genmult.sh: New file.
18669 * config/c6x/c6x-mult.md: New file.
18670 * config/c6x/sync.md: New file.
18671 * config/c6x/c6x-protos.h: New file.
18672 * config/c6x/sfp-machine.h: New file.
18673 * config/c6x/c6x.c: New file.
18674 * config/c6x/c6x.h: New file.
18675 * config/c6x/crti.s: New file.
18676 * config/c6x/crtn.s: New file.
18677 * config/c6x/lib1funcs.asm: New file.
18678 * config/c6x/c6x-modes.def: New file.
18679 * config/c6x/genopt.sh: New file.
18680 * config/c6x/c6x.opt: New file.
18681 * config/c6x/c6x-tables.opt: New file.
18682 * config/c6x/c6x-opts.h: New file.
18683 * config/c6x/c6x-isas.def: New file.
18684 * config/c6x/elf.h: New file.
18685 * config/c6x/elf-common.h: New file.
18686 * config/c6x/uclinux-elf.h: New file.
18687 * config/c6x/t-c6x: New file.
18688 * config/c6x/t-c6x-elf: New file.
18689 * config/c6x/t-c6x-uclinux: New file.
18690 * config/c6x/t-c6x-softfp: New file.
18691 * config/c6x/gtd.c: New file.
18692 * config/c6x/gtf.c: New file.
18693 * config/c6x/ltd.c: New file.
18694 * config/c6x/ltf.c: New file.
18695 * config/c6x/ged.c: New file.
18696 * config/c6x/gef.c: New file.
18697 * config/c6x/led.c: New file.
18698 * config/c6x/lef.c: New file.
18699 * config/c6x/eqd.c: New file.
18700 * config/c6x/eqf.c: New file.
18701 * config/c6x/libgcc-c6xeabi.ver: New file.
18702
18703 Revert
18704 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
18705 PR rtl-optimization/11320
18706 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
18707 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
18708 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
18709 current_sched_info->compute_jump_reg_dependencies. Record which
18710 registers are used and which registers are set by the jump.
18711 Clear deps->reg_conditional_sets after a barrier.
18712 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
18713 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
18714 (init_deps): Initialize reg_conditional_sets.
18715 (free_deps): Clear reg_conditional_sets.
18716 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
18717 Mark registers live on entry of the fallthrough block and conditionally
18718 set as set by the jump. Mark registers live on entry of non-fallthrough
18719 blocks as used by the jump.
18720 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
18721 Mark new parameters as unused.
18722
18723 2011-07-14 Andrew Pinski <pinskia@gmail.com>
18724
18725 PR tree-opt/49309
18726 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
18727 Use fold_build2_loc instead of build2.
18728 Use the correct type for the new tree.
18729
18730 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18731
18732 PR rtl-optimization/11320
18733 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
18734 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
18735
18736 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
18737
18738 PR target/49487
18739 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
18740 of REG.
18741 (*rotw<mode>): Use const_int_operand for operand2.
18742 Use match_scatch for operand3.
18743 (*rotb<mode>): Ditto
18744 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
18745
18746 2011-07-14 Richard Guenther <rguenther@suse.de>
18747
18748 PR tree-optimization/49651
18749 * tree-ssa-structalias.c (get_constraint_for_1): Properly
18750 handle dereferences with subvariables.
18751
18752 2011-07-14 Richard Guenther <rguenther@suse.de>
18753
18754 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
18755 (fold_stmt_1): Do it here directly on gimple and as a first thing.
18756
18757 2011-07-14 Richard Guenther <rguenther@suse.de>
18758
18759 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
18760 not bool_var when folding bool_var != 1 or bool_var == 0.
18761
18762 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18763
18764 * haifa-sched.c (schedule_insns): Remove outdated comment.
18765 (schedule_block): When computing a known value for TODO_SPEC,
18766 just set it rather than using logical operations.
18767 (try_ready): Likewise. Use a local variable rather than a
18768 pointer to TODO_SPEC. Reorder an if statement to move the
18769 easy case to the then block.
18770 * sched-deps.c (dep_spec_p): New static function.
18771 (update_dep): Use it to decide whether to call
18772 change_spec_dep_to_hard.
18773 (get_back_and_forw_lists): Use it.
18774 (sd_resolve_dep): Likewise.
18775 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
18776 (haifa_note_mem_dep): Likewise.
18777 (check_dep): Likewise.
18778 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
18779 (sched_free_deps): Free in two passes.
18780
18781 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
18782
18783 PR middle-end/49736
18784 * expr.c (all_zeros_p): Undo bogus part of last change.
18785
18786 2011-07-14 Matthias Klose <doko@ubuntu.com>
18787
18788 * doc/extend.texi (optimize attribute): Fix typo.
18789
18790 2011-07-14 Richard Guenther <rguenther@suse.de>
18791
18792 * gimplify.c (gimplify_expr): Only do required conversions.
18793
18794 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
18795
18796 PR target/43746
18797 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
18798 i.e. use default_elf_select_section.
18799 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
18800 (READONLY_DATA_SECTION_ASM_OP): Remove.
18801 (TARGET_ASM_NAMED_SECTION): Move from here...
18802 * config/avr/avr.c: ...to here.
18803 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
18804 (avr_asm_named_section): Make static.
18805
18806 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18807
18808 PR bootstrap/49739
18809 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
18810 and crtfastmath.o for Linux/x86.
18811
18812 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18813
18814 * haifa-sched.c: Include "hashtab.h"
18815 (sched_no_dce): New global variable.
18816 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
18817 SHADOW_P): New macros.
18818 (last_clock_var, cycle_issued_insns): Move declarations.
18819 (must_backtrack): New static variable.
18820 (struct delay_pair): New structure.
18821 (delay_htab, delay_htab_i2): New static variables.
18822 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
18823 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
18824 functions.
18825 (dep_cost_1): If delay pairs exist, try to look up the insns and
18826 use the correct pair delay if we find them.
18827 (rank-for_schedule): Tweak priority for insns that must be scheduled
18828 soon to avoid backtracking.
18829 (queue_insn): Detect conditions which force backtracking.
18830 (ready_add): Likewise.
18831 (struct sched_block_state): Add member shadows_only_p.
18832 (struct haifa_save_data): New structure.
18833 (backtrack_queue): New static variable.
18834 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
18835 unschedule_insns_until, restore_last_backtrack_point,
18836 free_topmost_backtrack_point, free_backtrack_queue,
18837 estimate_insn_tick, estimate_shadow_tick): New functions.
18838 (prune_ready_list): New arg shadows_only_p. All callers changed.
18839 If true, remove everything that isn't SHADOW_P. Look up delay
18840 pairs and estimate ticks to avoid scheduling the first insn too early.
18841 (verify_shadows): New function.
18842 (schedule_block): Add machinery to enable backtracking.
18843 (sched_init): Take sched_no_dce into account when setting
18844 DF_LR_RUN_DCE.
18845 (free_delay_pairs): New function.
18846 (init_h_i_d): Initialize INSN_EXACT_TICK.
18847 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
18848 * sched-deps.c (sd_unresolve_dep): New function.
18849 * sched-int. (struct haifa_sched_info): New fields save_state
18850 and restore_state.
18851 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
18852 feeds_backtrack_insn and shadow_p.
18853 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
18854 (sched_no_dce): Declare variable.
18855 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
18856 sd_unresolve_dep): Declare functions.
18857 * modulo-sched.c (sms_sched_info): Clear the two new fields.
18858 * sched-rgn.c (rgn_const_sched_info): Likewise.
18859 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18860 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
18861 (ebb_sched_info): Add them for the two new fields.
18862 (add_deps_for_risky_insns): Call add_delay_dependencies.
18863
18864 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18865
18866 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
18867 Rename -mr11.
18868 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
18869 (rs6000_call_indirect_aix): Ditto.
18870 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
18871 (call_indirect_aix<ptrsize>_internal): Ditto.
18872 (call_indirect_aix<ptrsize>_nor11): Ditto.
18873 (call_indirect_aix<ptrsize>_internal2): Ditto.
18874 (call_value_indirect_aix<ptrsize>): Ditto.
18875 (call_value_indirect_aix<ptrsize>_internal): Ditto.
18876 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
18877 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
18878 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
18879
18880 2011-07-13 Jason Merrill <jason@redhat.com>
18881
18882 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
18883
18884 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18885
18886 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
18887 * config/spu/spu.md ("clrsb<mode>2"): New expander.
18888
18889 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
18890
18891 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
18892 * configure: Regenerate.
18893
18894 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18895
18896 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
18897 (asm_file_start): Remove.
18898 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
18899 free_bb_for_insn around code that modifies insns before
18900 restarting df analysis.
18901
18902 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18903
18904 PR target/49541
18905 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
18906 (LINK_SPEC): ... here.
18907
18908 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
18909
18910 * haifa-sched.c (struct sched_block_state): New.
18911 (schedule_block): Move some local variables into such a structure.
18912
18913 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18914
18915 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
18916 * config/i386/t-crtpc: Remove.
18917 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
18918 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
18919 tmake_file.
18920 (x86_64-*-darwin*): Likewise.
18921 (i[34567]86-*-linux*): Likewise.
18922 (x86_64-*-linux*): Likewise.
18923
18924 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
18925 Handle -mpc32, -mpc64, -mpc80.
18926
18927 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18928
18929 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
18930 * config/alpha/t-crtfm: Remove.
18931 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
18932 * config/i386/t-crtfm: Remove.
18933 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
18934 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
18935 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
18936 * config/sparc/t-crtfm: Remove.
18937
18938 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
18939 (alpha*-*-freebsd*): Likewise.
18940 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
18941 (x86_64-*-darwin*): Likewise.
18942 (i[34567]86-*-linux*): Likewise.
18943 (x86_64-*-linux*): Likewise.
18944 (x86_64-*-mingw*): Likewise.
18945 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
18946 (ia64*-*-freebsd*): Likewise.
18947 (ia64*-*-linux*): Likewise.
18948 (mips64*-*-linux*): Likewise.
18949 (mips*-*-linux*): Likewise.
18950 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
18951 (sparc64-*-linux*): Likewise.
18952 (sparc64-*-freebsd*): Likewise.
18953
18954 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18955
18956 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
18957 * config/darwin-crt3.c: Move to ../libgcc/config.
18958 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
18959 ($(T)crt3$(objext)): Remove.
18960 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
18961 ($(T)crt2$(objext)): Remove.
18962 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
18963 (powerpc64-*-darwin*): Likewise.
18964
18965 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
18966
18967 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
18968
18969 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
18970 (addsi_1_zext): This.
18971
18972 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
18973
18974 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
18975 * doc/tm.texi: Regenerate.
18976 * target.def (mergeable_rodata_prefix): New defhookpod.
18977 * varasm.c (mergeable_string_section, mergeable_constant_section):
18978 Use it. Allocate name with alloca.
18979
18980 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
18981
18982 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
18983
18984 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
18985
18986 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
18987 overlap check.
18988
18989 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
18990
18991 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
18992 (count_type_elements): Delete.
18993 (complete_ctor_at_level_p): Declare.
18994 * expr.c (flexible_array_member_p): New function, split out from...
18995 (count_type_elements): ...here. Make static. Replace allow_flexarr
18996 parameter with for_ctor_p. When for_ctor_p is true, return the
18997 number of elements that should appear in the top-level constructor,
18998 otherwise return an estimate of the number of scalars.
18999 (categorize_ctor_elements): Replace p_must_clear with p_complete.
19000 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
19001 (complete_ctor_at_level_p): New function, borrowing union logic
19002 from old categorize_ctor_elements_1.
19003 (mostly_zeros_p): Return true if the constructor is not complete.
19004 (all_zeros_p): Update call to categorize_ctor_elements.
19005 * gimplify.c (gimplify_init_constructor): Update call to
19006 categorize_ctor_elements. Don't call count_type_elements.
19007 Unconditionally prevent clearing for variable-sized types,
19008 otherwise rely on categorize_ctor_elements to detect
19009 incomplete initializers.
19010
19011 2011-07-13 Richard Guenther <rguenther@suse.de>
19012
19013 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
19014 the final type is integral.
19015
19016 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
19017
19018 * sched-int.h (struct _dep): Add member cost.
19019 (DEP_COST, UNKNOWN_DEP_COST): New macros.
19020 * sched-deps.c (init_dep_1): Initialize DEP_COST.
19021 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
19022 (sched_change_pattern): Reset it for dependent insns.
19023
19024 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19025
19026 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
19027 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
19028 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
19029 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
19030 (CRT0_S, MCRT0_S): Remove.
19031 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
19032 Remove.
19033 (s-crt0): Remove.
19034 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
19035
19036 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
19037
19038 * cse.c (insert_with_costs): Put semi-colon after empty loop body
19039 on the next line.
19040 * emit-rtl.c (push_to_sequence): Likewise.
19041 * haifa-sched.c (max_issue): Likewise.
19042 * matrix-reorg.c (add_allocation_site): Likewise.
19043 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
19044 * reload.c (alternative_allows_const_pool_ref): Likewise.
19045 * sched-rgn.c (rgn_add_block): Likewise.
19046 (rgn_fix_recovery_cfg): Likewise.
19047 * tree.c (attribute_list_contained): Likewise.
19048
19049 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
19050
19051 * config/i386/i386.c: Tidy processor feature bitmasks.
19052 (m_P4_NOCONA): New.
19053
19054 2011-07-12 Andrew Pinski <pinskia@gmail.com>
19055
19056 PR rtl-opt/49474
19057 * cprop.c (find_implicit_sets): Correct the condition.
19058
19059 2011-07-12 Richard Henderson <rth@redhat.com>
19060
19061 PR target/49713
19062 * dwarf2out.h (dwarf_frame_regnum): Remove.
19063 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
19064 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
19065 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
19066 (execute_dwarf2_frame): Initialize them.
19067 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
19068 users of the macros with the variables.
19069 (expand_builtin_dwarf_sp_column): Revert last change.
19070 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
19071 result of DWARF_FRAME_REGNUM into a local variable.
19072
19073 2011-07-12 Richard Henderson <rth@redhat.com>
19074
19075 PR target/49714
19076 * config/i386/i386.c (x86_output_mi_thunk): Use
19077 machopic_indirect_call_target instead of machopic_indirection_name
19078 directly.
19079
19080 2011-07-12 Laurent GUERBY <laurent@guerby.net>
19081 Eric Botcazou <ebotcazou@adacore.com>
19082
19083 * prefix.h: Wrap up in extern "C" block.
19084
19085 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
19086
19087 AMD bdver2 Enablement
19088 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
19089 (case ${target}): Add bdver2.
19090 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19091 -march=native recognize bdver2 processors.
19092 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19093 bdver2 def_and_undef
19094 * config/i386/i386.c (struct processor_costs bdver2_cost): New
19095 bdver2 cost table.
19096 (m_BDVER2): New definition.
19097 (m_AMD_MULTIPLE): Includes m_BDVER2.
19098 (initial_ix86_tune_features): Add bdver2 tuning.
19099 (processor_target_table): Add bdver2 entry.
19100 (static const char *const cpu_names): Add bdver2 entry.
19101 (ix86_option_override_internal): Add bdver2 instruction sets.
19102 (ix86_issue_rate): Add bdver2.
19103 (ix86_adjust_cost): Add bdver2.
19104 (has_dispatch): Add bdver2.
19105 * config/i386/i386.h (TARGET_BDVER2): New definition.
19106 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
19107 (enum processor_type): Add PROCESSOR_BDVER2.
19108 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
19109 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
19110 description.
19111
19112 2011-07-12 Richard Henderson <rth@redhat.com>
19113
19114 PR target/49714
19115 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
19116 destination address in memory on some paths.
19117
19118 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
19119
19120 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
19121 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
19122 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
19123 * function.c (locate_and_pad_parm): Take it into account.
19124 * target.def (function_arg_round_boundary): New hook.
19125 * targhooks.c (default_function_arg_round_boundary): New function.
19126 * targhooks.h (default_function_arg_round_boundary): Declare.
19127 * doc/tm.texi: Regenerate.
19128
19129 2011-07-12 Richard Guenther <rguenther@suse.de>
19130
19131 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
19132 Do not perform no-op changes.
19133
19134 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
19135
19136 * config/arm/predicates.md (neon_struct_operand): Make a normal
19137 predicate.
19138 (neon_struct_or_register_operand): New predicate.
19139 * config/arm/neon.md (movmisalign<mode>): Replace predicates
19140 with neon_struct_or_register_operand.
19141 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
19142 neon_struct_operand instead of memory_operand.
19143
19144 2011-07-12 Martin Jambor <mjambor@suse.cz>
19145
19146 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
19147 * cgraph.c (cgraph_get_node_or_alias): Removed.
19148 (change_decl_assembler_name): Changed all calls to
19149 cgraph_get_node_or_alias to a call to cgraph_get_node.
19150 (cgraph_make_decl_local): Likewise.
19151 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
19152 * varasm.c (default_binds_local_p_1): Likewise.
19153 (decl_binds_to_current_def_p): Likewise.
19154
19155 2011-07-12 Jakub Jelinek <jakub@redhat.com>
19156
19157 PR tree-optimization/49712
19158 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
19159
19160 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
19161
19162 * genautomata.c (add_arc): Return void. All callers changed.
19163 (make_automaton): Remove dead code.
19164
19165 2011-07-11 Richard Henderson <rth@redhat.com>
19166
19167 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
19168 (DW_FRAME_POINTER_REGNUM): New.
19169 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
19170 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
19171 (dwf_regno): New.
19172 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
19173 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
19174 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
19175 Use it.
19176 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
19177 * dwarf2out.h (dwarf_frame_regnum): New.
19178 (struct cfa_loc): Document the domain of the reg member.
19179
19180 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
19181
19182 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
19183 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
19184
19185 2011-07-11 Jakub Jelinek <jakub@redhat.com>
19186
19187 PR debug/49676
19188 * dwarf2out.c (int_shift_loc_descriptor): New function.
19189 (int_loc_descriptor): If shorter, emit i as
19190 (i >> shift), shift, DW_OP_shl for suitable shift value.
19191 Similarly, try to optimize large negative values using
19192 DW_OP_neg of a positive value if shorter.
19193 (size_of_int_shift_loc_descriptor): New function.
19194 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
19195 changes.
19196 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
19197 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
19198 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
19199 is shorter.
19200 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
19201 addend as added DW_OP_plus if it is shorter.
19202
19203 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19204
19205 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
19206 (DTORS_SECTION_ASM_OP): Define.
19207
19208 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19209
19210 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
19211 * config/t-dfprules: Move to ../libgcc/config.
19212 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
19213 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
19214 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
19215 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
19216 Likewise.
19217 (i[34567]86-*-cygwin*): Likewise.
19218 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
19219 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
19220 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
19221 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
19222 D64PBIT_FUNCS, D128PBIT_FUNCS.
19223
19224 2011-07-11 Richard Guenther <rguenther@suse.de>
19225
19226 * tree-vrp.c (simplify_conversion_using_ranges): Manually
19227 translate the source value-range through the conversion chain.
19228
19229 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
19230
19231 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
19232
19233 2011-07-11 Arthur Loiret <aloiret@debian.org>
19234
19235 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
19236 a bi-arch compiler defaulting to 31-bit. In this case:
19237 (tmake_file): Add s390/t-linux64.
19238 * doc/install.texi: Add s390-linux to the list of targets supporting
19239 --enable-targets=all.
19240
19241 2011-07-11 Arthur Loiret <aloiret@debian.org>
19242 Matthias Klose <doko@debian.org>
19243
19244 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
19245 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
19246 (tm_file): Add mips/linux64.h.
19247 (tmake_file): Add mips/t-linux64.
19248 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
19249 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
19250 instead of hardcoded mabi=n32.
19251 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
19252 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
19253 convention.
19254
19255 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19256
19257 * passes.c (init_optimization_passes): Add invariant motion pass
19258 after induction variable optimization.
19259
19260 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
19261
19262 PR target/39633
19263 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
19264 offsets 1..5 set cc0 in a usable way.
19265
19266 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
19267
19268 * tree.h (call_expr_arg): Remove.
19269 (call_expr_argp): Likewise.
19270
19271 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
19272
19273 * config/sparc/sparc.md (save_register_window_1): Rename to...
19274 (window_save): ...this.
19275 * config/sparc/sparc.c (emit_save_register_window): Rename to...
19276 (emit_window_save): ...this.
19277 (sparc_expand_prologue): Adjust to above renaming.
19278
19279 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
19280
19281 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
19282 of movabs for x32.
19283
19284 2011-07-10 Richard Henderson <rth@redhat.com>
19285
19286 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
19287 run final, instead of emitting text directly.
19288
19289 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
19290
19291 * config/i386/i386.c (ix86_option_override_internal): Turn on
19292 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
19293 small PIC models for TARGET_X32.
19294
19295 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
19296
19297 PR target/49684
19298 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
19299 $(LIBGCC2_CFLAGS).
19300
19301 PR bootstrap/49680
19302 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
19303 stray notes and debug insns by using prev_nonnote_nondebug_insn
19304 instead of PREV_INSN.
19305
19306 2011-07-09 Richard Henderson <rth@redhat.com>
19307
19308 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
19309 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
19310 * dwarf2out.c: ... here.
19311 (output_all_cfis): Remove.
19312 (dwarf2out_switch_text_section): Use output_cfis directly.
19313 (size_of_locs): Export.
19314 (output_loc_sequence, output_loc_sequence_raw): Export.
19315 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
19316 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
19317 output_cfa_loc_raw): Move to ...
19318 * dwarfcfi.c: ... here.
19319 * dwarf2out.h: Update decls.
19320
19321 2011-07-09 Richard Henderson <rth@redhat.com>
19322
19323 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
19324 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
19325 * dwarf2cfi.c: ... here.
19326 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
19327 (DWARF_ROUND, DWARF_CIE_ID): Remove.
19328 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
19329 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
19330 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
19331
19332 2011-07-09 Richard Henderson <rth@redhat.com>
19333
19334 * dwarf2cfi.c (cie_return_save): New.
19335 (queue_reg_save): Use compare_reg_or_pc.
19336 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
19337 (dwarf2out_frame_debug_expr): Likewise.
19338 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
19339 (initial_return_save): Likewise.
19340 (execute_dwarf2_frame): Save and restore initial return save from
19341 the cie to the fde.
19342 * config/mips/mips.c (mips_frame_set): Remove special case for
19343 DWARF_FRAME_RETURN_COLUMN.
19344
19345 2011-07-09 Richard Henderson <rth@redhat.com>
19346
19347 * dwarf2cfi.c (lookup_cfa): Remove.
19348 (execute_dwarf2_frame): Assert queues are empty on entry.
19349 Setup initial cfa directly, not via lookup_cfa.
19350 Don't clear args_size state here.
19351
19352 2011-07-09 Richard Henderson <rth@redhat.com>
19353
19354 * dwarf2cfi.c (add_cfi_vec): New.
19355 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
19356 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
19357 (execute_dwarf2_frame): Set add_cfi_vec.
19358
19359 2011-07-09 Richard Henderson <rth@redhat.com>
19360
19361 * defaults.h (ASM_COMMENT_START): Move here...
19362 * dwarf2asm.c: ... from here.
19363 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
19364 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
19365 * varasm.c: Likewise.
19366
19367 2011-07-09 Richard Henderson <rth@redhat.com>
19368
19369 PR debug/49686
19370 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
19371 (create_cfi_notes): ... do it here instead.
19372
19373 2011-07-09 Jakub Jelinek <jakub@redhat.com>
19374
19375 PR debug/49676
19376 * dwarf2out.c (size_of_int_loc_descriptor): New function.
19377 (address_of_int_loc_descriptor): Use it.
19378 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
19379
19380 2011-07-09 Richard Henderson <rth@redhat.com>
19381
19382 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
19383 (prologue, epilogue): New.
19384 (return, *rts): New.
19385 (blockage, setd, seti): New.
19386 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
19387 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
19388 (pdp11_saved_regno): New.
19389 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
19390 generate rtl instead of text.
19391 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
19392 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
19393 * config/pdp11/pdp11-protos.h: Update.
19394
19395 2011-07-09 Richard Henderson <rth@redhat.com>
19396
19397 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
19398 try to insert an rtl prologue here.
19399 (rs6000_output_function_epilogue): Similarly.
19400 * config/rs6000/rs6000.md (prologue): Emit a barrier to
19401 satisfy !TARGET_SCHED_PROLOG.
19402 (epilogue, sibcall_epilogue): Likewise.
19403
19404 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
19405
19406 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
19407 (FP_REG_P): Delete.
19408 (IN_OR_GLOBAL_P): Likewise.
19409
19410 2011-07-08 Jason Merrill <jason@redhat.com>
19411
19412 PR c++/45437
19413 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
19414 compound assignment.
19415
19416 * cgraph.c (cgraph_add_to_same_comdat_group): New.
19417 * cgraph.h: Declare it.
19418 * ipa.c (function_and_variable_visibility): Make sure thunks
19419 have the right visibility.
19420
19421 2011-07-08 Richard Henderson <rth@redhat.com>
19422
19423 PR bootstrap/49680
19424 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
19425 any tablejump vector.
19426
19427 PR bootstrap/49680
19428 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
19429 end of the prologue.
19430
19431 2011-07-08 Jakub Jelinek <jakub@redhat.com>
19432
19433 PR target/49621
19434 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
19435 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
19436 * config/rs6000/vector.md (vector_select_<mode>,
19437 vector_select_<mode>_uns): Change second operand of NE to
19438 CONST0_RTX (<MODE>mode) instead of const0_rtx.
19439 * config/rs6000/altivec.md (*altivec_vsel<mode>,
19440 *altivec_vsel<mode>_uns): Expect second operand of NE to be
19441 zero_constant of the corresponding vector mode.
19442 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
19443 Likewise.
19444
19445 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
19446
19447 * graphite-dependences.c (build_alias_set_powerset): Remove
19448 continue from loop, add one more assert.
19449
19450 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
19451
19452 PR target/46779
19453 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
19454 In particular, allow 8-bit values in r28 and r29.
19455 (avr_hard_regno_scratch_ok): Disallow any register that might be
19456 part of the frame pointer.
19457 (avr_hard_regno_rename_ok): Same.
19458 (avr_legitimate_address_p): Don't allow SUBREGs.
19459
19460 2011-07-08 Julian Brown <julian@codesourcery.com>
19461
19462 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
19463 big-endian mode.
19464 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
19465 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
19466 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
19467 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
19468 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
19469 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
19470 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
19471 registers in big-endian mode.
19472
19473 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
19474
19475 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
19476 in terms of another.
19477 (write_attr_value): Write a cast if necessary.
19478
19479 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
19480 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
19481 (REG_WORDS_BIG_ENDIAN): Document.
19482 * doc/tm.texi: Regenerate.
19483 * reload.c (operands_match_p): Take it into account.
19484 (reload_adjust_reg_for_mode): Likewise.
19485 * rtlanal.c (subreg_get_info): Likewise.
19486
19487 2011-07-08 Richard Guenther <rguenther@suse.de>
19488
19489 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
19490 folding.
19491
19492 2011-07-08 Kai Tietz <ktietz@redhat.com>
19493
19494 * fold-const.c (fold_truth_andor): Factored out truth_andor
19495 label from fold_binary as function.
19496 (fold_binary_loc): Replace truth_andor lable
19497 by function fold_truth_andor.
19498
19499 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
19500
19501 PR middle-end/49519
19502 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
19503 check if address is stored in register. If so - give up.
19504 (check_sibcall_argument_overlap_1): Do not perform check of
19505 overlapping when it is call to address.
19506
19507 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
19508
19509 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
19510 of magic '31'.
19511
19512 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
19513
19514 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
19515 GET_MODE_BITSIZE where appropriate.
19516 (widen_leading, expand_parity, expand_ctz, expand_ffs,
19517 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
19518 expand_float, expand_fix): Likewise.
19519 * expr.c (convert_move, convert_modes, expand_expr_real_2,
19520 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
19521 * stor-layout.c (get_mode_bounds): Likewise.
19522 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
19523 Likewise.
19524 * convert.c (convert_to_integer): Likewise.
19525 * expmed.c (expand_shift_1): Likewise.
19526
19527 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
19528 a bitsize.
19529
19530 * optabs.c (expand_binop): Tighten conditions for doubleword
19531 expansions.
19532 (widen_bswap): Assert that mode bitsize and precision are the same.
19533 * stor-layout.c (get_best_mode): Skip modes that have lower
19534 precision than bitsize.
19535 * recog.c (simplify_while_replacing): Assert that bitsize and
19536 precision are the same.
19537
19538 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19539
19540 * Makefile.in (LIBGCOV): Remove.
19541 (libgcc.mvars): Remove LIBGCOV.
19542 * libgov.c: Move to ../libgcc.
19543
19544 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19545
19546 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
19547
19548 2011-07-08 Martin Jambor <mjambor@suse.cz>
19549
19550 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
19551 is too big for total scalarization.
19552
19553 2011-07-07 Richard Henderson <rth@redhat.com>
19554
19555 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
19556 (DBX_DEBUGGING_INFO): Undef.
19557
19558 2011-07-07 Richard Henderson <rth@redhat.com>
19559
19560 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
19561 Handle some opcodes specially for debugging.
19562 * print-rtl.c: Include dwarf2out.h
19563 (print_rtx): Handle NOTE_INSN_CFI.
19564 * Makefile.in (print-rtl.o): Update.
19565
19566 2011-07-07 Richard Henderson <rth@redhat.com>
19567
19568 * tree-pass.h (pass_dwarf2_frame): Declare.
19569 * passes.c (init_optimization_passes): Add it.
19570 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
19571 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
19572 make static, do not call add_cfis_to_fde.
19573 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
19574 dwarf2out_frame_init): Merge into...
19575 (execute_dwarf2_frame): ... here. New function.
19576 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
19577 saved_do_cfi_asm to a tri-state variable.
19578 (gate_dwarf2_frame, pass_dwarf2_frame): New.
19579 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
19580 if it has yet to be done. Don't call dwarf2cfi_function_init.
19581 * dwarf2out.h, debug.h: Update decls.
19582 * final.c (final_start_function): Don't call
19583 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
19584 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
19585 * toplev.c (lang_dependent_init): Likewise.
19586
19587 2011-07-07 Richard Henderson <rth@redhat.com>
19588
19589 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
19590 FDE_TABLE_INCREMENT): Replace with...
19591 (fde_vec): ... this, a new vector.
19592 (current_fde): Remove. Replace all users with cfun->fde.
19593 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
19594 (size_of_aranges, dwarf2out_finish): Likewise.
19595 (dwarf2out_alloc_current_fde): Break out from ...
19596 (dwarf2out_begin_prologue): ... here.
19597 (dwarf2out_frame_init): Remove.
19598 * dwarf2cfi.c: Update all users of current_fde.
19599 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
19600 * dwarf2out.h: Update decls.
19601 (dw_fde_node): Add fde_index member.
19602 * function.h (struct function): Add fde member.
19603
19604 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19605 Richard Henderson <rth@redhat.com>
19606
19607 * dwarf2cfi.c (add_cfi): Remove.
19608 (dwarf2out_cfi_label): Remove force argument. Only generate the
19609 label name.
19610 (add_fde_cfi): Simplify the different code paths.
19611 (add_cie_cfi): New.
19612 (old_cfa, old_cfa_remember): New.
19613 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
19614 (last_reg_save_label): Remove.
19615 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
19616 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
19617 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
19618 dwarf2out_frame_debug_cfa_expression,
19619 dwarf2out_frame_debug_cfa_restore,
19620 dwarf2out_frame_debug_cfa_window_save,
19621 dwarf2out_frame_debug_expr): Remove label parameter.
19622 (cfi_label_required_p, add_cfis_to_fde): New.
19623 (dwarf2out_frame_debug_after_prologue): New.
19624 (dwarf2cfi_frame_init): Initialize old_cfa.
19625 (dwarf2out_frame_debug_restore_state): Likewise.
19626 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
19627 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
19628 * final.c (final_start_function): Call
19629 dwarf2out_frame_debug_after_prologue.
19630
19631 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19632 Richard Henderson <rth@redhat.com>
19633
19634 * dwarf2cfi.c (cfi_insn): New.
19635 (dwarf2out_cfi_label): Don't emit cfi label here.
19636 (add_fde_cfi): Create a NOTE_INSN_CFI.
19637 (dwarf2out_frame_debug): Setup cfi_insn.
19638 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
19639 (dwarf2out_cfi_begin_epilogue): Make static.
19640 (dwarf2out_frame_debug_restore_state): Make static.
19641 * dwarf2out.c (output_cfi_directive): Make static.
19642 (dwarf2out_emit_cfi): New.
19643 * dwarf2out.h: Update.
19644 * final.c (final): Remove CFI notes.
19645 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
19646 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
19647 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
19648 * insn-notes.def (NOTE_INSN_CFI): New.
19649 (NOTE_INSN_CFI_LABEL): New.
19650 * rtl.h (union rtunion_def): Add rt_cfi member.
19651 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
19652
19653 2011-07-07 Richard Henderson <rth@redhat.com>
19654
19655 * dwarf2cfi.c: New file.
19656 * Makefile.in (OBJS): Add it.
19657 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
19658 * gengtype.c (open_base_files): Include dwarf2out.h.
19659 * coretypes.h (enum var_init_status): Move from ...
19660 * rtl.h: ... here.
19661 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
19662 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
19663 expand_builtin_dwarf_sp_column, init_return_column_size,
19664 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
19665 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
19666 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
19667 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
19668 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
19669 compute_barrier_args_size, dwarf2out_args_size,
19670 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
19671 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
19672 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
19673 queue_reg_save, dwarf2out_flush_queued_reg_saves,
19674 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
19675 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
19676 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
19677 dwarf2out_frame_debug_cfa_expression,
19678 dwarf2out_frame_debug_cfa_restore,
19679 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
19680 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
19681 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
19682 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
19683 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
19684 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
19685 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
19686 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
19687 dw_loc_descr_node): Move to dwarf2out.h.
19688 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
19689 mem_loc_descriptor): Export.
19690 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
19691 (dwarf2out_frame_init): Extract CIE generation code to
19692 dwarf2cfi_frame_init.
19693
19694 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
19695
19696 PR target/49660
19697 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
19698 MASK_V8PLUS, remove commented out flag and reorder.
19699
19700 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19701
19702 PR c/49644
19703 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
19704 one non-complex and one complex argument, call c_save_expr on both
19705 operands.
19706
19707 2011-07-07 Martin Jambor <mjambor@suse.cz>
19708
19709 PR middle-end/49495
19710 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
19711 (verify_cgraph_node): Some functinality moved to
19712 verify_edge_corresponds_to_fndecl, call it.
19713
19714 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19715
19716 * config.gcc (*local*): Remove.
19717 * doc/install-old.texi: Don't mention local configurations.
19718
19719 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19720
19721 PR debug/49522
19722 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
19723 referencing debug insns that have been reset.
19724 (dead_debug_insert_before): Don't assert reg is non-NULL,
19725 instead return immediately if it is NULL.
19726
19727 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19728
19729 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
19730
19731 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19732
19733 * hw-doloop.c: New file.
19734 * hw-doloop.h: New file.
19735 * Makefile.in (OBJS): Add hw-doloop.o.
19736 (hw-doloop.o): New rule.
19737 ($(obj_out_file)): Add hw-doloop.h dependency.
19738 * config/bfin/bfin.c: Include "hw-doloop.h".
19739 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
19740 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
19741 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
19742 type changed to hwloop_info. Return bool, true if the loop was
19743 successfully optimized. Remove code that was moved to
19744 hw-doloop.c, and adjust other parts.
19745 (hwloop_fail): New static function, containing parts that used
19746 to be in bfin_optimize_loop.
19747 (bfin_discover_loop, bfin_discover_loops, free_loops,
19748 bfin_reorder_loops): Remove.
19749 (hwloop_pattern_reg): New static function.
19750 (bfin_doloop_hooks): New variable.
19751 (bfin_reorg_loops): Remove most code, call reorg_loops.
19752 * config/bfin/bfin.md (doloop_end splitter): Also enable if
19753 loop counter is a memory_operand.
19754
19755 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
19756
19757 * config.gcc: Support --with-multilib-list for x86 Linux targets.
19758
19759 * configure.ac: Mention x86-64 for --with-multilib-list.
19760 * configure: Regenerated.
19761
19762 * config/i386/gnu-user64.h (SPEC_64): Support x32.
19763 (SPEC_32): Likewise.
19764 (ASM_SPEC): Likewise.
19765 (LINK_SPEC): Likewise.
19766 (TARGET_THREAD_SSP_OFFSET): Likewise.
19767 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
19768 (SPEC_X32): New.
19769
19770 * config/i386/i386.h (TARGET_X32): New.
19771 (TARGET_LP64): New.
19772 (LONG_TYPE_SIZE): Likewise.
19773 (POINTER_SIZE): Likewise.
19774 (POINTERS_EXTEND_UNSIGNED): Likewise.
19775 (OPT_ARCH64): Support x32.
19776 (OPT_ARCH32): Likewise.
19777
19778 * config/i386/i386.opt (mx32): New.
19779
19780 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
19781 (GLIBC_DYNAMIC_LINKERX32): Likewise.
19782 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
19783 (GLIBC_DYNAMIC_LINKERX32): Likewise.
19784
19785 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
19786 (BIONIC_DYNAMIC_LINKERX32): Likewise.
19787 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
19788
19789 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
19790
19791 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
19792
19793 * doc/invoke.texi: Document -mx32.
19794
19795 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
19796
19797 * doc/invoke.texi (mwords-little-endian): Deprecate.
19798 * config/arm/arm.opt (mwords-little-endian): Likewise.
19799 * config/arm/arm.c (arm_option_override): Warn about the deprecation
19800 of -mwords-little-endian.
19801
19802 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
19803
19804 * reload1.c (choose_reload_regs): Use mode sizes to check whether
19805 an old reload register completely defines the required value.
19806
19807 2011-07-07 Richard Guenther <rguenther@suse.de>
19808
19809 * fold-const.c (fold_unary_loc): Do not strip sign-changes
19810 for NEGATE_EXPR.
19811
19812 2011-07-07 Richard Guenther <rguenther@suse.de>
19813
19814 * tree-vrp.c (simplify_conversion_using_ranges): New function.
19815 (simplify_stmt_using_ranges): Call it.
19816
19817 2011-07-07 Kai Tietz <ktietz@redhat.com>
19818
19819 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
19820 (lookup_logical_inverted_value): Likewise.
19821 (simplify_bitwise_binary_1): Likewise.
19822 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
19823
19824 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19825
19826 * gcc.c (%[Spec]): Don't document.
19827 (struct spec_list): Update comment.
19828 (do_spec_1): Don't handle %[Spec].
19829 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
19830
19831 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19832
19833 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
19834 default based on TARGET_ASM_NAMED_SECTION.
19835 * common/common-target.def (have_named_sections): Default to true.
19836 * common/config/default-common.c: Don't include tm.h.
19837 * common/config/picochip/picochip-common.c
19838 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
19839 * common/config/m32c/m32c-common.c: Remove.
19840 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
19841 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19842 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19843 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19844 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19845 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19846 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19847
19848 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19849
19850 PR middle-end/49640
19851 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
19852 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19853
19854 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19855
19856 PR libmudflap/49550
19857 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
19858
19859 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19860
19861 PR target/39150
19862 * configure.ac (gcc_cv_as_hidden): Also accept
19863 x86_64-*-solaris2.1[0-9]*.
19864 (gcc_cv_as_cfi_directive): Likewise.
19865 (gcc_cv_as_comdat_group_group): Likewise.
19866 (set_have_as_tls): Likewise.
19867 * configure: Regenerate.
19868 * config.gcc (i[34567]86-*-solaris2*): Also handle
19869 x86_64-*-solaris2.1[0-9]*.
19870 * config.host (i[34567]86-*-solaris2*): Likewise.
19871 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19872 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
19873 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
19874 (TARGET_LD_EMULATION): Use it.
19875 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
19876 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
19877 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
19878 (ASM_CPU64_DEFAULT_SPEC): Define.
19879 (ASM_CPU_SPEC): Use %(asm_cpu_default).
19880 (ASM_SPEC): Redefine.
19881 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
19882 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
19883 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
19884 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
19885 configuration.
19886 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
19887
19888 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19889
19890 * config/sol2.h (ASM_SPEC): Split into ...
19891 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
19892 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
19893 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
19894 (ASM_SPEC): Use ASM_SPEC_BASE.
19895 * config/sparc/sol2.h (ASM_SPEC): Redefine.
19896
19897 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
19898
19899 * config/avr/avr.md (*reload_insi): Change predicate #1 to
19900 const_int_operand. Ditto for peep2 producing this insn.
19901 Add argument to output_reload_insisf call.
19902 (*movsi,*movsf): Add argument to output_movsisf call.
19903 (*reload_insf): New insn and new peep2 to produce it.
19904 * config/avr/avr-protos.h (output_movsisf): Change prototype.
19905 (output_reload_insisf): Change prototype.
19906 * config/avr/avr.c (avr_asm_len): New function.
19907 (output_reload_insisf): Rewrite.
19908 (output_movsisf): Change prototype. output_reload_insisf for
19909 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
19910 (adjust_insn_length): Add argument to output_movsisf and
19911 output_reload_insisf call.
19912
19913 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19914
19915 * emit-rtl.c (paradoxical_subreg_p): New function.
19916 * rtl.h (paradoxical_subreg_p): Declare.
19917 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
19918 apply_distributive_law, simplify_comparison, simplify_set): Use it.
19919 * cse.c (record_jump_cond, cse_insn): Likewise.
19920 * expr.c (force_operand): Likewise.
19921 * rtlanal.c (num_sign_bit_copies1): Likewise.
19922 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
19923 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
19924 (push_reload): Use precision to check for paradoxical subregs.
19925 * expmed.c (extract_bit_field_1): Likewise.
19926
19927 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
19928 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
19929 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
19930 simplify_set, simplify_logical, expand_compound_operation,
19931 make_extraction, force_to_mode, if_then_else_cond, extended_count,
19932 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
19933 record_value_for_reg): Likewise.
19934 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
19935 * simplify-rtx. c (simplify_unary_operation_1,
19936 simplify_binary_operation_1, simplify_const_relational_operation):
19937 Likewise.
19938
19939 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
19940 instead of GET_MODE_BITSIZE where appropriate.
19941 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
19942 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
19943 init_num_sign_bit_copies_in_rep): Likewise.
19944 * cse.c (fold_rtx, cse_insn): Likewise.
19945 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
19946 * simplify-rtx.c (simplify_unary_operation_1,
19947 simplify_const_unary_operation, simplify_binary_operation_1,
19948 simplify_const_binary_operation, simplify_ternary_operation,
19949 simplify_const_relational_operation, simplify_subreg): Likewise.
19950 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
19951 simplify_if_then_else, simplify_set, expand_compound_operation,
19952 expand_field_assignment, make_extraction, if_then_else_cond,
19953 make_compound_operation, force_to_mode, make_field_assignment,
19954 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
19955 extended_count, try_widen_shift_mode, simplify_shift_const_1,
19956 simplify_comparison, record_promoted_value, simplify_compare_const,
19957 record_dead_and_set_regs_1): Likewise.
19958
19959 Revert:
19960 * simplify-rtx.c (simplify_const_binary_operation): Use the
19961 shift_truncation_mask hook instead of performing modulo by width.
19962 Compare against mode precision, not bitsize.
19963 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
19964 Use shift_truncation_mask instead of constructing the value manually.
19965
19966 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19967
19968 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
19969 declaration.
19970 (rs6000_save_toc_in_prologue_p): Ditto.
19971
19972 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
19973 up the static chain (r11) during indirect function calls.
19974 (-msave-toc-indirect): New undocumented debug switch.
19975
19976 * config/rs6000/rs6000.c (struct machine_function): Add
19977 save_toc_in_prologue field to note whether the prologue needs to
19978 save the TOC value in the reserved stack location.
19979 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
19980 to save the TOC in the prologue, do so.
19981 (rs6000_trampoline_init): Don't allow creating AIX style
19982 trampolines if -mno-r11 is in effect.
19983 (rs6000_call_indirect_aix): New function to create AIX style
19984 indirect calls, adding support for -mno-r11 to suppress loading
19985 the static chain, and saving the TOC in the prologue instead of
19986 the call body.
19987 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
19988 TOC in the prologue.
19989
19990 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
19991 register numbers.
19992 (TOC_REGNUM): Ditto.
19993 (STATIC_CHAIN_REGNUM): Ditto.
19994 (ARG_POINTER_REGNUM): Ditto.
19995 (SFP_REGNO): Delete, unused.
19996 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
19997 function descriptor offsets.
19998 (TOC_SAVE_OFFSET_64BIT): Ditto.
19999 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
20000 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
20001 (AIX_FUNC_DESC_SC_32BIT): Ditto.
20002 (AIX_FUNC_DESC_SC_64BIT): Ditto.
20003 (ptrload): New mode attribute for the appropriate load of a pointer.
20004 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
20005 (call_indirect_aix64): Ditto.
20006 (call_value_indirect_aix32): Ditto.
20007 (call_value_indirect_aix64): Ditto.
20008 (call_indirect_nonlocal_aix32_internal): Ditto.
20009 (call_indirect_nonlocal_aix32): Ditto.
20010 (call_indirect_nonlocal_aix64_internal): Ditto.
20011 (call_indirect_nonlocal_aix64): Ditto.
20012 (call): Rewrite AIX indirect function calls. Add support for
20013 eliminating the static chain, and for moving the save of the TOC
20014 to the function prologue.
20015 (call_value): Ditto.
20016 (call_indirect_aix<ptrsize>): Ditto.
20017 (call_indirect_aix<ptrsize>_internal): Ditto.
20018 (call_indirect_aix<ptrsize>_internal2): Ditto.
20019 (call_indirect_aix<ptrsize>_nor11): Ditto.
20020 (call_value_indirect_aix<ptrsize>): Ditto.
20021 (call_value_indirect_aix<ptrsize>_internal): Ditto.
20022 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
20023 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
20024 (call_nonlocal_aix32): Relocate in the rs6000.md file.
20025 (call_nonlocal_aix64): Ditto.
20026
20027 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
20028 -mno-r11 documentation.
20029
20030 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
20031
20032 PR other/49658
20033 * doc/extend.texi (Compound Literals): Fix typo.
20034
20035 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
20036
20037 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
20038
20039 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
20040
20041 * configure.ac (plugin-version.h): Generate
20042 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
20043 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
20044 macros.
20045
20046 * configure: Regenerate.
20047
20048 * doc/plugins.texi (Building GCC plugins): Mention
20049 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
20050
20051 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
20052
20053 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
20054 * combine.c (make_extraction, gen_lowpart_or_truncate,
20055 apply_distributive_law, simplify_comparison,
20056 reg_truncated_to_mode, record_truncated_value): Use it.
20057 * cse.c (notreg_cost): Likewise.
20058 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
20059 * expr.c (convert_move, convert_modes): Likewise.
20060 * optabs.c (expand_binop, expand_unop): Likewise.
20061 * postreload.c (move2add_last_label): Likewise.
20062 * regmove.c (optimize_reg_copy_3): Likewise.
20063 * rtlhooks.c (gen_lowpart_general): Likewise.
20064 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20065
20066 2011-07-06 Joseph Myers <joseph@codesourcery.com>
20067
20068 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
20069
20070 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
20071
20072 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
20073 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
20074 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
20075 (simplify_const_unary_operation, simplify_binary_operation_1,
20076 simplify_const_binary_operation, simplify_const_relational_operation):
20077 Use them. Use GET_MODE_MASK for masking and sign-extensions.
20078 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
20079 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
20080 simplify_shift_const_1, simplify_comparison): Likewise.
20081 * expr.c (convert_modes): Likewise.
20082 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
20083 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
20084 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
20085
20086 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
20087
20088 2011-07-06 Richard Guenther <rguenther@suse.de>
20089
20090 PR tree-optimization/49645
20091 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
20092 register variables.
20093 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
20094 in type qualification here ...
20095 (copy_reference_ops_from_ref): ... not here.
20096 (vn_reference_lookup_3): ... or here.
20097 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
20098 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
20099
20100 2011-07-06 Ian Lance Taylor <iant@google.com>
20101
20102 * doc/install.texi (Configuration): It's
20103 --enable-gnu-indirect-function, not --enable-indirect-function.
20104
20105 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
20106
20107 * simplify-rtx.c (simplify_const_binary_operation): Use the
20108 shift_truncation_mask hook instead of performing modulo by width.
20109 Compare against mode precision, not bitsize.
20110 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
20111 Use shift_truncation_mask instead of constructing the value manually.
20112
20113 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
20114
20115 PR middle-end/47383
20116 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
20117 address computation and convert to address_mode if needed.
20118
20119 2011-07-06 Richard Guenther <rguenther@suse.de>
20120
20121 * tree.c (build_common_tree_nodes_2): Merge with
20122 build_common_tree_nodes.
20123 * tree.h (build_common_tree_nodes): Adjust prototype.
20124 (build_common_tree_nodes_2): Remove.
20125 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
20126 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
20127
20128 2011-07-05 Jakub Jelinek <jakub@redhat.com>
20129
20130 PR tree-optimization/49618
20131 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
20132 t recurse on the decl.
20133 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
20134 return true if expr isn't known to be defined in current
20135 TU or some other LTO partition.
20136
20137 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
20138
20139 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
20140 override CASE_VALUES_THRESHOLD.
20141
20142 * stmt.c (toplevel): Include params.h.
20143 (case_values_threshold): Use the --param case-values-threshold
20144 value if non-zero, otherwise use machine dependent value.
20145 (expand_case): Use case_values_threshold.
20146
20147 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
20148
20149 * doc/invoke.texi (--param case-values-threshold): Document.
20150
20151 2011-07-05 Richard Henderson <rth@redhat.com>
20152
20153 * dwarf2out.c (dwarf2out_cfi_label): Make static.
20154 (dwarf2out_flush_queued_reg_saves): Make static.
20155 (dwarf2out_reg_save): Remove.
20156 (dwarf2out_return_save): Remove.
20157 (dwarf2out_return_reg): Remove.
20158 (dwarf2out_reg_save_reg): Remove.
20159 (dwarf2out_def_cfa): Merge into ...
20160 (dwarf2out_frame_init): ... here.
20161 * dwarf2out.h, tree.h: Remove declarations as necessary.
20162
20163 2011-07-05 Richard Henderson <rth@redhat.com>
20164
20165 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
20166 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20167 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
20168 the alloc insn.
20169
20170 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
20171 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
20172 (process_epilogue): Don't call dwarf2out_def_cfa.
20173
20174 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
20175 indicate the return address save.
20176 (process_cfa_register): Likewise.
20177
20178 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
20179 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
20180
20181 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
20182 for ar.pfs save at alloc insn.
20183
20184 2011-07-05 Richard Henderson <rth@redhat.com>
20185
20186 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
20187 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20188 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
20189 stack pointer save.
20190 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
20191 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
20192 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
20193 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
20194
20195 2011-07-05 Richard Henderson <rth@redhat.com>
20196
20197 * config/vax/vax.md (define_c_enum unspecv): New. Define the
20198 VUNSPEC_* constants here instead of via define_constants.
20199 (VUNSPEC_PEM): New constant.
20200 (procedure_entry_mask): New insn.
20201 (prologue): New expander.
20202 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
20203 (vax_expand_prologue): Rename from vax_output_function_prologue;
20204 emit rtl instead of text.
20205 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
20206 (print_operand): Add 'x' prefix.
20207
20208 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
20209
20210 PR middle-end/47715
20211 * calls.c (precompute_register_parameters): Promote the function
20212 argument before checking non-legitimate constant.
20213
20214 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20215
20216 PR tree-optimization/47654
20217 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
20218 (lst_do_strip_mine_loop): Return an int.
20219 (lst_do_strip_mine): Same.
20220 (scop_do_strip_mine): Same.
20221 (scop_do_block): Loop blocking should strip-mine at least two loops.
20222 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
20223 (scop_do_interchange): Same.
20224 * graphite-poly.h (scop_do_interchange): Update declaration.
20225 (scop_do_strip_mine): Same.
20226
20227 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20228
20229 * graphite-clast-to-gimple.c (precision_for_value): Removed.
20230 (precision_for_interval): Removed.
20231 (gcc_type_for_interval): Use mpz_sizeinbase.
20232
20233 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20234
20235 * graphite-ppl.h (value_max): Correct computation of max.
20236
20237 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20238
20239 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
20240
20241 2011-07-05 Richard Guenther <rguenther@suse.de>
20242
20243 * c-decl.c (c_init_decl_processing): Defer building common
20244 tree nodes to c_common_nodes_and_builtins.
20245
20246 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
20247
20248 PR tree-optimization/49580
20249 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
20250 the loop's number of iterations.
20251 * tree-parloops.c (transform_to_exit_first_loop): Add the
20252 handling of the loop's number of iterations before the call
20253 to gimple_duplicate_sese_tail.
20254 Insert the stmt caclculating the new rhs of the loop's
20255 condition stmt to the preheader instead of iters_bb.
20256
20257 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
20258
20259 PR rtl-optimization/47449
20260 * fwprop.c (forward_propagate_subreg): Don't propagate hard
20261 register nor zero/sign extended hard register.
20262
20263 2011-07-05 Richard Guenther <rguenther@suse.de>
20264
20265 PR tree-optimization/49518
20266 PR tree-optimization/49628
20267 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
20268 irrelevant and invariant data-references.
20269 (vect_analyze_data_ref_access): For invariant loads clear the
20270 group association.
20271
20272 2011-07-04 Jakub Jelinek <jakub@redhat.com>
20273
20274 PR rtl-optimization/49619
20275 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
20276 pass VOIDmode as op0_mode to recursive call, and return temp even
20277 when different from tor, just if it is not IOR of the original
20278 PLUS arguments.
20279
20280 PR rtl-optimization/49472
20281 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
20282 negating MULT, negate the second operand instead of first.
20283 (simplify_binary_operation_1) <case MULT>: If one operand is
20284 a NEG and the other is MULT, don't attempt to optimize by negation
20285 of the MULT operand if it only moves the NEG operation around.
20286
20287 PR debug/49602
20288 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
20289 get_current_def return value if it can't be trusted to be
20290 the current value of the variable in the current bb.
20291
20292 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
20293
20294 PR target/49600
20295 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
20296 general register to memory for !TARGET_INTER_UNIT_MOVES.
20297
20298 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20299
20300 PR target/44643
20301 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
20302 instead of TREE_READONLY.
20303
20304 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20305
20306 * doc/extend.texi (AVR Built-in Functions): Update documentation
20307 of __builtin_avr_fmul*.
20308 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
20309 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
20310 * config/avr/avr.md (fmul): Rename to fmul_insn.
20311 (fmuls): Rename to fmuls_insn.
20312 (fmulsu): Rename to fmulsu_insn.
20313 (fmul,fmuls,fmulsu): New expander.
20314 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
20315 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
20316 * config/avr/libgcc.S (__fmul): New function.
20317 (__fmuls): New function.
20318 (__fmulsu,__fmulsu_exit): New function.
20319
20320 2011-07-04 Richard Guenther <rguenther@suse.de>
20321
20322 PR tree-optimization/49615
20323 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
20324 basic-block index check.
20325
20326 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20327
20328 * longlong.h (count_leading_zeros, count_trailing_zeros,
20329 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
20330 resp. 64.
20331
20332 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
20333
20334 PR tree-optimization/49610
20335 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
20336 a basic block.
20337
20338 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
20339 Olivier Hainque <hainque@adacore.com>
20340 Nicolas Setton <setton@adacore.com>
20341
20342 * tree.h (TYPE_ARTIFICIAL): New flag.
20343 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
20344 the DIE of the type if it is artificial.
20345 (gen_array_type_die): Likewise.
20346 (gen_enumeration_type_die): Likewise.
20347 (gen_struct_or_union_type_die): Likewise.
20348 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
20349 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
20350
20351 2011-07-01 Jakub Jelinek <jakub@redhat.com>
20352
20353 * tree-object-size.c (pass_through_call): Handle
20354 BUILT_IN_ASSUME_ALIGNED.
20355
20356 2011-07-01 Martin Jambor <mjambor@suse.cz>
20357
20358 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
20359
20360 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
20361
20362 PR middle-end/48016
20363 * explow.c (update_nonlocal_goto_save_area): Use proper mode
20364 for stack save area.
20365 * function.c (expand_function_start): Likewise.
20366
20367 2011-07-01 Richard Guenther <rguenther@suse.de>
20368
20369 PR middle-end/49596
20370 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
20371 may have unknown refs.
20372
20373 2011-07-01 Kai Tietz <ktietz@redhat.com>
20374
20375 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
20376
20377 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20378
20379 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
20380 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
20381 (Specific, mips-sgi-irix6): Likewise.
20382
20383 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20384
20385 PR libmudflap/49549
20386 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
20387
20388 2011-07-01 Jakub Jelinek <jakub@redhat.com>
20389
20390 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
20391 [idx]= and [idx1 ... idx2]= before initializers if needed for
20392 array initializers.
20393
20394 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
20395
20396 * config.gcc (score-*-elf): Remove score7.o.
20397 * config/score/t-score-elf: Likewise.
20398 * config/score/score.c: Merge score7 to score.c and
20399 remove forwarding functions.
20400 * config/score/score7.c: Deleted.
20401 * config/score/score7.h: Deleted.
20402
20403 2011-07-01 Richard Guenther <rguenther@suse.de>
20404
20405 PR tree-optimization/49603
20406 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
20407
20408 2011-06-30 Martin Jambor <mjambor@suse.cz>
20409
20410 * tree-sra.c (struct access): Rename total_scalarization to
20411 grp_total_scalarization
20412 (completely_scalarize_var): New function.
20413 (sort_and_splice_var_accesses): Set total_scalarization in the
20414 representative access.
20415 (analyze_access_subtree): Propagate total scalarization accross the
20416 tree, no holes in totally scalarized trees, simplify coverage
20417 computation.
20418 (analyze_all_variable_accesses): Call completely_scalarize_var instead
20419 of completely_scalarize_record.
20420
20421 2011-06-30 Richard Henderson <rth@redhat.com>
20422
20423 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
20424 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
20425 * config/i386/i386.c: Don't include dwarf2out.h.
20426 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
20427 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
20428 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
20429 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
20430 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
20431
20432 2011-06-30 Richard Henderson <rth@redhat.com>
20433
20434 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
20435 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
20436 * final.c (final_scan_insn): Look for it, and invoke
20437 dwarf2out_frame_debug before the insn if found.
20438
20439 2011-06-30 Richard Henderson <rth@redhat.com>
20440
20441 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
20442 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
20443
20444 2011-06-30 Richard Henderson <rth@redhat.com>
20445
20446 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
20447 Define a vector of this type.
20448 (regs_saved_in_regs): Use a VEC.
20449 (num_regs_saved_in_regs): Remove.
20450 (compare_reg_or_pc): New.
20451 (record_reg_saved_in_reg): Split out from...
20452 (dwarf2out_flush_queued_reg_saves): ... here.
20453 (clobbers_queued_reg_save): Update for VEC.
20454 (reg_saved_in): Likewise.
20455 (dwarf2out_frame_debug_init): Likewise.
20456 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
20457 (dwarf2out_frame_debug_cfa_register): Likewise.
20458
20459 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
20460
20461 PR tree-optimization/49572
20462 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
20463 type of the RHS instead of that of the LHS for the expression type.
20464
20465 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
20466
20467 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
20468 unconditionally.
20469
20470 2011-06-30 Richard Guenther <rguenther@suse.de>
20471
20472 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
20473 * tree-ssa-structalias.c (create_variable_info_for): Do not
20474 add initial constraints for non-var-decls. Properly handle
20475 globals in other ltrans partitions.
20476 (intra_create_variable_infos): Manually create constraints for
20477 the fake no-alias parameter.
20478 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
20479 and assert there are no clones.
20480
20481 2011-06-30 Richard Guenther <rguenther@suse.de>
20482
20483 PR tree-optimization/46787
20484 * tree-data-ref.c (dr_address_invariant_p): Remove.
20485 (find_data_references_in_stmt): Invariant accesses are ok now.
20486 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
20487 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20488 invariant loads.
20489
20490 2011-06-30 Martin Jambor <mjambor@suse.cz>
20491
20492 PR tree-optimization/49094
20493 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
20494 (build_accesses_from_assign): Use it.
20495
20496 2011-06-30 Jakub Jelinek <jakub@redhat.com>
20497
20498 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
20499 handling of BUILT_IN_ASSUME_ALIGNED.
20500
20501 PR debug/49364
20502 * dwarf2out.c (output_abbrev_section): Don't return early
20503 if abbrev_die_table_in_use is 1.
20504 (dwarf2out_finish): Instead don't call output_abbrev_section
20505 nor emit abbrev_section_label in that case.
20506
20507 2011-06-30 Nick Clifton <nickc@redhat.com>
20508
20509 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
20510 for the V850E.
20511
20512 2011-06-30 Jakub Jelinek <jakub@redhat.com>
20513
20514 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
20515 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
20516
20517 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
20518
20519 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
20520 both pattern and original statements if necessary.
20521 (vect_transform_loop): Likewise.
20522 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
20523 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
20524 Mark the pattern statement only if the original statement doesn't
20525 have its own uses.
20526 (process_use): Call vect_mark_relevant with additional parameter.
20527 (vect_mark_stmts_to_be_vectorized): Likewise.
20528 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
20529 (vect_analyze_stmt): Handle both pattern and original statements
20530 if necessary.
20531 (vect_transform_stmt): Don't store vectorized pattern statement
20532 in the original statement.
20533 (vect_is_simple_use_1): Use related pattern statement only if the
20534 original statement is irrelevant.
20535 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
20536
20537 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
20538
20539 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
20540 option.
20541 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
20542 entry.
20543 (TARGET_AVX128_OPTIMAL): New definition.
20544 * config/i386/i386.c (initial_ix86_tune_features): Initialize
20545 X86_TUNE_AVX128_OPTIMAL entry.
20546 (ix86_option_override_internal): Enable the generation
20547 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
20548 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
20549 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
20550
20551 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
20552
20553 PR tree-optimization/49539
20554 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
20555 names by means of stmt_references_abnormal_ssa_name.
20556 (associate_plusminus): Call can_propagate_from before propagating
20557 from definition statements.
20558 (ssa_forward_propagate_and_combine): Remove superfluous newline.
20559
20560 2011-06-29 Richard Guenther <rguenther@suse.de>
20561
20562 * doc/invoke.texi: Document -scev dump modifier.
20563 * tree-pass.h (TDF_SCEV): New dump flag.
20564 * tree-dump.c (dump_option_value_in): Add scev.
20565 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
20566 * tree-scalar-evolution.c: Likewise.
20567
20568 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
20569
20570 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
20571 (cxa_type_match): Correct declaration.
20572 (__gnu_unwind_pr_common): Reconstruct additional indirection
20573 when __cxa_type_match returns succeeded_with_ptr_to_base.
20574
20575 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20576
20577 PR rtl-optimization/49114
20578 * reload.c (struct replacement): Remove SUBREG_LOC member.
20579 (push_reload): Do not set it.
20580 (push_replacement): Likewise.
20581 (subst_reload): Remove dead code.
20582 (copy_replacements): Remove assertion.
20583 (copy_replacements_1): Do not handle SUBREG_LOC.
20584 (move_replacements): Likewise.
20585 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
20586 Detect subregs via recursive descent instead of via SUBREG_LOC.
20587
20588 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20589
20590 * config/avr/avr.c (avr_encode_section_info): Dispatch to
20591 default_encode_section_info.
20592
20593 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
20594
20595 PR tree-optimization/49545
20596 * builtins.c (get_object_alignment_1): Update function comment.
20597 Do not use DECL_ALIGN for functions, but test
20598 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
20599 * fold-const.c (get_pointer_modulus_and_residue): Don't check
20600 for functions here.
20601 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
20602
20603 2011-06-29 Jakub Jelinek <jakub@redhat.com>
20604
20605 PR debug/49567
20606 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
20607 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
20608
20609 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20610
20611 PR target/34734
20612 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
20613 about uninitialized data attributed 'progmem' from here...
20614 (avr_encode_section_info): ...to this new function.
20615 (TARGET_ENCODE_SECTION_INFO): New define.
20616 (avr_section_type_flags): For data in ".progmem.data", remove
20617 section flag SECTION_WRITE.
20618
20619 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20620
20621 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
20622 _xmulhisi3_exit.
20623 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
20624 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
20625 (__umulhisi3): Ditto.
20626 * config/avr/avr.md (mulhisi3): New insn expender.
20627 (umulhisi3): New insn expender.
20628 (*mulhisi3_call): New insn.
20629 (*umulhisi3_call): New insn.
20630
20631 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20632
20633 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
20634
20635 2011-06-28 Richard Henderson <rth@redhat.com>
20636
20637 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
20638 all code and arguments that handled pushes. Update all callers.
20639
20640 2011-06-28 Richard Henderson <rth@redhat.com>
20641
20642 * config/arm/arm.c (arm_output_function_prologue): Don't call
20643 thumb1_output_function_prologue.
20644 (arm_expand_prologue): Avoid dead store.
20645 (number_of_first_bit_set): Use ctz_hwi.
20646 (thumb1_emit_multi_reg_push): New.
20647 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
20648 to emit the entire prologue as rtl.
20649 (thumb1_output_interwork): Split out from
20650 thumb1_output_function_prologue.
20651 (thumb1_output_function_prologue): Remove.
20652 (arm_attr_length_push_multi): Handle thumb1.
20653 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
20654 (prologue_thumb1_interwork): New.
20655 (*push_multi): Allow thumb1; use push_mult_memory_operand.
20656 * config/arm/predicates.md (push_mult_memory_operand): New.
20657
20658 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
20659
20660 * config/sparc/sync.md (*stbar): Delete.
20661 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
20662
20663 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
20664
20665 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
20666
20667 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20668
20669 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
20670 (TARGET_64BIT_DEFAULT): Define.
20671 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
20672 of tm_file.
20673 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
20674
20675 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20676
20677 * common.opt (in_lto_p): New Variable entry.
20678 * flags.h (in_lto_p): Move to common.opt.
20679 * gcc.c: Include params.h.
20680 (set_option_handlers): Also use common_handle_option and
20681 target_handle_option.
20682 (main): Call global_init_params, finish_params and init_options_struct.
20683 * opts.c (debug_type_names): Move from toplev.c.
20684 (print_filtered_help): Access quiet_flag through opts pointer.
20685 (common_handle_option): Return early in the driver for some options.
20686 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
20687 opts pointer.
20688 * toplev.c (in_lto_p): Move to common.opt.
20689 (debug_type_names): Move to opts.c.
20690 * Makefile.in (OBJS): Remove opts.o.
20691 (OBJS-libcommon-target): Add opts.o.
20692 (gcc.o): Update dependencies.
20693
20694 2011-06-28 Kai Tietz <ktietz@redhat.com>
20695
20696 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
20697
20698 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20699
20700 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
20701 with '=' constraint modifier.
20702 (*divdf3_vfp): Likewise.
20703 ("*mulsf3_vfp"): Likewise.
20704 ("*muldf3_vfp"): Likewise.
20705 ("*mulsf3negsf_vfp"): Likewise.
20706 ("*muldf3negdf_vfp"): Likewise.
20707
20708 2011-06-28 Nick Clifton <nickc@redhat.com>
20709
20710 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
20711 relaxation when performing an incremental link.
20712
20713 2011-06-28 Kai Tietz <ktietz@redhat.com>
20714
20715 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
20716 within BB from last to first.
20717
20718 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20719
20720 * genattr-common.c: New. Based on genattr.c.
20721 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
20722 (MOSTLYCLEANFILES): Add insn-attr-common.h.
20723 (opts.o): Update dependencies.
20724 (.PRECIOUS): Add insn-attr-common.h.
20725 (simple_rtl_generated_h): Add insn-attr-common.h.
20726 (build/genattr-common.o): New.
20727 (genprogrtl): Add attr-common.
20728 * genattr.c (main): Include insn-attr-common.h. Don't generate
20729 definitions of DELAY_SLOTS or INSN_SCHEDULING.
20730 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
20731
20732 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
20733
20734 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
20735 avr-*-* and avr-*-rtems* targets.
20736
20737 * config/avr/elf.h: New file.
20738 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
20739 (TARGET_ASM_SELECT_SECTION): Define.
20740 (INIT_SECTION_ASM_OP): Undefine.
20741 (FINI_SECTION_ASM_OP): Undefine.
20742 (READONLY_DATA_SECTION_ASM_OP): Undefine.
20743 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
20744 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
20745 * config/avr/avr.h:
20746 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
20747 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
20748 (MAX_OFILE_ALIGNMENT): Move to elf.h.
20749 (STRING_LIMIT): Move to elf.h.
20750 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
20751 (ASM_DECLARE_OBJECT_NAME): Remove.
20752 (ESCAPES): Remove.
20753 (ASM_OUTPUT_SKIP): Remove.
20754 (DWARF2_DEBUGGING_INFO): Remove.
20755 (OBJECT_FORMAT_ELF): Remove.
20756 (USER_LABEL_PREFIX): Remove.
20757 (ASM_OUTPUT_EXTERNAL): Remove.
20758 (ASM_OUTPUT_ASCII): Remove.
20759 (TYPE_ASM_OP): Remove.
20760 (SIZE_ASM_OP): Remove.
20761 (WEAK_ASM_OP): Remove.
20762 (STRING_ASM_OP): Remove.
20763 (SET_ASM_OP): Remove.
20764 (ASM_WEAKEN_LABEL): Remove.
20765 (TYPE_OPERAND_FMT): Remove.
20766 (ASM_DECLARE_FUNCTION_SIZE): Remove.
20767 (ASM_FINISH_DECLARE_OBJECT): Remove.
20768 (NO_DOLLAR_IN_LABEL): Remove.
20769 (ASM_GENERATE_INTERNAL_LABEL): Remove.
20770 (ASM_OUTPUT_CASE_LABEL): Remove.
20771 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
20772 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
20773 (gas_output_ascii): Remove.
20774 (gas_output_limited_string): Remove.
20775 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
20776 * config/avr/avr-protos.h
20777 (gas_output_ascii): Remove prototye.
20778 (gas_output_limited_string): Remove prototype.
20779
20780 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
20781
20782 PR target/48637
20783 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
20784 asm operands.
20785
20786 2011-06-27 Jan Hubicka <jh@suse.cz>
20787
20788 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
20789 node instead of references in node.
20790
20791 2011-06-27 Richard Henderson <rth@redhat.com>
20792
20793 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
20794 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
20795 inside ifdef.
20796
20797 2011-06-27 Jakub Jelinek <jakub@redhat.com>
20798
20799 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
20800
20801 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
20802 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
20803 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
20804 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
20805 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
20806 (evaluate_stmt, execute_fold_all_builtins): Handle
20807 BUILT_IN_ASSUME_ALIGNED.
20808 * tree-ssa-dce.c (propagate_necessity): Likewise.
20809 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20810 call_may_clobber_ref_p_1): Likewise.
20811 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
20812 (expand_builtin_assume_aligned): New function.
20813 * doc/extend.texi (__builtin_assume_aligned): Document.
20814
20815 PR debug/49544
20816 * cselib.c (promote_debug_loc): If cselib_preserve_constants
20817 and l has two DEBUG_INSN owned locs instead of just one, adjust
20818 the second location's setting_insn too.
20819
20820 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20821
20822 PR libmudflap/38738
20823 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
20824
20825 2011-06-27 Nick Clifton <nickc@redhat.com>
20826
20827 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
20828 bit position of highest bit set into a count of the high zero bits.
20829
20830 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20831
20832 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
20833
20834 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20835
20836 PR lto/48492
20837 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
20838 to a NULL parent.
20839
20840 2011-06-27 Richard Guenther <rguenther@suse.de>
20841
20842 PR tree-optimization/49394
20843 * passes.c (execute_one_pass): Restore current_pass after
20844 applying IPA transforms.
20845
20846 2011-06-27 Kai Tietz <ktietz@redhat.com>
20847
20848 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
20849 out of type precision after operation.
20850 (find_bswap): Take for limit value the integer auto-promotion
20851 into account.
20852
20853 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20854
20855 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
20856 forward scan as well.
20857
20858 2011-06-27 Tristan Gingold <gingold@adacore.com>
20859
20860 PR target/44241
20861 * config/vms/vms-protos.h: New file.
20862 * config/vms/vms-crtlmap.map: New file.
20863 * config/vms/vms.c: New file.
20864 * config/vms/make-crtlmap.awk: New file.
20865 * config/vms/vms-crtl.h: File removed.
20866 * config/vms/vms-crtl-64.h: File removed.
20867 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
20868 * config/alpha/vms64.h: Do not include vms-crtl-64.h
20869 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
20870 clear some builtins on VMS. Calls vms_patch_builtins.
20871 (avms_asm_output_external): Remove.
20872 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
20873 (struct crtl_name_spec): Remove
20874 (DO_CTRL_NAMES): Remove.
20875 * config/ia64/vms.h (struct crtl_name_spec): Remove
20876 (DO_CTRL_NAMES): Remove.
20877 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
20878 clear some builtins on VMS. Calls vms_patch_builtins.
20879 (ia64_asm_output_external): Remove DO_CRTL_NAME.
20880 * config/ia64/vms64.h: Do not include vms-crtl-64.h
20881 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
20882
20883 2011-06-27 Tristan Gingold <gingold@adacore.com>
20884
20885 * config/alpha/alpha.c (alpha_end_function): Always generate .end
20886 directive on VMS.
20887
20888 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20889
20890 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
20891 the function receives nonlocal gotos.
20892
20893 2011-06-27 Richard Guenther <rguenther@suse.de>
20894
20895 PR tree-optimization/49536
20896 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
20897 For non-scalar inner types use a scalar type according to
20898 the scalar inner mode.
20899
20900 2011-06-27 Richard Guenther <rguenther@suse.de>
20901
20902 PR tree-optimization/49365
20903 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
20904
20905 2011-06-27 Richard Guenther <rguenther@suse.de>
20906
20907 PR tree-optimization/49169
20908 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
20909 the alignment of function decls.
20910
20911 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
20912
20913 PR target/47997
20914 * config/darwin.c (darwin_mergeable_string_section): Place string
20915 constants in '.cstring' rather than '.const' when CF/NSStrings are
20916 active.
20917
20918 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
20919
20920 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
20921 (emit_save_register_window): Likewise.
20922 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
20923 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
20924 Swap back %o7/%i7 in register naming.
20925
20926 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
20927
20928 PR driver/49371
20929 * config/darwin.c (darwin_override_options): Improve warning when
20930 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
20931 is given with fpie/fPIE.
20932 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
20933 * config/darwin9.h (PIE_SPEC): New.
20934
20935 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
20936
20937 * timevar.c (timevar_print): Increase width for display of timevar
20938 name.
20939
20940 2011-06-24 Jakub Jelinek <jakub@redhat.com>
20941
20942 PR c++/46400
20943 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
20944 instead of TYPE_CHAIN for chain_next for types.
20945
20946 2011-06-24 Richard Henderson <rth@redhat.com>
20947
20948 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
20949 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
20950 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
20951 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
20952 (sparc_flat_expand_prologue): Emit individual instructions
20953 instead of one of the above.
20954
20955 2011-06-24 Easwaran Raman <eraman@google.com>
20956
20957 PR rtl-optimization/49429
20958 PR target/49454
20959 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
20960 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
20961 used to copy y into x.
20962 * calls.c (initialize_argument_information): Mark
20963 an argument addressable if it is passed by invisible reference.
20964 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
20965 if it is passed by reference.
20966
20967 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
20968
20969 PR rtl-optimization/49504
20970 * rtlanal.c (nonzero_bits1): Properly handle addition or
20971 subtraction of a pointer in Pmode if pointers extend unsigned.
20972 (num_sign_bit_copies1): Likewise.
20973
20974 2011-06-24 Martin Jambor <mjambor@suse.cz>
20975
20976 PR tree-optimizations/49516
20977 * tree-sra.c (sra_modify_assign): Choose the safe path for
20978 aggregate copies if we also did scalar replacements.
20979
20980 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20981
20982 PR target/49335
20983 * config/arm/predicates.md (add_operator): New.
20984 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
20985
20986 2011-06-24 Andi Kleen <ak@linux.intel.com>
20987
20988 * tree-sra.c (type_internals_preclude_sra_p): Add msg
20989 parameter. Split up ifs and report reason in *msg.
20990 (reject): Add.
20991 (find_var_candiate): Add msg variable.
20992 Split up ifs and report reason to reject.
20993 (find_param_candidates): Add msg variable.
20994 Pass msg to type_internals_preclude_sra_p.
20995
20996 2011-06-23 Jeff Law <law@redhat.com>
20997
20998 PR middle-end/48770
20999 * reload.h (reload): Change to return a bool.
21000 * ira.c (ira): If requested by reload, run a fast DCE pass after
21001 reload has completed. Fix comment typo.
21002 * reload1.c (need_dce): New file scoped static.
21003 (reload): Set reload_completed here. Return whether or not a DCE
21004 pass after reload is needed.
21005 (delete_dead_insn): Set need_dce as needed.
21006
21007 PR middle-end/49465
21008 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
21009 to detect threading through joiner block. If there was already
21010 an edge to the new target, then do not change the PHI nodes.
21011
21012 2011-06-23 Jakub Jelinek <jakub@redhat.com>
21013
21014 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
21015 get_pointer_alignment to see if base isn't sufficiently aligned.
21016
21017 2011-06-23 Jan Hubicka <jh@suse.cz>
21018
21019 PR tree-optimize/49373
21020 * tree-pass.h (all_late_ipa_passes): Declare.
21021 * cgraphunit.c (init_lowered_empty_function): Fix properties.
21022 (cgraph_optimize): Execute late passes; remove unreachable funcions
21023 after materialization.
21024 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
21025 LTOing.
21026 * passes.c (all_late_ipa_passes): Declare.
21027 (dump_passes, register_pass): Handle late ipa passes.
21028 (init_optimization_passes): Move ipa_pta to late passes; schedule
21029 fixup_cfg at beggining of all_passes.
21030 (apply_ipa_transforms): New function.
21031 (execute_one_pass): When doing simple ipa pass, apply all transforms.
21032
21033 2011-06-23 Joseph Myers <joseph@codesourcery.com>
21034
21035 * params.c: Include common/common-target.h. Don't include tm.h.
21036 (lang_independent_params): Move from toplev.c.
21037 (global_init_params): New.
21038 * params.h (global_init_params): Declare.
21039 * target.def (default_params): Move to common-target.def.
21040 * toplev.c (lang_independent_options): Remove.
21041 (lang_independent_params): Move to params.c.
21042 (general_init): Use global_init_params.
21043 * common/common-target.def (option_default_params): Move from
21044 target.def.
21045 * common/config/ia64/ia64-common.c: Include params.h.
21046 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21047 from ia64.c.
21048 * common/config/rs6000/rs6000-common.c: Include params.h.
21049 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21050 from rs6000.c.
21051 * common/config/sh/sh-common.c: Include params.h.
21052 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21053 from sh.c.
21054 * common/config/spu/spu-common.c: Include params.h.
21055 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21056 from spu.c.
21057 * config/ia64/ia64.c (ia64_option_default_params,
21058 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
21059 * config/rs6000/rs6000.c (rs6000_option_default_params,
21060 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
21061 * config/sh/sh.c (sh_option_default_params,
21062 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
21063 * config/spu/spu.c (spu_option_default_params,
21064 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
21065 * Makefile.in (OBJS): Remove params.o.
21066 (OBJS-libcommon-target): Add params.o.
21067 (params.o, $(common_out_object_file)): Update dependencies.
21068 * doc/tm.texi: Regenerate.
21069
21070 2011-06-23 Alan Modra <amodra@gmail.com>
21071
21072 PR bootstrap/49383
21073 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
21074 invocation for 2011-06-09 changes.
21075
21076 2011-06-22 Jakub Jelinek <jakub@redhat.com>
21077
21078 PR libgomp/49490
21079 * omp-low.c (expand_omp_for_static_nochunk): Only
21080 use n ceil/ nthreads size for the first n % nthreads threads in the
21081 team instead of all threads except for the last few ones which
21082 get less work or none at all.
21083
21084 PR debug/49496
21085 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
21086 uses.
21087
21088 2011-06-22 Richard Guenther <rguenther@suse.de>
21089
21090 PR tree-optimization/49493
21091 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
21092 Refer to the alias target of variables.
21093 (associate_varinfo_to_alias_1): Remove.
21094 (ipa_pta_execute): Do not associate aliases with anything.
21095 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
21096 (cgraph_function_node): Likewise.
21097 (cgraph_function_or_thunk_node): Likewise.
21098 (varpool_variable_node): Likewise.
21099
21100 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
21101
21102 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
21103 * config.gcc (arm*-*-linux*): Default to gnu tls.
21104 (arm*-*-*): Add --with-tls option.
21105 (all_defaults): Add 'tls'.
21106
21107 2011-06-22 Richard Henderson <rth@redhat.com>
21108
21109 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
21110 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
21111 (dwarf2out_frame_debug_cfa_window_save): Rename from
21112 dwarf2out_window_save; make static.
21113 * tree.h (dwarf2out_window_save): Don't declare.
21114
21115 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
21116 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
21117 (emit_save_register_window): Rename from gen_save_register_window;
21118 emit the insn and add REG_CFA_* notes.
21119 (sparc_expand_prologue): Update to match.
21120 * config/sparc/sparc.md (save_register_window_1): Simplify from
21121 save_register_window<P:mode>.
21122
21123 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
21124
21125 PR target/49497
21126 * config/i386/i386.md (*lea_general_2): Always allow SImode.
21127 (*lea_general_2_zext): Likewise.
21128 (imul to lea peepholes): Use const359_operand and check
21129 TARGET_PARTIAL_REG_STALL.
21130
21131 * config/i386/predicates.md (const359_operand): New.
21132
21133 2011-06-22 Michael Matz <matz@suse.de>
21134
21135 * cgraphunit.c (assemble_thunk): Use correct return type.
21136
21137 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
21138 Dmitry Melnik <dm@ispras.ru>
21139
21140 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
21141 (neon_output_shift_immediate): Ditto.
21142 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
21143 prototype.
21144 (neon_output_shift_immediate): Ditto.
21145 * config/arm/neon.md (vashl<mode>3): Modified constraint.
21146 (vashr<mode>3_imm): New insn pattern.
21147 (vlshr<mode>3_imm): Ditto.
21148 (vashr<mode>3): Modified constraint.
21149 (vlshr<mode>3): Ditto.
21150 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
21151 predicate.
21152 (imm_for_neon_rshift_operand): Ditto.
21153 (imm_lshift_or_reg_neon): Ditto.
21154 (imm_rshift_or_reg_neon): Ditto.
21155
21156 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
21157
21158 2011-06-22 Jakub Jelinek <jakub@redhat.com>
21159
21160 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
21161 builtin calls even if likelyvalue is not CONSTANT.
21162 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
21163 Return get_value_for_expr of first operand
21164 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
21165 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21166 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
21167 their non-checking counterparts.
21168 (call_may_clobber_ref_p_1): Likewise.
21169 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
21170 like their non-checking counterparts.
21171 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21172 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
21173 like their non-checking counterparts.
21174 (find_func_clobbers): Likewise.
21175 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
21176 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
21177
21178 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
21179 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
21180 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
21181 of base type reference as argument.
21182 (resolve_addr_in_expr): Likewise. Fix keep computation.
21183 (convert_descriptor_to_signed): Renamed to...
21184 (convert_descriptor_to_mode): ... this. For wider types convert to
21185 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
21186 (typed_binop): New function.
21187 (scompare_loc_descriptor, ucompare_loc_descriptor,
21188 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
21189 default to unsigned type instead of signed.
21190
21191 PR debug/47858
21192 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
21193 (gimple_build_debug_source_bind_stat): New prototype.
21194 (gimple_build_debug_source_bind): Define.
21195 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
21196 gimple_debug_source_bind_get_value,
21197 gimple_debug_source_bind_get_value_ptr,
21198 gimple_debug_source_bind_set_var,
21199 gimple_debug_source_bind_set_value): New inlines.
21200 * gimple.c (gimple_build_debug_source_bind_stat): New function.
21201 * gimple-pretty-print.c (dump_gimple_debug): Handle
21202 GIMPLE_DEBUG_SOURCE_BIND.
21203 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
21204 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21205 * tree-parloops.c (eliminate_local_variables,
21206 separate_decls_in_region): Likewise.
21207 (separate_decls_in_region_debug): Renamed from
21208 separate_decls_in_region_debug_bind. Handle
21209 gimple_debug_source_bind_p.
21210 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
21211 prototypes.
21212 (DECL_HAS_DEBUG_ARGS_P): Define.
21213 (struct tree_function_decl): Add has_debug_args_flag field.
21214 * tree.c (debug_args_for_decl): New variable.
21215 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
21216 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
21217 (rewrite_debug_stmt_uses): New function.
21218 (rewrite_stmt): Use it to rewrite debug stmt uses.
21219 * rtl.def (DEBUG_PARAMETER_REF): New.
21220 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
21221 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
21222 DEBUG_PARAMETER_REF.
21223 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
21224 * print-rtl.c (print_rtx): Likewise.
21225 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
21226 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
21227 debug stmts in the first bb.
21228 * tree-inline.c (remap_ssa_name): If remapping default def
21229 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
21230 a source bind debug stmt.
21231 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
21232 (maybe_move_debug_stmts_to_successors): Likewise.
21233 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
21234 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
21235 debug args vector from old_decl to new_decl.
21236 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
21237 or modified parameters, add debug bind stmts before call
21238 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
21239 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
21240 on DECL_DEBUG_EXPRs from debug args vector.
21241 (expand_debug_source_expr): New function.
21242 (expand_debug_locations): Use it for source bind insns.
21243 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
21244 * var-tracking.c (prepare_call_arguments): Add debug args
21245 to call_arguments if any.
21246 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
21247 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
21248 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
21249 (get_ref_die_offset, parameter_ref_descriptor): New functions.
21250 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
21251 (gen_subprogram_die): Handle parameters identified by
21252 DEBUG_PARAMETER_REF.
21253
21254 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
21255
21256 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
21257 * doc/install.texi (Configuration): Document --with-tls.
21258 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
21259 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
21260 (arm_tls_descseq_addr): New.
21261 (legitimize_tls_address): Add tlsdesc support.
21262 (arm_cannot_copy_insn_p): Check for tlscall.
21263 (arm_emit_tls_decoration): Likewise.
21264 * config/arm/arm.h (TARGET_GNU2_TLS): New.
21265 (OPTION_DEFAULT_SPECS): Add with-tls support.
21266 * config/arm/arm.md (R1_REGNUM): Define.
21267 (tlscall): New.
21268 * config/arm/arm.opt (tls_type): New enumeration type and values.
21269 (mtls-dialect): New switch.
21270 * config/arm/arm-opts.h (enum tls_type): New.
21271
21272 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
21273
21274 * attribs.c (register_attribute): Added assert to check that all
21275 attribute specs are registered with a name that is not empty and
21276 does not start with '_'.
21277 (decl_attributes): Avoid the lookup of the "naked" attribute spec
21278 if the function has no attributes.
21279 * tree.c (is_attribute_with_length_p): Removed.
21280 (is_attribute_p): Removed.
21281 (private_is_attribute_p): New.
21282 (private_lookup_attribute): New.
21283 (lookup_attribute): Removed.
21284 (lookup_ident_attribute): New.
21285 (remove_attribute): Require the first argument to be in the form
21286 'text', not '__text__'. Updated asserts.
21287 (merge_attributes): Use lookup_ident_attributes instead of
21288 lookup_attribute.
21289 (merge_dllimport_decl_attributes): Use remove_attribute.
21290 (attribute_list_contained): Likewise.
21291 (attribute_list_equal): Immediately return 1 if the arguments are
21292 identical pointers.
21293 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
21294 'int'. Require the first argument to be in the form 'text', not
21295 '__text__'. Require the second argument to be an identifier.
21296 (lookup_attribute): Made inline. Require the first argument to be
21297 in the form 'text', not '__text__'.
21298 (private_is_attribute_p, private_lookup_attribute): New.
21299 Updated comments.
21300
21301 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
21302
21303 * builtins.c: Add sync_ or SYNC__ to builtin names.
21304 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
21305 * omp-low.c: Add sync_ or SYNC__ to builtin names.
21306
21307 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
21308
21309 PR target/33049
21310 * config/avr/avr.md (extzv): New expander.
21311 (*extzv): New insn.
21312 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
21313 * config/avr/constraints.md (C04): New constraint.
21314 * doc/md.texi (Machine Constraints): Document it.
21315
21316 2011-06-21 Jakub Jelinek <jakub@redhat.com>
21317
21318 PR middle-end/49489
21319 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
21320 unsignedp argument instead of 1 for clrsb_optab.
21321 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
21322 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
21323 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
21324 * optabs.c (widen_leading): Call widen_operand and expand_unop
21325 with 0 as unsignedp argument instead of 1 for clrsb_optab.
21326 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
21327
21328 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
21329
21330 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
21331
21332 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
21333
21334 * gensupport.c (add_define_attr): New static function.
21335 (is_predicable): Allow multi-alternative lists for the "predicable"
21336 attribute.
21337 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
21338 (process_one_cond_exec): Call alter_attrs_for_insn.
21339 * doc/md.texi (Defining Attributes): Mention some standard names.
21340 (Conditional Execution): Update documentation for "predicable".
21341
21342 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
21343 __builtin_clrsbll): Document.
21344 * doc/rtl.texi (clrsb): New entry.
21345 * optabs.c (widen_leading): Renamed from widen_clz. New argument
21346 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
21347 (expand_unop): Handle clrsb_optab.
21348 (init_optabs): Initialize it.
21349 * optabs.h (enum optab_index): New entry OTI_clrsb.
21350 (clrsb_optab): Define.
21351 * genopinit.c (optabs): Add an entry for it.
21352 * builtins.c (expand_builtin): Handle clrsb builtin functions.
21353 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
21354 BUILT_IN_CLRSBLL): New.
21355 * rtl.def (CLRSB): New code.
21356 * dwarf2out.c (mem_loc_descriptor): Handle it.
21357 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
21358 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
21359 and popcount.
21360 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
21361 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
21362 (__ctzDI2): Move declaration.
21363 * config/bfin/bfin.md (clrsbsi2): New expander.
21364 (signbitssi2): Use the CLRSB rtx.
21365 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
21366 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
21367
21368 2011-06-21 Richard Guenther <rguenther@suse.de>
21369
21370 * ipa-inline-transform.c (inline_transform): Fix previous change.
21371
21372 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
21373
21374 PR tree-optimization/49478
21375 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
21376 with constant operand.
21377
21378 2011-06-21 Richard Guenther <rguenther@suse.de>
21379
21380 * ipa-inline-transform.c (inline_transform): Fix typo.
21381
21382 2011-06-21 Richard Guenther <rguenther@suse.de>
21383
21384 PR tree-optimization/49483
21385 * tree-vect-stmts.c (vectorizable_assignment): Also handle
21386 VIEW_CONVERT_EXPR conversions.
21387
21388 2011-06-21 Joseph Myers <joseph@codesourcery.com>
21389
21390 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
21391 * config/avr/avr-tables.opt: New file (generated).
21392 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
21393 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
21394 avr-mcus.def.
21395 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
21396 (avr_option_override): Don't process -mmcu= argument here. Set
21397 avr_current_device using avr_mcu_index.
21398 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
21399 * config/avr/avr.opt (mmcu=): Use Enum.
21400 * config/avr/t-avr (avr-devices.o): Update dependencies.
21401 ($(srcdir)/config/avr/avr-tables.opt): New.
21402 * target.def (help): Remove.
21403 * doc/tm.texi.in (TARGET_HELP): Remove.
21404 * doc/tm.texi: Regenerate.
21405 * opts.c: Don't include target.h.
21406 (common_handle_option): Don't call targetm.help.
21407 * system.h (TARGET_HELP): Poison.
21408 * Makefile.in (opts.o): Update dependencies.
21409
21410 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21411
21412 * config/usegld.h: New file.
21413 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
21414 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
21415 (LIB_SPEC): Likewise. Search /lib.
21416 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
21417 (RDYNAMIC_SPEC): Handle GNU ld.
21418 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
21419 Define.
21420 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
21421 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
21422 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
21423 (STACK_CHECK_STATIC_BUILTIN): Define.
21424 * config/sol2.opt (compat-bsd): Remove.
21425 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
21426 * config/sol2-bi.h: New file.
21427 * config/sol2-gld.h: Remove.
21428 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
21429 (NO_DBX_BNSYM_ENSYM): Remove.
21430 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
21431 (STACK_CHECK_STATIC_BUILTIN): Remove.
21432 Test USE_GLD instead of TARGET_GNU_LD.
21433 * config/i386/sol2-10.h: Rename to ...
21434 * config/i386/sol2-bi.h .. this.
21435 (SUBTARGET_EXTRA_SPECS): Redefine.
21436 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
21437 (MULTILIB_DEFAULTS): Remove.
21438 (DEFAULT_ARCH32_P): Define.
21439 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
21440 (ARCH64_SUBDIR): Define.
21441 Test USE_GLD instead of TARGET_GNU_LD.
21442 (I386_EMULATION): Rename to ...
21443 (ARCH32_EMULATION): ... this.
21444 (X86_64_EMULATION): Rename to ...
21445 (ARCH64_EMULATION): ... this.
21446 (TARGET_LD_EMULATION): Remove.
21447 (LINK_ARCH_SPEC): Remove.
21448 * config/i386/sol2-gas.h: Remove.
21449 * config/i386/t-sol2-10: Rename to ...
21450 * config/i386/t-sol2-64: ... this.
21451 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
21452 (AS_SPARC64_FLAG): Define.
21453 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
21454 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
21455 depending on TARGET_CPU_DEFAULT.
21456 (CPP_CPU_SPEC): Redefine.
21457 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
21458 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
21459 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
21460 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
21461 ASM_ARCH_DEFAULT_SPEC): Redefine.
21462 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21463 LINK_ARCH_DEFAULT_SPEC.
21464 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
21465 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
21466 (ARCH64_SUBDIR): Define.
21467 (LINK_ARCH64_SPEC): Redefine.
21468 (CC1_SPEC): Redefine.
21469 (OPTION_DEFAULT_SPECS): Redefine.
21470 (MULTILIB_DEFAULTS): Define.
21471 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
21472 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
21473 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
21474 (NO_DBX_BNSYM_ENSYM): Remove.
21475 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
21476 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
21477 (TARGET_ASM_NAMED_SECTION): Likewise.
21478 (STACK_CHECK_STATIC_BUILTIN): Remove.
21479 * config/sparc/sol2-bi.h: Remove.
21480 * config/sparc/sol2-gas-bi.h: Remove.
21481 * config/sparc/sol2-gas.h: Remove.
21482 * config/sparc/sol2-gld-bi.h: Remove.
21483 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
21484 common parts ...
21485 (*-*-solaris2*): ... here.
21486
21487 2011-06-21 Christian Bruel <christian.bruel@st.com>
21488
21489 PR other/43564
21490 * ipa-inline.c (can_inline_edge_p): Check
21491 !DECL_DISREGARD_INLINE_LIMITS.
21492
21493 2011-06-21 Christian Bruel <christian.bruel@st.com>
21494
21495 PR middle-end/49139
21496 * cgraphunit.c (process_function_and_variable_attributes): warn when
21497 always_inline functions that are not inline.
21498 * ipa-inline-transform.c (inline_transform): Always call
21499 optimize_inline.
21500 * tree-inline.c (tree_inlinable_function_p): Use error instead
21501 of sorry.
21502 (expand_call_inline): Likewise.
21503
21504 2011-06-21 Jakub Jelinek <jakub@redhat.com>
21505
21506 * Makefile.in (dg_target_exps): Set.
21507 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
21508 instead of 7, try to divide it more evenly.
21509
21510 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
21511
21512 PR target/49089
21513 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
21514 (avx256_split_unaligned_store): New definition.
21515 (ix86_option_override_internal): Enable avx256 unaligned load/store
21516 splitting only when avx256_split_unaligned_load/store is set.
21517
21518 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
21519
21520 * regrename.c (scan_rtx_reg): Handle the case where we write to an
21521 open chain in a smaller mode without failing the entire block.
21522
21523 2011-06-21 Alan Modra <amodra@gmail.com>
21524
21525 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
21526 CONST high part large-toc address.
21527 (rs6000_tls_referenced_p): Make static.
21528 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
21529
21530 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21531
21532 PR target/49385
21533 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
21534 one of the operands is a register.
21535
21536 2011-06-20 Kai Tietz <ktietz@redhat.com>
21537
21538 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
21539 operations in combination with binary and.
21540
21541 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
21542
21543 * regrename.c (do_replace): Don't update notes.
21544
21545 2011-06-20 Alan Modra <amodra@gmail.com>
21546
21547 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
21548 of toc-relative address in CONST.
21549 (rs6000_delegitimize_address): Recognize changed address.
21550 (rs6000_legitimize_reload_address): Likewise.
21551 (rs6000_emit_move): Don't force these constants to memory.
21552 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
21553 toc-relative address in CONST.
21554 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
21555 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
21556
21557 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
21558
21559 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
21560 (count_trailing_zeros): Likewise.
21561
21562 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
21563
21564 PR other/49325
21565 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
21566 .init_array can be used with .ctors on targets.
21567 * configure: Regenerated.
21568
21569 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
21570
21571 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
21572 if the element type is volatile.
21573
21574 2011-06-18 Jan Hubicka <jh@suse.cz>
21575
21576 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
21577 extra name aliases.
21578 (lto_symtab_resolve_can_prevail_p): Likewise.
21579 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
21580 * cgraphbuild.c (record_reference): Remove extra body alias code.
21581 (mark_load): Likewise.
21582 (mark_store): Likewise.
21583 * cgraph.h (varpool_node): Remove extra_name filed;
21584 add alias_of and extraname_alias.
21585 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
21586 (varpool_alias_aliased_node): New inline function.
21587 (varpool_variable_node): New function.
21588 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
21589 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
21590 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
21591 (input_varpool_node): Likewise.
21592 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
21593 (varpool_externally_visible_p): Remove extra body alias code.
21594 (function_and_variable_visibility): Likewise.
21595 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
21596 (ipa_pta_execute): Use it.
21597 * varpool.c (varpool_remove_node): Remove extra name alias code.
21598 (varpool_mark_needed_node): Likewise.
21599 (varpool_analyze_pending_decls): Analyze aliases.
21600 (assemble_aliases): New functoin.
21601 (varpool_assemble_decl): Use it.
21602 (varpool_create_variable_alias): New function.
21603 (varpool_extra_name_alias): Rewrite.
21604 (varpool_for_node_and_aliases): New function.
21605
21606 2011-06-18 Jakub Jelinek <jakub@redhat.com>
21607
21608 PR target/49411
21609 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
21610 last_arg_constant and last argument doesn't match its predicate,
21611 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
21612 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
21613 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
21614 spelling of error message.
21615 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
21616 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
21617 const_0_to_255_operand instead of const_int_operand.
21618
21619 Revert:
21620 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21621
21622 * config/i386/sse.md (blendbits): Remove mode attribute.
21623 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21624 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21625 Check integer value of operand 3 in insn constraint.
21626
21627 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
21628
21629 PR rtl-optimization/48542
21630 * reload.c (find_equiv_reg): Stop looking when finding a
21631 setjmp-type call.
21632 * reload1.c (reload_as_needed): Invalidate all reload
21633 registers when crossing a setjmp-type call.
21634
21635 2011-06-16 Jeff Law <law@redhat.com>
21636
21637 * tree-ssa-threadupdate.c (struct redirection_data): New field
21638 intermediate_edge.
21639 (THREAD_TARGET2): Define.
21640 (redirection_data_eq): Also check that the intermediate edge is equal.
21641 (lookup_redirection_data): Drop useless argument. Extract the
21642 outgoing_edge and intermediate edge from E. Callers updated.
21643 (copy_phi_args, update_destination_phis): New functions.
21644 (fix_duplicate_block_edges): Likewise.
21645 (create_edge_and_update_destination_phis): Duplicate all the edges
21646 hung off e->aux. Use copy_phi_args.
21647 (create_duplicates): Use fix_duplicate_block_edges.
21648 (fixup_template_block): Likewise.
21649 (redirect_edges): If necessary, redirect the joiner block's incoming
21650 edge to the duplicate of the joiner block.
21651 (thread_block): Don't muck up loops when threading through a joiner
21652 block.
21653 (thread_through_loop_header): Handle threading through a joiner block.
21654 (mark_threaded_blocks, register_jump_thread): Likewise.
21655 * tree-flow.h (register_jump_thread): Add new argument. Callers
21656 updated.
21657 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
21658 (thread_across_edge): Handle threading through a joiner block.
21659
21660 2011-06-16 Martin Jambor <mjambor@suse.cz>
21661
21662 PR tree-optimization/49343
21663 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
21664 calculate offset, provide 2nd operand for the new COMPONENT_REF.
21665
21666 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
21667
21668 * config/darwin-protos.h (machopic_select_rtx_section): Move to
21669 inside RTX_CODE ifdef.
21670
21671 2011-06-16 Tom de Vries <tom@codesourcery.com>
21672
21673 PR target/45098
21674 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
21675 Disallow NULL pointer for pointer arithmetic.
21676
21677 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21678
21679 PR target/49398
21680 Revert.
21681 2011-06-10 Wei Guozhi <carrot@google.com>
21682
21683 PR target/45335
21684 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
21685 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21686 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
21687 related peephole2.
21688 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
21689 related peephole2.
21690 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
21691 (arm_legitimate_ldrd_p): New prototype.
21692 (arm_output_ldrd): New prototype.
21693 * config/arm/arm.c (arm_check_ldrd_operands): New function.
21694 (arm_legitimate_ldrd_p): New function.
21695 (arm_output_ldrd): New function.
21696
21697 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21698
21699 PR middle-end/46500
21700 * doc/tm.texi.in: Update Copyright date.
21701 * doc/tm.texi: Regenerate.
21702 * targhooks.c (default_setup_incoming_varargs): Replace
21703 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21704 (default_pretend_outgoing_varargs_named): Likewise.
21705 (hook_pass_by_reference_must_pass_in_stack): Likewise.
21706 (hook_callee_copies_named): Likewise.
21707 (default_function_arg_advance): Likewise.
21708 (default_function_arg): Likewise.
21709 (default_function_incoming_arg): Likewise.
21710 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
21711 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
21712 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
21713 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
21714 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
21715 * targhooks.h (default_setup_incoming_varargs): Likewise.
21716 (default_pretend_outgoing_varargs_named): Likewise.
21717 (hook_pass_by_reference_must_pass_in_stack): Likewise.
21718 (hook_callee_copies_named): Likewise.
21719 (default_function_arg_advance): Likewise.
21720 (default_function_arg): Likewise.
21721 (default_function_incoming_arg): Likewise.
21722 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
21723 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
21724 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
21725 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
21726 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
21727 * target.def (pass_by_reference): Likewise.
21728 (setup_incoming_varargs, strict_argument_naming): Likewise.
21729 (pretend_outgoing_varargs_named, callee_copies): Likewise.
21730 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
21731 (function_incoming_arg): Likewise.
21732 * target.h: Don't include "tm.h" .
21733 (cumulative_args_t): New typedef.
21734 [GCC_TM_H] (get_cumulative_args): New static inline function.
21735 [GCC_TM_H] (pack_cumulative_args): Likewise.
21736 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
21737 argument type with cumulative_args_t.
21738 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
21739 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
21740 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
21741 (frv_arg_partial_bytes, frv_function_arg): Likewise.
21742 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
21743 (frv_function_arg_1): Likewise.
21744 * config/s390/s390.c (s390_pass_by_reference): Likewise.
21745 (s390_function_arg_advance, s390_function_arg): Likewise.
21746 * config/m32c/m32c.c (m32c_function_arg): Likewise.
21747 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
21748 (m32c_strict_argument_naming): Likewise.
21749 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
21750 (spu_function_arg_advance): Likewise.
21751 (spu_setup_incoming_varargs): Likewise. Make static.
21752 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
21753 Remove prototype.
21754 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
21755 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21756 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
21757 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
21758 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
21759 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
21760 (mep_pass_by_reference, mep_function_arg): Likewise.
21761 (mep_function_arg_advance): Likewise.
21762 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
21763 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
21764 (m32r_function_arg, m32r_function_arg_advance): Likewise.
21765 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
21766 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
21767 (ix86_function_arg, ix86_pass_by_reference): Likewise.
21768 (ix86_setup_incoming_varargs): Likewise.
21769 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
21770 (sh_strict_argument_naming): Likewise.
21771 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
21772 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
21773 (sh_function_arg_advance, sh_function_arg): Likewise.
21774 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
21775 (pdp11_function_arg_advance): Likewise.
21776 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
21777 Likewise.
21778 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
21779 * config/avr/avr.c (avr_function_arg): Likewise.
21780 (avr_function_arg_advance): Likewise.
21781 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
21782 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
21783 (xtensa_function_arg_1): Likewise.
21784 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
21785 Likewise.
21786 (xstormy16_function_arg): Likewise.
21787 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
21788 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
21789 (fr30_function_arg_advance): Likewise.
21790 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
21791 (lm32_function_arg, lm32_function_arg_advance): Likewise.
21792 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
21793 (moxie_function_arg, moxie_function_arg_advance): Likewise.
21794 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
21795 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
21796 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
21797 (cris_function_arg, cris_function_incoming_arg): Likewise.
21798 (cris_function_arg_advance, cris_function_arg_1): Likewise.
21799 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
21800 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
21801 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
21802 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
21803 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
21804 (mn10300_arg_partial_bytes): Likewise.
21805 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
21806 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
21807 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
21808 (ia64_function_arg_1): Likewise.
21809 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
21810 (m68k_function_arg): Likewise.
21811 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
21812 (rs6000_function_arg, setup_incoming_varargs): Likewise.
21813 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
21814 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
21815 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
21816 (picochip_arg_advance): Likewise.
21817 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
21818 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
21819 (mcore_function_arg_advance): Likewise.
21820 * config/score/score.c (score_pass_by_reference): Likewise.
21821 (score_function_arg_advance): Likewise.
21822 (score_arg_partial_bytes): Likewise. Make static.
21823 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
21824 * config/arm/arm.c (arm_arg_partial_bytes): Replace
21825 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21826 (arm_function_arg, arm_function_arg_advance): Likewise.
21827 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
21828 * config/pa/pa.c (pa_pass_by_reference): Likewise.
21829 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
21830 (pa_function_arg): Likewise.
21831 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
21832 (mips_function_arg, mips_function_arg_advance): Likewise.
21833 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
21834 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
21835 * config/vax/vax.c (vax_function_arg): Likewise.
21836 (vax_function_arg_advance): Likewise.
21837 * config/h8300/h8300.c (h8300_function_arg): Likewise.
21838 (h8300_function_arg_advance): Likewise.
21839 * config/v850/v850.c (v850_pass_by_reference): Likewise.
21840 (v850_strict_argument_naming, v850_function_arg): Likewise.
21841 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
21842 (v850_setup_incoming_varargs): Likewise.
21843 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
21844 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
21845 (mmix_function_arg, mmix_pass_by_reference): Likewise.
21846 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
21847 with const void *.
21848 * config/bfin/bfin.c (setup_incoming_varargs): Replace
21849 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21850 (bfin_function_arg_advance, bfin_function_arg): Likewise.
21851 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
21852 * calls.c (emit_call_1): Change type of args_so_far to
21853 cumulative_args_t. Changed all callers.
21854 (initialize_argument_information): Likewise.
21855 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
21856 * dse.c (get_call_args): Likewise.
21857 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
21858 * function.c (pass_by_reference, reference_callee_copied): Likewise.
21859 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
21860 New member args_so_far_v. Changed all users.
21861 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
21862 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21863 * config/mips/mips.c (mips_output_args_xfer): Likewise.
21864 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
21865 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
21866 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21867 Likewise.
21868 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
21869 m32r_pass_by_reference.
21870
21871 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
21872
21873 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
21874 argument to be a VEC of statements.
21875 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
21876 assert that pattern statements have to have their vector type set.
21877 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
21878 Change the first argument to be a VEC of statements. Update
21879 documentation.
21880 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
21881 (vect_handle_widen_mult_by_const): New function.
21882 (vect_recog_widen_mult_pattern): Change the first argument to be a
21883 VEC of statements. Update documentation. Check that the constant is
21884 INTEGER_CST. Support multiplication by a constant that fits an
21885 intermediate type - call vect_handle_widen_mult_by_const.
21886 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
21887 call. Handle additional pattern statements if necessary.
21888
21889 2011-06-16 Nick Clifton <nickc@redhat.com>
21890
21891 PR target/49427
21892 * config.gcc: Set cpu_type to v850 for any V850 architecture.
21893 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
21894 md_file, extra_modes, out_file and extra_options are these are all
21895 deduced from cpu_type.
21896
21897 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
21898
21899 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
21900 truncation mask to 63.
21901
21902 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
21903
21904 PR target/49313
21905 PR target/29524
21906 * longlong.h: Add AVR support:
21907 (count_leading_zeros): New macro.
21908 (count_trailing_zeros): New macro.
21909 (COUNT_LEADING_ZEROS_0): New macro.
21910 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
21911 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
21912 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
21913 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
21914 (LIB2FUNCS_EXCLUDE): Add _clz.
21915 * config/avr/libgcc.S (XCALL): Move up in file.
21916 (XJMP): New C Macro.
21917 (DEFUN): New asm macro.
21918 (ENDF): New asm macro.
21919 (__ffssi2): New function.
21920 (__ffshi2): New function.
21921 (__loop_ffsqi2): New function.
21922 (__ctzsi2): New function.
21923 (__ctzhi2): New function.
21924 (__clzdi2): New function.
21925 (__clzsi2): New function.
21926 (__clzhi2): New function.
21927 (__paritydi2): New function.
21928 (__paritysi2): New function.
21929 (__parityhi2): New function.
21930 (__parityqi2): New function.
21931 (__popcounthi2): New function.
21932 (__popcountsi2): New function.
21933 (__popcountdi2): New function.
21934 (__popcountqi2): New function.
21935 (__bswapsi2): New function.
21936 (__bswapdi2): New function.
21937 (__ashldi3): New function.
21938 (__ashrdi3): New function.
21939 (__lshrdi3): New function.
21940 Fix suspicous lines.
21941
21942 2011-06-16 Richard Guenther <rguenther@suse.de>
21943
21944 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
21945 the same as x != 0.
21946 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
21947 to (bool) X & 1.
21948 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
21949 equality compares against zero for the lower bit.
21950
21951 2011-06-16 Jakub Jelinek <jakub@redhat.com>
21952
21953 PR tree-optimization/49419
21954 * tree-vrp.c (execute_vrp): Call init_range_assertions
21955 before estimate_numbers_of_iterations, call
21956 free_number_of_iterations_estimates before calling
21957 remove_range_assertions.
21958
21959 2011-06-16 Revital Eres <revital.eres@linaro.org>
21960
21961 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
21962 (struct partial_schedule): Add rows_length field.
21963 (verify_partial_schedule): Check rows_length.
21964 (ps_insert_empty_row): Handle rows_length.
21965 (create_partial_schedule): Likewise.
21966 (free_partial_schedule): Likewise.
21967 (reset_partial_schedule): Likewise.
21968 (create_ps_insn): Remove rest_count argument.
21969 (remove_node_from_ps): Update rows_length.
21970 (add_node_to_ps): Update rows_length and call create_ps_insn
21971 without passing row_rest_count.
21972 (rotate_partial_schedule): Update rows_length.
21973
21974 2011-06-16 Revital Eres <revital.eres@linaro.org>
21975
21976 * ddg.c (add_intra_loop_mem_dep): New function.
21977 (build_intra_loop_deps): Call it.
21978
21979 2011-06-13 Jeff Law <law@redhat.com>
21980
21981 * df-problems.c (df_lr_local_compute): Manually CSE
21982 PIC_OFFSET_TABLE_REGNUM.
21983 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
21984 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
21985
21986 2011-06-13 Jan Hubicka <jh@suse.cz>
21987
21988 * cgraphunit.c (handle_alias_pairs): New function.
21989 (cgraph_finalize_compilation_unit): Use it.
21990 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
21991 as externally visible.
21992
21993 2011-06-15 Richard Guenther <rguenther@suse.de>
21994
21995 * expr.c (expand_expr_real_2): Reduce all integral types to
21996 bitfield precision.
21997 (expand_expr_real_1): Likewise.
21998
21999 2011-06-15 Martin Jambor <mjambor@suse.cz>
22000
22001 PR tree-optimization/48613
22002 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
22003 ipa_node_params_vector is NULL.
22004
22005 2011-06-15 Jakub Jelinek <jakub@redhat.com>
22006
22007 PR debug/49382
22008 * dwarf2out.c (dw_loc_list_node): Add force field.
22009 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
22010 location in the list, even if it is modified before first real insn.
22011 (output_loc_list): Emit empty ranges with force flag set.
22012 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
22013
22014 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
22015
22016 PR target/49349
22017 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
22018 (fence_to_rewind). Use it to notice when bookkeeping will be placed
22019 above a fence. Update comments.
22020 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
22021 placed just above it. Do not allow NULL place_to_insert.
22022
22023 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
22024
22025 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
22026 (slpeel_tree_peel_loop_to_edge): Don't call
22027 remove_dead_stmts_from_loop.
22028 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
22029 remove irrelevant pattern statements. For irrelevant statements
22030 check if it is the last statement of a detected pattern, use
22031 corresponding pattern statement instead.
22032 (destroy_loop_vec_info): No need to remove pattern statements,
22033 only free stmt_vec_info.
22034 (vect_transform_loop): For irrelevant statements check if it is
22035 the last statement of a detected pattern, use corresponding
22036 pattern statement instead.
22037 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
22038 pattern statements. Set basic block for the new statement.
22039 (vect_pattern_recog): Update documentation.
22040 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
22041 operands of pattern statements.
22042 (vectorizable_call): Fix printing. In case of a pattern statement
22043 use the lhs of the original statement when creating a dummy
22044 statement to replace the original call.
22045 (vect_analyze_stmt): For irrelevant statements check if it is
22046 the last statement of a detected pattern, use corresponding
22047 pattern statement instead.
22048 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
22049 statements use gsi of the original statement.
22050
22051 2011-06-14 Joseph Myers <joseph@codesourcery.com>
22052
22053 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
22054 common/common-target-def.h.
22055 * target.def (default_target_flags, handle_option,
22056 supports_split_stack, optimization_table, init_struct,
22057 except_unwind_info, unwind_tables_default, have_named_sections):
22058 Move to common/common-target.def.
22059 * target.h (enum opt_levels, struct default_options): Move to
22060 common/common-target.h.
22061 * targhooks.c (default_except_unwind_info,
22062 dwarf2_except_unwind_info, sjlj_except_unwind_info,
22063 default_target_handle_option, empty_optimization_table): Move to
22064 common/common-targhooks.c.
22065 * targhooks.h (default_except_unwind_info,
22066 dwarf2_except_unwind_info, sjlj_except_unwind_info,
22067 default_target_handle_option, empty_optimization_table): Move to
22068 common/common-targhooks.h.
22069 * common/common-target-def.h: Include common/common-targhooks.h.
22070 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
22071 defined.
22072 * common/common-target.def (handle_option, option_init_struct,
22073 option_optimization_table, default_target_flags,
22074 except_unwind_info, supports_split_stack, unwind_tables_default,
22075 have_named_sections): Move from target.def.
22076 (HOOK_PREFIX): Undefine at end of file.
22077 * common/common-target.h: Include input.h.
22078 (enum opt_levels, struct default_options): Move from target.h.
22079 * common/common-targhooks.c, common/common-targhooks.h: New.
22080 * config.gcc (target_has_targetm_common): Default to yes.
22081 (moxie*): Set target_has_targetm_common=no.
22082 (hppa*-*-*): Don't set target_has_targetm_common=yes.
22083 * doc/tm.texi: Regenerate.
22084 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
22085 (C_TARGET_DEF_H): Add common/common-targhooks.h.
22086 (GCC_OBJS): Remove vec.o.
22087 (OBJS): Remove hooks.o and vec.o.
22088 (OBJS-libcommon-target): Add vec.o, hooks.o and
22089 common/common-targhooks.o.
22090 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
22091 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
22092 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
22093 cfglayout.o, $(out_object_file), $(common_out_object_file)):
22094 Update dependencies.
22095 (common/common-targhooks.o): New.
22096 * common/config/default-common.c: Include tm.h. Add FIXME comment.
22097 * common/config/pa/pa-common.c: Include more headers. Take
22098 copyright dates from pa.c.
22099 (pa_option_optimization_table, pa_handle_option,
22100 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
22101 TARGET_HANDLE_OPTION): Move from pa.c.
22102 * common/config/alpha/alpha-common.c,
22103 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
22104 common/config/bfin/bfin-common.c,
22105 common/config/cris/cris-common.c,
22106 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
22107 common/config/h8300/h8300-common.c,
22108 common/config/i386/i386-common.c,
22109 common/config/ia64/ia64-common.c,
22110 common/config/iq2000/iq2000-common.c,
22111 common/config/lm32/lm32-common.c,
22112 common/config/m32c/m32c-common.c,
22113 common/config/m32r/m32r-common.c,
22114 common/config/m68k/m68k-common.c,
22115 common/config/mcore/mcore-common.c,
22116 common/config/mep/mep-common.c,
22117 common/config/microblaze/microblaze-common.c,
22118 common/config/mips/mips-common.c,
22119 common/config/mmix/mmix-common.c,
22120 common/config/mn10300/mn10300-common.c,
22121 common/config/pdp11/pdp11-common.c,
22122 common/config/picochip/picochip-common.c,
22123 common/config/rs6000/rs6000-common.c,
22124 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
22125 common/config/score/score-common.c, common/config/sh/sh-common.c,
22126 common/config/sparc/sparc-common.c,
22127 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
22128 common/config/vax/vax-common.c,
22129 common/config/xstormy16/xstormy16-common.c,
22130 common/config/xtensa/xtensa-common.c: New.
22131 * config/alpha/alpha.c: Include common/common-target.h.
22132 (alpha_option_optimization_table, alpha_handle_option,
22133 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22134 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
22135 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
22136 * config/arm/arm.c (arm_option_optimization_table,
22137 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22138 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
22139 arm-common.c.
22140 * config/avr/avr.c (avr_option_optimization_table,
22141 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
22142 to avr-common.c.
22143 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
22144 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
22145 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
22146 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
22147 * config/cris/cris.c (cris_option_optimization_table,
22148 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22149 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
22150 cris-common.c.
22151 * config/fr30/fr30.c (fr30_option_optimization_table,
22152 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
22153 to fr30-common.c.
22154 * config/frv/frv.c (frv_option_optimization_table,
22155 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
22156 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
22157 * config/h8300/h8300.c (h8300_option_optimization_table,
22158 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22159 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
22160 * config/i386/i386-protos.h (ix86_handle_option): Declare.
22161 * config/i386/i386.c: Include common/common-target.h.
22162 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
22163 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
22164 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
22165 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
22166 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
22167 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
22168 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
22169 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
22170 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
22171 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
22172 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
22173 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
22174 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
22175 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
22176 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
22177 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
22178 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
22179 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
22180 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
22181 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
22182 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
22183 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
22184 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
22185 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
22186 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
22187 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
22188 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
22189 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
22190 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
22191 ix86_option_optimization_table, ix86_option_init_struct,
22192 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
22193 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22194 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
22195 i386-common.c.
22196 * config/i386/t-i386 (i386.o): Update dependencies.
22197 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
22198 * config/ia64/ia64.c (ia64_option_optimization_table,
22199 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
22200 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22201 ia64_handle_option): Move to ia64-common.c.
22202 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
22203 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
22204 * config/lm32/lm32.c (lm32_option_optimization_table,
22205 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
22206 to lm32-common.c.
22207 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
22208 m32c-common.c.
22209 * config/m32r/m32r.c (m32r_option_optimization_table,
22210 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22211 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
22212 m32r_handle_option): Move to m32r-common.c.
22213 (m32r_memory_move_cost): Remove comment referring to
22214 TARGET_HANDLE_OPTION.
22215 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
22216 Move to m68k-common.c.
22217 * config/mcore/mcore.c (mcore_option_optimization_table,
22218 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22219 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
22220 * config/mep/mep.c (mep_option_optimization_table,
22221 mep_handle_option, TARGET_HANDLE_OPTION,
22222 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
22223 Move to mep-common.c.
22224 * config/microblaze/microblaze.c
22225 (microblaze_option_optimization_table,
22226 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22227 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
22228 * config/mips/mips.c (mips_handle_option,
22229 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
22230 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
22231 mips-common.c.
22232 * config/mmix/mmix.c (mmix_option_optimization_table,
22233 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
22234 Move to mmix-common.c.
22235 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
22236 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
22237 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22238 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
22239 * config/pa/pa.c: Include common/common-target.h.
22240 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
22241 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22242 pa_handle_option): Move to pa-common.c.
22243 (pa_option_override): Use targetm_common.except_unwind_info.
22244 (pa_asm_output_mi_thunk, pa_function_section): Use
22245 targetm_common.have_named_sections.
22246 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
22247 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22248 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
22249 pdp11_handle_option, pdp11_option_init_struct): Move to
22250 pdp11-common.c.
22251 * config/picochip/picochip.c (picochip_option_optimization_table,
22252 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
22253 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
22254 * config/rs6000/rs6000.c: Include common/common-target.h.
22255 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
22256 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
22257 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
22258 rs6000_handle_option): Move to rs6000-common.c.
22259 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22260 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
22261 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22262 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
22263 * config/s390/s390.c (processor_flags_table,
22264 s390_option_optimization_table, s390_option_init_struct,
22265 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
22266 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22267 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
22268 * config/s390/s390.h (processor_flags_table): Declare.
22269 * config/score/score.c (score_option_optimization_table,
22270 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22271 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
22272 score_handle_option): Move to score-common.c.
22273 * config/sh/sh.c (sh_option_optimization_table,
22274 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
22275 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22276 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
22277 * config/sparc/sparc.c: Include common/common-target.h.
22278 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
22279 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
22280 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
22281 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
22282 spu_option_init_struct): Move to spu-common.c.
22283 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
22284 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
22285 * config/v850/v850.c (small_memory_physical_max,
22286 v850_handle_memory_optionn v850_handle_option,
22287 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
22288 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
22289 v850-common.c.
22290 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
22291 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
22292 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
22293 Move to xtensa-common.c.
22294 * cfglayout.c: Include common/common-target.h.
22295 (fixup_reorder_chain): Use targetm_common.have_named_sections.
22296 * cfgrtl.c: Include common/common-target.h.
22297 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
22298 targetm_common.have_named_sections.
22299 * dbxout.c: Include common/common-target.h.
22300 (dbxout_function_end): Use targetm_common.have_named_sections.
22301 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
22302 targetm_common.except_unwind_info.
22303 * dwarf2out.c: Include common/common-target.h.
22304 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
22305 dwarf2out_begin_prologue, dwarf2out_frame_init,
22306 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
22307 targetm_common.except_unwind_info.
22308 * except.c: Include common/common-target.h.
22309 (init_eh, finish_eh_generation,
22310 output_one_function_exception_table): Use
22311 targetm_common.except_unwind_info.
22312 (switch_to_exception_section): Use targetm_common.have_named_sections.
22313 * explow.c: Include common/common-target.h.
22314 * expr.c: Include common/common-target.h.
22315 (build_personality_function): Use targetm_common.except_unwind_info.
22316 * function.c: Include common/common-target.h.
22317 (expand_function_end): Use targetm_common.except_unwind_info.
22318 * haifa-sched.c: Include common/common-target.h.
22319 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
22320 * lto-opts.c: Include common/common-target.h instead of target.h.
22321 (lto_reissue_options): Use targetm_common.handle_option.
22322 * opts.c: Include common/common-target.h.
22323 (target_handle_option): Use targetm_common.handle_option.
22324 (init_options_struct): Update comment referring to
22325 targetm.target_option.optimization. Use
22326 targetm_common.default_target_flags,
22327 targetm_common.unwind_tables_default and
22328 targetm_common.option_init_struct.
22329 (default_options_optimization): Use
22330 targetm_common.option_optimization_table.
22331 (finish_options): Use targetm_common.except_unwind_info,
22332 targetm_common.unwind_tables_default,
22333 targetm_common.have_named_sections and
22334 targetm_common.supports_split_stack.
22335 * toplev.c: Include common/common-target.h.
22336 (process_options): Use targetm_common.have_named_sections.
22337 * tree-tailcall.c: Include common/common-target.h.
22338 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
22339 * tree.c: Include common/common-target.h.
22340 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
22341 * varasm.c: Include common/common-target.h.
22342 (resolve_unique_section, hot_function_section,
22343 default_function_section): Use targetm_common.have_named_sections.
22344
22345 2011-06-14 Easwaran Raman <eraman@google.com>
22346
22347 PR rtl-optimization/44194
22348 * dse.c: Include tree-flow.h
22349 (insn_info): Add new field non_frame_wild_read.
22350 (group_info): Add new fields escaped_n and escaped_p.
22351 (kill_on_calls): New variable.
22352 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
22353 (dse_step0): Initialize kill_on_calls.
22354 (can_escape): New function.
22355 (set_usage_bits): Add additional parameter; record information
22356 about escaped locations.
22357 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
22358 (dse_step2_nospill): Set kill_on_calls based on
22359 group->escaped_n and group->escaped_n.
22360 (add_wild_read): Refactor into...
22361 (reset_active_stores): ... New function, and
22362 (free_read_records): ... New function.
22363 (add_non_frame_wild_read): New function.
22364 (scan_insn): Call add_non_frame_wild_read on non-const calls.
22365 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
22366 (dse_step5_nospill): Call scan_reads_nospill for instructions
22367 marked as non_frame_wild_read.
22368 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
22369
22370 2011-06-14 Joseph Myers <joseph@codesourcery.com>
22371
22372 * common/common-target-def.h, common/common-target.def,
22373 common/common-target.h, common/config/default-common.c,
22374 common/config/pa/pa-common.c: New files.
22375 * Makefile.in (common_out_file, common_out_object_file,
22376 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
22377 (OBJS-libcommon-target): Include $(common_out_object_file).
22378 (prefix.o): Update dependencies.
22379 ($(common_out_object_file), common/common-target-hooks-def.h,
22380 s-common-target-hooks-def-h): New.
22381 (s-tm-texi): Also check timestamp on common-target.def.
22382 (build/genhooks.o): Update dependencies.
22383 * config.gcc (common_out_file, target_has_targetm_common): Define.
22384 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
22385 TARGET_ALWAYS_STRIP_DOTDOT.
22386 * configure.ac (common_out_object_file): Define.
22387 (common_out_file, common_out_object_file): Substitute.
22388 (common): Create directory.
22389 * configure: Regenerate.
22390 * doc/tm.texi.in (targetm_common): Document.
22391 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
22392 * doc/tm.texi: Regenerate.
22393 * genhooks.c (hook_array): Also include common/common-target.def.
22394 * prefix.c (tm.h): Don't include.
22395 (common/common-target.h): Include.
22396 (ALWAYS_STRIP_DOTDOT): Don't define.
22397 (update_path): Use targetm_common.always_strip_dotdot instead of
22398 ALWAYS_STRIP_DOTDOT.
22399 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
22400
22401 2011-06-14 David Li <davidxl@google.com>
22402
22403 * passes.c (execute_function_todo): Remove TODO_dump_func.
22404 (execute_one_pass): Remove TODO_dump_func.
22405 (execute_function_dump): New function.
22406 * tree-vrp.c: Remove TODO_dump_func.
22407 * regrename.c: Remove TODO_dump_func.
22408 * fwprop.c: Remove TODO_dump_func.
22409 * tree-into-ssa.c: Remove TODO_dump_func.
22410 * tree-complex.c: Remove TODO_dump_func.
22411 * tracer.c: Remove TODO_dump_func.
22412 * tree-loop-distribution.c: Remove TODO_dump_func.
22413 * postreload-gcse.c: Remove TODO_dump_func.
22414 * postreload.c: Remove TODO_dump_func.
22415 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
22416 * tree-tailcall.c: Remove TODO_dump_func.
22417 * ipa-cp.c: Remove TODO_dump_func.
22418 * final.c: Remove TODO_dump_func.
22419 * tree-emutls.c: Remove TODO_dump_func.
22420 * omp-low.c: Remove TODO_dump_func.
22421 * tree-ssa-dse.c: Remove TODO_dump_func.
22422 * tree-ssa-uncprop.c: Remove TODO_dump_func.
22423 * auto-inc-dec.c: Remove TODO_dump_func.
22424 * reorg.c: Remove TODO_dump_func.
22425 * tree-ssa-copyrename.c: Remove TODO_dump_func.
22426 * tree-ssa-ccp.c: Remove TODO_dump_func.
22427 * compare-elim.c: Remove TODO_dump_func.
22428 * mode-switching.c: Remove TODO_dump_func.
22429 * modulo-sched.c: Remove TODO_dump_func.
22430 * tree-call-cdce.c: Remove TODO_dump_func.
22431 * cse.c: Remove TODO_dump_func.
22432 * web.c: Remove TODO_dump_func.
22433 * tree-stdarg.c: Remove TODO_dump_func.
22434 * lto-streamer-out.c: Remove TODO_dump_func.
22435 * tree-ssa-math-opts.c: Remove TODO_dump_func.
22436 * tree-ssa-dom.c: Remove TODO_dump_func.
22437 * tree-nrv.c: Remove TODO_dump_func.
22438 * loop-init.c: Remove TODO_dump_func.
22439 * gimple-low.c: Remove TODO_dump_func.
22440 * ipa-inline.c: Remove TODO_dump_func.
22441 * tree-ssa-sink.c: Remove TODO_dump_func.
22442 * jump.c: Remove TODO_dump_func.
22443 * ifcvt.c: Remove TODO_dump_func.
22444 * tree-ssa-loop.c: Remove TODO_dump_func.
22445 * recog.c: Remove TODO_dump_func.
22446 * dse.c: Remove TODO_dump_func.
22447 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
22448 * matrix-reorg.c: Remove TODO_dump_func.
22449 * tree-eh.c: Remove TODO_dump_func.
22450 * regmove.c: Remove TODO_dump_func.
22451 * function.c: Remove TODO_dump_func.
22452 * tree-vectorizer.c: Remove TODO_dump_func.
22453 * ipa-split.c: Remove TODO_dump_func.
22454 * gcse.c: Remove TODO_dump_func.
22455 * tree-if-conv.c: Remove TODO_dump_func.
22456 * init-regs.c: Remove TODO_dump_func.
22457 * tree-ssa-phiopt.c: Remove TODO_dump_func.
22458 * implicit-zee.c: Remove TODO_dump_func.
22459 * lower-subreg.c: Remove TODO_dump_func.
22460 * bt-load.c: Remove TODO_dump_func.
22461 * tree-dfa.c: Remove TODO_dump_func.
22462 * except.c: Remove TODO_dump_func.
22463 * emit-rtl.c: Remove TODO_dump_func.
22464 * store-motion.c: Remove TODO_dump_func.
22465 * cfgexpand.c: Remove TODO_dump_func.
22466 * tree-cfgcleanup.c: Remove TODO_dump_func.
22467 * cfgcleanup.c: Remove TODO_dump_func.
22468 * tree-ssa-pre.c: Remove TODO_dump_func.
22469 * tree-sra.c: Remove TODO_dump_func.
22470 * tree-mudflap.c: Remove TODO_dump_func.
22471 * tree-ssa-copy.c: Remove TODO_dump_func.
22472 * cfglayout.c: Remove TODO_dump_func.
22473 * tree-ssa-forwprop.c: Remove TODO_dump_func.
22474 * tree-ssa-dce.c: Remove TODO_dump_func.
22475 * ira.c: Remove TODO_dump_func.
22476 * tree-ssa.c: Remove TODO_dump_func.
22477 * integrate.c: Remove TODO_dump_func.
22478 * tree-optimize.c: Remove TODO_dump_func.
22479 * tree-ssa-phiprop.c: Remove TODO_dump_func.
22480 * tree-object-size.c: Remove TODO_dump_func.
22481 * combine.c: Remove TODO_dump_func.
22482 * bb-reorder.c: Remove TODO_dump_func.
22483 * cprop.c: Remove TODO_dump_func.
22484 * var-tracking.c: Remove TODO_dump_func.
22485 * tree-profile.c: Remove TODO_dump_func.
22486 * tree-vect-generic.c: Remove TODO_dump_func.
22487 * reg-stack.c: Remove TODO_dump_func.
22488 * sched-rgn.c: Remove TODO_dump_func.
22489 * tree-ssa-structalias.c: Remove TODO_dump_func.
22490 * tree-switch-conversion.c: Remove TODO_dump_func.
22491 * tree-cfg.c: Remove TODO_dump_func.
22492 * tree-ssa-reassoc.c: Remove TODO_dump_func.
22493 * combine-stack-adj.c: Remove TODO_dump_func.
22494 * dce.c: Remove TODO_dump_func.
22495 * tree-ssanames.c: Remove TODO_dump_func.
22496 * regcprop.c: Remove TODO_dump_func.
22497
22498 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
22499
22500 PR middle-end/47364
22501 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
22502 and properly handle result not in Pmode.
22503
22504 2011-06-14 Robert Millan <rmh@gnu.org>
22505
22506 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
22507 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
22508 `config/linux.h'.
22509
22510 * config/i386/kfreebsd-gnu64.h: New file.
22511 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
22512 with `i386/kfreebsd-gnu64.h'.
22513
22514 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
22515 (GNU_USER_LINK_EMULATION64): New macros.
22516 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
22517 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
22518 of hardcoding `elf_i386' and `elf_x86_64'.
22519
22520 2011-06-14 Nick Clifton <nickc@redhat.com>
22521
22522 PR target/49403
22523 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
22524
22525 PR target/49402
22526 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
22527
22528 2011-06-14 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR fortran/49103
22531 * tree.h (DECL_NONSHAREABLE): Define.
22532 (struct tree_decl_common): Change decl_common_unused to
22533 decl_nonshareable_flag.
22534 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
22535 Ignore vars with DECL_NONSHAREABLE bit set.
22536 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
22537 on stores to automatic aggregate vars.
22538
22539 PR rtl-optimization/49390
22540 Revert:
22541 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
22542
22543 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22544 MEM_ALIAS_SET.
22545
22546 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
22547 Tom de Vries <tom@codesourcery.com>
22548
22549 PR target/45098
22550 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
22551 Document changed semantics.
22552 (max_stmt_executions, max_stmt_executions_int): Declare.
22553 * tree-data-ref.c (estimated_loop_iterations)
22554 (estimated_loop_iterations_int): Move functions...
22555 * tree-ssa-loop-niter.c (estimated_loop_iterations)
22556 (estimated_loop_iterations_int): here.
22557 (record_estimate): Change nb_iterations_upper_bound and
22558 nb_iterations_estimate semantics.
22559 (max_stmt_executions, max_stmt_executions_int): New function.
22560 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
22561 (max_stmt_executions_tree): this.
22562 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
22563 estimated_loop_iterations_tree.
22564 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
22565 max_stmt_executions_int instead of estimated_loop_iterations_int.
22566 * predict.c (predict_loops): Idem.
22567 * tree-parloops.c (parallelize_loops): Idem.
22568 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
22569 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
22570 (init_omega_for_ddr_1): Idem.
22571 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
22572 (loop_prefetch_arrays): Idem
22573 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
22574 max_stmt_executions instead of estimated_loop_iterations.
22575 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
22576 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
22577 instead of nb_iterations_upper_bound.
22578
22579 2011-06-13 Jan Hubicka <jh@suse.cz>
22580
22581 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
22582
22583 2011-06-14 Richard Henderson <rth@redhat.com>
22584
22585 PR debug/48459
22586 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
22587 (based_loc_descr): Assert it's true.
22588 (compute_frame_pointer_to_fb_displacement): Set it, rather than
22589 aborting immediately.
22590
22591 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
22592 Mingfeng Wu <mingfeng@faraday-tech.com>
22593
22594 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
22595
22596 2011-06-13 Jan Hubicka <jh@suse.cz>
22597
22598 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
22599
22600 2011-06-13 Jan Hubicka <jh@suse.cz>
22601
22602 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
22603 similarly to DECL_COMDAT.
22604 * cgraphunit.c (cgraph_analyze_function): Likewise.
22605 * ipa.c (function_and_variable_visibility): Likewise.
22606
22607 2011-06-13 Jan Hubicka <jh@suse.cz>
22608
22609 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
22610 BINFO_VIRTUALS when streaming for ltrans unit.
22611
22612 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
22613
22614 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
22615 (movdi_internal64): Same.
22616
22617 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
22618
22619 PR target/44618
22620 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
22621 a set of similar patterns, where the MATCH_OPERAND for the function
22622 argument is replaced with individual references to hardware registers.
22623 (save_fpregs_<mode>): Ditto
22624 (restore_gpregs_<mode>): Ditto
22625 (return_and_restore_gpregs_<mode>): Ditto
22626 (return_and_restore_fpregs_<mode>): Ditto
22627 (return_and_restore_fpregs_aix_<mode>): Ditto
22628
22629 2011-06-13 Jan Hubicka <jh@suse.cz>
22630
22631 * ipa-utils.c (postorder_stack): New structure.
22632 (ipa_reverse_postorder): Handle aliases.
22633
22634 2011-06-13 Jan Hubicka <jh@suse.cz>
22635
22636 * ipa-inline.c (reset_edge_caches): Walk aliases.
22637 (update_caller_keys): Do not test inlinability of aliases.
22638 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
22639 (do_estimate_growth): Fix typo.
22640
22641 2011-06-13 Jan Hubicka <jh@suse.cz>
22642
22643 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
22644 (can_remove_node_now_p): ... here; handle same comdat groups.
22645 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
22646 (inline_call): Update use of can_remove_node_now_p.
22647
22648 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22649
22650 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
22651 condition to disallow non-identical memory locations.
22652 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
22653 preference to bit manipulation instructions.
22654
22655 2011-06-13 Jan Hubicka <jh@suse.cz>
22656
22657 * cgraph.c (cgraph_for_node_thunks_and_aliases,
22658 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
22659 (nonremovable_p): New function.
22660 (cgraph_can_remove_if_no_direct_calls_p): New function.
22661 (used_from_object_file_p): New functoin.
22662 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
22663 references from aliases.
22664 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
22665 * ipa-inline.c (check_caller_edge): New function.
22666 (want_inline_function_called_once_p): Use it; accept aliases called
22667 once, too.
22668 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
22669
22670 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22671
22672 PR target/48454
22673 * config/arm/neon.md (vec_pack_trunc): Set the lengths
22674 correctly for the case with Quad vectors.
22675
22676 2011-06-13 Jakub Jelinek <jakub@redhat.com>
22677 Ira Rosen <ira.rosen@linaro.org>
22678
22679 PR tree-optimization/49352
22680 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
22681 all, make sure loop_use_stmt after the loop is a def stmt of a used
22682 SSA_NAME that is the only one defined inside of the loop. Don't
22683 check for COND_EXPR and GIMPLE_BINARY_RHS.
22684 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
22685 check_reduction is true.
22686
22687 2011-06-11 Jan Hubicka <jh@suse.cz>
22688
22689 PR middle-end/49373
22690 * ipa.c (cgraph_externally_visible_p): Check resolution info.
22691
22692 2011-06-11 Jan Hubicka <jh@suse.cz>
22693
22694 PR middle-end/48836
22695 * ipa-inline-transform.c: Include tree-pass.h
22696 (inline_transform): Set TODO_update_ssa_only_virtuals.
22697 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
22698
22699 2011-06-11 Jan Hubicka <jh@suse.cz>
22700
22701 PR middle-end/49378
22702 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
22703 aliases and thunks.
22704
22705 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
22706
22707 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
22708 Take number of iterations to peel into account for equally frequent
22709 misalignment values.
22710
22711 2011-06-11 Jan Hubicka <jh@suse.cz>
22712
22713 * lto-streamer-out.c (produce_symtab): Stream out the newly
22714 represented aliases.
22715
22716 2011-06-11 Jan Hubicka <jh@suse.cz>
22717
22718 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
22719 varying args.
22720 (ipa_update_after_lto_read): Likewise.
22721 (ipa_write_node_info): Do not sream call_with_var_arguments.
22722 (ipa_read_node_info): Likewise.
22723
22724 2011-06-11 Jan Hubicka <jh@suse.cz>
22725
22726 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
22727
22728 2011-06-11 Jan Hubicka <jh@suse.cz>
22729
22730 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
22731 (lto_symtab_resolve_can_prevail_p): Likewise.
22732 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
22733 * cgraph.c (same_body_aliases_done): New global var.
22734 (cgraph_same_body_alias_1): Rename to ...
22735 (cgraph_create_function_alias): ... this one; reorg to new
22736 representation.
22737 (cgraph_same_body_alias): Use cgraph_create_function_alias;
22738 record references when asked to.
22739 (cgraph_add_thunk): Fix formating.
22740 (cgraph_get_node): Kill same body alias code.
22741 (cgraph_node_for_asm): Likewise.
22742 (cgraph_remove_same_body_alias): Remove.
22743 (cgraph_remove_node): Kill same body alias code.
22744 (cgraph_mark_address_taken_node): Mark also the aliased function
22745 as having address taken.
22746 (dump_cgraph_node): Dump same body aliases.
22747 (cgraph_for_node_thunks_and_aliases): Update for new alias
22748 representation.
22749 (cgraph_for_node_and_aliases): Likewise.
22750 * cgraph.h (same_body): Kll pointer.
22751 (same_body_alias): Update comment.
22752 (same_body_aliases_done): Declare.
22753 (cgraph_remove_same_body_alias): Remove declaration.
22754 (cgraph_create_function_alias): Declare.
22755 (cgraph_process_same_body_aliases): Declare.
22756 (cgraph_function_with_gimple_body_p): Check for alias.
22757 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
22758 (cgraph_alias_aliased_node): New function.
22759 (cgraph_function_node): Update for new aliases.
22760 (cgraph_function_or_thunk_node): Likewise.
22761 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
22762 (inline_call): Remove dead aliases.
22763 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
22764 name hack for same body aliases.
22765 (clone_of_p): Look through aliases.
22766 (verify_cgraph_node): Verify aliases.
22767 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
22768 (cgraph_process_same_body_aliases): New function.
22769 (process_function_and_variable_attributes): Disable weakref warning on
22770 alias.
22771 (cgraph_analyze_functions): Handle aliases.
22772 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
22773 (assemble_thunks): Rename to ...
22774 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
22775 (cgraph_expand_function): Remove alias output code.
22776 (cgraph_output_in_order): Skip aliases.
22777 (cgraph_preserve_function_body_p): Aliases don't need preserving.
22778 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
22779 (ipa_record_reference): Do not assert on alias references.
22780 (ipa_ref_has_aliases_p): New function.
22781 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
22782 (ipa_ref_has_aliases_p): Declare.
22783 * lto-cgraph.c (lto_output_node): Handle aliases.
22784 (input_node): Likewise.
22785 * lto-streamer-out.c (lto_output): Skip aliases.
22786 (produce_symtab): Kill same_body_alias code.
22787 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
22788 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
22789 * ipa-inline.c (update_caller_keys): Walk aliases.
22790 (inline_small_functions): Fix thinko in previous patch.
22791 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
22792 (function_and_variable_visibility): Do not walk same body aliases.
22793 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
22794 (ipa_pta_execute): Use it.
22795
22796 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22797
22798 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
22799 (*vec_dupv2df): Rename from vec_dupv2df.
22800 (vec_dupv2df): New expander.
22801
22802 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22803
22804 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
22805
22806 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22807
22808 * config/i386/i386.md: Use default value in "isa" attribute.
22809 * config/i386/sse.md: Ditto.
22810 * config/i386/mmx.md: Ditto.
22811
22812 2011-06-10 Wei Guozhi <carrot@google.com>
22813
22814 PR target/45335
22815 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
22816 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
22817 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
22818 related peephole2.
22819 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
22820 related peephole2.
22821 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
22822 (arm_legitimate_ldrd_p): New prototype.
22823 (arm_output_ldrd): New prototype.
22824 * config/arm/arm.c (arm_check_ldrd_operands): New function.
22825 (arm_legitimate_ldrd_p): New function.
22826 (arm_output_ldrd): New function.
22827
22828 2011-06-10 David Li <davidxl@google.com>
22829
22830 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
22831 * passes.c (passr_eq): New function.
22832 (create_pass_tab): New function.
22833 (pass_traverse): New function.
22834 (dump_one_pass): New function.
22835 (dump_pass_list): New function.
22836 (dump_passes): New function.
22837
22838 2011-06-10 Jan Hubicka <jh@suse.cz>
22839
22840 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
22841 setting the nothrow flag.
22842 * ipa-reference.c (propagate): Skip aliases.
22843 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
22844 (propagate_nothrow): Skip aliases; do not update cgraph.
22845 (local_pure_const): Do not update cgraph.
22846 * tree-profile.c (tree_profiling): Do fixup_cfg.
22847
22848 2011-06-10 Jan Hubicka <jh@suse.cz>
22849
22850 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
22851 (cgraph_local_node_p): ... here; handle aliases.
22852 (has_addr_references_p): Break out from ...;
22853 (cgraph_remove_unreachable_nodes) ... here.
22854
22855 2011-06-10 Jan Hubicka <jh@suse.cz>
22856
22857 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
22858 * common.opt (flag_inline_functions_called_once): Do not
22859 initialize to 1.
22860
22861 2011-06-10 Jan Hubicka <jh@suse.cz>
22862
22863 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
22864 (ipcp_initialize_node_lattices): Do not deal with aliases;
22865 Do not try to propagate through thunks.
22866 (ipcp_change_tops_to_bottom): Do not deal with aliases.
22867
22868 2011-06-10 Jan Hubicka <jh@suse.cz>
22869
22870 * ipa-prop.c (ipa_write_node_info): Stream jump functions
22871 for indirect calls.
22872 (ipa_read_node_info): Likewise.
22873
22874 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22875
22876 PR lto/49302
22877 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
22878 (build_and_insert_call): Likewise.
22879 (build_and_insert_ref): New.
22880 (gimple_expand_builtin_pow): Minor cleanup.
22881 (gimple_expand_builtin_cabs): New.
22882 (execute_cse_sincos): Add case for BUILT_IN_CABS.
22883
22884 2011-06-10 Jan Hubicka <jh@suse.cz>
22885
22886 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
22887 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
22888 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
22889 (ipcp_propagate_stage): Skip aliases when propagating.
22890 (ipcp_need_redirect_p): Skip aliases.
22891 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
22892 collect_callers_of_node.
22893 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
22894 for aliases.
22895 (ipa_compute_jump_functions): Look through aliases.
22896
22897 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22898
22899 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
22900
22901 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22902
22903 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
22904 Adjust comments.
22905 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
22906
22907 2011-06-10 Jan Hubicka <jh@suse.cz>
22908
22909 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
22910 Update call of gimple_get_virt_method_for_binfo.
22911 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
22912 refuse_thunks parameter.
22913 (gimple_fold_call): Update.
22914 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
22915
22916 2011-06-10 Jan Hubicka <jh@suse.cz>
22917
22918 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
22919 (not_all_callers_have_enough_arguments_p): ... this one; turn into
22920 worker for cgraph_for_node_and_aliases.
22921 (convert_callers_for_node): Break out from ...
22922 (convert_callers): ... here.
22923 (modify_function): Use collect_callers_of_node.
22924 (ipa_early_sra): Use cgraph_for_node_and_aliases.
22925
22926 2011-06-10 Richard Guenther <rguenther@suse.de>
22927
22928 PR tree-optimization/49361
22929 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
22930 when not already in gimple form.
22931
22932 2011-06-10 Richard Guenther <rguenther@suse.de>
22933
22934 PR bootstrap/49344
22935 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
22936 FOR_EACH_PHI_OR_STMT_USE.
22937
22938 2011-06-10 Jan Hubicka <jh@suse.cz>
22939
22940 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
22941 (clone_inlined_nodes): ... here.
22942 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
22943 to real destination prior inlining.
22944 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
22945 can_early_inline_edge_p, want_early_inline_function_p,
22946 want_early_inline_function_p, want_inline_small_function_p,
22947 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
22948 edge_badness, update_all_callee_keys, lookup_recursive_calls,
22949 add_new_edges_to_heap, inline_small_functions, flatten_function,
22950 inline_always_inline_functions, early_inline_small_functions): Use
22951 cgraph_function_or_thunk_node.
22952 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
22953 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
22954 (do_estimate_edge_growth_1): Break out from ...
22955 (do_estimate_growth) ... here; walk aliases.
22956 (inline_generate_summary): Skip aliases.
22957
22958 2011-06-10 Richard Guenther <rguenther@suse.de>
22959
22960 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
22961 forward when combining, visit inserted stmts when a stmt was changed.
22962
22963 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
22964
22965 * tree.h (error_operand_p): Add.
22966 * dbxout.c (dbxout_type_fields): Use the latter.
22967 * c-decl.c (add_stmt): Likewise.
22968 * gimplify.c (omp_add_variable, omp_notice_variable,
22969 gimplify_scan_omp_clauses): Likewise.
22970
22971 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
22972
22973 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
22974 when a value is actually passed in regs.
22975
22976 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
22977 Laurent Rougé <laurent.rouge@menta.fr>
22978
22979 * doc/invoke.texi (SPARC options): Add -mflat.
22980 * config/sparc/sparc.opt: Likewise.
22981 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
22982 (sparc_flat_expand_prologue): Declare.
22983 (sparc_flat_expand_epilogue): Likewise.
22984 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
22985 (CPP_ENDIAN_SPEC): Replace with...
22986 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
22987 (CPP_SPEC): Adjust to above change.
22988 (EXTRA_SPECS): Likewise.
22989 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
22990 (INCOMING_REGNO): Likewise.
22991 (OUTGOING_REGNO): Likewise.
22992 (LOCAL_REGNO): Likewise.
22993 (SETUP_FRAME_ADDRESSES): Likewise.
22994 (FIXED_REGISTERS): Set 0 for %fp.
22995 (CALL_USED_REGISTERS): Likewise.
22996 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
22997 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
22998 (RETURN_ADDR_REGNUM): Define.
22999 (RETURN_ADDR_RTX): Use it.
23000 (INCOMING_RETURN_ADDR_REGNUM): Define.
23001 (INCOMING_RETURN_ADDR_RTX): Use it.
23002 (DWARF_FRAME_RETURN_COLUMN): Likewise.
23003 (EH_RETURN_REGNUM): Define.
23004 (EH_RETURN_STACKADJ_RTX): Use it.
23005 (EH_RETURN_HANDLER_RTX): Delete.
23006 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
23007 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
23008 Delete.
23009 (struct machine_function): Add frame_size, apparent_frame_size,
23010 frame_base_reg, frame_base_offset, n_global_fp_regs and
23011 save_local_in_regs_p fields.
23012 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
23013 sparc_frame_base_offset, sparc_n_global_fp_regs,
23014 sparc_save_local_in_regs_p): New macros.
23015 (sparc_option_override): Error out if -fcall-saved-REG is specified
23016 for Out registers.
23017 (eligible_for_restore_insn): Fix formatting.
23018 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
23019 (eligible_for_sibcall_delay): Likewise.
23020 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
23021 (sparc_legitimate_address_p): Adjust to above change.
23022 (save_global_or_fp_reg_p): New predicate.
23023 (return_addr_reg_needed_p): Likewise.
23024 (save_local_or_in_reg_p): Likewise.
23025 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
23026 (SORR_SAVE, SORR_RESTORE): Delete.
23027 (sorr_pred_t): New typedef.
23028 (sorr_act_t): New enum.
23029 (save_or_restore_regs): Rename to...
23030 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
23031 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
23032 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
23033 mechanism. Add CFI information for double-word saves in 32-bit mode.
23034 (emit_adjust_base_to_offset): New function extracted from...
23035 (emit_save_or_restore_regs): ...this. Rename the rest to...
23036 (emit_save_or_restore_regs_global_fp_regs): ...this.
23037 (emit_save_or_restore_regs_local_in_regs): New function.
23038 (gen_create_flat_frame_[123]): New functions.
23039 (sparc_expand_prologue): Use SIZE local variable. Adjust.
23040 (sparc_flat_expand_prologue): New function.
23041 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
23042 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
23043 (sparc_flat_expand_epilogue): New function.
23044 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
23045 (output_return): Likewise.
23046 (output_sibcall): Likewise.
23047 (sparc_output_mi_thunk): Likewise.
23048 (sparc_frame_pointer_required): Likewise.
23049 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
23050 function optimization.
23051 * config/sparc/sparc.md (flat): New attribute.
23052 (prologue): Add TARGET_FLAT handling.
23053 (save_register_window): Disable if TARGET_FLAT.
23054 (create_flat_frame_[123]): New patterns.
23055 (epilogue): Add TARGET_FLAT handling.
23056 (sibcall_epilogue): Likewise.
23057 (eh_return): New expander.
23058 (eh_return_internal): New insn and splitter.
23059 (return_internal): Add TARGET_FLAT handling.
23060 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
23061 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
23062 (nonlocal_goto): Add TARGET_FLAT handling.
23063 * config/sparc/t-elf: Add -mflat multilib.
23064 * config/sparc/t-leon: Likewise.
23065
23066 2011-06-10 Jan Hubicka <jh@suse.cz>
23067
23068 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
23069 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
23070 (self_recursive_p): Use cgraph_function_node.
23071 (propagate_pure_const): Likewise.
23072 (propagate_nothrow): Likewise.
23073 * ipa-reference.c (ipa_reference_get_not_read_global): Use
23074 cgraph_function_node.
23075 (propagate_bits): Likewise.
23076 (propagate): Likewise.
23077
23078 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23079 Richard Earnshaw <rearnsha@arm.com>
23080
23081 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
23082 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
23083 (*thumb2_movdi_vfp): Delete.
23084 (*arm_movdi_vfp_cortexa8): Delete.
23085 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
23086 (*movdi_vfp_cortexa8): Likewise.
23087
23088 2011-06-10 Richard Guenther <rguenther@suse.de>
23089
23090 * stor-layout.c (initialize_sizetypes): Give names to all
23091 sizetype kinds.
23092
23093 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
23094
23095 PR tree-optimization/49318
23096 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
23097 irrelevant pattern statements.
23098
23099 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
23100
23101 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
23102
23103 PR bootstrap/49354
23104 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
23105 to last assignment.
23106
23107 2011-06-09 Jan Hubicka <jh@suse.cz>
23108
23109 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
23110 do not recompute reachable flag.
23111 (cgraph_finalize_function, cgraph_analyze_functions): Set
23112 redefined_extern_inline here.
23113
23114 2011-06-09 Jan Hubicka <jh@suse.cz>
23115
23116 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
23117 (cgraph_only_called_directly_p): ... this one; bring offline.
23118 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
23119 varpool_used_from_object_file_p): Drop names from the declaratoin.
23120 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
23121 collect_callers_of_node): New.
23122 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
23123 (cgraph_edge_recursive_p): Use cgraph_function_node.
23124 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
23125 (cgraph_node_cannot_be_local_p_1): Break out from ...
23126 (cgraph_node_can_be_local_p): ... here; walk aliases.
23127 (cgraph_for_node_thunks_and_aliases): New function.
23128 (cgraph_for_node_and_aliases): New function.
23129 (cgraph_make_node_local_1): Break out from ...
23130 (cgraph_make_node_local) ... here; use
23131 cgraph_for_node_thunks_and_aliases.
23132 (cgraph_set_nothrow_flag_1): Break out from ...
23133 (cgraph_set_nothrow_flag) ... here;
23134 use cgraph_for_node_thunks_and_aliases.
23135 (cgraph_set_const_flag_1): Break out from ...
23136 (cgraph_set_const_flag) ... here;
23137 use cgraph_for_node_thunks_and_aliases.
23138 (cgraph_set_pure_flag_1): Break out from ...
23139 (cgraph_set_pure_flag) ... here;
23140 use cgraph_for_node_thunks_and_aliases.
23141 (cgraph_propagate_frequency_1): Break out from ...
23142 (cgraph_propagate_frequency) ... here; use
23143 cgraph_for_node_thunks_and_aliases.
23144 (cgraph_used_from_object_file_p): Do not care about aliases.
23145 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
23146 New functions.
23147 (collect_callers_of_node_1, collect_callers_of_node): New functions.
23148
23149 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
23150
23151 PR rtl-optimization/49154
23152 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
23153 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
23154 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
23155 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
23156 * config/cris/cris.h (cris_register_move_cost): Remove
23157 !TARGET_V32 code. Tweak comments.
23158
23159 2011-06-09 Jan Hubicka <jh@suse.cz>
23160
23161 * cgraphbuild.c (record_eh_tables): Mark personality function as having
23162 address taken.
23163
23164 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
23165
23166 PR rtl-optimization/49154
23167 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
23168 is a matching slot in the hashtable, assign it to classes_ptr.
23169
23170 PR rtl-optimization/49154
23171 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
23172 register classes.
23173 * doc/tm.texi: Regenerate.
23174
23175 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
23176
23177 PR target/49307
23178 * config/sh/sh.md (UNSPEC_CHKADD): New.
23179 (chk_guard_add): New define_insn_and_split.
23180 (symGOT_load): Use chk_guard_add instead of blockage.
23181
23182 2011-06-09 Kai Tietz <ktietz@redhat.com>
23183
23184 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
23185
23186 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
23187
23188 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
23189
23190 2011-06-09 Wei Guozhi <carrot@google.com>
23191
23192 PR target/46975
23193 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
23194 (peephole2 for conditional move): Generate 16 bit instructions.
23195
23196 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
23197
23198 * config/i386/i386.md (*movdi_internal_rex64): Merge
23199 alternatives 6 and 8.
23200
23201 2011-06-09 David Li <davidxl@google.com>
23202
23203 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
23204 * passes.c (passr_eq): New function.
23205 (create_pass_tab): New function.
23206 (pass_traverse): New function.
23207 (dump_one_pass): New function.
23208 (dump_pass_list): New function.
23209 (dump_passes): New function.
23210
23211 2011-06-09 David Li <davidxl@google.com>
23212
23213 * tree-complex.c (tree_lower_complex): Gate cleanup.
23214 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
23215 (execute_optimize_stdarg): Ditto.
23216 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
23217 (execute_cleanup_eh_1): Ditto.
23218 (execute_cleanup_eh): Ditto.
23219 * gcse.c (gate_rtl_pre): Ditto.
23220 (execute_rtl_pre): Ditto.
23221 * except.c (finish_eh_generation): Ditto.
23222 (convert_to_eh_region_ranges): Ditto.
23223 * cprop.c (one_cprop_pass): Ditto.
23224
23225 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
23226
23227 PR target/48673
23228 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
23229 in all basic blocks.
23230
23231 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23232
23233 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
23234 (HAVE_ENABLE_EXECUTE_STACK): Define.
23235 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
23236 (HAVE_ENABLE_EXECUTE_STACK): Define.
23237 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
23238 (HAVE_ENABLE_EXECUTE_STACK): Define.
23239 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
23240 (ENABLE_EXECUTE_STACK): Remove.
23241 (HAVE_ENABLE_EXECUTE_STACK): Define.
23242 [IN_LIBGCC2]: Don't include <windows.h>.
23243 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
23244 (HAVE_ENABLE_EXECUTE_STACK): Define.
23245 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
23246 (HAVE_ENABLE_EXECUTE_STACK): Define.
23247 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
23248 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
23249 (HAVE_ENABLE_EXECUTE_STACK): Define.
23250 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
23251 (HAVE_ENABLE_EXECUTE_STACK): Define.
23252 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
23253 (HAVE_ENABLE_EXECUTE_STACK): Define.
23254 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
23255 (HAVE_ENABLE_EXECUTE_STACK): Define.
23256 * config/alpha/alpha.c (alpha_trampoline_init): Test
23257 HAVE_ENABLE_EXECUTE_STACK.
23258 * config/i386/i386.c (ix86_trampoline_init): Likewise.
23259 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
23260 (sparc64_initialize_trampoline): Likewise.
23261 * libgcc2.c [L_enable_execute_stack]: Remove.
23262 * system.h (ENABLE_EXECUTE_STACK): Poison.
23263 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
23264 * doc/tm.texi: Regenerate.
23265 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
23266
23267 2011-06-09 Jakub Jelinek <jakub@redhat.com>
23268
23269 PR middle-end/49308
23270 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
23271 variable. After resetting and rescanning insn continue with previous
23272 statement.
23273
23274 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23275
23276 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
23277 (gcc_cv_ld_hidden): Likewise.
23278 * configure: Regenerate.
23279 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
23280 (ix86_stack_protect_fail): Mark unused.
23281 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
23282 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
23283 [TARGET_MACHO]: Don't define.
23284 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
23285 (TARGET_STACK_PROTECT_FAIL): Likewise.
23286 (rs6000_stack_protect_fail): Mark unused.
23287 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
23288 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
23289
23290 2011-06-08 Andi Kleen <ak@linux.intel.com>
23291
23292 * varasm.c (get_section): Print location of other conflict
23293 for section conflicts.
23294
23295 2011-06-08 Andi Kleen <ak@linux.intel.com>
23296
23297 * config/i386/driver-i386.c (host_detect_local_cpu):
23298 Add model 0x2d Intel CPU.
23299
23300 2011-06-08 Andi Kleen <ak@linux.intel.com>
23301
23302 * reginfo.c (global_regs_decl): Add.
23303 (globalize_reg): Add decl parameter. Compute location. Pass location
23304 to warnings and add inform. Store decl in global_regs_decl.
23305 * rtl.h (globalize_reg): Update prototype.
23306 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
23307
23308 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
23309
23310 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
23311
23312 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
23313
23314 PR target/49305
23315 * config/sh/predicates.md (general_movsrc_operand): Check
23316 mode for memory with indexed address for QI and HImode.
23317 (general_movdst_operand): Likewise.
23318
23319 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
23320
23321 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
23322
23323 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
23324
23325 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
23326 (num_ssa_operands): Likewise.
23327 (op_iter_init_phiuse): Forward-declare.
23328 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
23329
23330 2011-06-08 Nick Clifton <nickc@redhat.com>
23331
23332 * doc/invoke.texi (ARM Options): Update description of
23333 -mthumb-interwork.
23334
23335 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
23336
23337 * config/i386/driver-i386.c (host_detect_local_cpu): Support
23338 unknown Intel family 0x6 CPUs.
23339
23340 2011-06-08 Martin Jambor <mjambor@suse.cz>
23341
23342 * tree-sra.c (mark_rw_status): Removed.
23343 (analyze_access_subtree): New parameter parent instead of
23344 mark_read and mark_write, propagate from that.
23345
23346 2011-06-08 Julian Brown <julian@codesourcery.com>
23347
23348 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
23349 for double-precision helper functions in hard-float mode if only
23350 single-precision arithmetic is supported in hardware.
23351
23352 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
23353
23354 PR rtl-optimization/49303
23355 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
23356 code_motion_path_driver returned 0 or 1.
23357 (sel_region_finish): Clear h_d_i_d.
23358
23359 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
23360
23361 * config/sh/sh.c (prepare_move_operands): Set pic register
23362 appropriately for global and local dynamic tls models even
23363 if flag_pic is unset.
23364
23365 2011-06-07 Jason Merrill <jason@redhat.com>
23366
23367 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
23368
23369 2011-06-07 Xinliang David Li <davidxl@google.com>
23370 * passes.c (enable_disable_pass): Handle assembler name.
23371 (is_pass_explicitly_enabled_or_disabled): Ditto.
23372
23373 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23374
23375 PR tree-optimization/48497
23376 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
23377
23378 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23379
23380 PR tree-optimization/46728
23381 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
23382 to use gimple_val_nonnegative_real_p.
23383 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
23384 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
23385
23386 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
23387
23388 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
23389
23390 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
23391
23392 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
23393 constant vectors.
23394
23395 2011-06-07 Richard Guenther <rguenther@suse.de>
23396
23397 * stor-layout.c (initialize_sizetypes): Initialize all
23398 sizetypes based on target definitions.
23399 (set_sizetype): Remove.
23400 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
23401 * tree.h (set_sizetype): Remove.
23402
23403 2011-06-07 Nick Clifton <nickc@redhat.com>
23404
23405 * config.gcc: Unify V850 architecture options and add support for
23406 newer V850 architectures.
23407 * config/v850/t-v850e: Delete.
23408
23409 2011-06-07 Richard Guenther <rguenther@suse.de>
23410
23411 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
23412 Call set_sizetype from here.
23413
23414 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
23415
23416 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
23417 (*maddhisi4tb, *maddhisi4tt): New define_insns.
23418
23419 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
23420 Andrew Stubbs <ams@codesourcery.com>
23421
23422 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
23423 multiplies.
23424 * doc/md.texi (Canonicalization of Instructions): Document widening
23425 multiply canonicalization.
23426
23427 2011-06-07 Jakub Jelinek <jakub@redhat.com>
23428
23429 PR gcov-profile/49299
23430 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
23431
23432 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
23433
23434 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
23435 a pointer.
23436 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
23437 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
23438 vect_recog_pow_pattern): Likewise.
23439 (vect_pattern_recog_1): Remove declaration.
23440 (widened_name_p): Remove declaration. Add new argument to specify
23441 whether to check that both types are either signed or unsigned.
23442 (vect_recog_widen_mult_pattern): Update documentation. Handle
23443 unsigned patterns and multiplication by constants.
23444 (vect_pattern_recog_1): Update vect_recog_func references. Use
23445 statement information from the statement returned from pattern
23446 detection functions.
23447 (vect_pattern_recog): Update vect_recog_func reference.
23448 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
23449 multiplication by a constant use the type of the other operand.
23450
23451 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
23452
23453 PR rtl-optimization/49145
23454 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
23455
23456 2011-06-06 Jakub Jelinek <jakub@redhat.com>
23457
23458 PR debug/49262
23459 * dwarf2out.c (native_encode_initializer): Decrement count in each
23460 iteration.
23461
23462 PR debug/49294
23463 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
23464 non-MODE_INT modes.
23465
23466 PR c++/49264
23467 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
23468 if stmt folded into nothing.
23469 * tree-inline.c (fold_marked_statements): If a builtin at the end of
23470 a bb folded into nothing, just update cgraph edges and move to next bb.
23471 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
23472 to be NULL. Don't compute count and frequency if new_call is NULL.
23473
23474 2011-06-04 Diego Novillo <dnovillo@google.com>
23475
23476 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
23477 (cgraph.o): Likewise.
23478 (cgraphunit.o): Likewise.
23479 * cgraphunit.c: Include lto-streamer.h
23480 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
23481 if LTO is enabled.
23482 * lto-streamer-in.c (unpack_value_fields): Call
23483 streamer_hooks.unpack_value_fields if set.
23484 (lto_materialize_tree): For unhandled nodes, first try to
23485 call lto_streamer_hooks.alloc_tree, if it exists.
23486 (lto_input_ts_decl_common_tree_pointers): Move reading of
23487 DECL_INITIAL to lto_streamer_read_tree.
23488 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
23489 (lto_streamer_read_tree): New.
23490 (lto_reader_init): Rename from lto_init_reader.
23491 Move initialization code to lto/lto.c.
23492 * lto-streamer-out.c (pack_value_fields): Call
23493 streamer_hooks.pack_value_fields if set.
23494 (lto_output_tree_ref): For tree nodes that are not normally indexable,
23495 call streamer_hooks.indexable_with_decls_p before giving up.
23496 (lto_output_ts_decl_common_tree_pointers): Move handling
23497 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
23498 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
23499 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
23500 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
23501 (lto_streamer_write_tree): New.
23502 (lto_output): Call lto_streamer_init directly.
23503 (lto_writer_init): Remove.
23504 * lto-streamer.c (streamer_hooks): New.
23505 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
23506 instead of lto_preload_common_nodes.
23507 (lto_is_streamable): Move from lto-streamer.h
23508 (lto_streamer_hooks_init): New.
23509 (streamer_hooks): New.
23510 (streamer_hooks_init): New.
23511 * lto-streamer.h (struct output_block): Forward declare.
23512 (struct lto_input_block): Likewise.
23513 (struct data_in): Likewise.
23514 (struct bitpack_d): Likewise.
23515 (struct streamer_hooks): Declare.
23516 (streamer_hooks): Declare.
23517 (lto_streamer_hooks_init): Declare.
23518 (lto_streamer_write_tree): Declare.
23519 (lto_streamer_read_tree): Declare.
23520 (streamer_hooks_init): Declare.
23521 (lto_is_streamable): Move to lto-streamer.c
23522
23523 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23524
23525 * longlong.h (smul_ppmm): The resulting register pair contains the
23526 higher order word first.
23527
23528 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23529
23530 PR tree-optimization/46728
23531 * builtins.c (powi_table): Remove.
23532 (powi_lookup_cost): Remove.
23533 (powi_cost): Remove.
23534 (expand_powi_1): Remove.
23535 (expand_powi): Remove.
23536 (expand_builtin_pow_root): Remove.
23537 (expand_builtin_pow): Remove.
23538 (expand_builtin_powi): Eliminate handling of constant exponent.
23539 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
23540
23541 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23542
23543 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
23544
23545 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23546
23547 * dce.c (reset_unmarked_insns_debug_uses): New.
23548 (delete_unmarked_insns): Skip debug insns.
23549 (prescan_insns_for_dce): Likewise.
23550 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
23551 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
23552 active reg can be found.
23553 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
23554 (convert_regs_1): Use it.
23555
23556 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23557
23558 * tree-pretty-print.c (dump_function_header): Add flags.
23559 Don't dump decl_uid with nouid.
23560 * tree-pretty-print.h (dump_function_header): Adjust.
23561 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
23562 * passes.c (pass_init_dump_file): Pass dump_flags on.
23563 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
23564
23565 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23566
23567 PR bootstrap/49270
23568 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
23569
23570 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
23571
23572 PR tree-optimization/49243
23573 * calls.c (setjmp_call_p): Also check if fndecl has the
23574 returns_twice attribute.
23575
23576 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23577
23578 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
23579 -ffast-math etc.
23580
23581 2011-06-06 Richard Henderson <rth@redhat.com>
23582 Georg-Johann Lay <avr@gjlay.de>
23583
23584 PR target/42210
23585 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
23586 New predicates.
23587 * config/avr/avr.md ("insv"): New insn expander.
23588 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
23589 "*insv.not.io", "*insv.reg"): New insns.
23590
23591 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
23592
23593 PR target/49285
23594 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
23595 to nonimmediate_operand from memory_operand for the operand that is to
23596 be forced to memory by the expander. Lose the constraints.
23597
23598 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
23599
23600 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
23601 EH return when delayed branches are disabled.
23602
23603 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
23604
23605 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
23606 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
23607 calculation.
23608 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
23609 Simplify MODE_V1DF and MODE_V2SF handling.
23610 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
23611 Simplify MODE_SF handling.
23612
23613 2011-06-04 Jan Hubicka <jh@suse.cz>
23614
23615 PR tree-optimization/48893
23616 PR tree-optimization/49091
23617 PR tree-optimization/49179
23618 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
23619 Bounds check.
23620
23621 2011-06-04 Jan Hubicka <jh@suse.cz>
23622
23623 PR lto/48954
23624 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
23625 bitmaps.
23626
23627 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
23628
23629 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
23630
23631 2011-06-04 Jakub Jelinek <jakub@redhat.com>
23632
23633 PR target/49281
23634 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
23635 to be strictly smaller than 1 << shiftcount.
23636
23637 2011-06-04 Jan Hubicka <jh@suse.cz>
23638
23639 PR tree-optimize/48929
23640 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
23641 of empty predicate.
23642
23643 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
23644
23645 PR debug/48333
23646 * calls.c (emit_call_1): Prefer the __builtin declaration of
23647 builtin functions.
23648
23649 2011-06-03 Diego Novillo <dnovillo@google.com>
23650
23651 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
23652 (lto_input_tree_pointers): Likewise.
23653 * lto-streamer-out.c (pack_value_fields): Likewise.
23654 (lto_output_tree_pointers): Likewise.
23655 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
23656 and OPTIMIZATION_NODE.
23657
23658 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23659
23660 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
23661 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
23662 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
23663 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
23664 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
23665 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
23666 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
23667 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
23668 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
23669 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
23670 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
23671 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
23672 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
23673 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
23674 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
23675 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
23676 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
23677 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
23678 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
23679 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
23680 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
23681 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
23682 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
23683 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
23684 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
23685 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
23686 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
23687 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
23688 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
23689 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
23690 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
23691 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
23692 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
23693 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
23694 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
23695 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
23696 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
23697 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
23698 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
23699 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
23700 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
23701 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
23702 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
23703 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
23704 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
23705 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
23706 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
23707 * system.h (MD_UNWIND_SUPPORT): Poison.
23708 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
23709 * doc/tm.texi: Regenerate.
23710 * unwind-dw2.c: Include md-unwind-support.h instead of
23711 MD_UNWIND_SUPPORT.
23712 * config/ia64/unwind-ia64.c: Likewise.
23713 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
23714
23715 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
23716
23717 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
23718
23719 2011-06-03 Richard Henderson <rth@redhat.com>
23720 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23721
23722 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
23723 (sigill_hdlr): Correct insn, insn size.
23724 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
23725
23726 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23727
23728 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
23729 t-slibgcc-dummy.
23730 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
23731 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
23732 * config/mips/t-iris: Remove.
23733 * config/mips/t-irix6: New file.
23734 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
23735
23736 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23737
23738 * Makefile.in (LIB2ADDEHDEP): Remove.
23739 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
23740 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
23741 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
23742 * config/t-darwin (LIB2ADDEHDEP): Remove.
23743 * config/t-freebsd (LIB2ADDEHDEP): Remove.
23744 * config/t-linux (LIB2ADDEHDEP): Remove.
23745
23746 2011-06-03 Diego Novillo <dnovillo@google.com>
23747
23748 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
23749 (lto_register_var_decl_in_symtab): Likewise.
23750 (lto_register_function_decl_in_symtab): Likewise.
23751 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
23752 logic to uniquify_nodes.
23753
23754 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23755
23756 * config/alpha/t-osf5: Remove.
23757 * config/alpha/t-osf-pthread: Remove.
23758 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
23759 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
23760
23761 2011-06-03 Julian Brown <julian@codesourcery.com>
23762
23763 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
23764 (strongarm1110): Use strongarm tuning.
23765 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
23766 * config/arm/arm.c (arm_strongarm_tune): New.
23767 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
23768 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
23769 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
23770 setting, using previous defaults or 1 for Cortex-A5.
23771 (arm_option_override): Set max_insns_skipped from current tuning.
23772
23773 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
23774
23775 * doc/install.texi (Options specification): Document --with-specs.
23776
23777 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23778
23779 * config/arm/neon.md (orndi3_neon): Actually split it.
23780
23781 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
23782
23783 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
23784 * var-tracking.c (reverse_op): Limite recurse depth to 5.
23785
23786 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
23787
23788 PR debug/47590
23789 * target.def (delay_sched2, delay_vartrack): New.
23790 * doc/tm.texi.in: Update.
23791 * doc/tm.texi: Rebuild.
23792 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
23793 * var-tracking.c (gate_handle_var_tracking): Likewise.
23794 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
23795 (bfin_flag_var_tracking): Drop.
23796 (output_file_start): Don't save and override flag_var_tracking.
23797 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
23798 (bfin_reorg): Test original variables.
23799 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23800 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
23801 (ia64_flag_var_tracking): Drop.
23802 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23803 (ia64_file_start): Don't save and override flag_var_tracking.
23804 (ia64_override_options_after_change): Ditto
23805 flag_schedule_insns_after_reload.
23806 (ia64_reorg): Test original variables.
23807 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
23808 (picochip_flag_var_tracking): Drop.
23809 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23810 (picochip_option_override): Don't save and override
23811 flag_schedule_insns_after_reload.
23812 (picochip_asm_file_start): Ditto flag_var_tracking.
23813 (picochip_reorg): Test original variables.
23814 * config/spu/spu.c (spu_flag_var_tracking): Drop.
23815 (TARGET_DELAY_VARTRACK): Define.
23816 (spu_var_tracking): New.
23817 (spu_machine_dependent_reorg): Call it.
23818 (asm_file_start): Don't save and override flag_var_tracking.
23819
23820 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
23821
23822 PR target/49163
23823 * config/sh/predicates.md (general_movsrc_operand): Return 0
23824 for memory and memory subreg of which address is an invalid
23825 indexed address for QI and HImode.
23826 (general_movdst_operand): Likewise.
23827
23828 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
23829
23830 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
23831 edges only, when there is a non-local label in the function.
23832 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
23833
23834 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
23835
23836 * config/i386/constraints.md (Y3): New register constraint.
23837 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
23838 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
23839 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
23840 *sse2_interleave_lowv2df.
23841
23842 2011-06-02 Julian Brown <julian@codesourcery.com>
23843
23844 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
23845 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
23846 (arm_cortex_a5_tune): New.
23847
23848 2011-06-02 Julian Brown <julian@codesourcery.com>
23849
23850 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
23851 * config/arm/arm.c (arm_default_branch_cost): New.
23852 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
23853 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
23854 (arm_fa726_tune): Set branch_cost field using
23855 arm_default_branch_cost.
23856 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
23857 current_tune structure.
23858 * dojump.c (tm_p.h): Include file.
23859
23860 2011-06-02 Julian Brown <julian@codesourcery.com>
23861
23862 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
23863 tuning.
23864 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
23865 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
23866 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
23867 field.
23868 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
23869 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
23870 (arm_fa726te_tune): Add prefer_constant_pool setting.
23871 (arm_v6t2_tune, arm_cortex_tune): New.
23872 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
23873 prefer_constant_pool setting.
23874
23875 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
23876
23877 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
23878 switch statement.
23879 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
23880 (*movdf_internal) <case 6,7,8>: Ditto.
23881
23882 * config/i386/constraints.md (Y4): New register constraint.
23883 * config/i386/sse.md (vec_set<mode>_0): Merge with
23884 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
23885 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
23886 *vec_extractv2di_1_sse.
23887 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
23888 and *vec_concatv2di_rex64_sse.
23889
23890 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
23891
23892 PR target/48807
23893 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
23894 of cgraph_local_info for null before attempting to use it.
23895
23896 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
23897
23898 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
23899 (current_function_dynamic_alloc_count): Delete.
23900 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
23901 (expand_builtin_nonlocal_goto): Remove obsolete comment.
23902 (expand_builtin_update_setjmp_buf): Remove dead code.
23903 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
23904 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
23905 support.
23906 * function.c (instantiate_virtual_regs): Likewise.
23907 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
23908 for a block with a single abnormal incoming edge.
23909 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
23910 (SETJMP_VIA_SAVE_AREA): Delete.
23911 * config/sparc/sparc-protos.h (load_got_register): Declare.
23912 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23913 (load_got_register): Make global.
23914 (sparc_frame_pointer_required): Add 'static'.
23915 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
23916 (sparc_builtin_setjmp_frame_value): New function.
23917 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
23918 (save_stack_nonlocal): New expander.
23919 (restore_stack_nonlocal): Likewise.
23920 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
23921 (nonlocal_goto_internal): New insn.
23922 (goto_handler_and_restore): Delete.
23923 (builtin_setjmp_setup): Likewise.
23924 (do_builtin_setjmp_setup): Likewise.
23925 (setjmp): Likewise.
23926 (builtin_setjmp_receiver): New expander.
23927
23928 2011-06-01 David Li <davidxl@google.com>
23929
23930 PR middle-end/49261
23931 * tree-pretty-print.c (dump_function_header): Format cleanup.
23932
23933 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
23934
23935 PR target/49238
23936 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
23937 needed when original operands are used for msw_skip comparison.
23938
23939 2011-06-01 Jakub Jelinek <jakub@redhat.com>
23940
23941 PR debug/49250
23942 * var-tracking.c (add_uses, add_stores): Don't call
23943 cselib_subst_to_values on ENTRY_VALUE.
23944
23945 2011-06-01 Diego Novillo <dnovillo@google.com>
23946
23947 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
23948 output_record_start with LTO_null instead of output_zero.
23949 (lto_output_ts_binfo_tree_pointers): Likewise.
23950 (lto_output_tree): Likewise.
23951 (output_eh_try_list): Likewise.
23952 (output_eh_region): Likewise.
23953 (output_eh_lp): Likewise.
23954 (output_eh_regions): Likewise.
23955 (output_bb): Likewise.
23956 (output_function): Likewise.
23957 (output_unreferenced_globals): Likewise.
23958 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
23959 instead of NUM_TREE_CODES.
23960 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
23961 (lto_output_int_in_range): Change << to >> when shifting VAL.
23962
23963 2011-06-01 Diego Novillo <dnovillo@google.com>
23964
23965 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
23966 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
23967
23968 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
23969
23970 PR target/45074
23971 * optabs.h (valid_multiword_target_p): Declare.
23972 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
23973 doing multi-word operations.
23974 * optabs.c (expand_binop): Likewise.
23975 (expand_doubleword_bswap): Likewise.
23976 (expand_absneg_bit): Likewise.
23977 (expand_unop): Likewise.
23978 (expand_copysign_bit): Likewise.
23979 (multiword_target_p): New function.
23980
23981 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
23982
23983 PR rtl-optimization/48830
23984 PR rtl-optimization/48808
23985 PR rtl-optimization/48792
23986 * reload.c (push_reload): Check contains_reg_of_mode.
23987 * reload1.c (strip_paradoxical_subreg): New function.
23988 (gen_reload_chain_without_interm_reg_p): Use it to handle
23989 paradoxical subregs.
23990 (emit_output_reload_insns, gen_reload): Likewise.
23991
23992 2011-06-01 David Li <davidxl@google.com>
23993
23994 * predict.c : Change pass name
23995 * ipa.c: Ditto.
23996 * dce.c: Ditto.
23997 * tree-profile.c: Ditto.
23998 * except.c: Ditto.
23999
24000 2011-06-01 David Li <davidxl@google.com>
24001
24002 * tree-pretty-print.c (dump_function_header): New function.
24003 * final.c (rest_of_clean_state): Use header dumper.
24004 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
24005 * passes.c (pass_init_dump_file): Use header dumper.
24006
24007 2011-06-01 Jakub Jelinek <jakub@redhat.com>
24008
24009 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
24010 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
24011 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
24012 New functions.
24013 (mem_loc_descriptor): Use them.
24014
24015 * var-tracking.c (create_entry_value): New function.
24016 (vt_add_function_parameter): Use it.
24017
24018 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24019
24020 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
24021 Include <signal.h>, <ucontext.h>.
24022 (sigill_caught): Define.
24023 (sigill_hdlr): New function.
24024 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
24025 insns can be executed.
24026 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
24027 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
24028
24029 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24030
24031 * config/t-slibgcc-darwin: Move to ...
24032 * config/t-slibgcc-dummy: ... this. Clarify comments.
24033 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
24034 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
24035 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
24036 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
24037 Remove i386/t-crtstuff from tmake_file.
24038 (i[34567]86-*-solaris2*): Remove t-svr4,
24039 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
24040 t-slibgcc-dummy.
24041 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
24042 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
24043 sparc/t-crtfm from tmake_file.
24044 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
24045 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
24046 Remove extra_parts.
24047 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
24048 * config/i386/t-nwld (SHLIB_LINK): Remove.
24049 * config/i386/t-rtems-i386: Rename to ...
24050 * config/i386/t-rtems: ... this.
24051 ($(T)crti.o, $(T)crtn.o): Remove.
24052 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
24053 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
24054 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
24055 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
24056 EXTRA_MULTILIB_PARTS): Remove.
24057 * config/sparc/t-sol2-64: Likewise.
24058 * config/sparc/t-sol2: Remove.
24059 * config/sparc/t-crtin: Remove.
24060 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
24061 * config/i386/gmon-sol2.c: Remove.
24062 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
24063 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
24064 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
24065 * config/i386/sol2-gc1.asm: Remove.
24066 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
24067 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
24068 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
24069 * config/t-slibgcc-sld: Remove.
24070
24071 2011-06-01 Jakub Jelinek <jakub@redhat.com>
24072
24073 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
24074 base_type_for_mode with op_mode instead of mode.
24075
24076 2011-06-01 Paul Brook <paul@cpodesourcery.com>
24077
24078 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
24079 Cortex-A15.
24080 * config/arm/arm-tune.md: Regenerate.
24081 * config/arm/arm-tables.opt: Regenerate.
24082 * config/arm/arm.c (FL_DIV): Rename...
24083 (FL_THUMB_DIV): ... to this.
24084 (FL_ARM_DIV): Define.
24085 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
24086 (arm_arch_hwdiv): Remove.
24087 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
24088 (arm_issue_rate): Add cortexr5.
24089 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
24090 __ARM_ARCH_EXT_IDIV__.
24091 (TARGET_IDIV): Define.
24092 (arm_arch_hwdiv): Remove.
24093 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
24094 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
24095 (divsi3, udivsi3): New patterns.
24096 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
24097 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
24098
24099 2011-06-01 Martin Jambor <mjambor@suse.cz>
24100
24101 * ipa-utils.c (ipa_dfs_info): New field scc_no.
24102 * ipa-utils.c (searchc): Set scc_no.
24103
24104 2011-06-01 Martin Jambor <mjambor@suse.cz>
24105
24106 * ipa-utils.c (searchc_env): New field allow_overwritable.
24107 (searchc): do not ignore edges to overwritable nodes if indicated
24108 by env->allow_overwritable.
24109 (ipa_reduced_postorder): Set env.allow_overwritable.
24110
24111 2011-06-01 Richard Guenther <rguenther@suse.de>
24112
24113 * tree.c (free_lang_data): Do not reset boolean_type_node nor
24114 char_type_node.
24115 * lto-streamer.c (lto_record_common_node): Take node pointer,
24116 do not register types.
24117 (lto_preload_common_nodes): Explicitly skip preloading nodes
24118 that differ between frontends.
24119
24120 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
24121
24122 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
24123 NON_FLOAT_REGS.
24124
24125 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
24126
24127 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
24128 parameter value for dump. Dump cost on outermost call only.
24129 (rs6000_memory_move_cost): Dump cost on outermost call only.
24130
24131 2011-05-31 Jakub Jelinek <jakub@redhat.com>
24132
24133 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
24134 DW_OP_GNU_convert ops.
24135
24136 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
24137 cselib_preserve_constants.
24138 (cselib_lookup_1): If cselib_preserve_constants,
24139 a new VALUE is being created for REG and there is a VALUE for the
24140 same register in wider mode, add another loc with lowpart SUBREG of
24141 the wider VALUE.
24142 (cselib_subst_to_values): Handle ENTRY_VALUE.
24143 * var-tracking.c (replace_expr_with_values): Return NULL for
24144 ENTRY_VALUE too.
24145 * dwarf2out.c (convert_descriptor_to_signed): New function.
24146 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
24147 instead of two shifts.
24148 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
24149 the right mode if needed.
24150 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
24151 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
24152 convert_descriptor_to_signed.
24153 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
24154 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
24155
24156 PR target/48688
24157 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
24158
24159 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24160
24161 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
24162 of X87MODEI12 and SWI48x instead of SSEMODEI24.
24163 (SWI248x): New mode iterator, rename from X87MODEI.
24164 (X87MODEI): Remove mode iterator.
24165 (X87MODEI12): Ditto.
24166 (SSEMODEI24): Ditto.
24167
24168 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24169
24170 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
24171 * doc/invoke.texi: Document max-vartrack-expr-depth.
24172 * var-tracking.c (EXPR_DEPTH): New.
24173 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
24174
24175 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24176
24177 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
24178 * config/i386/sse.md: Add n to negated FMA pattern names.
24179
24180 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24181
24182 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
24183
24184 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24185
24186 * gengtype-state.c (read_state_params_structs): Initialize previous.
24187
24188 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24189
24190 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
24191 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
24192
24193 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24194
24195 * config/i386/i386.md (*movtf_internal): Avoid allocating general
24196 registers. Penalize F*r->o alternative to prevent partial memory
24197 stalls. Slightly penalize *roF->*r alternative. Generate SSE
24198 CONST_DOUBLE immediates when optimizing function for size. Do not move
24199 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
24200 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
24201 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
24202 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
24203 alternatives.
24204 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
24205
24206 (fp_register_operand splitters): Use fp_register_operand
24207 constraint. Do not use FP_REG_P in insn condition.
24208 (any_fp_register_operand splitters): Use any_fp_register_operand
24209 constraint. Do not use ANY_FP_REG_P in insn condition.
24210
24211 2011-05-31 Jan Hubicka <jh@suse.cz>
24212
24213 * cgraph.h (cgraph_inline_failed_t): Give enum a name
24214 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
24215 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
24216 (lto_output_edge): Use output_enum and var_len_unsigned.
24217 (lto_output_varpool_node): Likewise.
24218 (input_overwrite_node): Do not take resolution parameter;
24219 extract it from a bitpack.
24220 (input_node): Do not read resolution; use input_enum and
24221 var_len_unsigned.
24222 (input_varpool_node): Likewise.
24223 (input_edge): Likewise.
24224 (input_cgraph_1): Likewise.
24225
24226 2011-05-31 Richard Guenther <rguenther@suse.de>
24227
24228 * gimple.c (gimple_register_canonical_type): Do not register
24229 any types via gimple_register_type.
24230
24231 2011-05-31 Jan Hubicka <jh@suse.cz>
24232
24233 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
24234 of thunks.
24235
24236 2011-05-31 Jakub Jelinek <jakub@redhat.com>
24237
24238 PR rtl-optimization/49235
24239 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
24240 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
24241
24242 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
24243
24244 PR tree-optimization/49093
24245 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
24246 data references.
24247
24248 2011-05-31 Dodji Seketeli <dodji@redhat.com>
24249
24250 PR debug/49047
24251 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
24252 for concrete functions containing the code of cloned functions.
24253
24254 2011-05-31 Richard Guenther <rguenther@suse.de>
24255
24256 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
24257 to ...
24258 (forward_propagate_into_comparison_1): ... this.
24259 (forward_propagate_comparison): Rename to ...
24260 (forward_propagate_into_comparison): ... this. Split out
24261 real forward propagation code to ...
24262 (forward_propagate_comparison): ... this.
24263 (forward_propagate_into_gimple_cond): Remove looping.
24264 (forward_propagate_into_cond): Likewise.
24265 (simplify_not_neg_expr): Return whether we have done something.
24266 (simplify_gimple_switch): Likewise.
24267 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
24268 (ssa_forward_propagate_and_combine): ... this. Re-structure
24269 to do a forward forward-propagation walk on BBs and a backward
24270 stmt combining walk on BBs. Consistently re-scan changed statements.
24271 (pass_forwprop): Adjust.
24272
24273 2011-05-30 Ian Lance Taylor <iant@google.com>
24274
24275 * godump.c (go_format_type): Correct length of name added to
24276 obstack for anonymous field.
24277
24278 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
24279
24280 PR target/49186
24281 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
24282 part of the second operand is 0.
24283
24284 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
24285
24286 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
24287 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
24288 to memory for !TARGET_MEMORY_MISMATCH_STALL.
24289 (*movdf_internal_rex64): Do not penalize F->r alternative.
24290 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
24291 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
24292 when optimizing function for size. Do not move CONST_DOUBLEs
24293 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
24294 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
24295 SUBREGs. Do not check for MEM_P operands in the insn condition,
24296 check for ANY_FP_REGNO_P instead.
24297 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
24298 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
24299 function for speed.
24300 * config/i386/i386.c (ix86_option_override_internal): Do not
24301 set TARGET_INTEGER_DFMODE_MOVES here.
24302
24303 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
24304
24305 PR target/49168
24306 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
24307
24308 2011-05-30 Jakub Jelinek <jakub@redhat.com>
24309
24310 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
24311 DW_TAG_rvalue_reference_type even for
24312 -gdwarf-4 -fno-debug-types-section.
24313
24314 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24315
24316 PR tree-optimization/46728
24317 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
24318 (build_and_insert_binop): New.
24319 (gimple_expand_builtin_pow): Reorder args for
24320 build_and_insert_call; use build_and_insert_binop; add more
24321 optimizations for fractional exponents.
24322
24323 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
24324
24325 PR bootstrap/49190
24326
24327 Revert:
24328 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24329
24330 * tree.h (struct tree_identifier): Inherit from tree_typed, not
24331 tree_common.
24332 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
24333 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
24334 TS_BASE instead of TS_COMMON.
24335 * varasm.c (assemble_name): Remove assert.
24336
24337 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
24338
24339 * config.gcc: Keep obselete list sorted.
24340
24341 2011-05-30 Jakub Jelinek <jakub@redhat.com>
24342 Eric Botcazou <ebotcazou@adacore.com>
24343
24344 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
24345 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
24346 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
24347 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
24348 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
24349
24350 2011-05-30 Richard Guenther <rguenther@suse.de>
24351
24352 * gimple.c (gimple_types_compatible_p_1): Compare record
24353 and union type members properly.
24354
24355 2011-05-30 Richard Guenther <rguenther@suse.de>
24356
24357 PR tree-optimization/49210
24358 * ipa-split.c (split_function): Care for the case where the call
24359 result is not trivially convertible to the result holding variable.
24360
24361 2011-05-30 Richard Guenther <rguenther@suse.de>
24362
24363 PR tree-optimization/49218
24364 * tree-vrp.c (adjust_range_with_scev): Properly check whether
24365 overflow occured.
24366
24367 2011-05-30 Richard Guenther <rguenther@suse.de>
24368
24369 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
24370 New function split out from ...
24371 (forward_propagate_into_gimple_cond): ... here. Adjust.
24372 (forward_propagate_into_cond): Likewise.
24373 (forward_propagate_comparison): Also propagate into
24374 comparisons on assignment RHS. Change return value to
24375 behave similar to forward_propagate_into_cond.
24376 (tree_ssa_forward_propagate_single_use_vars): Handle
24377 strict-overflow warnings properly for forward_propagate_comparison.
24378
24379 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24380
24381 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
24382 from plugin linker.
24383 * configure: Regenerate.
24384
24385 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
24386
24387 PR tree-optimization/49199
24388 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
24389 non-reduction operands are either defined in the loop or by induction.
24390
24391 2011-05-29 Xinliang David Li <davidxl@google.com>
24392
24393 * opts-global.c (handle_common_deferred_options): Handle new options.
24394 * passes.c (register_one_dump_file): Call register_pass_name.
24395 (execute_one_pass): Check explicit enable/disable flag.
24396 (passr_hash): New function.
24397 (passr_eq): Ditto.
24398 (register_pass_name): Ditto.
24399 (get_pass_by_name): Ditto.
24400 (pass_hash): Ditto.
24401 (pass_eq): Ditto.
24402 (enable_pass): Ditto.
24403 (disable_pass): Ditto.
24404 (is_pass_explicitly_enabled_or_disabled): Ditto.
24405
24406 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
24407
24408 * config/i386/i386.md (*movoi_internal_avx): Use
24409 standard_sse_constant_opcode for alternative 0.
24410 (*movti_internal_sse): Ditto.
24411 (*movti_internal_rex64): Use standard_sse_constant_opcode for
24412 alternative 2.
24413 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
24414 sselog1 type moves.
24415 (*movsi_internal): Ditto.
24416 (*movdi_internal): Ditto. Add ssecvt type moves.
24417
24418 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
24419
24420 PR target/48830
24421 * rtlanal.c (simplify_subreg_regno): Adjust comment.
24422
24423 2011-05-29 Jakub Jelinek <jakub@redhat.com>
24424
24425 PR rtl-optimization/49095
24426 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
24427 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
24428
24429 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
24430
24431 PR target/43995
24432 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
24433 recurse_p argument. Only follow register copies if it is set,
24434 and prevent mips_find_pic_call_symbol from recursing.
24435 (mips_find_pic_call_symbol): Add a recurse_p argument.
24436 Pass it to mips_pic_call_symbol_from_set.
24437 (mips_annotate_pic_calls): Update accordingly.
24438
24439 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
24440
24441 * emit-rtl.c (try_split): Use a loop to search for
24442 NOTE_INSN_CALL_ARG_LOCATIONs.
24443
24444 2011-05-29 Richard Guenther <rguenther@suse.de>
24445
24446 PR tree-optimization/49217
24447 * ipa-pure-const.c (propagate_pure_const): Fix typos.
24448
24449 2011-05-28 Jan Hubicka <jh@suse.cz>
24450
24451 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
24452 length.
24453 (string_slot_free): Remove
24454 (create_output_block): Initialize obstack.
24455 (destroy_output_block): Free obstack.
24456 (lto_string_index): Add PERSISTENT parameter; do not duplicate
24457 the string unless it needs to be added into the hash.
24458 (lto_output_string_with_length): Add persistent attribute;
24459 handle NULL strings.
24460 (lto_output_string): Add PERSISTENT parameter.
24461 (output_string_cst, output_identifier): Simplify.
24462 (lto_output_location_bitpack): Update.
24463 (lto_output_builtin_tree): Update.
24464 * lto-streamer.h (struct output_block): Add obstack.
24465 (lto_output_string, lto_output_string_with_length): Remove
24466 declarations; functions are static now.
24467
24468 2011-05-28 Jan Hubicka <jh@suse.cz>
24469
24470 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
24471 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
24472 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
24473 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
24474 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
24475 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
24476 unpack_ts_decl_with_vis_value_fields,
24477 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
24478 lto_get_builtin_tree): Use enum and variable length i/o.
24479 * basic-block.h (profile_status_d): Add PROFILE_LAST.
24480 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
24481 New functions.
24482 (bp_pack_enum, bp_unpack_enum): New macros.
24483
24484 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24485
24486 * genrecog.c: Remove redundant forward declarations.
24487
24488 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24489
24490 * config.gcc: Deprecate mips*-*-openbsd*.
24491
24492 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24493
24494 PR bootstrap/49195
24495 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
24496 for match_op_dup.
24497
24498 2011-05-27 Andrew Pinski <pinskia@gmail.com>
24499
24500 PR middle-end/48981
24501 * gengtype.c (vec_prefix_type): New function.
24502 (note_def_vec): Use vec_prefix_type and change the length
24503 attribute to be based on the prefix.
24504 * vec.c: Include coretypes.h before vec.h.
24505 (struct vec_prefix): Remove.
24506 (vec_gc_p_reserve): Change the offsetof to sizeof.
24507 (vec_gc_p_reserve_exact): Likewise.
24508 (vec_heap_p_reserve): Likewise.
24509 (vec_heap_p_reserve_exact): Likewise.
24510 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
24511 (vec_stack_p_reserve): Change the offsetof to sizeof.
24512 (vec_stack_p_reserve_exact): Likewise.
24513 * vec.h (struct vec_prefix): New struct definition.
24514 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
24515 (VEC_T_GTY(T,B)): Likewise.
24516 (DEF_VEC_FUNC_P(T)): Use prefix field.
24517 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
24518 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
24519
24520 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24521
24522 PR tree-optimization/46728
24523 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
24524 (powi_as_mults): Add gimple_set_location.
24525 (build_and_insert_call): New.
24526 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
24527 0.5, 0.25, 0.75, 1./3., or 1./6.
24528
24529 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
24530
24531 * doc/contrib.texi: Update copyright years.
24532 (Contributors): Add Zdenek Sojka.
24533
24534 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
24535
24536 * c-decl.c (c_push_function_context): Copy the current statement
24537 list stack.
24538 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
24539 (finish_struct): Call building_stmt_list_p instead of checking
24540 cur_stmt_list.
24541 * c-parser.c (c_parser_postfix_expression): Likewise.
24542 * c-typeck.c (c_end_compound_stmt): Likewise.
24543 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
24544 * tree-iterator.c (stmt_list_cache): Change to a VEC.
24545 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
24546 (free_stmt_list): Likewise.
24547 * tree.h (struct tree_statement_list): Include typed_tree instead
24548 of tree_common.
24549 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
24550 as TS_TYPED instead of TS_COMMON.
24551
24552 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24553 Uros Bizjak <ubizjak@gmail.com>
24554
24555 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
24556 (HAVE_AS_IX86_TLSGDPTL): Define.
24557 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
24558 (HAVE_AS_IX86_TLSLDMPLT): Define.
24559 * configure: Regenerate.
24560 * config.in: Regenerate.
24561 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
24562 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
24563 TARGET_SUN_TLS, use @tlsgdplt or @plt.
24564 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
24565 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
24566 @tlsldmplt or @plt.
24567 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
24568
24569 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
24570
24571 * sched-int.h (struct _haifa_deps_insn_data): New members cond
24572 and reverse_cond.
24573 (INSN_COND, INSN_REVERSE_COND): New macros.
24574 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
24575 once.
24576 (sched_get_condition_with_rev): Cache the results, and look them up
24577 if possible.
24578 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
24579 are clobbered by the current insn.
24580 * target.def (exposed_pipline): New sched data hook.
24581 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
24582 * doc/tm.texi: Regenerate.
24583
24584 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24585
24586 PR tree-optimization/49170
24587 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
24588 sincos or cexp.
24589
24590 2011-05-27 Richard Guenther <rguenther@suse.de>
24591
24592 PR middle-end/49189
24593 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
24594 of comparisons.
24595
24596 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
24597
24598 * haifa-sched.c (sched_scan_info): Remove.
24599 (schedule_block): Call sched_extend_luids rather than sched_init_luids
24600 with NULL args.
24601 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
24602 Remove functions.
24603 (sched_scan): Remove.
24604 (sched_extend_luids): Renamed from luids_extend_insn and no longer
24605 static. All callers changed.
24606 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
24607 static. All callers changed.
24608 (sched_init_luids): Remove all arguments except the first. All
24609 callers changed. Don't use sched_scan.
24610 (haifa_init_h_i_d): Likewise.
24611 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
24612 manually rather than using sched_init_luids. Likewise with
24613 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
24614 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
24615 rather than sched_init_luids with NULL args.
24616 * sel-sched-ir.c (new_insns): Remove variable.
24617 (sched_scan): New static function, previously in haifa-sched.c. Remove
24618 all arguments but the first two; all callers changed.
24619 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
24620 rather than sched_init_luids.
24621 (sel_init_bbs): Remove second argument. All callers changed.
24622 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
24623 with NULL arguments.
24624 (create_insn_rtx_from_pattern): Likewise.
24625 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
24626 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
24627 (sched_init_insn_luid, sched_extend_luids): Declare.
24628 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
24629 declarations.
24630
24631 2011-05-27 Richard Guenther <rguenther@suse.de>
24632
24633 PR middle-end/49177
24634 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
24635 A CMP B ? (T) true : (T) false for non-integral types T again.
24636
24637 2011-05-27 Jan Hubicka <jh@suse.cz>
24638
24639 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
24640 so 0 means NULL string.
24641 (lto_output_string_with_length): ... here.
24642 (lto_output_string, output_string_cst, output_identifier): Update
24643 handling of NULL strings.
24644 (lto_output_location_bitpack): New function.
24645 (lto_output_location): Use it.
24646 (lto_output_tree_ref): Use output_record_start.
24647 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
24648 len values.
24649 * lto-streamer-in.c (string_for_index): Break out from ...; offset
24650 values by 1.
24651 (input_string_internal): ... here;
24652 (input_string_cst, input_identifier, lto_input_string): Update handling
24653 of NULL strings.
24654 (lto_input_location_bitpack): New function
24655 (lto_input_location): Use it.
24656 (unpack_ts_type_common_value_fields): Pack align & alias in var len
24657 values.
24658 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
24659 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
24660 (bp_pack_value): Sanity check the value range.
24661 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
24662 New functions.
24663 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
24664 New functions.
24665
24666 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
24667
24668 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
24669 call_arg_location instructions down the floor.
24670
24671 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
24672
24673 PR rtl-optimization/49154
24674 * ira.c (setup_pressure_classes): Process class without sublcasses
24675 as a candidate for pressure classes.
24676
24677 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
24678
24679 PR rtl-optimization/48575
24680 * genrecog.c (position_type): New enum.
24681 (position): New structure.
24682 (decision): Use position structure instead of a string.
24683 (root_pos, peep2_insn_pos_list): New variables.
24684 (next_position, compare_positions): New functions.
24685 (new_decision): Use position structures instead of strings.
24686 (maybe_both_true): Likewise.
24687 (change_state): Likewise.
24688 (write_tree): Likewise.
24689 (make_insn_sequence): Likewise.
24690
24691 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24692
24693 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
24694 TS_BASE instead of TS_COMMON.
24695 (find_decls_types_r): Check for TS_TYPED structure before looking at
24696 TREE_TYPE.
24697 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
24698 Add chain field.
24699 (BLOCK_CHAIN): Use new chain field.
24700
24701 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
24702
24703 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
24704 moves expensive on Power7 also.
24705
24706 2011-05-26 Richard Guenther <rguenther@suse.de>
24707
24708 * fold-const.c (fold_unary_loc): Remove bogus code.
24709
24710 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24711
24712 * tree.h (struct tree_identifier): Inherit from tree_typed, not
24713 tree_common.
24714 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
24715 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
24716 TS_BASE instead of TS_COMMON.
24717 * varasm.c (assemble_name): Remove assert.
24718
24719 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
24720
24721 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
24722 substituted first.
24723 * libgcc-std.ver: Delete file.
24724
24725 2011-05-26 Richard Guenther <rguenther@suse.de>
24726
24727 PR tree-optimization/48702
24728 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
24729 only when we know the base address is within bounds.
24730 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
24731 assume the base address of TARGET_MEM_REFs is in bounds.
24732
24733 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24734
24735 PR target/49099
24736 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
24737 declaration in TARGET_SOLARIS.
24738
24739 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
24740
24741 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
24742 The instruction is then expanded explicitly.
24743 (supported_compare): Callable instruction.
24744 (compare): Likewise.
24745
24746 2011-05-26 Jakub Jelinek <jakub@redhat.com>
24747
24748 PR c++/49165
24749 * gimplify.c (shortcut_cond_r): Don't special case
24750 COND_EXPRs if they have void type on one of their arms.
24751
24752 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
24753
24754 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
24755 to reduce duplication, and to achieve a slightly more logical order
24756 of operations.
24757
24758 2011-05-26 Jakub Jelinek <jakub@redhat.com>
24759
24760 PR tree-optimization/49161
24761 * tree-vrp.c (struct case_info): New type.
24762 (compare_case_labels): Sort case_info structs instead of
24763 trees, and not primarily by CASE_LABEL uids but by
24764 label_for_block indexes.
24765 (find_switch_asserts): Put case labels into struct case_info
24766 array instead of TREE_VEC, adjust sorting, compare label_for_block
24767 values instead of CASE_LABELs.
24768
24769 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24770
24771 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
24772 ("orndi3_neon"): Likewise.
24773 ("bic<mode>3_neon"): Likewise.
24774
24775 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
24776
24777 PR tree-optimization/49038
24778 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
24779 Ensure at least one epilogue iteration if required by data
24780 accesses with gaps.
24781 * tree-vectorizer.h (struct _loop_vec_info): Add new field
24782 to mark loops that require peeling for gaps.
24783 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
24784 (vect_get_known_peeling_cost): Take peeling for gaps into
24785 account.
24786 (vect_transform_loop): Generate epilogue if required by data
24787 access with gaps.
24788 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
24789 loop as requiring an epilogue if there are gaps in the end of
24790 the strided group.
24791
24792 2011-05-25 Ian Lance Taylor <iant@google.com>
24793
24794 * godump.c (go_format_type): Output the first field with a usable
24795 Go type, if any.
24796
24797 2011-05-25 Ian Lance Taylor <iant@google.com>
24798
24799 * godump.c (go_format_type): Check for invalid type names, pointer
24800 target types, and struct field types.
24801
24802 2011-05-25 Jason Merrill <jason@redhat.com>
24803
24804 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
24805
24806 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
24807
24808 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
24809
24810 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24811
24812 * config/i386/i386.md (*movqi_extv_1)): Put back
24813 "register_operand" check in "type" calculation.
24814 (*movqi_extzv_2): Likewise.
24815
24816 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24817
24818 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
24819
24820 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
24821
24822 PR bootstrap/49160
24823 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
24824 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
24825 __divxc3, __divtc3): Wrap definitions in #ifndef.
24826
24827 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24828
24829 PR target/49142
24830 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
24831 "register_operand" check and replace q_regs_operand with
24832 QIreg_operand in "type" calculation.
24833 (*movqi_extv_1): Likewise.
24834 (*movqi_extzv_2_rex64): Likewise.
24835 (*movqi_extzv_2): Likewise.
24836
24837 * config/i386/predicates.md (QIreg_operand): New.
24838
24839 2011-05-25 Richard Guenther <rguenther@suse.de>
24840
24841 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24842 type-based offset disambiguation, streamline MEM_REF and
24843 TARGET_MEM_REF handling.
24844
24845 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24846
24847 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
24848 (bdesc_special_args): Add pause intrinsic.
24849
24850 * config/i386/i386.md (UNSPEC_PAUSE): New.
24851 (pause): Likewise.
24852 (*pause): Likewise.
24853 * config/i386/ia32intrin.h (__pause): Likewise.
24854
24855 * doc/extend.texi (X86 Built-in Functions): Add documentation for
24856 pause intrinsic.
24857
24858 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24859
24860 PR tree-optimization/46728
24861 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
24862 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
24863
24864 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
24865
24866 * tree.h (struct tree_exp): Inherit from struct tree_typed.
24867 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
24868 instead of TS_COMMON.
24869
24870 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
24871
24872 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
24873 LIBGCC2_GNU_PREFIX is defined.
24874 (__N): New macro.
24875 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
24876 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
24877 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
24878 __clz_tab): Define using __N.
24879 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
24880 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
24881 * target.def (libfunc_gnu_prefix): New hook.
24882 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
24883 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
24884 * doc/tm.texi: Regenerate.
24885 * system.h (LIBGCC2_GNU_PREFIX): Poison.
24886 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
24887 account.
24888 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
24889 (init_optabs): Likewise for the bswap libfuncs.
24890 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
24891 and divide.
24892 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
24893 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
24894 * libgcc-std.ver: Remove.
24895 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
24896 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
24897 libgcc-std.ver.
24898 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24899 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
24900 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
24901 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
24902 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
24903 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24904 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24905 * config/fixed-bit.h (FIXED_OP): Define differently depending on
24906 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
24907 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
24908
24909 2011-05-25 Jan Hubicka <jh@suse.cz>
24910
24911 * lto-streamer-out.c (output_record_start): Use lto_output_enum
24912 (lto_output_tree): Use output_record_start.
24913 * lto-streamer-in.c (input_record_start): Use lto_input_enum
24914 (lto_get_pickled_tree): Use input_record_start.
24915 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
24916 (lto_value_range_error): New function.
24917 * lto-streamer.h (lto_value_range_error): Declare.
24918 (lto_output_int_in_range, lto_input_int_in_range): New functions.
24919 (lto_output_enum, lto_input_enum): New macros.
24920
24921 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
24922
24923 * common.opt (flag_stack_usage_info): New variable.
24924 (-Wstack-usage): New option.
24925 * doc/invoke.texi (Warning options): Document -Wstack-usage.
24926 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
24927 <OPT_fstack_usage>: Likewise.
24928 * toplev.c (output_stack_usage): Handle -Wstack-usage.
24929 * calls.c (expand_call): Test flag_stack_usage_info variable instead
24930 of flag_stack_usage.
24931 (emit_library_call_value_1): Likewise.
24932 * explow.c (allocate_dynamic_stack_space): Likewise.
24933 * function.c (instantiate_virtual_regs ): Likewise.
24934 (prepare_function_start): Likewise.
24935 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
24936 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
24937 * config/arm/arm.c (arm_expand_prologue): Likewise.
24938 (thumb1_expand_prologue): Likewise.
24939 * config/avr/avr.c (expand_prologue): Likewise.
24940 * config/i386/i386.c (ix86_expand_prologue): Likewise.
24941 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
24942 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
24943 * config/mips/mips.c (mips_expand_prologue): Likewise.
24944 * config/pa/pa.c (hppa_expand_prologue): Likewise.
24945 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
24946 * config/s390/s390.c (s390_emit_prologue): Likewise.
24947 * config/sh/sh.c (sh_expand_prologue): Likewise.
24948 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
24949 * config/spu/spu.c (spu_expand_prologue): Likewise.
24950
24951 2011-05-25 Richard Guenther <rguenther@suse.de>
24952
24953 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
24954 (gimple_canonical_types_compatible_p): Likewise.
24955
24956 2011-05-25 Jan Hubicka <jh@suse.cz>
24957
24958 PR middle-end/49062
24959 * ipa.c (function_and_variable_visibility): Only add to same
24960 comdat group list if DECL_ONE_ONLY.
24961
24962 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
24963
24964 PR rtl-optimization/49014
24965 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
24966
24967 2011-05-25 Jakub Jelinek <jakub@redhat.com>
24968
24969 PR target/49128
24970 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
24971
24972 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
24973
24974 PR rtl-optimization/48757
24975 * ira-build.c (loop_with_eh_edge_p): Rename to
24976 loop_with_complex_edge_p, check edges on complexity, make function
24977 conditional.
24978 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
24979 conditional.
24980
24981 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
24982
24983 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
24984 force flag_ira_share_save_slots to 0.
24985
24986 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
24987
24988 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
24989 (vt_initialize): Set PROLOGUE_BB unconditionally.
24990 Add block comment about CFA_BASE_RTX machinery.
24991 Reset FP_CFA_OFFSET to -1 on all invalid paths.
24992 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
24993
24994 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
24995
24996 PR objc/48187
24997 * c-parser.c (c_parser_objc_class_instance_variables): More robust
24998 parsing of syntax error in ObjC instance variable lists. In
24999 particular, avoid an infinite loop if there is a stray ']'.
25000 Updated error message.
25001
25002 2011-05-24 Ian Lance Taylor <iant@google.com>
25003
25004 * godump.c (go_define): Don't accept a string immediately after
25005 another operand.
25006
25007 2011-05-24 Ian Lance Taylor <iant@google.com>
25008
25009 * godump.c (struct godump_container): Add invalid_hash field.
25010 (go_format_type): Return false if type is found in invalid_hash.
25011 (go_output_typedef): Add invalid type to invalid_hash.
25012 (go_finish): Create and delete invalid_hash.
25013
25014 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25015
25016 PR tree-optimization/46728
25017 * tree-ssa-math-opts.c (powi_table): New.
25018 (powi_lookup_cost): New.
25019 (powi_cost): New.
25020 (powi_as_mults_1): New.
25021 (powi_as_mults): New.
25022 (gimple_expand_builtin_powi): New.
25023 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
25024 (gate_cse_sincos): Remove sincos/cexp restriction.
25025
25026 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25027
25028 PR target/3746
25029 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
25030 mips-tdump native.
25031 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
25032 * mips-tdump.c: Likewise.
25033
25034 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
25035
25036 PR target/49128
25037 * config/i386/driver-i386.c (host_detect_local_cpu): Always
25038 add -mno-XXX. Handle FMA.
25039
25040 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
25041
25042 PR rtl-optimization/48633
25043 * ira-build.c (loop_with_eh_edge_p): New function.
25044 (mark_loops_for_removal): Use it.
25045
25046 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
25047
25048 PR rtl-optimization/48971
25049 * ira.c (setup_pressure_classes): Don't check register move cost
25050 for classes with one registers. Don't add pressure class if there
25051 is a pressure class with the same available hard registers.
25052 Check contains_reg_of_mode. Fix a typo in collecting
25053 temp_hard_regset. Ignore hard registers not belonging to a class.
25054
25055 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
25056
25057 PR target/49133
25058 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
25059
25060 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
25061 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25062
25063 PR gcov-profile/48845
25064 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
25065
25066 2011-05-24 Richard Guenther <rguenther@suse.de>
25067
25068 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
25069 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
25070 (gimple_types_compatible_p_1): Adjust.
25071 (iterative_hash_canonical_type): Do not bother about complete vs.
25072 incomplete types.
25073 (gimple_canonical_types_compatible_p): Likewise.
25074
25075 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25076
25077 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
25078
25079 2011-05-24 Richard Guenther <rguenther@suse.de>
25080
25081 PR bootstrap/49078
25082 * gimple.c (gimple_register_canonical_type): Revert
25083 previous change.
25084 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
25085 does not for a tree for the case where it matters. Cache
25086 pointer-type alias-sets.
25087
25088 2011-05-24 Joseph Myers <joseph@codesourcery.com>
25089
25090 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
25091 (OBJS): Remove options.o, opts-common.o and prefix.o.
25092 (OBJS-libcommon-target): New.
25093 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
25094 (BACKEND): Include libcommon-target.a.
25095 (MOSTLYCLEANFILES): Include libcommon-target.a.
25096 (libcommon-target.a): New.
25097 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
25098 prefix.o.
25099
25100 2011-05-23 Joseph Myers <joseph@codesourcery.com>
25101
25102 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
25103 parts of output shared with the driver.
25104 * optc-gen.awk: Don't generate parts of output not shared with the
25105 driver.
25106 * opth-gen.awk: Remove GCC_DRIVER conditionals.
25107 * doc/options.texi (SourcerInclude): Mention options-save.c.
25108 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
25109 (OBJS): Add options-save.o.
25110 (options-save.c, options-save.o): New.
25111 (options.o): Update dependencies.
25112 (gcc-options.o): Remove.
25113 (mostlyclean): Remove options-save.c.
25114
25115 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25116
25117 PR debug/49032
25118 * dbxout.c: Include cgraph.h.
25119 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
25120 and without value expr, return NULL if no varpool node exists for
25121 it or if it is not needed.
25122 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
25123
25124 PR c/49120
25125 * c-decl.c (start_decl): Convert expr to void_type_node.
25126
25127 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
25128
25129 PR rtl-optimization/48826
25130 * emit-rtl.c (try_split): When splitting a call that is followed
25131 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
25132
25133 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25134
25135 * cfgexpand.c (expand_debug_expr): For unused non-addressable
25136 parameters passed in memory prefer using DECL_INCOMING_RTL over
25137 the pseudos it will be copied into.
25138
25139 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
25140
25141 PR target/47315
25142 * config/i386/i386.c (ix86_option_override_internal): Save the
25143 initial options after checking vzeroupper.
25144
25145 2011-05-23 David Li <davidxl@google.com>
25146
25147 PR tree-optimization/48988
25148 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
25149 Initialize has_valid_pred for each pred chain.
25150
25151 2011-05-23 Richard Guenther <rguenther@suse.de>
25152
25153 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
25154 (iterative_hash_gimple_type): Always hash type names.
25155
25156 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
25157
25158 * c-typeck.c (build_function_call_vec): Tweak call to
25159 check_function_arguments.
25160
25161 2011-05-23 Richard Guenther <rguenther@suse.de>
25162
25163 PR tree-optimization/49115
25164 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
25165 is not necessarily carried out, do not claim it kills the ref.
25166 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
25167
25168 2011-05-23 Richard Guenther <rguenther@suse.de>
25169
25170 PR middle-end/15419
25171 * builtins.c (fold_builtin_memory_op): Be less restrictive about
25172 what pointer types we accept for folding.
25173
25174 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25175
25176 * gthr-gnat.c: Remove.
25177 * gthr-gnat.h: Remove.
25178 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
25179 * config/t-freebsd (LIB2ADDEH): Likewise.
25180 * config/t-linux (LIB2ADDEH): Likewise.
25181 * config/t-sol2 (LIB2ADDEH): Likewise.
25182 * config/ia64/t-vms (LIB2ADDEH): Likewise.
25183 * configure.ac (target_thread_file): Remove gnat handling.
25184 * configure: Regenerate.
25185 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
25186
25187 2011-05-23 Tristan Gingold <gingold@adacore.com>
25188 Eric Botcazou <ebotcazou@adacore.com>
25189
25190 * gcov.c (create_file_names): If no object directory is specified,
25191 keep the directory of the file.
25192
25193 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25194
25195 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
25196 * configure: Regenerate.
25197
25198 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25199
25200 PR middle-end/48973
25201 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
25202 failed and the comparison has a single bit signed type, use
25203 constm1_rtx instead of const1_rtx for true value.
25204 (do_store_flag): If ops->type is single bit signed type, disable
25205 signel bit test optimization and pass -1 instead of 1 as last
25206 parameter to emit_store_flag_force.
25207
25208 2011-05-23 Tom de Vries <tom@codesourcery.com>
25209
25210 PR target/45098
25211 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
25212 function.
25213 (infer_loop_bounds_from_undefined): Use new function.
25214
25215 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
25216
25217 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
25218 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
25219 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
25220 and -O0 otherwise.
25221 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
25222
25223 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25224
25225 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
25226 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
25227 returns true.
25228
25229 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
25230
25231 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
25232
25233 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25234
25235 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
25236 UNSPEC_MOVE_PIC pattern.
25237
25238 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25239
25240 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
25241 (sparc-*-rtems*): Likewise.
25242 (sparc64-*-elf*): Likewise.
25243 (sparc64-*-rtems*): Likewise.
25244 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
25245 * config/sparc/t-crtin: New file.
25246 * config/sparc/t-sol2 (crti.o): Delete rule.
25247 (crtn.o): Likewise.
25248 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
25249 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
25250 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
25251 (ENDFILE_SPEC): Add crtn.o.
25252
25253 2011-05-22 Tom de Vries <tom@codesourcery.com>
25254
25255 PR middle-end/48689
25256 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
25257 CODE_CONTAINS_STRUCT (TS_COMMON).
25258
25259 2011-05-22 Jakub Jelinek <jakub@redhat.com>
25260
25261 PR middle-end/49029
25262 * expmed.c (extract_fixed_bit_field): Test whether target can be used
25263 only after deciding which mode to use.
25264
25265 2011-05-22 Tom de Vries <tom@codesourcery.com>
25266
25267 PR target/45098
25268 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
25269 for call to get_shiftadd_cost.
25270
25271 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
25272
25273 PR target/49104
25274 * config/i386/cpuid.h (bit_MMXEXT): New define.
25275
25276 2011-05-22 Nick Clifton <nickc@redhat.com>
25277
25278 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
25279 initialisation of non-existant args[2] element. Use args[] array
25280 not arg[] array to pass arguments to build_function_type_list.
25281
25282 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
25283
25284 PR tree-optimization/49087
25285 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
25286
25287 2011-05-21 Jason Merrill <jason@redhat.com>
25288
25289 PR c++/49092
25290 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
25291 static storage duration.
25292
25293 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
25294
25295 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
25296 frame pointer.
25297
25298 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
25299
25300 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
25301 false if there are call-saved registers here...
25302 (sparc_can_use_return_insn_p): ...but here instead.
25303 (save_or_restore_regs): Fix thinko.
25304 (sparc_expand_prologue): Use current_function_is_leaf.
25305 (sparc_frame_pointer_required): Likewise.
25306
25307 2011-05-21 Nick Clifton <nickc@redhat.com>
25308
25309 PR target/49098
25310 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
25311
25312 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
25313
25314 * gengtype.c (walk_type): Implemented "atomic" GTY option.
25315 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
25316
25317 2011-05-21 Joseph Myers <joseph@codesourcery.com>
25318
25319 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
25320 * optc-gen.awk: Move common code to opt-read.awk.
25321 * opth-gen.awk: Likewise.
25322 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
25323
25324 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
25325
25326 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
25327
25328 2011-05-20 Tom de Vries <tom@codesourcery.com>
25329
25330 PR target/45098
25331 * tree-ssa-loop-ivopts.c: Include expmed.h.
25332 (get_shiftadd_cost): New function.
25333 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
25334
25335 2011-05-20 Jakub Jelinek <jakub@redhat.com>
25336
25337 PR bootstrap/49086
25338 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
25339 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
25340
25341 2011-05-20 Joseph Myers <joseph@codesourcery.com>
25342
25343 * Makefile.in: Update comment referring to $(OBJS-common).
25344
25345 2011-05-20 Ian Lance Taylor <iant@google.com>
25346
25347 * godump.c (go_output_typedef): Put enum constants in the macro
25348 hash table to avoid duplicate Go const definitions.
25349
25350 2011-05-20 Joseph Myers <joseph@codesourcery.com>
25351
25352 * Makefile.in (LIBDEPS): Add libcommon.a.
25353 (LIBS): Likewise.
25354 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
25355 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
25356 pretty-print.o and version.o.
25357 (OBJS-libcommon): New.
25358 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
25359 (BACKEND): Add libcommon.a.
25360 (MOSTLYCLEANFILES): Likewise.
25361 (libcommon.a): New.
25362 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
25363 (cpp$(exeext)): Likewise.
25364 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
25365 pretty-print.o and input.o.
25366 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
25367 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
25368 (errors.o): Remove.
25369 (mips-tfile): Don't explicitly use version.o.
25370 (mips-tdump): Likewise.
25371 (gcov.o): Depend on $(DIAGNOSTIC_H).
25372 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
25373 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
25374 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
25375 * gcov-dump.c: Include intl.h and diagnostic.h.
25376 (main): Initialize diagnostics.
25377 * gcov.c: Include diagnostic.h.
25378 (fnotice): Remove.
25379 (main): Initialize diagnostics.
25380 * lto-wrapper.c: Include diagnostic.h.
25381 (main): Initialize diagnostics.
25382
25383 2011-05-20 Michael Matz <matz@suse.de>
25384
25385 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
25386
25387 2011-05-20 Michael Matz <matz@suse.de>
25388 Richard Guenther <rguenther@suse.de>
25389
25390 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
25391 use lto_streamer_cache_append directly instead of returning a VEC.
25392 (preload_common_node): Remove.
25393 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
25394 track seen nodes.
25395 (lto_streamer_cache_create): Call lto_preload_common_nodes.
25396
25397 2011-05-20 Richard Guenther <rguenther@suse.de>
25398
25399 PR tree-optimization/49079
25400 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
25401 MEM_REFs correctly for the trailing array access detection.
25402 Special case constants the same way as decls for overall size
25403 constraining.
25404
25405 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
25406
25407 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
25408 argument expansion.
25409
25410 2011-05-20 Jakub Jelinek <jakub@redhat.com>
25411
25412 PR tree-optimization/49073
25413 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
25414 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
25415 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
25416
25417 2011-05-20 Richard Guenther <rguenther@suse.de>
25418
25419 PR middle-end/48849
25420 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
25421 of pointer types the same way the middle-end does.
25422
25423 2011-05-20 Richard Guenther <rguenther@suse.de>
25424
25425 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
25426 or pointer-to chains. Delay all fixup to uniquify_nodes.
25427
25428 2011-05-19 Quentin Neill <quentin.neill@amd.com>
25429
25430 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
25431 (fma4_fmaddsub): Likewise
25432
25433 2011-05-19 Jan Hubicka <jh@suse.cz>
25434
25435 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
25436 (GIMPLE_TYPE_PAIR_SIZE): New macro.
25437 (type_pair_cache): New static var.
25438 (lookup_type_pair): Use fixed sized custom hash; make inline.
25439 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
25440 calls of lookup_type_pair.
25441 (print_gimple_types_stats): Remove cache stats.
25442 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
25443 and gtc_ob.
25444
25445 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
25446
25447 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
25448 when TARGET_RDRND is active.
25449 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
25450 Generate dummy SImode target register when target is NULL.
25451
25452 2011-05-19 Joseph Myers <joseph@codesourcery.com>
25453
25454 * config/arm/arm-fpus.def: New.
25455 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
25456 arm-fpus.def.
25457 * config/arm/arm-tables.opt: Regenerate.
25458 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
25459 (arm_option_override): Don't decode FPU name to string here.
25460 * config/arm/arm.opt (mfpu=): Use Enum.
25461 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
25462 Update dependencies.
25463
25464 2011-05-19 Joseph Myers <joseph@codesourcery.com>
25465
25466 * collect2.c: Include diagnostic.h.
25467 (fatal_perror, fatal, error, fancy_abort): Remove.
25468 (main): Set progname. Call xmalloc_set_program_name and
25469 diagnostic_initialize.
25470 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
25471 scan_libraries, resolve_lib_name): Call fatal_error instead of
25472 fatal and fatal_perror.
25473 * collect2.h (error, fatal, fatal_perror): Don't declare.
25474 * tlink.c: Include diagnostic-core.h.
25475 (recompile_files): Call fatal_error instead of fatal_perror.
25476 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
25477 pretty-print.o and input.o.
25478 (collect2.o, tlink.o): Update dependencies.
25479
25480 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25481
25482 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
25483
25484 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25485
25486 PR target/40483
25487 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
25488 COMDAT group syntax, both SPARC and x86 variants.
25489 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
25490 * configure: Regenerate.
25491 * config/sol2.h (TARGET_SOLARIS): Define.
25492 (PUSHSECTION_FORMAT): Remove.
25493 (SECTION_NAME_FORMAT): Define.
25494 * config/sol2.c: Include hashtab.h.
25495 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
25496 expansion, using SECTION_NAME_FORMAT.
25497 (solaris_comdat_htab): New variable.
25498 (struct comdat_entry): Define.
25499 (comdat_hash): New function.
25500 (comdat_eq): New function.
25501 (solaris_elf_asm_comdat_section): New function.
25502 (solaris_define_comdat_signature): New function.
25503 (solaris_code_end): New function.
25504 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
25505 (solaris_code_end): Declare.
25506 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
25507 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
25508 solaris_code_end.
25509 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
25510 Remove ATTRIBUTE_UNUSED.
25511 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
25512 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
25513 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
25514 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
25515 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
25516 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
25517 (PUSHSECTION_FORMAT): Remove.
25518 (SECTION_NAME_FORMAT): Redefine.
25519
25520 2011-05-19 Kai Tietz <ktietz@redhat.com>
25521
25522 * tree-cfg.c (verify_gimple_assign_binary): Barf on
25523 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
25524 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
25525
25526 2011-05-19 Anatoly Sokolov <aesok@post.ru>
25527 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25528
25529 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
25530
25531 2011-05-19 Richard Guenther <rguenther@suse.de>
25532
25533 PR middle-end/48985
25534 * tree-object-size.c (addr_object_size): If the pointed-to
25535 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
25536
25537 2011-05-19 Richard Guenther <rguenther@suse.de>
25538
25539 * gimple.c (gimple_types_compatible_p_1): Compare names of
25540 the types themselves.
25541 (iterative_hash_gimple_type): And hash them that way.
25542 (gimple_register_type_1): If we register a main variant properly
25543 initialize the leader to ourselves.
25544
25545 2011-05-19 Tom de Vries <tom@codesourcery.com>
25546
25547 PR target/45098
25548 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
25549 get_loop_invariant_expr_id.
25550 (get_loop_invariant_expr_id): Use get_expr_id.
25551 (parm_decl_cost): New function.
25552 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
25553 Improve bound cost estimation. Use different inv_expr_id for elim and
25554 express cases.
25555
25556 2011-05-19 Tom de Vries <tom@codesourcery.com>
25557
25558 PR target/45098
25559 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
25560 cost_base.cost == 0.
25561
25562 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
25563
25564 PR target/49002
25565 * config/i386/sse.md
25566 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
25567 load cast.
25568
25569 2011-05-18 Jakub Jelinek <jakub@redhat.com>
25570
25571 PR tree-optimization/49039
25572 * tree-vrp.c (extract_range_from_binary_expr): For
25573 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
25574 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
25575
25576 2011-05-18 Tom de Vries <tom@codesourcery.com>
25577
25578 PR target/45098
25579 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
25580
25581 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
25582
25583 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
25584 (*tls_global_dynamic_64): Ditto.
25585 (*tls_local_dynamic_base_32_gnu): Ditto.
25586 (*tls_local_dynamic_base_64): Ditto.
25587 (tls_initial_exec_64_sun): Ditto.
25588
25589 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
25590
25591 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
25592 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
25593 bf592-none.
25594 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
25595 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
25596 * config/bfin/bfin.c (bfin_cpus): Add bf592.
25597 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
25598 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
25599 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
25600 * config/bfin/elf.h (LIB_SPEC): Add bf592.
25601
25602 2011-05-18 Joseph Myers <joseph@codesourcery.com>
25603
25604 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
25605 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
25606 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
25607 target_thread_pointer, arm_structure_size_boundary, struct
25608 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
25609 struct abi_name, arm_all_abis): Remove.
25610 (arm_option_override) Don't process most enumerated option values here.
25611 Don't process target_fpe_name here. Work with integer not string for
25612 structure size boundary; use separate diagnostics for each case.
25613 * config/arm/arm.h (enum float_abi_type, enum
25614 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
25615 to arm-opts.h.
25616 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
25617 arm_structure_size_boundary): Remove.
25618 * config/arm/arm.opt (mabi=): Use Enum and Init.
25619 (arm_abi_type): New Enum and EnumValue entries.
25620 (mfloat-abi=): Use Enum and Init.
25621 (float_abi_type): New Enum and EnumValue entries.
25622 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
25623 (mfp16-format=): Use Enum and Init.
25624 (arm_fp16_format_type): New Enum and EnumValue entries.
25625 (mstructure-size-boundary=): Use UInteger and Init.
25626 (mtp=): Use Enum and Init.
25627 (arm_tp_type): New Enum and EnumValue entries.
25628
25629 2011-05-18 Richard Guenther <rguenther@suse.de>
25630
25631 PR tree-optimization/49018
25632 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
25633 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
25634 gimple_has_side_effects.
25635
25636 2011-05-18 Richard Guenther <rguenther@suse.de>
25637
25638 * gimple.c (gimple_register_type_1): New function, split out from ...
25639 (gimple_register_type): ... here. Avoid infinite recursion.
25640
25641 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
25642
25643 PR tree-optimization/41881
25644 * tree-vectorizer.h (struct _loop_vec_info): Add new field
25645 reduction_chains along with a macro for its access.
25646 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
25647 (destroy_loop_vec_info): Free reduction chains.
25648 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
25649 (vect_is_slp_reduction): New function.
25650 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
25651 (vect_create_epilog_for_reduction): Support SLP reduction chains.
25652 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
25653 definition types for reduction chains.
25654 (vect_supported_load_permutation_p): Don't allow permutations for
25655 reduction chains.
25656 (vect_analyze_slp_instance): Support reduction chains.
25657 (vect_analyze_slp): Try to build SLP instance from reduction chains.
25658 (vect_get_constant_vectors): Handle reduction chains.
25659 (vect_schedule_slp_instance): Mark the first statement of the
25660 reduction chain as reduction.
25661
25662 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
25663
25664 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
25665 names for group elements access.
25666 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
25667 reduction chains as well. Remove data reference and interleaving
25668 related words from the fields names.
25669 * tree-vect-loop.c (vect_transform_loop): Use new names for group
25670 elements access.
25671 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
25672 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
25673 vect_update_interleaving_chain, vect_same_range_drs,
25674 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
25675 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
25676 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
25677 vect_analyze_group_access, vect_analyze_data_ref_access,
25678 vect_create_data_ref_ptr, vect_transform_strided_load,
25679 vect_record_strided_load_vectors): Likewise.
25680 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
25681 vect_model_load_cost, vectorizable_store, vectorizable_load,
25682 vect_remove_stores, new_stmt_vec_info): Likewise.
25683 * tree-vect-slp.c (vect_build_slp_tree,
25684 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
25685
25686 2011-05-18 Richard Guenther <rguenther@suse.de>
25687
25688 PR middle-end/48989
25689 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
25690 operand verification.
25691 (verify_gimple_assign_binary): Likewise.
25692 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
25693 to non-1-precision BOOLEAN_TYPEs.
25694
25695 2011-05-18 Tom de Vries <tom@codesourcery.com>
25696
25697 PR target/45098
25698 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
25699
25700 2011-05-18 Jakub Jelinek <jakub@redhat.com>
25701
25702 PR tree-optimization/49000
25703 * tree-ssa.c (execute_update_addresses_taken): Call
25704 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
25705 be rewritten and decl has been marked for renaming, reset
25706 the debug stmt.
25707
25708 2011-05-17 Joseph Myers <joseph@codesourcery.com>
25709
25710 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
25711 enum_opts_set when testing if attributes have set -mfpmath=.
25712
25713 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25714
25715 * config/mips/mips.c (mips_handle_option): Remove unused variable.
25716
25717 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
25718
25719 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
25720 info->entry with 0
25721 * tree-inline.c (maybe_inline_call_in_expr): Initialize
25722 id.transform_lang_insert_block with NULL.
25723
25724 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
25725
25726 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
25727 (output_fp_compare): Change args 3 and 4 to bool.
25728 (ix86_expand_call): Change arg 6 to bool.
25729 (ix86_attr_length_immediate_default): Change arg 2 to bool.
25730 (ix86_attr_length_vex_default): Change arg 3 to bool.
25731 * config/i386/i386.md: Update all uses.
25732 * config/i386/i386.c: Ditto.
25733 (ix86_flags_dependent): Change return type to bool.
25734
25735 2011-05-17 Richard Guenther <rguenther@suse.de>
25736
25737 * gimple.c (type_hash_pair_compare): Fix comparison.
25738
25739 2011-05-17 Richard Guenther <rguenther@suse.de>
25740
25741 * gimple.c (iterative_hash_gimple_type): Simplify singleton
25742 case some more, fix final hash value of the non-singleton case.
25743
25744 2011-05-17 Richard Guenther <rguenther@suse.de>
25745
25746 PR bootstrap/49013
25747 Revert
25748 2011-05-16 Richard Guenther <rguenther@suse.de>
25749
25750 * gimple.c (gimple_types_compatible_p_1): Use names of the
25751 type itself, not its main variant.
25752 (iterative_hash_gimple_type): Likewise.
25753
25754 2011-05-17 Richard Guenther <rguenther@suse.de>
25755
25756 * gimple.c (gimple_register_canonical_type): Use the main-variant
25757 leader for computing the canonical type.
25758
25759 2011-05-17 Nick Clifton <nickc@redhat.com>
25760
25761 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
25762 moves.
25763
25764 * config/rx/rx.md: Add peephole to remove redundant extensions
25765 after loads.
25766 (bitset_in_memory): Use rx_restricted_mem_operand.
25767 (bitinvert_in_memory): Likewise.
25768 (bitclr_in_memory): Likewise.
25769
25770 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
25771 Nick Clifton <nickc@redhat.com>
25772
25773 * config/rx/rx.md: Add peepholes to match a register move followed
25774 by a comparison of the moved register. Replace these with an
25775 addition of zero that does both actions in one instruction.
25776
25777 2011-05-17 Jakub Jelinek <jakub@redhat.com>
25778
25779 PR target/48986
25780 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
25781 predicate to allow CONST_INT.
25782 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
25783
25784 2011-05-16 Joseph Myers <joseph@codesourcery.com>
25785
25786 * opts-common.c (opt_enum_arg_to_value): New.
25787 * opts.h (opt_enum_arg_to_value): Declare.
25788 * config/i386/i386.opt (fpmath): Remove.
25789 (mfpmath=): Use Enum, Init and Save.
25790 (fpmath_unit): New Enum and EnumValue entries.
25791 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
25792 name for function fpmath state.
25793 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
25794 * config/i386/i386.c: Include diagnostic.h.
25795 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
25796 (ix86_target_string): Take enum fpmath_unit value instead of string.
25797 (ix86_debug_options): Update call to ix86_target_string.
25798 (ix86_option_override_internal): Don't process fpmath strings here.
25799 (x86_function_specific_save, ix86_function_specific_restore):
25800 Don't handle fpmath state specially.
25801 (ix86_function_specific_print): Pass fpmath state to
25802 ix86_target_string instead of printing in this function.
25803 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
25804 Handle enum attributes.
25805 (IX86_ATTR_ENUM, ix86_opt_enum): New.
25806 (ix86_valid_target_attribute_tree): Update option_strings
25807 handling. Handle fpmath as enum option.
25808 (ix86_can_inline_p): Update field names for function fpmath state.
25809 (ix86_expand_builtin): Update call to ix86_target_string.
25810 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
25811 (ix86_fpmath): Remove.
25812 * config/i386/t-i386 (i386.o): Update dependencies.
25813
25814 2011-05-16 Joseph Myers <joseph@codesourcery.com>
25815
25816 PR preprocessor/48677
25817 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
25818 from decoded_options[0], not from itself.
25819
25820 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
25821
25822 * config/i386/constraints.md (z): New constraint.
25823 * config/i386/i386.c (c): New mode attribute.
25824 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
25825 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
25826 constraint for operand 0.
25827 (*call_vzeroupper): Ditto.
25828 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
25829 (*call_rex64_ms_sysv_vzeroupper): Ditto.
25830 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
25831 Use "lzm" constraint for operand 0.
25832 (*call_pop_vzeroupper): Ditto.
25833 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
25834 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
25835 constraint for operand 0.
25836 (*sibcall_vzeroupper): Ditto.
25837 (*sibcall_rex64_ms_sysv): Ditto.
25838 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
25839 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
25840 *sibcall_pop_1. Use "Uz" constraint for operand 0.
25841 (*sibcall_pop_vzeroupper): Ditto.
25842 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
25843 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
25844 mode iterator. Use "<c>zm" constraint for operand 1.
25845 (*call_value_vzeroupper): Ditto.
25846 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
25847 for operand 1.
25848 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
25849 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
25850 *call_value_pop_1. Use "lzm" constraint for operand 1.
25851 (*call_value_pop_vzeroupper): Ditto.
25852 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
25853 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
25854 mode iterator. Use "Uz" constraint for operand 1.
25855 (*sibcall_value_vzeroupper): Ditto.
25856 (*sibcall_value_rex64_ms_sysv): Ditto.
25857 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
25858 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
25859 constraint for operand 1.
25860 (*sibcall_value_pop_vzeroupper): Ditto.
25861 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
25862 and "z" constraint for operand 2.
25863 (*tls_global_dynamic_32_gnu): Ditto.
25864 (*tls_local_dynamic_base_32_gnu): Ditto.
25865 (*tls_local_dynamic_base_64): Ditto.
25866 (*tls_local_dynamic_32_once): Ditto.
25867 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
25868 Update all callers.
25869 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
25870
25871 2011-05-16 Richard Guenther <rguenther@suse.de>
25872
25873 * gimple.c (gimple_types_compatible_p_1): Use names of the
25874 type itself, not its main variant.
25875 (iterative_hash_gimple_type): Likewise.
25876
25877 2011-05-16 Richard Guenther <rguenther@suse.de>
25878
25879 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
25880 always visit pointer target and function result and argument types.
25881
25882 2011-05-16 Jason Merrill <jason@redhat.com>
25883
25884 PR c++/48999
25885 * tree-inline.c (copy_statement_list): Put back recursion.
25886
25887 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
25888
25889 PR target/27663
25890 PR target/41076
25891 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
25892 * config/avr/avr.md ("*ior<mode>qi.byte0",
25893 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
25894
25895 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
25896
25897 PR target/45099
25898 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
25899 register is needed for a function argument.
25900
25901 2011-05-16 Richard Guenther <rguenther@suse.de>
25902
25903 * gimple.c (struct type_hash_pair): New type.
25904 (type_hash_pair_compare): New function.
25905 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
25906
25907 2011-05-16 Revital Eres <revital.eres@linaro.org>
25908
25909 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
25910
25911 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
25912
25913 * config/i386/i386.md (floating point move splitters): Fix
25914 usage of standard_80387_constant_p.
25915 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
25916
25917 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
25918
25919 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
25920
25921 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
25922
25923 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
25924 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
25925 (tree_ssa_lim_finalize): Likewise.
25926
25927 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
25928
25929 * config/i386/constraint.md (Yd, Yx): New register constraints.
25930 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
25931 Yd conditional register constraint.
25932 (*movtf_internal): Use standard_sse_constant_opcode.
25933 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
25934 Yx conditional register constraint.
25935 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
25936 Yd conditional register constraint. Use standard_sse_constant_p to
25937 check for valid SSE constants and call standard_sse_constant_opcode to
25938 output SSE insn.
25939 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
25940 constants and call standard_sse_constant_opcode to output SSE insn.
25941 * config/i386/i386.c (ix86_option_ovverride_internal): Set
25942 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
25943 optimize_size is set.
25944 (standard_sse_constant_opcode): Output conditional AVX insn templates.
25945
25946 2011-05-14 Tobias Burnus <burnus@net-b.de>
25947
25948 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
25949
25950 2011-05-13 Martin Jambor <mjambor@suse.cz>
25951
25952 * ipa-prop.c (ipa_cst_from_jfunc): New function.
25953 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
25954 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
25955 (evaluate_conditions_for_ipcp_clone): Removed.
25956 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
25957 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
25958 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
25959
25960 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
25961
25962 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
25963 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
25964 lieu of MAY_HAVE_DEBUG_STMTS.
25965 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
25966 debug statements if !MAY_HAVE_DEBUG_STMTS.
25967
25968 2011-05-13 Martin Thuresson <martint@google.com>
25969
25970 PR gcov-profile/47793
25971 * libgcov.c (gcov_exit): Support relative profile paths.
25972 * doc/invoke.texi (-fprofile-dir): Update for above change.
25973
25974 2011-05-13 Richard Guenther <rguenther@suse.de>
25975
25976 * gimple.c (gimple_canonical_types_compatible_p): Do not use
25977 type-pair caching, do not compare hashes.
25978
25979 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
25980
25981 PR middle-end/48965
25982 * tree-cfg.c (edge_to_cases_cleanup): Return true.
25983 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
25984
25985 2011-05-13 Kai Tietz <ktietz@redhat.com>
25986
25987 * gimplify.c (gimplify_expr): Make sure operand is boolified.
25988 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
25989 compatible type for TRUTH_NOT_EXPR.
25990
25991 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
25992
25993 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
25994 (ix86_hard_regno_mode_ok): Change return value to bool. Use
25995 can_create_pseudo_p ().
25996
25997 2011-05-13 Richard Guenther <rguenther@suse.de>
25998
25999 PR lto/48978
26000 * gimple.c (iterative_hash_gimple_type): Revert change in
26001 pointer target and function result and argument hashing.
26002
26003 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
26004
26005 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
26006 (*movxf_internal_nointeger): Ditto.
26007 (*movdf_internal_rex64): Ditto.
26008 (*movdf_internal): Ditto.
26009 (*movdf_internal_nointeger): Ditto.
26010 (*movsf_internal): Ditto.
26011 (sincos splitters): Use can_create_pseudo ().
26012
26013 2011-05-13 Joseph Myers <joseph@codesourcery.com>
26014
26015 * config/i386/i386-opts.h: New.
26016 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
26017 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
26018 ix86_section_threshold): Remove.
26019 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
26020 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
26021 OPT_mbranch_cost_.
26022 (ix86_option_override_internal): Don't decode strings for options
26023 other than -march=, -mtune= and -mfpmath=. Don't allow for
26024 __attribute__ uses in remaining diagnostics for options with
26025 string arguments. Don't check for integer arguments being negative.
26026 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
26027 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
26028 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
26029 ix86_branch_cost, ix86_section_threshold): Remove.
26030 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
26031 HeaderInclude.
26032 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
26033 but not Var.
26034 (masm=): Use Enum and Init.
26035 (asm_dialect): New Enum and EnumValue entries.
26036 (mbranch-cost=): Use UInteger.
26037 (mlarge-data-threshold=): Use UInteger and Init.
26038 (mcmodel=): Use Enum and Init.
26039 (cmodel): New Enum and EnumValue entries.
26040 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
26041 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
26042 mregparm=): Use UInteger.
26043 (mstringop-strategy=): Use Enum and Init.
26044 (stringop_alg): New Enum and EnumValue entries.
26045 (mtls-dialect=): Use Enum and Init.
26046 (tls_dialect): New Enum and EnumValue entries.
26047 (mabi=): Use Enum and Init.
26048 (calling_abi): New Enum and EnumValue entries.
26049 (mveclibabi=): Use Enum and Init.
26050 (ix86_veclibabi): New Enum and EnumValue entries.
26051
26052 2011-05-13 Nick Clifton <nickc@redhat.com>
26053
26054 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
26055 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
26056
26057 2011-05-13 Kai Tietz <ktietz@redhat.com>
26058
26059 PR middle-end/48984
26060 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
26061 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
26062 (gimple_boolify): Check for cast for boolean_type_node instead for
26063 BOOLEAN_TYPE.
26064
26065 2011-05-13 Richard Guenther <rguenther@suse.de>
26066
26067 PR tree-optimization/48172
26068 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
26069 multiplying by number of iterations for equal step.
26070 (vect_create_cond_for_alias_checks): Likewise.
26071
26072 2011-05-13 Andreas Schwab <schwab@redhat.com>
26073
26074 * configure.ac: Use AS_HELP_STRING throughout.
26075 * configure: Regenerate.
26076
26077 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
26078
26079 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
26080 (ix86_emit_restore_regs_using_mov): Likewise.
26081 (ix86_emit_restore_sse_regs_using_mov): Likewise.
26082
26083 2011-05-12 Anatoly Sokolov <aesok@post.ru>
26084
26085 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
26086 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
26087 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
26088 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
26089 RTX_OK_FOR_OLO10_P): ...here.
26090 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
26091 SYMBOLIC_CONST.
26092
26093 2011-05-12 Kai Tietz <ktietz@redhat.com>
26094
26095 * gimplify.c (gimple_boolify): Re-boolify expression
26096 arguments even if expression type is of kind BOOLEAN_TYPE.
26097 (gimplify_boolean_expr): Removed.
26098 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
26099 and XOR. Additional take care that we keep expression's type.
26100 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
26101 of TRUTH_AND|OR|XOR_EXPR.
26102
26103 2011-05-12 Jakub Jelinek <jakub@redhat.com>
26104
26105 PR tree-optimization/48975
26106 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
26107 on all bbs here and free and clear ifc_bbs at the end.
26108
26109 2011-05-12 Richard Guenther <rguenther@suse.de>
26110
26111 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
26112 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
26113 until after simple checks.
26114 (gimple_types_compatible_p): Likewise.
26115 (iterative_hash_gimple_type): Always hash pointer targets
26116 and function return and argument types.
26117 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
26118 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
26119 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
26120 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
26121 completely in the simple compare section.
26122 (gimple_register_canonical_type): Query the cache again after
26123 registering.
26124
26125 2011-05-12 Richard Guenther <rguenther@suse.de>
26126
26127 PR tree-optimization/48172
26128 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
26129 the number of iterations from the segment size calculation.
26130 (vect_create_cond_for_alias_checks): Adjust.
26131
26132 2011-05-12 Jakub Jelinek <jakub@redhat.com>
26133
26134 PR debug/48967
26135 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
26136 if validate_subreg fails.
26137
26138 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
26139
26140 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
26141 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
26142 early.
26143
26144 2011-05-12 DJ Delorie <dj@redhat.com>
26145
26146 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
26147 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
26148 created builtin into rx_builtins array.
26149 (rx_builtin_decl): New function.
26150 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
26151
26152 2011-05-12 DJ Delorie <dj@redhat.com>
26153 Nick Clifton <nickc@redhat.com>
26154
26155 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
26156 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
26157 (rx_is_legitimate_address): Add pre-decrement and post-increment
26158 addressing in HImode and QImode. Fix test for out of range
26159 REG+INT addressing.
26160 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
26161 (rx_align_for_label): Test label before extracting its usage count.
26162 (rx_adjust_insn_lengths): Fix selection of insn codes.
26163 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
26164
26165 2011-05-11 Jason Merrill <jason@redhat.com>
26166
26167 * tree.c (type_hash_canon): Use struct tree_type_non_common.
26168
26169 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
26170
26171 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
26172 reindent the subsequent block.
26173
26174 2011-05-11 Satoru Takabayashi <satorux@google.com>
26175 Paul Pluzhnikov <ppluzhnikov@google.com>
26176
26177 * doc/install.texi (Configuration): Document --with-linker-hash-style.
26178 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
26179 * config.in: Add LINKER_HASH_STYLE.
26180 * configure.ac: Add --with-linker-hash-style.
26181 * configure: Regenerate.
26182
26183 2011-05-11 Richard Guenther <rguenther@suse.de>
26184
26185 PR middle-end/48964
26186 * gimple.c (iterative_hash_canonical_type): Fix typo.
26187
26188 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
26189
26190 * config/i386/i386.c (legitimize_tls_address)
26191 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
26192 expanders directly for TARGET_GNU2_TLS. Determine pic and
26193 __tls_get_addr symbol reference here. Update call to
26194 gen_tls_global_dynamic_{32,64} for added arguments.
26195 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
26196 expanders directly for TARGET_GNU2_TLS. Determine
26197 __tls_get_addr symbol reference here. Update call to
26198 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
26199 unique UNSPEC REG_EQUIV to libcall block.
26200 (ix86_tls_get_addr): Declare static.
26201 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
26202 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
26203 Do not determine pic and __tls_get_addr symbol reference here. Do not
26204 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
26205 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
26206 (tls_global_dynamic_64): Add operand 2. Do not determine
26207 __tls_get_addr symbol reference here. Do not call
26208 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
26209 (tls_local_dynamic_base64): Ditto for operand 1.
26210
26211 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
26212
26213 * function.c (expand_function_start): Initialize stack_check_probe_note
26214 only if the generic stack checking mechanism is used.
26215
26216 2011-05-11 Richard Guenther <rguenther@suse.de>
26217
26218 PR tree-optimization/15256
26219 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
26220 (A & B) | C, combine (A op CST1) op CST2.
26221 (tree_ssa_forward_propagate_single_use_vars): Only bother to
26222 visit assigns that have uses.
26223
26224 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
26225
26226 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
26227 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
26228 (unpack_ts_type_common_value_fields): ...this. Update comment.
26229 (unpack_value_fields): Adjust for renaming.
26230 (lto_input_ts_type_tree_pointers): Split into...
26231 (lto_input_ts_type_common_tree_pointer): ...this and...
26232 (lto_input_ts_type_non_common_tree_pointers): ...this.
26233 (lto_input_tree_pointers): Adjust for above split.
26234 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
26235 (pack_ts_type_common_value_fields): ...this. Update comment.
26236 (lto_output_ts_type_tree_pointers): Split into...
26237 (lto_output_ts_type_common_tree_pointers): ...this and...
26238 (lto_output_ts_type_non_common_tree_pointers): ...this.
26239 (lto_output_tree_pointers): Adjust for above split.
26240 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
26241 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
26242 * stor-layout.c (vector_type_mode): Adjust location of mode field.
26243 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
26244 Define.
26245 (struct tree_type): Split into...
26246 (struct tree_type_common: ...this and...
26247 (struct tree_type_with_lang_specific): ...this and...
26248 (struct tree_type_non_common): ...this. Adjust accessor macros
26249 accordingly.
26250 (TYPE_VALUES_RAW): Define.
26251 (union tree_node): Update for above changes.
26252 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
26253 TS_TYPE_NON_COMMON.
26254 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
26255 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
26256 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
26257 * treestructu.def (TS_TYPE): Remove.
26258 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
26259 Define.
26260
26261 2011-05-11 Jakub Jelinek <jakub@redhat.com>
26262
26263 PR debug/48159
26264 * tree-ssa.c (reset_debug_uses): New function.
26265 * tree-flow.h (reset_debug_uses): New prototype.
26266 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
26267 * tree-loop-distribution.c (generate_loops_for_partition): Call
26268 reset_debug_uses on the stmts that will be removed. Keep around
26269 all debug stmts, don't count them as bits in partition bitmap.
26270 (generate_builtin): Don't count debug stmts or labels as bits in
26271 partition bitmap.
26272
26273 2011-05-11 Richard Guenther <rguenther@suse.de>
26274
26275 * gimple.c (gimple_type_hash_1): Merge with ...
26276 (gimple_type_hash): ... this.
26277 (gtc_visit): Remove mode parameter and simplify accordingly.
26278 (gimple_types_compatible_p_1): Likewise.
26279 (gimple_types_compatible_p): Likewise.
26280 (iterative_hash_gimple_type): Likewise.
26281 (visit): Likewise.
26282 (gimple_type_eq): Adjust.
26283
26284 2011-05-11 Revital Eres <revital.eres@linaro.org>
26285
26286 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
26287 enters the branch create an anti edge in the opposite direction
26288 to prevent the creation of reg-moves.
26289 * modulo-sched.c: Adjust comment to reflect the fact we are
26290 scheduling closing branch.
26291 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
26292 (stage_count): New field in struct partial_schedule.
26293 (calculate_stage_count): New function.
26294 (normalize_sched_times): Rename to reset_sched_times and handle
26295 incrementing the sched time of the nodes by a constant value
26296 passed as parameter.
26297 (duplicate_insns_of_cycles): Skip closing branch.
26298 (sms_schedule_by_order): Schedule closing branch.
26299 (ps_insn_find_column): Handle closing branch.
26300 (sms_schedule): Call reset_sched_times and adjust the code to
26301 support scheduling of the closing branch.
26302 (ps_insert_empty_row): Update calls to normalize_sched_times
26303 and rotate_partial_schedule functions.
26304
26305 2011-05-11 Richard Guenther <rguenther@suse.de>
26306
26307 PR middle-end/48953
26308 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
26309
26310 2011-05-11 Joseph Myers <joseph@codesourcery.com>
26311
26312 * opts.c (finish_options): Move warning settings from process_options.
26313 * toplev.c (process_options): Move warning settings to finish_options.
26314
26315 2011-05-11 Richard Guenther <rguenther@suse.de>
26316
26317 PR tree-optimization/18041
26318 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
26319 (simplify_bitwise_binary): ... this. Handle operand conversions
26320 by applying them to the result instead.
26321 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
26322
26323 2011-05-11 Richard Guenther <rguenther@suse.de>
26324
26325 * gimple.c (gimple_canonical_types_compatible_p): Split out
26326 from gimple_types_compatible_p and friends. Do not recurse
26327 to pointed-to types.
26328 (gimple_canonical_type_eq): Use it.
26329 (iterative_hash_canonical_type): Split out from
26330 iterative_hash_gimple_type and friends. Do not recurse
26331 to pointed-to types.
26332 (gimple_canonical_type_hash): Use it, allocate the hash here.
26333
26334 2011-05-11 Revital Eres <revital.eres@linaro.org>
26335
26336 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
26337 recognizing doloop.
26338
26339 2011-05-11 Revital Eres <revital.eres@linaro.org>
26340
26341 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
26342 instead of PREV_INSN.
26343
26344 2011-05-11 Revital Eres <revital.eres@linaro.org>
26345
26346 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
26347 * loop-doloop.c (doloop_condition_get): Likewise.
26348 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
26349 (doloop_end): New.
26350 * config/arm/arm.md (*addsi3_compare0): Remove "*".
26351
26352 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
26353
26354 * tree.def (CASE_LABEL_EXPR): Add an operand.
26355 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
26356
26357 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26358
26359 * c-decl.c (c_override_global_bindings_to_false): Remove.
26360 (global_bindings_p): Don't check
26361 c_override_global_bindings_to_false.
26362 * c-tree.h (c_override_global_bindings_to_false): Remove.
26363 * c-typeck.c (composite_type): Don't set
26364 c_override_global_bindings_to_false.
26365
26366 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26367
26368 PR target/48857, 48495
26369 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
26370 (VSX_MODE): Ditto.
26371 (VSX_MOVE_MODE): Ditto.
26372 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
26373 VSX vector types. Add V2DImode.
26374 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
26375 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
26376 (MODES_TIEABLE_P): Ditto.
26377
26378 * config/rs6000/rs6000.c (rs6000_emit_move): Use
26379 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
26380 VSX_VECTOR_MODE.
26381 (init_cumulative_args): Ditto.
26382 (rs6000_function_arg_boundary): Ditto.
26383 (rs6000_function_arg_advance_1): Ditto.
26384 (rs6000_function_arg): Ditto.
26385 (rs6000_function_ok_for_sibcall): Ditto.
26386 (emit_frame_save): Ditto.
26387 (rs6000_function_value): Ditto.
26388 (rs6000_libcall_value): Ditto.
26389
26390 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26391
26392 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
26393 i386/darwin-lib.h to $libgcc_tm_file.
26394 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
26395
26396 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26397
26398 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
26399
26400 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26401
26402 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
26403 * config/rs6000/rs6000-tables.opt: New file (generated).
26404 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
26405 rs6000/rs6000-tables.opt to extra_options.
26406 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
26407 * config/rs6000/rs6000.c (rs6000_select): Remove.
26408 (processor_target_table): Move contents to rs6000-cpus.def.
26409 (darwin_rs6000_override_options): Check
26410 global_options_set.x_rs6000_cpu_index instead of
26411 rs6000_select[1].string.
26412 (rs6000_option_override_internal): Likewise.
26413 (rs6000_handle_option): Don't assert that global structures are in
26414 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
26415 (rs6000_default_cpu): New variable.
26416 (rs6000_file_start): Set it instead of local default_cpu. Check
26417 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
26418 global_options_set.x_rs6000_tune_index instead of rs6000_select.
26419 (rs6000_darwin_file_start): Check rs6000_default_cpu and
26420 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
26421 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
26422 rs6000_select): Remove.
26423 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
26424 Remove.
26425 (mcpu=, mtune=): Use Var, Init, Enum and Save.
26426 * config/rs6000/t-rs6000
26427 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
26428 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
26429 global_options_set.x_rs6000_cpu_index instead of
26430 rs6000_select[1].string.
26431 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
26432 global_options_set.x_rs6000_cpu_index instead of
26433 rs6000_select[1].string.
26434
26435 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26436
26437 * config.gcc (libgcc_tm_file): Define instead of including files
26438 from ../../libgcc/config/ in tm_file.
26439 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
26440 * configure: Regenerate.
26441 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
26442 libgcc_tm.h, cs-libgcc_tm.h): New.
26443 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
26444 (clean): Remove libgcc_tm.h.
26445 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
26446 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
26447 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
26448
26449 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
26450
26451 PR target/48896
26452 * config/avr/avr.c (avr_ret_register): Return unsigned int
26453 instead of int.
26454 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
26455 it to avr_libcall_value.
26456 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
26457 expand_expr.
26458 (avr_expand_binop_builtin): Ditto.
26459 (avr_expand_unop_builtin): Ditto.
26460
26461 2011-05-10 DJ Delorie <dj@redhat.com>
26462
26463 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
26464 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
26465 * config/rx/rx.c (rx_align_for_label): Add label and
26466 uses_threshold parameters. Do not align when the label is not
26467 used enough.
26468 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
26469
26470 2011-05-10 Richard Guenther <rguenther@suse.de>
26471
26472 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
26473 a series of conversions and apply foldings similar to what
26474 fold-const does.
26475 (tree_ssa_forward_propagate_single_use_vars): Call it.
26476
26477 2011-05-10 Jakub Jelinek <jakub@redhat.com>
26478
26479 PR tree-optimization/48611
26480 PR tree-optimization/48794
26481 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
26482 referenced from RESX or EH_DISPATCH arguments.
26483
26484 PR debug/48928
26485 * dfp.c (decimal_to_decnumber): Handle conversion from
26486 dconst{1,2,m1,half}.
26487
26488 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26489
26490 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
26491 for !flag_prefer_avx128.
26492 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
26493
26494 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
26495
26496 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
26497 (fold_ternary_loc): Use expr_location_or.
26498
26499 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
26500
26501 PR debug/48853
26502 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
26503 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
26504 Pmode and mem_mode is not VOIDmode.
26505
26506 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
26507
26508 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
26509 TYPE_QUAL_RESTRICT): Convert to enum.
26510
26511 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26512
26513 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
26514 (const_pow2_1_to_8_operand): Ditto.
26515 (const_pow2_1_to_128_operand): Ditto.
26516 (const_pow2_1_to_32768_operand): Ditto.
26517 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
26518 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
26519 in insn constraint to check integer value of operand 3.
26520 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
26521
26522 (PINSR_MODE): New mode iterator.
26523 (sse2p4_1): New mode attribute.
26524 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
26525 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
26526 iterator. Use const_int_operand instead of
26527 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
26528 exact_log2 in insn constraint to check integer value of operand 3.
26529
26530 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26531
26532 * config/i386/sse.md (blendbits): Remove mode attribute.
26533 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
26534 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
26535 Check integer value of operand 3 in insn constraint.
26536
26537 2011-05-09 Richard Guenther <rguenther@suse.de>
26538
26539 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
26540 for diagnostics.
26541 (lto_symtab_merge): Likewise. Do not register types here.
26542 (lto_symtab_merge_decls_2): Likewise.
26543 (lto_symtab_merge_decls_1): Likewise.
26544 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
26545 * gimple.c (enum gtc_mode): Declare.
26546 (gimple_types_compatible_p): Make static.
26547
26548 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26549
26550 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
26551 temporary register to match Pmode.
26552
26553 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26554
26555 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
26556 and *vec_concatv4si_1_avx.
26557
26558 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26559
26560 PR rtl-optimization/48927
26561 * ira-conflicts.c (commutative_constraint_p): Use
26562 recog_data.alternative_enabled_p to disable alternatives where
26563 "enabled" attribute is false.
26564 (get_dup_num): Ditto.
26565 * ira-lives.c (single_reg_class): Ditto.
26566 (ira_implicitly_set_insn_hard_regs): Ditto.
26567
26568 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
26569
26570 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
26571 (dataflow_set_preserve_mem_locs): Likewise.
26572
26573 2011-05-09 Philipp Thomas <pth@suse.de>
26574
26575 * config/mep/mep.c (mep_validate_vliw): Syntax description
26576 should not be translated.
26577
26578 2011-05-09 Joseph Myers <joseph@codesourcery.com>
26579
26580 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
26581 * config/mips/mips-tables.opt: New file (generated).
26582 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
26583 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
26584 MIPS_ARCH_OPTION_NATIVE): Define.
26585 * config/mips/mips.c (mips_cpu_info_table): Move contents to
26586 mips-cpus.def.
26587 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
26588 mips_parse_cpu): Remove.
26589 (mips_cpu_info_from_opt, mips_default_arch): New.
26590 (mips_handle_option): Don't assert that global structures are in
26591 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
26592 (mips_option_override): Use new variables and functions to set
26593 state of these options. Use strcmp to check for individual CPU names.
26594 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
26595 definition.
26596 * config/mips/mips.opt (march=): Use ToLower and Enum.
26597 (mips): Use ToLower, Enum and Var.
26598 (mtune=): Use ToLower and Enum.
26599 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
26600
26601 2011-05-08 Jan Hubicka <jh@suse.cz>
26602
26603 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
26604 Arrange type pairs to be UID ordered.
26605 (gimple_lookup_type_leader): Make inline.
26606
26607 2011-05-09 Nick Clifton <nickc@redhat.com>
26608
26609 PR target/48899
26610 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
26611 PROCESSOR_DEFAULT.
26612
26613 PR target/48897
26614 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
26615 variable 's'.
26616
26617 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
26618
26619 * combine.c (simplify_comparison): Abstract out parts into...
26620 (simplify_compare_const): ... new function.
26621 (try_combine): Generalize parallel arithmetic/compare combining
26622 to call simplify_compare_const() and CANONICALIZE_COMPARE().
26623
26624 2011-05-08 Jan Hubicka <jh@suse.cz>
26625
26626 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
26627 (cgraph_create_virtual_clone): Call hooks once virtual clone
26628 is finished.
26629 * cgraph.h (cgraph_clone_node): Update prototype.
26630 * ipa-cp.c (ipcp_estimate_growth): Use
26631 estimate_ipcp_clone_size_and_time.
26632 * ipa-inline-transform.c (clone_inlined_nodes): Update.
26633 * lto-cgraph.c (input_node): Update.
26634 * ipa-inline.c (recursive_inlining): Update.
26635 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
26636 (evaluate_conditions_for_known_args): Break out from ...
26637 (evaluate_conditions_for_edge): ... here.
26638 (evaluate_conditions_for_ipcp_clone): New function.
26639 (inline_node_duplication_hook): Update clone summary based
26640 on parameter map.
26641 (estimate_callee_size_and_time): Rename to ...
26642 (estimate_node_size_and_time): take NODE instead of EDGE;
26643 take POSSIBLE_TRUTHS as argument.
26644 (estimate_callee_size_and_time): Update.
26645 (estimate_ipcp_clone_size_and_time): New function.
26646 (do_estimate_edge_time): Update.
26647
26648 2011-05-08 Richard Guenther <rguenther@suse.de>
26649
26650 PR middle-end/48908
26651 PR middle-end/48905
26652 * expmed.c (expand_shift_1): Compute adjusted constant shift
26653 amount manually.
26654
26655 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
26656
26657 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
26658
26659 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
26660
26661 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
26662
26663 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
26664
26665 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
26666
26667 2011-05-07 Jan Hubicka <jh@suse.cz>
26668
26669 * ipa-inline-transform.c (inline_call): Account when program size
26670 decreases.
26671 * ipa-inline.c (relative_time_benefit): New function.
26672 (edge_badness): Reorganize to be power 2 based; fix thinko when
26673 computing badness for negative growth; update comments to match
26674 reality; better dumps.
26675
26676 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
26677
26678 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
26679 type to bool and adjust comment.
26680 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
26681 (fold_mathfn_compare): Remove calls to global_bindings_p.
26682 (fold_inf_compare): Likewise.
26683 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
26684 * c-tree.h (global_bindings_p): Adjust prototype.
26685 * c-decl.c (global_bindings_p): Return bool and simplify.
26686
26687 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
26688
26689 PR tree-optimization/48837
26690 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
26691 when accumulator transformation is performed.
26692
26693 2011-05-06 Jan Hubicka <jh@suse.cz>
26694
26695 * i386.h (ix86_tune_indices): Add
26696 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
26697 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
26698 * i386.c (initial_ix86_tune_features): Add
26699 X86_SOFTARE_PREFETCHING_BENEFICIAL.
26700 (software_prefetching_beneficial_p): Remove predicate.
26701 (ix86_option_override_internal): Use new macro.
26702
26703 2011-05-06 Jan Hubicka <jh@suse.cz>
26704
26705 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
26706
26707 2011-05-06 Jan Hubicka <jh@suse.cz>
26708
26709 * cgraph.c (cgraph_add_thunk): Create real function node instead
26710 of alias node; finalize it and mark needed/reachale; arrange visibility
26711 to be right and add it into the corresponding same comdat group list.
26712 (dump_cgraph_node): Dump thunks.
26713 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
26714 cgraph_function_with_gimple_body_p,
26715 cgraph_first_function_with_gimple_body,
26716 cgraph_next_function_with_gimple_body): New functions.
26717 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
26718 New macros.
26719 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
26720 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
26721 * cgraphunit.c (cgraph_finalize_function): Only look into possible
26722 devirtualization when optimizing.
26723 (verify_cgraph_node): Verify thunks.
26724 (cgraph_analyze_function): Analyze thunks.
26725 (cgraph_mark_functions_to_output): Output thunks only in combination
26726 with function they are assigned to.
26727 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
26728 alias into normal node.
26729 (assemble_thunks): New functoin.
26730 (cgraph_expand_function): Use it.
26731 * lto-cgraph.c (lto_output_node): Stream thunks.
26732 (input_overwrite_node): Stream in thunks.
26733 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
26734 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
26735 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
26736 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
26737 (inline_analyze_function): Do not care about thunk jump functions.
26738 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
26739 * ipa-prop.c (ipa_prop_write_jump_functions): Use
26740 cgraph_function_with_gimple_body_p.
26741 * passes.c (do_per_function_toporder): Use
26742 cgraph_function_with_gimple_body_p.
26743 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
26744 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
26745 (function_called_by_processed_nodes_p): Likewise.
26746
26747 2011-05-06 Joseph Myers <joseph@codesourcery.com>
26748
26749 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
26750 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
26751 entries.
26752 (mabi=): Replace with separate entries for mabi=altivec,
26753 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
26754 mabi=ieeelongdouble and mabi=ibmlongdouble.
26755 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26756 check for -mabi=spe without SPE ABI support here.
26757 (rs6000_handle_option): Replace OPT_mabi_ handling with
26758 OPT_mabi_altivec and OPT_mabi_spe handling.
26759
26760 2011-05-06 Cary Coutant <ccoutant@google.com>
26761
26762 * dwarf2out.c (contains_subprogram_definition): New function.
26763 (should_move_die_to_comdat): Call it.
26764
26765 2011-05-06 Jeff Law <law@redhat.com>
26766
26767 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
26768 remove_ctrl_stmt_and_useless_edges.
26769 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
26770 (fixup_template_block, thread_single_edge): Likewise.
26771 (mark_threaded_blocks): Use THREAD_TARGET.
26772
26773 2011-05-06 Alan Modra <amodra@gmail.com>
26774
26775 PR target/48900
26776 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
26777 const0_rtx as the arg to the dummy __tls_get_addr libcall.
26778
26779 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
26780
26781 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
26782 constraint modifier to "r".
26783
26784 2011-05-06 Joseph Myers <joseph@codesourcery.com>
26785
26786 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
26787 fall through for OPT_mcmodel_.
26788
26789 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26790
26791 * config/s390/s390.c (s390_asm_trampoline_template): Comment
26792 instruction sizes.
26793 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
26794
26795 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26796
26797 PR target/47930
26798 * config/arm/arm.opt (marm): Document it.
26799 (mthumb): Reject negative variant.
26800
26801 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
26802
26803 PR target/48898
26804 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
26805 Fix typo in "ccvt" variable name.
26806
26807 2011-05-06 Tristan Gingold <gingold@adacore.com>
26808
26809 PR target/48895
26810 * config/vms/vms-ar.c (main): Remove cwd variable.
26811
26812 2011-05-06 Jakub Jelinek <jakub@redhat.com>
26813
26814 PR debug/48902
26815 * var-tracking.c (prepare_call_arguments): Move else before #endif.
26816
26817 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
26818
26819 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
26820 * gimplify.c (gimplify_switch_expr): Likewise.
26821 * omp-low.c (expand_omp_sections): Likewise.
26822 * tree-eh.c (lower_try_finally_switch): Likewise.
26823 (lower_eh_dispatch): Likewise.
26824 * tree.h (build_case_label): Declare.
26825 * tree.c (build_case_label): Define.
26826
26827 2011-05-05 Jason Merrill <jason@redhat.com>
26828
26829 PR c++/40975
26830 * tree-inline.c (copy_tree_r): Use copy_statement_list.
26831 (copy_statement_list): Don't recurse.
26832 * stor-layout.c (copy_self_referential_tree_r): Don't allow
26833 STATEMENT_LIST.
26834
26835 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26836
26837 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
26838 through from -mfpu= handling.
26839 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
26840
26841 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
26842
26843 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
26844 POST_MODIFY.
26845
26846 2011-05-05 Steve Ellcey <sje@cup.hp.com>
26847
26848 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
26849 for 11.31.
26850 (hppa[12]*-*-hpux11*): Ditto.
26851 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
26852 * config/ia64/hpux-unix2003.h: New.
26853 * config/pa/pa-hpux1131.opt: New.
26854 * config/pa/pa-hpux1131.h: New.
26855 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
26856 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
26857 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
26858
26859 2011-05-05 Jakub Jelinek <jakub@redhat.com>
26860
26861 PR debug/48853
26862 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
26863 instead of mode as 3rd argument to recursive call.
26864 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
26865 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
26866 VOIDmode.
26867 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
26868 don't give up if mode is Pmode and mem_mode is not VOIDmode.
26869 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
26870 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
26871
26872 2011-05-05 Julian Brown <julian@codesourcery.com>
26873
26874 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
26875 parenthesis in D-register case.
26876
26877 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26878
26879 * opt-functions.awk (var_type_struct): Handle Enum options.
26880 * optc-gen.awk: Don't check range of variables of character type.
26881 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
26882 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
26883 rs6000_sdata_name, rs6000_explicit_options): Remove.
26884 (rs6000_option_override_internal): Check for -malign-power here.
26885 Use global_options_set instead of rs6000_explicit_options.
26886 (rs6000_parse_fpu_option): Remove.
26887 (rs6000_handle_option): Access variables via opts and opts_set
26888 pointers. Use error_at and warning_at. Add fall-through
26889 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
26890 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
26891 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
26892 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
26893 here. Don't use rs6000_parse_fpu_option.
26894 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
26895 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
26896 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
26897 (mrecip=): Use Var.
26898 (mspe): Use Var and Save.
26899 (mtraceback=): Use Enum and Var.
26900 (rs6000_traceback_type): New Enum and EnumValue entries.
26901 (mfloat-gprs=): Use Enum, Var and Save.
26902 (rs6000_float_gprs): New Enum and EnumValue entries.
26903 (mlong-double-): use Var and Save.
26904 (msched-costly-dep=, minsert-sched-nops=): Use Var.
26905 (malign-): Use Enum and Var.
26906 (rs6000_alignment_flags): New Enum and EnumValue entries.
26907 (mfpu=): Use Enum.
26908 (fpu_type_t): New Enum and EnumValue entries.
26909 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26910 global_options_set instead of rs6000_explicit_options.
26911 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26912 global_options_set instead of rs6000_explicit_options.
26913 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26914 global_options_set instead of rs6000_explicit_options.
26915 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26916 global_options_set instead of rs6000_explicit_options.
26917 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
26918 global_options_set instead of rs6000_explicit_options.
26919 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26920 global_options_set instead of rs6000_explicit_options.
26921 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
26922 definition.
26923 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26924 global_options_set instead of rs6000_explicit_options.
26925 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
26926 (rs6000_cmodel): New Enum and EnumValue entries.
26927 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26928 global_options_set instead of rs6000_explicit_options.
26929 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
26930 (mtls-size=): Use Enum and Var.
26931 (rs6000_tls_size): New Enum and EnumValue entries.
26932
26933 2011-05-05 Michael Matz <matz@suse.de>
26934
26935 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
26936 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
26937 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
26938 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
26939 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
26940 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
26941 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
26942 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
26943 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
26944 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
26945 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
26946 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
26947 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
26948 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
26949 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
26950 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
26951
26952 2011-05-05 Richard Guenther <rguenther@suse.de>
26953
26954 * expmed.c (expand_variable_shift): Rename to ...
26955 (expand_shift_1): ... this. Take an expanded shift amount.
26956 For rotates recurse directly not building trees for the shift amount.
26957 (expand_variable_shift): Wrap around expand_shift_1.
26958 (expand_shift): Adjust.
26959
26960 2011-05-05 Jakub Jelinek <jakub@redhat.com>
26961
26962 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
26963
26964 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
26965
26966 * tree.h (get_pending_sizes): Remove prototype.
26967 (put_pending_size): Likewise.
26968 (put_pending_sizes): Likewise.
26969 * stor-layout.c (pending_sizes): Delete.
26970 (get_pending_sizes): Likewise.
26971 (put_pending_size): Likewise.
26972 (put_pending_sizes): Likewise.
26973 (variable_size): Do not call put_pending_size and tidy up.
26974 * function.h (struct function): Remove dont_save_pending_sizes_p.
26975 * lto-streamer-in.c (input_function): Do not stream it.
26976 * lto-streamer-out.c (output_function): Likewise.
26977 * tree-inline.c (initialize_cfun): Do not copy it.
26978 * c-decl.c (store_parm_decls): Do not set it.
26979 * omp-low.c (create_task_copyfn): Likewise.
26980 * tree-optimize.c (tree_rest_of_compilation): Likewise.
26981
26982 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
26983
26984 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
26985 conditions.
26986 (*movdf_internal): Ditto.
26987 (*movdf_internal_nointeger): Ditto.
26988 (*movsf_internal): Ditto.
26989
26990 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26991
26992 * c-decl.c (finish_decl): Don't call get_pending_sizes.
26993 (grokparm): Add parameter expr. Pass it to grokdeclarator.
26994 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
26995 (c_variable_size): Remove.
26996 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
26997 call put_pending_sizes.
26998 (get_parm_info): Add parameter expr. Use it to set
26999 arg_info->pending_sizes.
27000 (store_parm_decls): Use arg_info->pending_sizes instead or calling
27001 get_pending_sizes.
27002 * c-parser.c (c_parser_parms_declarator): Update call to
27003 c_parser_parms_list_declarator.
27004 (c_parser_parms_list_declarator): Take parameter expr. Update
27005 call to push_parm_decl. Update recursive call. Don't call
27006 get_pending_sizes. Update calls to get_parm_info.
27007 (c_parser_objc_method_definition): Update calls to
27008 c_parser_objc_method_decl and objc_start_method_definition.
27009 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
27010 (c_parser_objc_method_decl): Add parameter expr. Update call to
27011 grokparm.
27012 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
27013 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
27014 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
27015
27016 2011-05-05 Michael Hope <michael.hope@linaro.org>
27017
27018 PR pch/45979
27019 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
27020 __ARM_EABI__ hosts.
27021
27022 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27023
27024 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27025 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
27026 (spu_output_mi_thunk): New function.
27027
27028 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27029
27030 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
27031 targetm.asm_out.print_operand.
27032 * config/sol2.c: Include target.h.
27033
27034 2011-05-04 Jan Hubicka <jh@suse.cz>
27035
27036 * ipa-inline.c (reset_edge_caches): New function.
27037 (update_caller_keys): Add check_inlinablity_for; do not
27038 reset edge caches; remove now unnecesary loop.
27039 (update_callee_keys): Add comments; reset node_growth_cache of callee.
27040 (update_all_callee_keys): Likewise.
27041 (inline_small_functions): Sanity check cache; update code
27042 recomputing it.
27043
27044 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
27045
27046 PR rtl-optimization/47612
27047 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
27048 as the last insn of the sequence to be moved.
27049
27050 2011-05-04 Tobias Burnus <burnus@net-b.de>
27051
27052 PR fortran/48864
27053 * doc/invoke.texi (Ofast): Document that it
27054 enables Fortran's -fno-protect-parens.
27055
27056 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
27057
27058 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
27059
27060 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
27061
27062 * stor-layout.c (variable_size): Do not issue errors.
27063
27064 2011-05-04 Richard Guenther <rguenther@suse.de>
27065
27066 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
27067 for array-ref indices.
27068 (tree_coverage_counter_addr): Likewise.
27069 (build_fn_info_type): Use size_int for index types.
27070 (build_gcov_info): Likewise.
27071
27072 2011-05-04 Richard Guenther <rguenther@suse.de>
27073
27074 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
27075 to build_int_cst.
27076 * c-typeck.c (really_start_incremental_init): Use bitsize_int
27077 for constructor indices.
27078 (push_init_level): Likewise.
27079
27080 2011-05-04 Richard Guenther <rguenther@suse.de>
27081
27082 * explow.c (promote_mode): Move variable declarations before code.
27083
27084 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
27085
27086 * tree.h (build_function_type_array): Declare.
27087 (build_varargs_function_type_array): Declare.
27088 (build_function_type_vec, build_varargs_function_type_vec): Define.
27089 * tree.c (build_function_type_array_1): New function.
27090 (build_function_type_array): New function.
27091 (build_varargs_function_type_array): New function.
27092
27093 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
27094
27095 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
27096 before setting STMT_VINFO_TYPE.
27097
27098 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27099
27100 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
27101 instead of spu_pass_by_reference.
27102
27103 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27104
27105 * calls.c (emit_library_call_value_1): Invoke
27106 promote_function_mode hook on libcall arguments.
27107 * explow.c (promote_function_mode, promote_mode): Handle TYPE
27108 argument being NULL.
27109 * targhooks.c (default_promote_function_mode): Lisewise.
27110 * config/s390/s390.c (s390_promote_function_mode): Likewise.
27111 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
27112
27113 * doc/tm.texi: Document that TYPE argument might be NULL.
27114
27115 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27116
27117 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
27118
27119 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27120
27121 From Bernd Schmidt
27122 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
27123
27124 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27125
27126 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
27127 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
27128 Move ...
27129 * mips-tfile.c: ... here.
27130 Don't include coretypes.h, tm.h, filenames.h.
27131 (saber_stop): Remove definition and all calls.
27132 [__SABER__]: Remove.
27133 (__LINE__): Remove default.
27134 (Size_t, Ptrdiff_t): Remove definitions.
27135 Replace by size_t, ptrdiff_t.
27136 [!MIPS_DEBUGGING_INFO]: Remove.
27137 (SHASH_SIZE, THASH_SIZE): Remove defaults.
27138 (progname): Add const.
27139 (STATIC): Remove.
27140 Replace all uses by static.
27141 (ALIGN_SYMTABLE_OFFSET): Remove default.
27142 * mips-tdump.c: Don't include coretypes.h, tm.h.
27143 Remove !MIPS_IS_STAB guard.
27144 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
27145 $(TM_H), filenames.h dependencies.
27146 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
27147
27148 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27149
27150 From Jie Zhang
27151 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
27152 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
27153
27154 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27155
27156 From Bernd Schmidt
27157 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
27158 account and save/restore RETS.
27159 (PROFILE_BEFORE_PROLOGUE): Define.
27160 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
27161 the push insn to use predecrement.
27162
27163 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27164
27165 From Jie Zhang
27166 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
27167
27168 2011-05-04 Nick Clifton <nickc@redhat.com>
27169
27170 * config/mn10300/mn10300.c: Include cfgloop.h.
27171 (DUMP): New macro.
27172 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
27173 Lcc or a FLcc insn into the instruction stream.
27174 (mn10300_block_contains_call): New function. Returns true if the
27175 given basic block contains a CALL insn.
27176 (mn10300_loop_contains_call_insn): New function. Returns true if
27177 the given loop contains a CALL insn.
27178 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
27179 to use the SETLB and Lcc or FLcc insns.
27180 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
27181 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
27182 * config/mn10300/mn10300.opt (msetlb): New option. Used to
27183 disable the SETLB optimization.
27184 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
27185 __SETLB__ or __NO_SETLB__.
27186 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
27187 (movsf_internal): Handle MDR register.
27188 (cmpsi): Make visible.
27189 (setlb): New pattern.
27190 (Lcc): New pattern.
27191 (FLcc): New pattern.
27192
27193 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
27194
27195 PR target/48860
27196 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
27197 for reg<->xmm moves.
27198 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
27199 (vec_concatv2di_rex64_sse): Ditto.
27200 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
27201 (*vec_extractv2di_1_rex64): Ditto.
27202
27203 Revert:
27204 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27205
27206 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
27207 reg<->xmm moves.
27208 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
27209
27210 2011-05-04 Richard Guenther <rguenther@suse.de>
27211
27212 * tree.h (int_const_binop): Remove notrunc argument.
27213 * fold-const.c (int_const_binop): Remove notrunc argument. Always
27214 create integer constants that are properly truncated.
27215 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
27216 (const_binop): Remove zero notrunc argument to int_const_binop.
27217 (size_binop_loc): Likewise.
27218 (fold_div_compare): Likewise.
27219 (maybe_canonicalize_comparison_1): Likewise.
27220 (fold_comparison): Likewise.
27221 (fold_binary_loc): Likewise.
27222 (multiple_of_p): Likewise.
27223 * expr.c (store_constructor): Likewise.
27224 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27225 (maybe_fold_stmt_addition): Likewise.
27226 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
27227 * stor-layout.c (layout_type): Likewise.
27228 * tree-data-ref.c (tree_fold_divides_p): Likewise.
27229 * tree-sra.c (build_ref_for_offset): Likewise.
27230 (build_user_friendly_ref_for_offset): Likewise.
27231 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
27232 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27233 * tree-ssa-loop-niter.c (inverse): Likewise.
27234 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
27235 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
27236 * tree-switch-conversion.c (check_range): Likewise.
27237 (build_constructors): Likewise.
27238 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
27239 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
27240 (extract_range_from_assert): Likewise.
27241 (vrp_int_const_binop): Likewise.
27242 (extract_range_from_binary_expr): Likewise.
27243 (extract_range_from_unary_expr): Likewise.
27244 (check_array_ref): Likewise.
27245 (find_case_label_range): Likewise.
27246 (simplify_div_or_mod_using_ranges): Likewise.
27247 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
27248 comparing case labels for merging.
27249
27250 2011-05-03 Mark Wielaard <mjw@redhat.com>
27251
27252 * dwarf2out.c (debug_str_hash_forced): Removed.
27253 (gen_label_for_indirect_string): Removed.
27254 (get_debug_string_label): Removed.
27255 (AT_string_form): Generate label directly.
27256 (output_indirect_string): Test indirect_string_node for
27257 DW_FORM_strp instead of checking label and refcount.
27258 (prune_indirect_string): Removed.
27259 (prune_unused_types): Don't check debug_str_hash_forced or
27260 call prune_indirect_string.
27261
27262 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
27263
27264 PR other/48093
27265 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
27266
27267 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
27268
27269 PR debug/47994
27270 PR debug/47919
27271 * combine.c (try_combine): Skip debug insns at m_split tests.
27272
27273 2011-04-26 Mark Wielaard <mjw@redhat.com>
27274
27275 PR42288
27276 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
27277 when info_section_emitted.
27278
27279 2011-05-03 Joseph Myers <joseph@codesourcery.com>
27280
27281 * config/mips/mips-opts.h: New.
27282 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
27283 to mips-opts.h.
27284 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
27285 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
27286 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
27287 via opts pointer.
27288 * config/mips/mips.h (enum mips_code_readable_setting): Move to
27289 mips-opts.h.
27290 (mips_abi, mips_code_readable): Don't declare.
27291 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
27292 (mabi=): Use Enum and Var.
27293 (mips_abi): New Enum and EnumValue entries.
27294 (mcode-readable=): Use Enum and Var.
27295 (mips_code_readable_setting): New Enum and EnumValue entries.
27296 (mr10k-cache-barrier=): Use Enum and Var.
27297 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
27298
27299 2011-05-03 Jan Hubicka <jh@suse.cz>
27300
27301 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
27302 replace hash by pointer map.
27303 (cgraph_node_set_element_def, cgraph_node_set_element,
27304 const_cgraph_node_set_element, varpool_node_set_element_def,
27305 varpool_node_set_element, const_varpool_node_set_element): Remove.
27306 (free_cgraph_node_set, free_varpool_node_set): New function.
27307 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
27308 * tree-emutls.c: Free varpool node set.
27309 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
27310 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
27311 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
27312 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
27313 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
27314 Move here from ipa.c; implement using pointer_map
27315 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
27316 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
27317 debug_cgraph_node_set, varpool_node_set_new,
27318 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
27319 dump_varpool_node_set, debug_varpool_node_set):
27320 Move to ipa-uitls.c.
27321 * passes.c (ipa_write_summaries): Update.
27322
27323 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27324
27325 From Mike Frysinger:
27326 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
27327 bf542/bf544/bf547/bf548/bf549.
27328
27329 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
27330
27331 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
27332
27333 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27334
27335 From Bernd Schmidt:
27336 * config/bfin/bfin.md (MOVCC): New mode_macro.
27337 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
27338 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
27339 comments from generated assembly.
27340
27341 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27342
27343 From Bernd Schmidt
27344 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
27345 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
27346 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
27347 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
27348 * config/bfin/lib1funcs.asm (___muldi3): New function.
27349
27350 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27351
27352 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
27353 build_function_type_list instead of build_function_type.
27354 Rearrange initialization of `args' to do so.
27355
27356 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27357
27358 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
27359 instead of build_function_type.
27360
27361 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27362
27363 * config/rs6000/rs6000.c (spe_init_builtins): Call
27364 build_function_type_list instead of build_function_type.
27365 (paired_init_builtins, altivec_init_builtins): Likewise.
27366 (builtin_function_type): Likewise.
27367
27368 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27369
27370 * config/sh/sh.c (sh_media_init_builtins): Call
27371 build_function_type_list instead of build_function_type.
27372
27373 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27374
27375 * config/sparc/sparc.c (sparc_file_end): Call
27376 build_function_type_list instead of build_function_type.
27377
27378 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27379
27380 * config/alpha/alpha.c (alpha_init_builtins): Call
27381 build_function_type_list instead of build_function_type.
27382
27383 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27384
27385 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
27386 build_function_type_list instead of build_function_type.
27387
27388 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27389
27390 * config/iq2000/i2000.c (iq2000_init_builtins): Call
27391 build_function_type_list instead of build_function_type.
27392 Delete `endlink' variable.
27393
27394 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27395
27396 * config/avr/avr.c (avr_init_builtins): Call
27397 build_function_type_list instead of build_function_type.
27398
27399 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27400
27401 * config/picochip/picochip.c (picochip_init_builtins): Call
27402 build_function_type_list instead of build_function_type.
27403 Delete `endlink' variable.
27404
27405 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27406
27407 * config/bfin/bfin.c (bfin_init_builtins): Call
27408 build_function_type_list instead of build_function_type.
27409
27410 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27411
27412 From Bernd Schmidt
27413 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
27414 that's not CONST_INT. Seemingly redundant check is due to PR39768.
27415
27416 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27417
27418 From Jie Zhang:
27419 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
27420 libbffastfp overrides libgcc when -mfast-fp.
27421
27422 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27423
27424 Originally from Bernd Schmidt
27425 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
27426 * config/bfin/bfin.c (override_options): Test it and error if
27427 TARGET_FDPIC.
27428
27429 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27430
27431 Originally From Bernd Schmidt
27432 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
27433 FD-PIC.
27434
27435 2011-05-03 Jeff Law <law@redhat.com>
27436
27437 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
27438 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
27439 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
27440 than accessing AUX field directly. Free the AUX field before
27441 clearing it.
27442 (thread_block, thread_through_loop_header): Likewise.
27443 (thread_single_edge, mark_threaded_blocks): Likewise.
27444 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
27445 (register_jump_thread): Do not attempt to thread to a NULL edge.
27446
27447 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
27448
27449 * function.c (init_function_start): Call decide_function_section.
27450 * varasm.c (decide_function_section): New function.
27451 (assemble_start_function): When not using
27452 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
27453 or first_function_block_is_cold.
27454 * rtl.h (decide_function_section): Declare.
27455
27456 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
27457 Jakub Jelinek <jakub@redhat.com>
27458
27459 PR target/48774
27460 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
27461 only succeed if req_mode is the same as set_mode.
27462
27463 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
27464
27465 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
27466 * genemit.c (gen_exp): Handle RETURN.
27467 * emit-rtl.c (verify_rtx_sharing): Likewise.
27468 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
27469 * rtl.c (copy_rtx): RETURN is shared.
27470 * rtl.h (enum global_rtl_index): Add GR_RETURN.
27471 (ret_rtx): New.
27472 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
27473 * config/s390/s390.c (s390_emit_epilogue): Likewise.
27474 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
27475 * config/cris/cris.c (cris_expand_return): Likewise.
27476 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
27477 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
27478 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
27479 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
27480 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
27481 Likewise.
27482 * config/v850/v850.c (expand_epilogue): Likewise.
27483 * config/bfin/bfin.c (bfin_expand_call): Likewise.
27484 * config/arm/arm.md (epilogue): Likewise.
27485 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
27486 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
27487 variable to ret_reg.
27488
27489 2011-05-03 Richard Guenther <rguenther@suse.de>
27490
27491 PR lto/48846
27492 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
27493 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
27494 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27495
27496 2011-05-03 Richard Guenther <rguenther@suse.de>
27497
27498 * c-decl.c (grokdeclarator): Instead of looking at
27499 TREE_OVERFLOW check if the constant fits in the index type.
27500
27501 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27502
27503 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
27504 (vec_store_lanes<mode><mode>): Likewise.
27505
27506 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27507
27508 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
27509 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
27510 convert_optab_index values.
27511 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
27512 * genopinit.c (optabs): Initialize the new optabs.
27513 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
27514 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
27515 (expand_STORE_LANES): New functions.
27516 * tree.h (build_array_type_nelts): Declare.
27517 * tree.c (build_array_type_nelts): New function.
27518 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
27519 (vect_model_load_cost): Likewise.
27520 (vect_store_lanes_supported, vect_load_lanes_supported)
27521 (vect_record_strided_load_vectors): Declare.
27522 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
27523 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
27524 (vect_transform_strided_load): Split out statement recording into...
27525 (vect_record_strided_load_vectors): ...this new function.
27526 * tree-vect-stmts.c (create_vector_array, read_vector_array)
27527 (write_vector_array, create_array_ref): New functions.
27528 (vect_model_store_cost): Add store_lanes_p argument.
27529 (vect_model_load_cost): Add load_lanes_p argument.
27530 (vectorizable_store): Try to use store-lanes functions for
27531 interleaved stores.
27532 (vectorizable_load): Likewise load-lanes and loads.
27533 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
27534 to vect_model_store_cost.
27535 (vect_build_slp_tree): Likewise vect_model_load_cost.
27536
27537 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27538
27539 * hooks.h (hook_bool_mode_uhwi_false): Declare.
27540 * hooks.c (hook_bool_mode_uhwi_false): New function.
27541 * target.def (array_mode_supported_p): New hook.
27542 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
27543 * doc/tm.texi: Regenerate.
27544 * stor-layout.c (mode_for_array): New function.
27545 (layout_type): Use it.
27546 * config/arm/arm.c (arm_array_mode_supported_p): New function.
27547 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
27548
27549 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
27550
27551 PR target/48723
27552 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
27553 for -fstack-check if the size to allocate is negative.
27554
27555 2011-05-02 Lawrence Crowl <crowl@google.com>
27556
27557 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
27558 (timevar_cond_start): New for starting a timer only when it is not
27559 already running.
27560 (timevar_cond_stop): New for stopping a timer when it was not already
27561 running.
27562
27563 * timevar.c (timevar_stop): Enable start/stop timers to start again.
27564 (timevar_cond_start): New as above.
27565 (timevar_cond_stop): New as above.
27566
27567 * timevar.def: Add start/stop timers for compiler phases,
27568 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
27569 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
27570 and TV_PHASE_FINALIZE.
27571 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
27572 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
27573 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
27574 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
27575 Make unused TV_OVERLOAD into a start/stop timer.
27576
27577 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
27578 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
27579 to indicate that they are start/stop timers.
27580
27581 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
27582 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
27583 Move initialization to do_compile.
27584 (do_compile): Add initialization from above.
27585 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
27586
27587 * c-decl.c (c_write_global_declarations): Add start/stop of
27588 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
27589
27590 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
27591 or TV_PARSE_INLINE, as appropriate.
27592 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
27593 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
27594
27595 2011-05-02 Jason Merrill <jason@redhat.com>
27596
27597 PR c++/40975
27598 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
27599
27600 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
27601
27602 PR c/35445
27603 * c-decl.c (finish_decl): Only create a composite if the types are
27604 compatible.
27605
27606 2011-05-02 Joseph Myers <joseph@codesourcery.com>
27607
27608 * config/fr30/fr30-protos.h (Mmode): Don't define.
27609 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
27610 definition where used.
27611 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
27612 define. Expand definitions where used.
27613 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
27614 Expand definitions where used.
27615 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
27616 rx_function_arg, rx_function_arg_advance,
27617 rx_function_arg_boundary): Expand definitions of those macros.
27618 * config/v850/v850-protos.h (Mmode): Don't define. Expand
27619 definition where used.
27620
27621 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27622
27623 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
27624 reg<->xmm moves.
27625 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
27626 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
27627 with *movv2sf_internal_rex64_avx.
27628 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
27629 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
27630 Use %v prefix in insn mnemonic to handle TARGET_AVX.
27631 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
27632 "vex" in "prefix" attribute calculation.
27633 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
27634
27635 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
27636
27637 PR target/47951
27638 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
27639 inputs match the output.
27640
27641 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
27642
27643 PR target/47955
27644 * config/m68k/m68k.c (m68k_expand_prologue): Set
27645 current_function_static_stack_size.
27646
27647 2011-05-02 Jan Hubicka <jh@suse.cz>
27648
27649 * lto-streamer.c (lto_streamer_cache_insert_1,
27650 lto_streamer_cache_lookup, lto_streamer_cache_create,
27651 lto_streamer_cache_delete): Use pointer map instead of hashtable.
27652 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
27653
27654 2011-05-02 Joseph Myers <joseph@codesourcery.com>
27655
27656 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
27657 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
27658 config/m68k/t-opts: New files.
27659 * config/m68k/m68k-tables.opt: New file (generated).
27660 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
27661 extra_options and m68k/t-opts to tmake_file.
27662 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
27663 (all_isas): Initialize using m68k-isas.def.
27664 (all_microarchs): Initialize using m68k-microarchs.def.
27665 (m68k_find_selection): Remove.
27666 (m68k_handle_option): Don't assert that global structures are in
27667 use. Use error_at. Access variables via opts pointer. Don't
27668 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
27669 directly for -m68020-40 and -m68020-60.
27670 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
27671 m68k_tune_entry here.
27672 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
27673 to m68k-opts.h.
27674 (m68k_library_id_string): Remove declaration.
27675 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
27676 (m68k_library_id_string): New Variable.
27677 (march=, mcpu=, mtune=): Use Enum and Var.
27678
27679 2011-05-02 Richard Guenther <rguenther@suse.de>
27680
27681 * varasm.c (output_constructor_regular_field): Compute zero-based
27682 index with double-ints. Make sure to ICE instead of producing
27683 wrong code.
27684 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
27685 in asserts. Properly use a signed type.
27686
27687 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27688
27689 * config/i386/sse.md (V): New mode iterator.
27690 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
27691 TARGET_SSE2.
27692 (V_256): Rename from AVX256MODE.
27693 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
27694 condition to all users.
27695 (VF1): Ditto.
27696 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
27697 condition to all users.
27698 (VF_128): Make V4SF mode unconditional.
27699 (VF_256): Rename from AVX256MODEF2P.
27700 (VI4F_128): Rename from SSEMODE4S.
27701 (VI8F_128): Rename from SSEMODE2D.
27702 (VI4F_256): Rename from AVX256MODE8P.
27703 (VI8F_256): Rename from AVX256MODE4P.
27704 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
27705 (ssescalarmodesuffix): Remove SF and DF modes.
27706 (SSEMODE124): Remove.
27707 (SSEMODE1248): Ditto.
27708 (SSEMODEF2P): Ditto.
27709 (AVXMODEF2P): Ditto.
27710 (AVXMODEFDP): Ditto.
27711 (AVXMODEFSP): Ditto.
27712 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
27713 unconditional.
27714 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
27715 unconditional.
27716 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
27717 xop_pcmov_<mode>256. Use V mode iterator.
27718
27719 Adjust RTX patterns globally for renamed mode attributes.
27720
27721 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27722
27723 * haifa-sched.c (sched_emit_insn): Emit insn before first
27724 non-scheduled insn. Inform back-end about new insn. Add
27725 new insn to scheduled_insns list.
27726
27727 2011-05-02 Richard Guenther <rguenther@suse.de>
27728
27729 PR tree-optimization/48822
27730 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
27731 (process_scc): Indicate which iteration we start.
27732
27733 2011-05-02 Jan Hubicka <jh@suse.cz>
27734
27735 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
27736 (lto_section_overrun): New.
27737 * lto-section-out.c (append_block): Rename to ...
27738 (lto_append_block): ... this one; export.
27739 (lto_output_1_stream): Move lto lto-streamer.h
27740 (lto_output_data_stream): Update.
27741 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
27742 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
27743 functions.
27744
27745 2011-05-02 Richard Guenther <rguenther@suse.de>
27746
27747 * tree.c (tree_code_counts): New global array.
27748 (record_node_allocation_statistics): Count individual tree codes.
27749 (dump_tree_statistics): Dump individual code stats.
27750
27751 2011-05-01 Jan Hubicka <jh@suse.cz>
27752
27753 * ipa-inline.c (caller_growth_limits): Fix thinko when
27754 looking for largest stack frame.
27755 * ipa-inline.h (dump_inline_summary): Declare.
27756 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
27757 on stack usage.
27758 (dump_inline_summary): Export.
27759 (debug_inline_summary): Declare as DEBUG_FUNCTION.
27760
27761 2011-05-01 Anatoly Sokolov <aesok@post.ru>
27762
27763 * reginfo.c (memory_move_cost): Change rclass argument type form
27764 'enum reg_class' to reg_class_t.
27765 * reload.h (memory_move_cost): Update prototype.
27766 * postreload.c reload_cse_simplify_set): Change type dclass var to
27767 reg_class_t.
27768 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
27769 Update prototype.
27770 (ira_allocate_and_set_costs): Change aclass argument type form
27771 'enum reg_class' to reg_class_t.
27772 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
27773 Change aclass argument type to reg_class_t.
27774 (update_conflict_hard_reg_costs): Change type aclass and pref vars
27775 to reg_class_t.
27776 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
27777 memory_move_cost call.
27778
27779 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
27780 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
27781 Change type tmp var to reg_class_t.
27782
27783 2011-04-30 Jan Hubicka <jh@suse.cz>
27784
27785 * ipa-inline.c (can_inline_edge_p): Disregard limits when
27786 inlining into function with flatten attribute.
27787 (want_inline_small_function_p): Be more realistic about inlining
27788 cold calls where callee size grows.
27789
27790 2011-04-30 Jan Hubicka <jh@suse.cz>
27791
27792 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
27793 flags.
27794
27795 2011-04-30 Anatoly Sokolov <aesok@post.ru>
27796
27797 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
27798 PRINT_OPERAND_PUNCT_VALID_P): Remove.
27799 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
27800 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
27801 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27802 (print_operand): Rename to...
27803 (sparc_print_operand): ...this. Make static. Adjust
27804 sparc_print_operand function call.
27805 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
27806 functions.
27807
27808 2011-04-30 Jan Hubicka <jh@suse.cz>
27809
27810 PR middle-end/48752
27811 * ipa-inline.c (early_inliner): Disable when doing late
27812 addition of function.
27813
27814 2011-04-30 Jakub Jelinek <jakub@redhat.com>
27815
27816 * dwarf2out.c (get_address_mode): New inline.
27817 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
27818 if not dwarf_strict emit
27819 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
27820 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
27821 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
27822 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
27823 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
27824 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
27825 mem_loc_descriptor callers.
27826 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27827 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
27828 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
27829 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
27830 (base_types): New variable.
27831 (get_base_type_offset, calc_base_type_die_sizes,
27832 base_type_for_mode, mark_base_types, base_type_cmp,
27833 move_marked_base_types): New functions.
27834 (calc_die_sizes): Assert that die_offset is 0 or equal to
27835 next_die_offset.
27836 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
27837 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
27838 callers. If not dwarf_strict, call mem_loc_descriptor even for
27839 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
27840 (gen_subprogram_die): Don't give up on call site parameters
27841 with non-integral or large integral modes. Adjust
27842 mem_loc_descriptor callers.
27843 (prune_unused_types): Call prune_unused_types_mark on base_types
27844 vector entries.
27845 (resolve_addr): Call mark_base_types.
27846 (dwarf2out_finish): Call move_marked_base_types.
27847
27848 PR tree-optimization/48809
27849 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
27850 type.
27851 (gen_inbound_check): Don't compute index_expr - range_min in utype
27852 again, instead reuse SSA_NAME initialized in build_arrays.
27853 Remove two useless gsi_for_stmt calls.
27854
27855 2011-04-29 Jeff Law <law@redhat.com>
27856
27857 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
27858
27859 2011-04-29 Martin Jambor <mjambor@suse.cz>
27860
27861 * cgraph.h (cgraph_postorder): Remove declaration.
27862 * ipa-utils.h (ipa_free_postorder_info): Declare.
27863 (ipa_reverse_postorder): Likewise.
27864 * cgraphunit.c: Include ipa-utils.h.
27865 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
27866 * ipa-inline.c: Include ipa-utils.h.
27867 (ipa_inline): Update call to ipa_reverse_postorder.
27868 * ipa-pure-const.c (propagate_pure_const): Update call to
27869 ipa_reduced_postorder and ipa_print_order. Call
27870 ipa_free_postorder_info to clean up.
27871 (propagate_nothrow): Likewise.
27872 * ipa-reference.c (propagate): Removed a useless call to
27873 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
27874 and ipa_print_order. Call ipa_free_postorder_info to clean up.
27875 * ipa.c: Include ipa-utils.h.
27876 (ipa_profile): Update call to ipa_reverse_postorder.
27877 (cgraph_postorder): Moved to...
27878 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
27879 (ipa_utils_print_order): Renamed to ipa_print_order.
27880 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
27881 comments.
27882 (ipa_free_postorder_info): New function.
27883 * passes.c: Include ipa-utils.h.
27884 (do_per_function_toporder): Update call to ipa_reverse_postorder.
27885 (ipa_write_summaries): Likewise.
27886 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
27887 (cgraphunit.o): Likewise.
27888 (ipa.o): Likewise.
27889 (ipa-inline.o): Likewise.
27890
27891 2011-04-29 Jan Hubicka <jh@suse.cz>
27892
27893 * ipa-inline.h (clause_t): Turn into unsigned int.
27894 * ipa-inline-analysis.c (add_clause): Do more simplification.
27895 (and_predicates): Shortcut more cases.
27896 (predicates_equal_p): Move forward; check that clauses are properly
27897 ordered.
27898 (or_predicates): Shortcut more cases.
27899 (edge_execution_predicate): Rewrite as...
27900 (set_cond_stmt_execution_predicate): ... this function; handle
27901 __builtin_constant_p.
27902 (set_switch_stmt_execution_predicate): New .
27903 (compute_bb_predicates): New.
27904 (will_be_nonconstant_predicate): Update TODO.
27905 (estimate_function_body_sizes): Use compute_bb_predicates
27906 and free them later, always try to estimate if stmt is constant.
27907 (estimate_time_after_inlining, estimate_size_after_inlining):
27908 Gracefully handle optimized out edges.
27909 (read_predicate): Fix off by one error.
27910
27911 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
27912
27913 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
27914
27915 2011-04-27 Xinliang David Li <davidxl@google.com>
27916
27917 * tree-profile.c (init_ic_make_global_vars): Set
27918 tls attribute on ic vars.
27919 * coverage.c (coverage_end_function): Initialize
27920 function_list with zero.
27921
27922 2011-04-29 Richard Guenther <rguenther@suse.de>
27923
27924 * builtins.c (fold_builtin_classify_type): Use integer_type_node
27925 for the type of the result.
27926 (fold_builtin_isascii): Likewise.
27927 (fold_builtin_toascii): Use integer_type_node where appropriate.
27928 (fold_builtin_logb): Likewise.
27929 (fold_builtin_frexp): Likewise.
27930 (fold_builtin_strstr): Likewise.
27931 (fold_builtin_strpbrk): Likewise.
27932 (fold_builtin_fputs): Likewise.
27933 (fold_builtin_sprintf): Likewise.
27934 (fold_builtin_snprintf): Likewise.
27935 (fold_builtin_printf): Likewise.
27936 (do_mpfr_remquo): Use a proper type for the assigned constant.
27937 (do_mpfr_lgamma_r): Likewise.
27938 * dwarf2out.c (resolve_one_addr): Use size_int.
27939 * except.c (init_eh): Likewise.
27940 (assign_filter_values): Use integer_type_node for filter values.
27941 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
27942 indices.
27943 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
27944 for EH region numbers.
27945 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
27946 for the shift amount.
27947
27948 2011-04-29 Richard Guenther <rguenther@suse.de>
27949
27950 * expr.h (expand_shift): Rename to ...
27951 (expand_variable_shift): ... this.
27952 (expand_shift): Take a constant shift amount.
27953 * expmed.c (expand_shift): Rename to ...
27954 (expand_variable_shift): ... this.
27955 (expand_shift): New wrapper around expand_variable_shift.
27956 * expr.c (convert_move, emit_group_load_1, emit_group_store,
27957 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
27958 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
27959 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
27960 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
27961 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
27962 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
27963 emit_store_flag_1, emit_store_flag): Likewise.
27964 * builtins.c (expand_builtin_signbit): Likewise.
27965 * calls.c (load_register_parameters): Likewise.
27966 * function.c (assign_parm_setup_block): Likewise.
27967 * lower-subreg.c (resolve_shift_zext): Likewise.
27968 * optabs.c (widen_bswap, expand_abs_nojump,
27969 expand_one_cmpl_abs_nojump, expand_float): Likewise.
27970 * spu/spu.c (spu_expand_extv): Likewise.
27971 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
27972
27973 2011-04-29 Richard Guenther <rguenther@suse.de>
27974
27975 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
27976 for the remapped region number.
27977 * predict.c (build_predict_expr): Use integer_type_node for the
27978 predict kind.
27979 * fold-const.c (fold_binary_loc): Use integer_type_node for
27980 the shift amount. Use a proper type for the PLUS_EXPR operand.
27981
27982 2011-04-29 Michael Matz <matz@suse.de>
27983
27984 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
27985 other trees that just builtins.
27986 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
27987
27988 2011-04-29 Richard Guenther <rguenther@suse.de>
27989
27990 * tree-nested.c (get_trampoline_type): Use size_int.
27991 (get_nl_goto_field): Likewise.
27992 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
27993 for all indexes.
27994 (lower_eh_constructs_2): Likewise.
27995 (lower_resx): Likewise.
27996 (lower_eh_dispatch): Likewise.
27997 * tree-mudflap.c (mf_build_string): Use size_int.
27998 (mudflap_register_call): Use integer_type_node for the flag.
27999 (mudflap_enqueue_constant): Use size_int.
28000 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
28001 instead of rebuilding it.
28002
28003 2011-04-29 Richard Guenther <rguenther@suse.de>
28004
28005 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
28006 Handle OBJ_TYPE_REF.
28007 (find_func_aliases_for_call): Use it more consistently.
28008
28009 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
28010
28011 * haifa-sched.c (last_nondebug_scheduled_insn): New.
28012 (rank_for_schedule): Use it.
28013 (schedule_block): Set it.
28014
28015 2011-04-28 David Li <davidxl@google.com>
28016
28017 * tree.c (crc32_string): Use crc32_byte.
28018 (crc32_byte): New function.
28019 * tree.h (crc32_byte): New function.
28020 * gcov.c (read_graph_file): Handle new cfg_cksum.
28021 (read_count_file): Ditto.
28022 * profile.c (instrument_values): Ditto.
28023 (get_exec_counts): Ditto.
28024 (read_profile_edge_counts): Ditto.
28025 (compute_branch_probabilities): Ditto.
28026 (compute_value_histograms): Ditto.
28027 (branch_prob): Ditto.
28028 (end_branch_prob): Ditto.
28029 * coverage.c (read_counts_file): Ditto.
28030 (get_coverage_counts): Ditto.
28031 (tree_coverage_counter_addr): Ditto.
28032 (coverage_checksum_string): Ditto.
28033 (coverage_begin_output): Ditto.
28034 (coverage_end_function): Ditto.
28035 (build_fn_info_type): Ditto.
28036 (build_fn_info_value): Ditto.
28037 * libgcov.c (gcov_exit): Ditto.
28038 * gcov-dump.c (tag_function): Ditto.
28039 (compute_checksum): Remove.
28040
28041 2011-04-29 Alan Modra <amodra@gmail.com>
28042
28043 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28044 unspec plus offset. Tidy macho code.
28045
28046 2011-04-29 Martin Jambor <mjambor@suse.cz>
28047
28048 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
28049 node instead of a decl. Update all callers.
28050 * cgraph.h: Update declaration.
28051
28052 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
28053
28054 PR tree-optimization/48765
28055 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
28056 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
28057 to indicate if loop aware SLP is being used. Scan the statements
28058 and update the vectorization factor according to the type of
28059 vectorization before statement analysis.
28060 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
28061 pass it to vect_analyze_loop_operations.
28062 (vectorizable_reduction): Set number of copies to 1 in case of pure
28063 SLP statement.
28064 * tree-vect-stmts.c (vectorizable_conversion,
28065 vectorizable_assignment, vectorizable_shift,
28066 vectorizable_operation, vectorizable_type_demotion,
28067 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
28068 Likewise.
28069 (vectorizable_condition): Move the check that it is not SLP
28070 vectorization before the number of copies check.
28071 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
28072 to vectorize the loop using SLP.
28073
28074 2011-04-28 Jakub Jelinek <jakub@redhat.com>
28075
28076 PR middle-end/48597
28077 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
28078 inline asm.
28079
28080 2011-04-28 Joseph Myers <joseph@codesourcery.com>
28081
28082 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
28083 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
28084 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28085 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28086 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
28087 linux*.h headers.
28088 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
28089 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28090 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28091 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28092 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28093 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
28094 REG_NAME.
28095 * config/i386/linux.h (REG_NAME): Don't define.
28096 * config/i386/linux64.h (REG_NAME): Don't define.
28097 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
28098 Undefine before defining.
28099
28100 2011-04-28 Jan Hubicka <jh@suse.cz>
28101
28102 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
28103 nonconstant_names array.
28104 (estimate_function_body_sizes): Build nonconstant_names array; handle
28105 BUILT_IN_CONSTANT_P.
28106
28107 2011-04-28 Richard Guenther <rguenther@suse.de>
28108
28109 PR bootstrap/48804
28110 Revert
28111 2011-04-28 Richard Guenther <rguenther@suse.de>
28112
28113 * tree-ssa-structalias.c (solve_constraints): Build succ graph
28114 as late as possible.
28115
28116 2011-04-28 Richard Guenther <rguenther@suse.de>
28117
28118 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
28119 (debug_constraint): Do it here.
28120 (dump_constraints): And here.
28121 (rewrite_constraints): And here.
28122 (dump_constraint_edge): Remove.
28123 (dump_constraint_graph): Rewrite to produce DOT output.
28124 (solve_constraints): Build succ graph as late as possible.
28125 Dump constraint graphs before and after solving.
28126
28127 2011-04-28 Richard Guenther <rguenther@suse.de>
28128
28129 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28130 New function split out from ...
28131 (find_func_aliases): ... here. Call it.
28132 (find_func_aliases_for_call): Likewise.
28133
28134 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
28135
28136 * internal-fn.h (internal_fn_name_array): Declare.
28137 (internal_fn_flags_array): Likewise.
28138
28139 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
28140
28141 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
28142 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
28143 Move from sse.md.
28144 (ssemodefsuffix): Remove.
28145 (ssevecmodesuffix): New mode attribute.
28146 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
28147 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
28148 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
28149 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
28150 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
28151 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
28152 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
28153 ssemodesuffix mode attribute.
28154 (float splitters): Use ssevecmodesuffix mode attribute.
28155 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
28156 (sseinsmode): Rename from avxvecmode.
28157 (avxsizesuffix): Rename from avxmodesuffix.
28158 (sseintvecmode): Rename from avxpermvecmode.
28159 (ssedoublevecmode): Rename from ssedoublesizemode.
28160 (ssehalfvecmode): Rename from avxhalfvecmode.
28161 (ssescalarmode): Rename from avxscalarmode.
28162 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
28163 templates for ssemodesuffix mode attribute.
28164 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
28165 mode attribute.
28166
28167 Adjust RTX patterns globally for renamed mode attributes.
28168
28169 2011-04-27 Jan Hubcika <jh@suse.cz>
28170
28171 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
28172 * ipa-inline-analysis.c: Include alloc-pool.h.
28173 (edge_predicate_pool): New.
28174 (trye_predicate_p): New function
28175 (false_predicate_p): New function.
28176 (add_clause): Sanity check that false clauses are "optimized";
28177 never add clauses to predicate that is already known to be false.
28178 (and_predicate): Use flase_predicate_p.
28179 (evaulate_predicate): Rename to ...
28180 (evaluate_predicate): ... this one; update all callers; assert
28181 that false is not listed among possible truths.
28182 (dump_predicate): Use true_predicate_p.
28183 (account_size_time): Use false_predicate_p.
28184 (evaulate_conditions_for_edge): Rename to ...
28185 (evaluate_conditions_for_edge) ... this one.
28186 (edge_set_predicate): New function.
28187 (inline_edge_duplication_hook): Duplicate edge predicates.
28188 (inline_edge_removal_hook): Free edge predicates.
28189 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
28190 (dump_inline_summary): Update.
28191 (estimate_function_body_sizes): Set edge predicates.
28192 (estimate_calls_size_and_time): Handle predicates.
28193 (estimate_callee_size_and_time): Update.
28194 (remap_predicate): Add toplev_predicate; update comment.
28195 (remap_edge_predicates): New function.
28196 (inline_merge_summary): Compute toplev predicate; update.
28197 (read_predicate): New function.
28198 (read_inline_edge_summary): Use it.
28199 (inline_read_section): Likewise.
28200 (write_predicate): New function.
28201 (write_inline_edge_summary): Use it.
28202 (inline_write_summary): Likewise.
28203 (inline_free_summary): Free alloc pool and edge summary vec.
28204
28205 2011-04-27 Richard Guenther <rguenther@suse.de>
28206
28207 * tree-ssa-structalias.c (changed_count): Remove.
28208 (changed): Use a bitmap.
28209 (unify_nodes): Adjust.
28210 (do_sd_constraint): Likewise.
28211 (do_ds_constraint): Likewise.
28212 (do_complex_constraint): Likewise.
28213 (solve_graph): Likewise.
28214
28215 2011-04-27 Jan Hubicka <jh@suse.cz>
28216
28217 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
28218
28219 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
28220
28221 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
28222 (avx_vperm2f128_*_operand): Ditto.
28223 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
28224 Use avx_vpermilp_parallel in insn condition.
28225 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
28226 Use avx_vperm2f128_parallel in insn condition.
28227
28228 2011-04-27 Richard Guenther <rguenther@suse.de>
28229
28230 * Makefile.in (tree-ssa-structalias.o): Remove
28231 gt-tree-ssa-structalias.h dependency.
28232 (GTFILES): Remove tree-ssa-structalias.c.
28233 * tree.c (allocate_decl_uid): New function.
28234 (make_node_stat): Use it.
28235 (copy_node_stat): Likewise.
28236 * tree.h (allocate_decl_uid): Declare.
28237 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
28238 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
28239 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
28240 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
28241 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
28242 (struct heapvar_map): Likewise.
28243 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
28244 heapvar_insert): Likewise.
28245 (make_heapvar_for): Rename to ...
28246 (make_heapvar): ... this. Simplify.
28247 (fake_var_decl_obstack): New global var.
28248 (build_fake_var_decl): New function.
28249 (make_constraint_from_heapvar): Adjust.
28250 (handle_lhs_call): Likewise.
28251 (create_function_info_for): Likewise.
28252 (intra_create_variable_infos): Likewise.
28253 (init_alias_vars): Allocate fake_var_decl_obstack.
28254 (init_alias_heapvars, delete_alias_heapvars): Remove.
28255 (compute_points_to_sets): Do not call init_alias_heapvars.
28256 (ipa_pta_execute): Likewise.
28257 (delete_points_to_sets): Free fake_var_decl_obstack.
28258
28259 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28260
28261 * config/spu/divmovti4.c (union qword_UTItype): New data type.
28262 (si_from_UTItype, si_to_UTItype): New functions.
28263 (__udivmodti4): Use them to implement type-punning.
28264 * config/spu/multi3.c (union qword_TItype): New data type.
28265 (si_from_TItype, si_to_TItype): New functions.
28266 (__multi3): Use them to implement type-punning.
28267
28268 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28269
28270 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
28271
28272 2011-04-27 Jan Hubicka <jh@suse.cz>
28273
28274 * ipa-prop.c (function_insertion_hook_holder): New holder.
28275 (ipa_add_new_function): New function.
28276 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
28277 Register/deregister holder.
28278
28279 2011-04-27 Richard Guenther <rguenther@suse.de>
28280
28281 PR tree-optimization/48772
28282 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
28283
28284 2011-04-27 Richard Guenther <rguenther@suse.de>
28285
28286 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
28287 TARGET_MEM_REF handling.
28288
28289 2011-04-27 Nick Clifton <nickc@redhat.com>
28290
28291 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
28292 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
28293 (REG_CLASS_NAMES): Likewise.
28294 (REG_CLASS_CONTENTS): Likewise.
28295 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
28296 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
28297 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
28298 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
28299 (EVEN_REGS): New macro. Alias for QUAD_REGS.
28300 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
28301 duplicate register classes.
28302 (frv_class_likely_spilled_p): Likewise.
28303 (frv_register_move_cost): Likewise.
28304
28305 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
28306 end of the regno_reg_class array.
28307
28308 2011-04-27 Jakub Jelinek <jakub@redhat.com>
28309
28310 PR c/48742
28311 * c-typeck.c (build_binary_op): Don't wrap arguments if
28312 int_operands is true.
28313
28314 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
28315
28316 PR target/48767
28317 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
28318 targetm.calls.must_pass_in_stack for void type.
28319
28320 2011-04-26 Jan Hubicka <jh@suse.cz>
28321
28322 * cgraphbuild.c (build_cgraph_edges): Update call
28323 of cgraph_create_edge and cgraph_create_indirect_edge.
28324 * cgraph.c (cgraph_create_edge_including_clones,
28325 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
28326 cgraph_update_edges_for_call_stmt_node): Do not take nest
28327 argument; do not initialize call_stmt_size/time.
28328 (dump_cgraph_node): Do not dump nest.
28329 (cgraph_clone_edge): Do not take loop_nest argument;
28330 do not propagate it; do not clone call_stmt_size/time.
28331 (cgraph_clone_node): Likewise.
28332 (cgraph_create_virtual_clone): Update.
28333 * cgraph.h (struct cgraph_edge): Remove
28334 call_stmt_size/call_stmt_time/loop_nest.
28335 (cgraph_create_edge, cgraph_create_indirect_edge,
28336 cgraph_create_edge_including_clones, cgraph_clone_node): Update
28337 prototype.
28338 * tree-emutls.c (gen_emutls_addr): Update.
28339 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
28340 loop_nest; handle indirect calls, too.
28341 (clone_inlined_nodes): Do not care about updating inline summaries.
28342 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
28343 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
28344 stream call_stmt_size/call_stmt_time/loop_nest.
28345 * ipa-inline.c (edge_badness): Update.
28346 (ipa_inline): dump summaries after inlining.
28347 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
28348 New.
28349 (inline_edge_summary): New function.
28350 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
28351 (inline_edge_removal_hook): Handle edge summaries.
28352 (inline_edge_duplication_hook): New hook.
28353 (inline_summary_alloc): Alloc hooks.
28354 (initialize_growth_caches): Do not register removal hooks.
28355 (free_growth_caches); Do not free removal hook.
28356 (dump_inline_edge_summary): New function.
28357 (dump_inline_summary): Use it.
28358 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
28359 (inline_update_callee_summaries): New function.
28360 (inline_merge_summary): Use it.
28361 (do_estimate_edge_time, do_estimate_edge_growth): Update.
28362 (read_inline_edge_summary): New function.
28363 (inline_read_section): Use it.
28364 (write_inline_edge_summary): New function.
28365 (inline_write_summary): Use it.
28366 (inline_free_summary): Free edge new holders.
28367 * tree-inline.c (copy_bb): Update.
28368
28369 2011-04-26 Jason Merrill <jason@redhat.com>
28370
28371 * tree-eh.c (lower_try_finally_switch): Create the label along with
28372 the CASE_LABEL_EXPR.
28373
28374 2011-04-26 David S. Miller <davem@davemloft.net>
28375 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28376
28377 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
28378 * configure: Regenerate.
28379
28380 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
28381
28382 PR target/48258
28383 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
28384 reduction.
28385 (VEC_reduc): New code iterator and splitters for vector reduction.
28386 (VEC_reduc_name): Ditto.
28387 (VEC_reduc_rtx): Ditto.
28388 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
28389 (reduc_<VEC_reduc_name>_v4sf): Ditto.
28390
28391 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28392 support for extracting SF on VSX.
28393
28394 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
28395 generating xscvspdp.
28396 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
28397 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
28398 double add, minimum, maximum vector reduction.
28399 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
28400 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
28401 optimize double vector reduction.
28402 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
28403
28404 2011-04-26 Joseph Myers <joseph@codesourcery.com>
28405
28406 * config/fr30/fr30.h (inhibit_libc): Don't define.
28407 * config/m32r/m32r-protos.h: Correct comment.
28408 * config/v850/v850.h (GHS_default_section_names,
28409 GHS_current_section_names): Use tree, not union tree_node *.
28410
28411 2011-04-26 Xinliang David Li <davidxl@google.com>
28412
28413 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
28414 * c-family/c-opts.c (c_common_handle_option): Set
28415 warn_maybe_uninitialized.
28416 * opts.c (common_handle_option): Ditto.
28417 * common.opt: New option.
28418 * tree-ssa.c (warn_uninit): Add one more parameter.
28419 (warn_uninitialized_var): Pass warning code.
28420 * tree-flow.h: Interface change.
28421
28422 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28423
28424 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
28425 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
28426 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
28427
28428 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28429
28430 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
28431 * config/mips/mips.opt (mmips-tfile): Remove.
28432
28433 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
28434 mips-tdump reference to ...
28435 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
28436 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
28437 reference by Tru64 UNIX.
28438
28439 2011-04-26 Jakub Jelinek <jakub@redhat.com>
28440
28441 PR debug/48768
28442 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
28443 is error_mark_node, set value to NULL.
28444
28445 PR tree-optimization/48734
28446 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
28447 if return value from maybe_fold_*_comparsions isn't something
28448 the code is prepared to handle.
28449
28450 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
28451
28452 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
28453 mode check.
28454 (ext_QIreg_nomode_operands): Remove.
28455 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
28456 (*andsi_1): Ditto.
28457 (*andhi_1): Ditto.
28458
28459 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
28460
28461 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
28462
28463 2011-04-26 Richard Guenther <rguenther@suse.de>
28464
28465 * c-typeck.c (build_unary_op): Do not expand array-refs via
28466 pointer arithmetic. Only adjust qualifiers for function types.
28467
28468 2011-04-26 Richard Guenther <rguenther@suse.de>
28469
28470 PR middle-end/48694
28471 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
28472 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
28473 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
28474 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
28475
28476 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
28477
28478 * doc/extend.texi: Document __underlying_type.
28479
28480 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
28481
28482 * config/rs6000/titan.md (automata_option "progress"): Remove.
28483
28484 2011-04-25 Jeff Law <law@redhat.com>
28485
28486 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
28487
28488 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
28489
28490 * system.h (ENUM_BITFIELD): Remove.
28491
28492 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
28493 Eric Botcazou <ebotcazou@adacore.com>
28494
28495 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
28496 for STORE_FLAG_VALUE==-1 case.
28497
28498 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
28499
28500 PR target/43804
28501 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
28502 LEGITIMATE_PIC_OPERAND_P.
28503
28504 2011-04-24 Jan Hubicka <jh@suse.cz>
28505
28506 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
28507 WPA hack.
28508 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
28509 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
28510 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
28511 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
28512 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
28513 Sanity check predicate length.
28514 (remap_predicate): Likewise; sanity check jump functions.
28515 (inline_read_section, inline_write_summary): Sanity check
28516 predicate length.
28517
28518 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28519
28520 PR other/48748
28521 * doc/extend.texi (Type Traits): Document __is_standard_layout,
28522 __is_literal_type, and __is_trivial; update throughout about
28523 possibly cv-qualified void types.
28524
28525 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
28526
28527 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
28528 testsuite and make it version agnostic.
28529
28530 2011-04-22 Jan Hubicka <jh@suse.cz>
28531
28532 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
28533
28534 2011-04-23 Jakub Jelinek <jakub@redhat.com>
28535
28536 PR c/48685
28537 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
28538 to VOID_TYPE even around MODIFY_EXPR.
28539
28540 2011-04-22 Mike Stump <mikestump@comcast.net>
28541
28542 * gensupport.c (read_md_rtx): Fix typo in comment.
28543 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
28544 comment.
28545
28546 2011-04-22 Jan Hubicka <jh@suse.cz>
28547
28548 * gengtype.c (open_base_files): Add ipa-inline.h include.
28549 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
28550 ipa-prop.c; update all uses.
28551 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
28552 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
28553 merge summary of inlined function into former caller.
28554 * ipa-inline.c (max_benefit): Remove.
28555 (edge_badness): Compensate for removal of benefits.
28556 (update_caller_keys): Use
28557 reset_node_growth_cache/reset_edge_growth_cache.
28558 (update_callee_keys): Likewise.
28559 (update_all_callee_keys): Likewise.
28560 (inline_small_functions): Do not collect max_benefit; do not reset
28561 estimated_growth; call free_growth_caches and initialize_growth_caches.
28562 * ipa-inline.h (struct condition, type clause_t, struct predicate,
28563 struct size_time_entry): New structures.
28564 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
28565 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
28566 and estimated_growth.
28567 (edge_growth_cache_entry): New structure.
28568 (node_growth_cache, edge_growth_cache): New global vars.
28569 (estimate_growth): Turn into inline.
28570 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
28571 initialize_growth_caches, free_growth_caches): Declare.
28572 (estimate_edge_growth): Rewrite.
28573 (estimate_edge_time): Implement as inline cache lookup.
28574 (reset_node_growth_cache, reset_edge_growth_cache): New inline
28575 functions.
28576 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
28577 (NUM_CONDITIONS): New constant.
28578 (predicate_conditions): New enum.
28579 (IS_NOT_CONSTANT): New constant.
28580 (edge_removal_hook_holder): New var.
28581 (node_growth_cache, edge_growth_cache): New global vars.
28582 (true_predicate, single_cond_predicate, false_predicate,
28583 not_inlined_predicate, add_condition, add_clause, and_predicates,
28584 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
28585 dump_clause, dump_predicate, account_size_time,
28586 evaulate_conditions_for_edge): New functions.
28587 (inline_summary_alloc): Move to heap.
28588 (inline_node_removal_hook): Clear condition and entry vectors.
28589 (inline_edge_removal_hook): New function.
28590 (initialize_growth_caches, free_growth_caches): New function.
28591 (dump_inline_summary): Update.
28592 (edge_execution_predicate): New function.
28593 (will_be_nonconstant_predicate): New function.
28594 (estimate_function_body_sizes): Compute BB and constantness predicates.
28595 (compute_inline_parameters): Do not clear estimated_growth.
28596 (estimate_edge_size_and_time): New function.
28597 (estimate_calls_size_and_time): New function.
28598 (estimate_callee_size_and_time): New function.
28599 (remap_predicate): New function.
28600 (inline_merge_summary): New function.
28601 (do_estimate_edge_time): New function based on...
28602 (estimate_edge_time): ... this one.
28603 (do_estimate_edge_growth): New function.
28604 (do_estimate_growth): New function based on....
28605 (estimate_growth): ... this one.
28606 (inline_analyze_function): Analyze after deciding on jump functions.
28607 (inline_read_section): New function.
28608 (inline_read_summary): Use it.
28609 (inline_write_summary): Write all the new data.
28610 * ipa-prop.c (ipa_get_param_decl_index): Export.
28611 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
28612 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
28613 Declare.
28614 (ipa_get_lattice): Move here from ipa-cp.c
28615 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
28616 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
28617 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
28618 cgraph_edge_inlinable_p): Remove.
28619 * cgraphunit.c: Include ipainline.h
28620 (cgraph_process_new_functions): Update call of
28621 compute_inline_parameters.
28622
28623 2011-04-22 Richard Guenther <rguenther@suse.de>
28624
28625 * tree.c (build_int_cst): Properly create canonicalized integer
28626 constants.
28627 (build_int_cst_type): Remove scary comments.
28628
28629 2011-04-22 Xinliang David Li <davidxl@google.com>
28630
28631 * toplev.c (process_options): Enable -Werror=coverage-mismatch
28632 by default when -Wno-error is not specified.
28633 * opts-global.c (decode_options): Remove call to
28634 control_warning_options.
28635
28636 2011-04-22 Jakub Jelinek <jakub@redhat.com>
28637
28638 PR tree-optimization/48717
28639 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
28640 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
28641
28642 2011-04-22 Joseph Myers <joseph@codesourcery.com>
28643
28644 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
28645 definition where used.
28646
28647 2011-04-22 Jakub Jelinek <jakub@redhat.com>
28648
28649 PR c/48716
28650 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
28651 TREE_STATIC variables declared inside of some OpenMP construct.
28652
28653 2011-04-22 Martin Jambor <mjambor@suse.cz>
28654
28655 PR middle-end/48585
28656 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
28657
28658 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
28659
28660 PR c/36750
28661 * c-typeck.c (pop_init_level): Do not warn about initializing
28662 with ` = {0}'.
28663
28664 2011-04-22 Alan Modra <amodra@gmail.com>
28665
28666 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
28667 when returning call_cookie.
28668 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
28669 pointers, to functions with no more vector args than the current
28670 function, and some non-local calls for ABI_V4.
28671 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
28672 sibcall_nonlocal_aix64): Combine to ..
28673 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
28674 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
28675 (sibcall_value_nonlocal_aix<mode>): ..likewise.
28676 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
28677 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
28678 operand.
28679 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
28680 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
28681 sibcall_value_symbolic_64): Delete.
28682
28683 2011-04-21 Xinliang David Li <davidxl@google.com>
28684
28685 * cgraph.h: Remove pid.
28686 * cgraph.c: Remove pid.
28687 * value-prof.c (init_node_map): New function.
28688 (del_node_map): New function.
28689 (find_func_by_funcdef_no): New function.
28690 (gimple_ic_transform): Call new function.
28691 * cgraphunit.c (cgraph_finalize_function): Remove pid.
28692 * function.c (get_last_funcdef_no): New function.
28693 * function.h (get_last_funcdef_no): New function.
28694 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
28695 to libgcov function.
28696 (tree-profiling): Call node map init and delete function.
28697
28698 2011-04-21 Ian Lance Taylor <iant@google.com>
28699
28700 * godump.c (go_format_type): Use exported Go name for anonymous
28701 field name.
28702
28703 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28704
28705 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
28706 Call builtin_function_type_list instead of builtin_function_type.
28707 (UNARY, BINARY, TRINARY, QUAD): Likewise.
28708
28709 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28710
28711 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
28712 build_function_type_list instead of build_function_type.
28713 Delete variable `endlink'.
28714
28715 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28716
28717 * config/s390/s390.c (s390_init_builtins): Call
28718 build_function_type_list instead of build_function_type.
28719
28720 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28721
28722 * config/ia64/ia64.c (ia64_init_builtins): Call
28723 build_function_type_list instead of builtin_function_type.
28724
28725 2011-04-21 Easwaran Raman <eraman@google.com>
28726
28727 * cfgexpand.c (stack_var): Remove OFFSET...
28728 (add_stack_var): ...and its reference here...
28729 (expand_stack_vars): ...and here.
28730 (stack_var_cmp): Sort by descending order of size.
28731 (partition_stack_vars): Change heuristic.
28732 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
28733 (dump_stack_var_partition): Add newline after each partition.
28734
28735 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
28736 Jeff Law <law@redhat.com>
28737
28738 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
28739 * gengtype.c (matching_file_name_substitute): Likewise.
28740
28741 2011-04-21 Richard Guenther <rguenther@suse.de>
28742
28743 PR lto/48703
28744 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
28745
28746 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
28747
28748 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
28749
28750 2011-04-21 Richard Guenther <rguenther@suse.de>
28751
28752 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
28753 file name.
28754
28755 2011-04-21 Richard Guenther <rguenther@suse.de>
28756
28757 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
28758 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
28759 Use DECL_P, not SSA_VAR_P.
28760 (ptr_derefs_may_alias_p): Likewise.
28761 (ptr_deref_may_alias_ref_p_1): Likewise.
28762 (decl_refs_may_alias_p): Likewise.
28763 (refs_may_alias_p_1): Likewise.
28764 (ref_maybe_used_by_call_p_1): Likewise.
28765 (call_may_clobber_ref_p_1): Likewise.
28766 (indirect_ref_may_alias_decl_p): Assume indirect refrences
28767 are either MEM_REF or TARGET_MEM_REF.
28768 (indirect_refs_may_alias_p): Likewise.
28769 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
28770 for MEM_EXPR of indirect calls.
28771
28772 2011-04-21 Tristan Gingold <gingold@adacore.com>
28773
28774 * vmsdbgout.c (write_srccorr): Compute file length from the string.
28775 (dst_file_info_struct): Remove flen field.
28776 (lookup_filename): Remove code that set flen field.
28777
28778 2011-04-21 Tristan Gingold <gingold@adacore.com>
28779
28780 * config/ia64/ia64.c (ia64_start_function): Add a guard.
28781
28782 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
28783
28784 PR target/48708
28785 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
28786 vec_extract and vec_concat for non-SSE4_1 targets.
28787
28788 2011-04-21 Richard Guenther <rguenther@suse.de>
28789
28790 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
28791 return statements.
28792
28793 2011-04-21 Joseph Myers <joseph@codesourcery.com>
28794
28795 * config/i386/cygming.h (union tree_node, TREE): Don't define or
28796 undefine.
28797 (FILE): Don't undefine.
28798
28799 2011-04-21 Joseph Myers <joseph@codesourcery.com>
28800
28801 * config/alpha/alpha.c (struct machine_function): Use rtx, not
28802 struct rtx_def *.
28803 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
28804 struct rtx_def *.
28805 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
28806 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
28807 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
28808 rtx_def *.
28809 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
28810 definitions where used.
28811 * config/microblaze/microblaze.h (struct microblaze_args): Use
28812 rtx, not struct rtx_def *.
28813 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
28814 rtx_def *.
28815 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
28816 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
28817 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
28818 not struct rtx_def *.
28819 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
28820 struct rtx_def *.
28821 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
28822 rtx_def *.
28823 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
28824
28825 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28826
28827 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
28828 operand_equal_p to compare DR_BASE_ADDRESSes.
28829 (vect_check_interleaving): Likewise.
28830
28831 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28832
28833 PR target/46329
28834 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
28835 for all Neon struct constants.
28836
28837 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28838
28839 * target.def (legitimate_constant_p): New hook.
28840 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
28841 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
28842 * doc/tm.texi: Regenerate.
28843 * hooks.h (hook_bool_mode_rtx_true): Declare.
28844 * hooks.c (hook_bool_mode_rtx_true): Define.
28845 * system.h (LEGITIMATE_CONSTANT_P): Poison.
28846 * calls.c (precompute_register_parameters): Replace uses of
28847 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
28848 (emit_library_call_value_1): Likewise.
28849 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
28850 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
28851 * ira-costs.c (scan_one_insn): Likewise.
28852 * recog.c (general_operand, immediate_operand): Likewise.
28853 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
28854 * reload1.c (init_eliminable_invariants): Likewise.
28855
28856 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
28857 mode argument.
28858 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
28859 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
28860 argument.
28861 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28862 * config/alpha/predicates.md (input_operand): Update call to
28863 alpha_legitimate_constant_p.
28864
28865 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
28866 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
28867 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
28868 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28869 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
28870 (arm_legitimate_constant_p): New functions.
28871 (arm_cannot_force_const_mem): Make static.
28872
28873 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
28874
28875 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
28876 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
28877 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
28878 instead of bfin_legitimate_constant_p.
28879 (bfin_legitimate_constant_p): Make static. Add a mode argument.
28880 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28881
28882 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
28883
28884 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
28885
28886 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
28887 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
28888 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28889 (frv_legitimate_constant_p): Make static. Add a mode argument.
28890
28891 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
28892 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
28893 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
28894
28895 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
28896 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
28897 * config/i386/i386.c (legitimate_constant_p): Rename to...
28898 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
28899 argument.
28900 (ix86_cannot_force_const_mem): Update accordingly.
28901 (ix86_legitimate_address_p): Likewise.
28902 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28903 * config/i386/i386.md: Update commentary.
28904
28905 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
28906 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
28907 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28908 (ia64_legitimate_constant_p): Make static. Add a mode argument.
28909
28910 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
28911
28912 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
28913 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
28914 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28915 (lm32_legitimate_constant_p): Make static. Add a mode argument.
28916
28917 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
28918 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
28919 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
28920
28921 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
28922 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28923 (m32r_legitimate_constant_p): New function.
28924
28925 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
28926 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
28927 LEGITIMATE_CONSTANT_P.
28928 (LEGITIMATE_CONSTANT_P): Delete.
28929 * config/m68k/m68k.c (m68k_expand_prologue): Call
28930 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
28931 (m68k_legitimate_constant_p): New function.
28932 * config/m68k/m68k.md: Update comments.
28933
28934 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
28935 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28936 (mcore_legitimate_constant_p): New function.
28937
28938 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
28939 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
28940 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
28941 Add a mode argument.
28942 (mep_legitimate_address): Update accordingly.
28943 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28944
28945 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
28946 Delete.
28947 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
28948 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
28949 static. Check OP's mode for VOIDmode.
28950 (microblaze_legitimate_constant_p): New function.
28951 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28952
28953 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
28954 * config/mips/mips.c (mips_legitimate_constant_p): New function.
28955 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
28956 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28957 * config/mips/predicates.md: Update comments.
28958
28959 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
28960 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
28961 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28962 (mmix_legitimate_constant_p): Make static, return a bool, and take
28963 a mode argument.
28964 (mmix_print_operand_address): Update accordingly.
28965
28966 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
28967 Delete.
28968 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
28969 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
28970 static. Add a mode argument.
28971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28972
28973 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
28974
28975 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
28976 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28977 (pa_legitimate_constant_p): New function.
28978
28979 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
28980
28981 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
28982 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28983 (pdp11_legitimate_constant_p): New function.
28984
28985 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
28986 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28987 (rs6000_legitimate_constant_p): New function.
28988
28989 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
28990 (rx_legitimate_constant_p): ...this.
28991 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
28992 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
28993 (rx_legitimate_constant_p): ...this.
28994 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28995 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
28996
28997 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
28998 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
28999 * config/s390/s390.c (legitimate_constant_p): Rename to...
29000 (s390_legitimate_constant_p): ...this. Make static, return a bool,
29001 and add a mode argument.
29002 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29003
29004 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
29005
29006 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
29007 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29008 (sh_legitimate_constant_p): New function.
29009
29010 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
29011 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
29012 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29013 (legitimate_constant_p): Rename to...
29014 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
29015 argument.
29016 (constant_address_p): Update accordingly.
29017
29018 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
29019 argument and return a bool.
29020 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
29021 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29022 (spu_legitimate_constant_p): Add a mode argument and return a bool.
29023 (spu_rtx_costs): Update accordingly.
29024 * config/spu/predicates.md (vec_imm_operand): Likewise.
29025
29026 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
29027
29028 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
29029 * config/v850/v850.c (v850_legitimate_constant_p): New function.
29030 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29031
29032 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
29033 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
29034 * config/vax/vax.c (legitimate_constant_p): Likewise.
29035
29036 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
29037 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29038 (xtensa_legitimate_constant_p): New function.
29039
29040 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
29041
29042 * target.def (cannot_force_const_mem): Add a mode argument.
29043 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
29044 * doc/tm.texi: Regenerate.
29045 * hooks.h (hook_bool_mode_rtx_false): Declare.
29046 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
29047 (hook_bool_mode_const_rtx_true): Likewise.
29048 (hook_bool_mode_rtx_false): New function.
29049 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
29050 to be non-VOID. Update call to cannot_force_const_mem.
29051 (find_reloads): Update accordingly.
29052 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
29053 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
29054 argument.
29055 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
29056 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
29057 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
29058 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
29059 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
29060 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
29061 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
29062 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
29063 (m68k_cannot_force_const_mem): ...this new function.
29064 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
29065 argument.
29066 (mips_const_insns, mips_legitimize_const_move): Update calls.
29067 (mips_secondary_reload_class): Likewise.
29068 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
29069 (pa_cannot_force_const_mem): ...this new function.
29070 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
29071 (rs6000_cannot_force_const_mem): ...this new function.
29072 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
29073 argument.
29074 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
29075 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
29076 to...
29077 (xtensa_cannot_force_const_mem): ...this new function.
29078
29079 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
29080
29081 * config/mips/mips.c (mips16_build_function_stub): Call
29082 build_function_type_list instead of build_function_type.
29083 (mips16_build_call_stub): Likewise.
29084
29085 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
29086
29087 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
29088 instead of build_function_type.
29089
29090 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
29091
29092 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
29093 instead of build_function_type.
29094
29095 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
29096
29097 PR target/48678
29098 * config/i386/i386.md (insv): Change operand 0 constraint to
29099 "register_operand". Change operand 1 and 2 constraint to
29100 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
29101 * config/i386/sse.md (sse4_1_pinsrb): Export.
29102 (sse2_pinsrw): Ditto.
29103 (sse4_1_pinsrd): Ditto.
29104 (sse4_1_pinsrq): Ditto.
29105 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
29106 * config/i386/i386.c (ix86_expand_pinsr): New.
29107
29108 2011-04-20 Easwaran Raman <eraman@google.com>
29109
29110 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
29111 containing union type only with -fstrict-aliasing.
29112
29113 2011-04-20 Jim Meyering <meyering@redhat.com>
29114
29115 Remove useless if-before-free tests.
29116 * calls.c (expand_call, save_area): Likewise.
29117 * cfgcleanup.c (try_forward_edges): Likewise.
29118 * collect2.c (collect_execute): Likewise.
29119 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
29120 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
29121 * coverage.c (coverage_checksum_string): Likewise.
29122 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
29123 * cselib.c (cselib_init): Likewise.
29124 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
29125 (df_set_clean_cfg): Likewise.
29126 * function.c (free_after_compilation): Likewise.
29127 * gcc.c (do_spec_1, main): Likewise.
29128 * gcov.c (create_file_names): Likewise.
29129 * gensupport.c (identify_predicable_attribute): Likewise.
29130 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
29131 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
29132 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
29133 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
29134 * ipa-pure-const.c (local_pure_const): Likewise.
29135 * ipa-reference.c (propagate): Likewise.
29136 * ira-costs.c (free_ira_costs): Likewise.
29137 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
29138 * matrix-reorg.c (mat_free): Likewise.
29139 * prefix.c (get_key_value): Likewise.
29140 * profile.c (compute_value_histograms): Likewise.
29141 * reload1.c (free_reg_equiv): Likewise.
29142 * sched-deps.c (free_deps): Likewise.
29143 * sel-sched-ir.c (fence_clear): Likewise.
29144 * sese.c (set_rename, if_region_set_false_region): Likewise.
29145 * tree-data-ref.c (free_rdg): Likewise.
29146 * tree-eh.c (lower_try_finally): Likewise.
29147 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
29148 * tree-ssa-live.c (delete_var_map): Likewise.
29149 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
29150 * tree-ssa-pre.c (phi_trans_add): Likewise.
29151
29152 2011-04-20 Jakub Jelinek <jakub@redhat.com>
29153
29154 PR tree-optimization/48611
29155 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
29156 beyond ERT_MUST_NOT_THROW region.
29157
29158 2011-04-20 Catherine Moore <clm@codesourcery.com>
29159
29160 * config/mips/mips.opt (mfix-24k): New.
29161 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
29162 * config/mips/mips.md (length): Increase by 4 for stores if
29163 fixing 24K errata.
29164 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
29165 all noreorder if fixing 24K errata.
29166 * doc/invoke.texi: Document mfix-24k.
29167
29168 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
29169
29170 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
29171 quad-word modes, reduce to 9-bit index range when above 1016 limit.
29172
29173 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
29174
29175 * config/arm/arm.c (arm_gen_constant): Move movw support ....
29176 (const_ok_for_op): ... to here.
29177
29178 2011-04-20 Kai Tietz <ktietz@redhat.com>
29179
29180 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
29181 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
29182
29183 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
29184
29185 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
29186
29187 2011-04-20 Richard Guenther <rguenther@suse.de>
29188
29189 PR tree-optimization/47892
29190 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
29191 are if-convertible.
29192
29193 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
29194
29195 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
29196
29197 2011-04-20 Tristan Gingold <gingold@adacore.com>
29198
29199 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
29200
29201 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
29202
29203 PR target/18145
29204
29205 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
29206 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
29207 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29208 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
29209 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
29210
29211 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
29212 New prototype.
29213
29214 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
29215 (avr_asm_named_section, avr_asm_output_aligned_common,
29216 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
29217 New functions to update...
29218 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
29219 (avr_asm_init_sections): Overwrite section callbacks for
29220 data_section, bss_section.
29221 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
29222 from here to...
29223 (avr_file_end): ...here.
29224
29225 2011-04-20 Richard Guenther <rguenther@suse.de>
29226
29227 PR middle-end/48695
29228 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
29229 objects and types here. Adjust for their offset before comparing.
29230
29231 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
29232
29233 * tree-vect-stmts.c (vectorizable_store): Only chain one related
29234 statement per copy.
29235
29236 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
29237
29238 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
29239 (GIMPLE_H): Include $(INTERNAL_FN_H).
29240 (OBJS-common): Add internal-fn.o.
29241 (internal-fn.o): New rule.
29242 * internal-fn.def: New file.
29243 * internal-fn.h: Likewise.
29244 * internal-fn.c: Likewise.
29245 * gimple.h: Include internal-fn.h.
29246 (GF_CALL_INTERNAL): New gf_mask.
29247 (gimple_statement_call): Put fntype into a union with a new
29248 internal_fn field.
29249 (gimple_build_call_internal): Declare.
29250 (gimple_build_call_internal_vec): Likewise.
29251 (gimple_call_same_target_p): Likewise.
29252 (gimple_call_internal_p): New function.
29253 (gimple_call_internal_fn): Likewise.
29254 (gimple_call_fntype): Return null for internal calls.
29255 (gimple_call_set_fntype): Assert that the function is not internal.
29256 (gimple_call_set_fn): Likewise.
29257 (gimple_call_set_fndecl): Likewise.
29258 (gimple_call_set_internal_fn): New function.
29259 (gimple_call_addr_fndecl): Handle null functions.
29260 (gimple_call_return_type): Likewise null types.
29261 * gimple.c (gimple_build_call_internal_1): New function.
29262 (gimple_build_call_internal): Likewise.
29263 (gimple_build_call_internal_vec): Likewise.
29264 (gimple_call_same_target_p): Likewise.
29265 (gimple_call_flags): Handle calls to internal functions.
29266 (gimple_call_fnspec): New function.
29267 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
29268 (gimple_has_side_effects): Handle null functions.
29269 (gimple_rhs_has_side_effects): Likewise.
29270 (gimple_call_copy_skip_args): Handle calls to internal functions.
29271 * cfgexpand.c (expand_call_stmt): Likewise.
29272 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
29273 * gimple-fold.c (gimple_fold_call): Handle null functions.
29274 (gimple_fold_stmt_to_constant_1): Don't fold
29275 calls to internal functions.
29276 * gimple-low.c (gimple_check_call_args): Handle calls to internal
29277 functions.
29278 * gimple-pretty-print.c (dump_gimple_call): Likewise.
29279 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
29280 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
29281 (do_warn_unused_result): Likewise.
29282 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
29283 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
29284 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
29285 the target of a call.
29286 (initialize_hash_element): Update accordingly.
29287 (hashable_expr_equal_p): Use gimple_call_same_target_p.
29288 (iterative_hash_hashable_expr): Handle calls to internal functions.
29289 (print_expr_hash_elt): Likewise.
29290 * tree-ssa-pre.c (can_value_number_call): Likewise.
29291 (eliminate): Handle null functions.
29292 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
29293 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
29294 (find_func_aliases): Likewise.
29295 * value-prof.c (gimple_ic_transform): Likewise.
29296 (gimple_indirect_call_to_profile): Likewise.
29297 * lto-streamer-in.c (input_gimple_stmt): Likewise.
29298 * lto-streamer-out.c (output_gimple_stmt): Likewise.
29299
29300 2011-04-19 Jan Hubicka <jh@suse.cz>
29301
29302 * ipa-inline-transform.c (save_inline_function_body): Add comments.
29303 * ipa-inline.c (inline_small_functions): Compute summaries first,
29304 populate heap later.
29305
29306 2011-04-19 Jan Hubicka <jh@suse.cz>
29307
29308 * cgraph.h (save_inline_function_body): Remove.
29309 * ipa-inline-transform.c: New file, broke out of...
29310 * ipa-inline.c: ... this one; Update toplevel comment.
29311 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
29312 make global.
29313 (update_noncloned_frequencies): Move to ipa-inline-transform.c
29314 (cgraph_mark_inline_edge): Rename to inline_call; move to
29315 ipa-inline-transform.c.
29316 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
29317 move to ipa-inline-transform.c
29318 (recursive_inlining, inline_small_functions, flatten_function,
29319 ipa_inline, inline_always_inline_functions,
29320 early_inline_small_functions): Update.
29321 (inline_transform): Move to ipa-inline-transform.c.
29322 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
29323 Declare.
29324 * Makefile.in (ipa-inline-transform.o): New file.
29325 * cgraphunit.c (save_inline_function_body): Move to
29326 ipa-inline-transform.c
29327
29328 2011-04-19 DJ Delorie <dj@redhat.com>
29329
29330 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
29331 registers if we already know there aren't any.
29332 (m32c_emit_epilogue): Don't emit a barrier here.
29333 (m32c_emit_eh_epilogue): Likewise.
29334 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
29335 operands at expand time.
29336 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
29337 int" wchar type.
29338 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
29339 duplicates. Provide aliases instead.
29340 * config/m32c/prologue.md (eh_return): Emit a barrier here.
29341 (eh_epilogue): Add a "(return)" here as a hint to other parts of
29342 the compiler.
29343
29344 2011-04-19 Anatoly Sokolov <aesok@post.ru>
29345
29346 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
29347 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
29348 (general_or_i64_p, sparc_register_move_cost): New function.
29349
29350 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29351
29352 * doc/install.texi (Configuration, --enable-threads): Remove mach.
29353 Add lynx, mipssde. Sort table.
29354
29355 2011-04-19 Xinliang David Li <davidxl@google.com>
29356
29357 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
29358 not negative.
29359
29360 2011-04-19 Jakub Jelinek <jakub@redhat.com>
29361
29362 PR target/48678
29363 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
29364 is a SUBREG with non-MODE_INT mode inside of it.
29365
29366 2011-04-19 Martin Jambor <mjambor@suse.cz>
29367
29368 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
29369 also according to actual contants.
29370 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
29371 (gimple_fold_call): Use it.
29372 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
29373
29374 2011-04-19 Martin Jambor <mjambor@suse.cz>
29375
29376 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
29377 non-pointer assignments.
29378
29379 2011-04-19 Martin Jambor <mjambor@suse.cz>
29380
29381 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
29382 account anc_offset and otr_type from the indirect edge info.
29383 * ipa-prop.c (get_ancestor_addr_info): New function.
29384 (compute_complex_ancestor_jump_func): Assignment analysis moved to
29385 get_ancestor_addr_info, call it.
29386 (ipa_note_param_call): Do not initialize information about polymorphic
29387 calls, return the indirect call graph edge. Remove the last
29388 parameter, adjust all callers.
29389 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
29390 parameters. Initialize polymorphic information in the indirect edge.
29391
29392 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
29393
29394 PR lto/48148
29395 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
29396 the types if they have different enumeration identifiers.
29397
29398 2011-04-19 Jan Hubicka <jh@suse.cz>
29399
29400 * cgraph.h (cgraph_optimize_for_size_p): Declare.
29401 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
29402 * predict.c (cgraph_optimize_for_size_p): Break out from ...
29403 (optimize_function_for_size_p) ... here.
29404
29405 2011-04-19 Richard Guenther <rguenther@suse.de>
29406
29407 PR lto/48207
29408 * tree.c (free_lang_data): Do not reset the decl-assembler-name
29409 langhook.
29410
29411 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
29412
29413 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
29414 if DECL_NO_INLINE_WARNING_P is set on the function.
29415
29416 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
29417
29418 PR fortran/47976
29419 * reload1.c (inc_for_reload): Return void. All callers changed.
29420 (emit_input_reload_insns): Don't try to delete previous output
29421 reloads to a register, or record spill_reg_store for autoincs.
29422
29423 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
29424
29425 * gengtype.h: Updated copyright year.
29426 (struct input_file_st): Add inpisplugin field.
29427 (type_fileloc): New function.
29428 * gengtype.c
29429 (write_typed_struct_alloc_def): Add gcc_assert.
29430 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
29431 (write_typed_alloc_defns): Don't output for plugin files.
29432 (input_file_by_name): Clear inpisplugin field.
29433 (main): Set inpisplugin field for plugin files.
29434
29435 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
29436
29437 * gengtype-state.c (string_eq): New.
29438 (read_state): Use string_eq instead of strcmp when creating the
29439 state_ident_tab.
29440
29441 2011-04-19 Wei Guozhi <carrot@google.com>
29442
29443 PR target/47855
29444 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
29445 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
29446 linkage.
29447 * config/arm/constraints.md (Uu): New constraint.
29448 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
29449
29450 2011-04-19 Tristan Gingold <gingold@adacore.com>
29451
29452 * config.gcc (-*-*-*vms): Added.
29453 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
29454 definitions moved.
29455 * config/vms/vms-ld.c: New file.
29456 * config/vms/vms-ar.c: New file.
29457 * config/vms/t-vmsnative: New file.
29458
29459 2011-04-18 Xinliang David Li <davidxl@google.com>
29460
29461 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
29462
29463 2011-04-18 Jakub Jelinek <jakub@redhat.com>
29464
29465 PR middle-end/48661
29466 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
29467 if TREE_TYPE (v) is non-NULL.
29468
29469 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
29470 gimple_get_virt_mehtod_for_binfo.
29471 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
29472 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
29473 callers.
29474 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29475
29476 2011-04-18 Michael Matz <matz@suse.de>
29477 Steve Ellcey <sje@cup.hp.com>
29478
29479 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
29480 use its mode as source mode if it isn't VOIDmode.
29481
29482 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
29483
29484 * doc/passes.texi: Fill crossref nodes.
29485
29486 2011-04-18 Jim Meyering <meyering@redhat.com>
29487
29488 Fix doubled-word typos in comments and strings
29489 * config/alpha/vms-unwind.h: s/for for/for/
29490 * config/arm/unwind-arm.h: Likewise.
29491 * config/microblaze/microblaze.c: Likewise.
29492 * config/sh/constraints.md: s/in in/in/
29493 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
29494
29495 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
29496
29497 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
29498 (AVX_FLOAT_MODE_P): Ditto.
29499 (AVX128_VEC_FLOAT_MODE_P): Ditto.
29500 (AVX256_VEC_FLOAT_MODE_P): Ditto.
29501 (AVX_VEC_FLOAT_MODE_P): Ditto.
29502 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
29503 (UNSPEC_MASKSTORE): Ditto.
29504 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
29505 Merge from <sse>_movmsk<ssemodesuffix> and
29506 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
29507 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
29508 iterator.
29509 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
29510 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
29511 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
29512
29513 2011-04-18 Jan Hubicka <jh@suse.cz>
29514
29515 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
29516
29517 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
29518 (want_inline_function_called_once_p): Break out the logic from
29519 ipa_inline.
29520 (edge_badness): Ensure that profile is not misupdated.
29521 (lookup_recursive_calls): Prioritize by call frequencies.
29522 (inline_small_functions): Move program size estimates here;
29523 actually process whole queue even when unit growth has been
29524 met. (to properly compute inline_failed reasons and for the
29525 case unit size decrease.) Revisit comments on recursive inlining.
29526 (ipa_inline): Remove unit summary code; first inline hot calls
29527 of functions called once, cold calls next.
29528 (order, nnodes): Remove unused variables.
29529 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
29530 (GTFILES): Remove ipa-inline.c
29531 * sel-sched.c (fill_insns): Silence uninitialized var warning.
29532
29533 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
29534
29535 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
29536
29537 2011-04-18 Jie Zhang <jie@codesourcery.com>
29538 Richard Earnshaw <rearnsha@arm.com>
29539
29540 * arm.c (neon_builtin_type_bits): Remove.
29541 (typedef enum neon_builtin_mode): New.
29542 (T_MAX): Don't define.
29543 (typedef enum neon_builtin_datum): Remove bits, codes[],
29544 num_vars and base_fcode. Add mode, code and fcode.
29545 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
29546 VAR10): Change accordingly.
29547 (neon_builtin_data[]): Change accordingly
29548 (arm_init_neon_builtins): Change accordingly.
29549 (neon_builtin_compare): Remove.
29550 (locate_neon_builtin_icode): Remove.
29551 (arm_expand_neon_builtin): Change accordingly.
29552
29553 * arm.h (enum arm_builtins): Move to ...
29554 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
29555
29556 * arm.c (arm_builtin_decl): Declare.
29557 (TARGET_BUILTIN_DECL): Define.
29558 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
29559 (arm_builtin_decls[]): New.
29560 (arm_init_neon_builtins): Store builtin declarations in
29561 arm_builtin_decls[].
29562 (arm_init_tls_builtins): Likewise.
29563 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
29564 (arm_builtin_decl): New.
29565
29566 2011-04-18 Richard Guenther <rguenther@suse.de>
29567
29568 * tree.c (upper_bound_in_type): Build properly canonicalized
29569 INTEGER_CSTs.
29570 (lower_bound_in_type): Likewise.
29571
29572 2011-04-18 Richard Guenther <rguenther@suse.de>
29573
29574 * gimple.h (gimple_call_addr_fndecl): New function.
29575 (gimple_call_fndecl): Use it.
29576 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
29577 for direct calls.
29578 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
29579 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
29580
29581 2011-04-18 Richard Guenther <rguenther@suse.de>
29582
29583 PR middle-end/48650
29584 * tree.c (build_string): STRING_CST is now derived from tree_typed.
29585
29586 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
29587
29588 PR lto/48492
29589 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
29590 DECL_IN_CONSTANT_POOL without RTL.
29591
29592 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
29593 Ira Rosen <ira.rosen@linaro.org>
29594
29595 PR target/48252
29596 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
29597 to match neon_vzip/vuzp/vtrn_internal.
29598 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
29599 outputs explicitly dependent on both inputs.
29600 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
29601
29602 2011-04-18 Jakub Jelinek <jakub@redhat.com>
29603
29604 PR tree-optimization/48616
29605 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
29606 whether the shift is by scalar or vector based on whether all SLP
29607 scalar stmts have the same rhs.
29608
29609 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
29610
29611 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
29612 memory operands.
29613
29614 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
29615
29616 PR target/43700
29617 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
29618 registers.
29619
29620 2011-04-17 Jan Hubicka <jh@suse.cz>
29621
29622 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
29623 * cgrpahunit.c (cgraph_finalize_function): Do not set
29624 finalized_by_frontend.
29625 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
29626 finalized_by_frontend.
29627
29628 2011-04-17 Jan Hubicka <jh@suse.cz>
29629
29630 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
29631 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
29632 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
29633 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
29634 method.
29635 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
29636 gimple-fold.c
29637 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
29638
29639 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
29640
29641 PR lto/48538
29642 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
29643 is non-null before accessing it.
29644 (input_cgraph): Remove trailing spaces.
29645
29646 2011-04-17 Revital Eres <revital.eres@linaro.org>
29647
29648 * params.def (sms-min-sc): New param flag.
29649 * modulo-sched.c (sms_schedule): Use it.
29650 * doc/invoke.texi (sms-min-sc): Document it.
29651
29652 2011-04-17 Jan Hubicka <jh@suse.cz>
29653
29654 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
29655 present, also set gimple_call_set_cannot_inline.
29656 * ipa-inline.c: Update toplevel comment.
29657 (MAX_TIME): Remove.
29658 (cgraph_clone_inlined_nodes): Fix linebreaks.
29659 (cgraph_check_inline_limits): Restructure to ...
29660 (caller_growth_limits): ... this one; be more tolerant
29661 on growth in nested inline chains; add explanatory comment;
29662 fix stack accounting thinko introduced by previous patch.
29663 (cgraph_default_inline_p): Remove.
29664 (report_inline_failed_reason): New function.
29665 (can_inline_edge_p): New function.
29666 (can_early_inline_edge_p): New function.
29667 (leaf_node_p): Move upwards in file.
29668 (want_early_inline_function_p): New function.
29669 (want_inline_small_function_p): New function.
29670 (want_inline_self_recursive_call_p): New function.
29671 (cgraph_edge_badness): Rename to ...
29672 (edge_badness) ... this one; fix linebreaks.
29673 (update_edge_key): Update call of edge_baddness; add
29674 detailed dump about queue updates.
29675 (update_caller_keys): Use can_inline_edge_p and
29676 want_inline_small_function_p.
29677 (cgraph_decide_recursive_inlining): Rename to...
29678 (recursive_inlining): Use can_inline_edge_p and
29679 want_inline_self_recursive_call_p; simplify and remove no longer
29680 valid FIXME.
29681 (cgraph_set_inline_failed): Remove.
29682 (add_new_edges_to_heap): Use can_inline_edge_p and
29683 want_inline_small_function_p.
29684 (cgraph_decide_inlining_of_small_functions): Rename to ...
29685 (inline_small_functions): ... this one; cleanup; use
29686 can/want predicates; cleanup debug ouput; work edges till fibheap
29687 is exhausted and do not stop once unit growth is reached; remove
29688 later loop processing remaining edges.
29689 (cgraph_flatten): Rename to ...
29690 (flatten_function): ... this one; use can_inline_edge_p
29691 and can_early_inline_edge_p predicates.
29692 (cgraph_decide_inlining): Rename to ...
29693 (ipa_inline): ... this one; remove unreachable nodes before
29694 inlining functions called once; simplify the pass.
29695 (cgraph_perform_always_inlining): Rename to ...
29696 (inline_always_inline_functions): ... this one; use
29697 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
29698 (cgraph_decide_inlining_incrementally): Rename to ...
29699 (early_inline_small_functions): ... this one; simplify
29700 using new predicates; cleanup; make dumps prettier.
29701 (cgraph_early_inlining): Rename to ...
29702 (early_inliner): newer inline regular functions into always-inlines;
29703 fix updating of call stmt summaries.
29704 (pass_early_inline): Update for new names.
29705 (inline_transform): Fix formating.
29706 (gate_cgraph_decide_inlining): Rename to ...
29707 (pass_ipa_inline): ... this one.
29708 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
29709 * ipa-inline-analysis.c (dump_inline_summary): Update.
29710 (compute_inline_parameters): Do not compute disregard_inline_limits;
29711 look for mismatching arguments.
29712 (estimate_growth): Fix handlig of non-trivial self recursion.
29713 (inline_read_summary): Do not read info->disregard_inline_limits.
29714 (inline_write_summary): Do not write info->disregard_inline_limits.
29715 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
29716 and move all checks into can_inline_edge_p predicate; re-enable code
29717 comparing optimization levels.
29718 (expand_call_inline): Do not test inline_forbidden_into_p.
29719 * Makefile.in (ipa-inline.o): Update arguments.
29720
29721 2011-04-17 Revital Eres <revital.eres@linaro.org>
29722
29723 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
29724
29725 2011-04-17 Revital Eres <revital.eres@linaro.org>
29726
29727 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
29728
29729 2011-04-17 Michael Matz <matz@suse.de>
29730
29731 PR tree-optimization/48622
29732 PR lto/48645
29733 * ipa-inline-analysis.c (inline_read_summary): Read size/time
29734 in same order as they're written.
29735
29736 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29737
29738 * config/pa/predicates.md: Reorganize and simplify predicates.
29739 Eliminate duplicate code checks.
29740 (arith_operand): Rename to arith14_operand
29741 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
29742 * config/pa/pa.md: Use renamed operands.
29743 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
29744 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
29745 arith11_operand, adddi3_operand, indexed_memory_operand,
29746 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
29747 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
29748 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
29749 move_dest_operand, move_src_operand, prefetch_cc_operand,
29750 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
29751 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
29752 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
29753 div_operand, int5_operand, movb_comparison_operator,
29754 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
29755 arith_double_operand, ireg_operand, lhs_lshift_operand,
29756 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
29757 integer_store_memory_operand): Likewise.
29758 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
29759 (integer_store_memory_operand, read_only_operand,
29760 function_label_operand, borx_reg_operand,
29761 non_hard_reg_operand): Likewise.
29762 (eq_neq_comparison_operator): Delete unused operator.
29763 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
29764 function_label_operand.
29765 (emit_move_sequence): Likewise.
29766
29767 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
29768
29769 * config/i386/sse.md (sseunpackmode): New mode attribute.
29770 (ssepackmode): Ditto.
29771 (vec_pack_trunc_<mode>): Macroize expander from
29772 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
29773 (vec_unpacks_lo_<mode>): Macroize expander from
29774 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29775 (vec_unpacks_hi_<mode>): Macroize expander from
29776 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29777 (vec_unpacku_lo_<mode>): Macroize expander from
29778 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29779 (vec_unpacku_hi_<mode>): Macroize expander from
29780 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29781 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
29782 ix86_expand_sse4_unpack.
29783 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
29784
29785 2011-04-16 Jan Hubicka <jh@suse.cz>
29786
29787 * cgraphbuild.c: Include ipa-inline.h.
29788 (reset_inline_failed): Use initialize_inline_failed.
29789 * cgraph.c: Include ipa-inline.h.
29790 (cgraph_create_node_1): Do not initialize estimated_growth.
29791 (initialize_inline_failed): More to ipa-inline-analysis.c
29792 (dump_cgraph_node): Do not dump inline flags.
29793 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
29794 and disregard_inline_limits flags.
29795 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
29796 time, size, estimated_growth.
29797 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
29798 Update.
29799 * cgraphunit.c (cgraph_decide_is_function_needed): Use
29800 DECL_DISREGARD_INLINE_LIMITS.
29801 (cgraph_analyze_function): Do not initialize
29802 node->local.disregard_inline_limits.
29803 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
29804 inlinable, versionable and disregard_inline_limits.
29805 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
29806 cgraph_check_inline_limits, cgraph_default_inline_p,
29807 cgraph_edge_badness, update_caller_keys, update_callee_keys,
29808 add_new_edges_to_heap): Update.
29809 (cgraph_decide_inlining_of_small_function): Update; set
29810 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
29811 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
29812 cgraph_decide_inlining_incrementally): Update.
29813 * ipa-inline.h (inline_summary): Add inlinable, versionable,
29814 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
29815 time, size and estimated_growth parameters.
29816 (estimate_edge_growth): Update.
29817 (initialize_inline_failed): Declare.
29818 * ipa-split.c: Include ipa-inline.h
29819 (execute_split_functions): Update.
29820 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
29821 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
29822 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
29823 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
29824 estimated_growth to INT_MIN.
29825 (inline_node_duplication_hook): Likewise.
29826 (dump_inline_summary): Dump new fields.
29827 (compute_inline_parameters): Update.
29828 (estimate_edge_time, estimate_time_after_inlining,
29829 estimate_size_after_inlining, estimate_growth, inline_read_summary,
29830 inline_write_summary):
29831 (initialize_inline_failed): Move here from cgraph.c.
29832 * tree-sra.c: Include ipa-inline.h.
29833 (ipa_sra_preliminary_function_checks): Update.
29834 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
29835 ipa-inline.h.
29836
29837 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
29838
29839 * config/i386/sse.md (V16): New mode iterator.
29840 (VI1, VI8): Ditto.
29841 (AVXMODEQI, AVXMODEDI): Remove.
29842 (sse2, sse3): New mode attribute.
29843 (mov<mode>): Use V16 mode iterator.
29844 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
29845 (push<mode>1): Use V16 mode iterator.
29846 (movmisalign<mode>): Ditto.
29847 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
29848 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
29849 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
29850 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
29851 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
29852 avx_movdqu<avxmodesuffix>.
29853 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
29854 *avx_movdqu<avxmodesuffix>.
29855 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
29856 avx_lddqu<avxmodesuffix>.
29857 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
29858 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
29859 avx_movnt<AVXMODEDI:mode>.
29860 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
29861 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
29862
29863 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
29864
29865 PR target/48629
29866 * haifa-sched.c (prune_ready_list, schedule_block): Use
29867 sched_pressure_p rather than flag_sched_pressure.
29868
29869 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
29870
29871 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
29872 cgraph_get_node instead of cgraph_get_create_node.
29873
29874 2011-04-15 Jakub Jelinek <jakub@redhat.com>
29875
29876 * cfgexpand.c (expand_debug_expr): Use
29877 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
29878
29879 2011-04-15 Michael Matz <matz@suse.de>
29880
29881 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
29882 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
29883 * function.c (gimplify_parameters): Ditto.
29884 * gimplify.c (gimplify_vla_decl): Ditto.
29885
29886 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
29887 (gimple_call_set_alloca_for_var): New inline function.
29888 (gimple_call_alloca_for_var_p): Ditto.
29889 * gimple.c (gimple_build_call_from_tree): Remember
29890 CALL_ALLOCA_FOR_VAR_P state.
29891 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
29892
29893 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
29894 calls if they were for VLA objects.
29895
29896 2011-04-15 Martin Jambor <mjambor@suse.cz>
29897
29898 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
29899 of ADR_EXPRs.
29900
29901 2011-04-15 Martin Jambor <mjambor@suse.cz>
29902
29903 PR middle-end/48601
29904 * tree-emutls.c (lower_emutls_function_body): Call
29905 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
29906 result is non-NULL.
29907
29908 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
29909
29910 * c-decl.c (detect_field_duplicates): Call
29911 objc_detect_field_duplicates instead of objc_get_interface_ivars.
29912
29913 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
29914
29915 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
29916 * gimple.c (gimple_asm_clobbers_memory_p): Define.
29917 * ipa-pure-const.c (check_stmt): Call it.
29918 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
29919
29920 2011-04-15 Richard Guenther <rguenther@suse.de>
29921
29922 PR tree-optimization/48290
29923 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
29924 Properly decide inhibiting propagation based on the valueized
29925 operand. Do loop-closed SSA form preserving here ...
29926 (init_copy_prop): ... not here.
29927
29928 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
29929
29930 PR target/48612
29931 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
29932 (*ieee_smax<mode>3): Likewise.
29933
29934 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29935
29936 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
29937 Replace match_operand with match_dup for the third operand in
29938 these expanders.
29939
29940 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
29941
29942 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
29943 to track processing of conditionals. Update all callers.
29944 (try_combine, simplify_if_then_else): Update.
29945
29946 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
29947
29948 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
29949 -fsched-pressure.
29950
29951 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
29952
29953 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
29954 instead of match_operand for operand 3.
29955
29956 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
29957
29958 * recog.h (insn_operand_data): Add an "allows_mem" field.
29959 * genoutput.c (output_operand_data): Initialize it.
29960 * optabs.c (maybe_legitimize_operand_same_code): New function.
29961 (maybe_legitimize_operand): Use it when matching the original
29962 op->value.
29963
29964 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
29965
29966 * gimplify.c: Fix issues in comments throughout.
29967 (voidify_wrapper_expr): Fix long line.
29968 (build_stack_save_restore): Likewise.
29969 (gimplify_loop_expr): Likewise.
29970 (gimplify_compound_lval): Likewise.
29971 (gimplify_init_ctor_eval): Likewise.
29972 (gimplify_modify_expr_rhs): Likewise.
29973 (omp_notice_threadprivate_variable): Likewise.
29974
29975 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
29976
29977 * cfgexpand.c (expand_call_stmt): Convert the function type to the
29978 original one if this is not a builtin function.
29979
29980 2011-04-14 Jakub Jelinek <jakub@redhat.com>
29981
29982 PR target/48605
29983 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
29984 offset it as needed based on top 2 bits in operands[3], change
29985 MEM mode to SFmode and mask those 2 bits away from operands[3].
29986
29987 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
29988
29989 * c-parser.c (c_parser_objc_protocol_definition): Updated for
29990 change from objc_declare_protocols() to objc_declare_protocol().
29991
29992 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
29993
29994 * config/i386/sse.md (sse4_1): New mode attribute.
29995 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
29996 avx_blend<ssemodesuffix><avxmodesuffix> and
29997 sse4_1_blend<ssemodesuffix> using VF mode iterator.
29998 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
29999 avx_blendv<ssemodesuffix><avxmodesuffix> and
30000 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
30001 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
30002 avx_dp<ssemodesuffix><avxmodesuffix> and
30003 sse4_1_dp<ssemodesuffix> using VF mode iterator.
30004 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
30005 (sse4_1_packusdw): Merge with *avx_packusdw.
30006 (sse4_1_pblendvb): Merge with *avx_pblendvb.
30007 (sse4_1_pblendw): Merge with *avx_pblendw.
30008 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
30009 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
30010 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
30011 VF mode iterator.
30012 (sse4_1_round<ssescalarmodesuffix>): Merge with
30013 *avx_round<ssescalarmodesuffix>.
30014 (aesenc): Merge with *avx_aesenc.
30015 (aesenclast): Merge with *avx_aesenclast.
30016 (aesdec): Merge with *avx_aesdec.
30017 (aesdeclast): Merge with *avx_aesdeclast.
30018 (pclmulqdq): Merge with *pclmulqdq.
30019 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
30020 New predicate.
30021 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
30022
30023 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
30024
30025 PR middle-end/48608
30026 * cfgexpand.c (get_decl_align_unit): Renamed to ...
30027 (align_local_variable): This. Update DECL_ALIGN.
30028 (add_stack_var): Updated.
30029 (expand_one_stack_var): Likewise.
30030
30031 2011-04-14 Richard Guenther <rguenther@suse.de>
30032
30033 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
30034 Remove.
30035 (dse_initialize_block_local_data, dse_leave_block,
30036 record_voperand_set, get_stmt_uid): Likewise.
30037 (dse_possible_dead_store_p): Allow any kind of killing stmt.
30038 (dse_optimize_stmt): Remove voperand set handling code.
30039 Simplify and improve to handle any kind of killing stmt.
30040 (dse_record_phi): Remove.
30041 (dse_enter_block): Simplify.
30042 (tree_ssa_dse): Likewise.
30043 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
30044
30045 2011-04-14 Jan Hubicka <jh@suse.cz>
30046
30047 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
30048 * cgraph.h (struct inline_summary): Move to ipa-inline.h
30049 (cgraph_local_info): Remove inline_summary.
30050 * ipa-cp.c: Include ipa-inline.h.
30051 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
30052 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
30053 accesor.
30054 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
30055 (input_overwrite_node): Do not set inline summary.
30056 (input_node): Do not stream inline summary.
30057 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
30058 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
30059 growth; we do not have inline parameters computed for that anyway.
30060 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
30061 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
30062 (inline_summary_t): New type and VECtor.
30063 (debug_inline_summary, dump_inline_summaries): Declare.
30064 (inline_summary): Use VOCtor.
30065 (estimate_edge_growth): Kill hack computing call stmt size directly.
30066 * lto-section-in.c (lto_section_name): Add inline section.
30067 * ipa-inline-analysis.c: Include lto-streamer.h
30068 (node_removal_hook_holder, node_duplication_hook_holder): New holders
30069 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
30070 (inline_summary_vec): Define.
30071 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
30072 dump_inline_summaries): New functions.
30073 (estimate_function_body_sizes): Properly compute size/time of outgoing
30074 calls.
30075 (compute_inline_parameters): Alloc inline_summary; do not compute
30076 size/time of incomming calls.
30077 (estimate_edge_time): Avoid missing time summary hack.
30078 (inline_read_summary): Read inline summary info.
30079 (inline_write_summary): Write inline summary info.
30080 (inline_free_summary): Free all hooks and inline summary vector.
30081 * lto-streamer.h: Add LTO_section_inline_summary section.
30082 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
30083 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
30084
30085 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30086
30087 * tree-vectorizer.h (vect_strided_store_supported): Add a
30088 HOST_WIDE_INT argument.
30089 (vect_strided_load_supported): Likewise.
30090 (vect_permute_store_chain): Return void.
30091 (vect_transform_strided_load): Likewise.
30092 (vect_permute_load_chain): Delete.
30093 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
30094 count argument. Check that the count is a power of two.
30095 (vect_strided_load_supported): Likewise.
30096 (vect_permute_store_chain): Return void. Update after above changes.
30097 Assert that the access is supported.
30098 (vect_permute_load_chain): Likewise.
30099 (vect_transform_strided_load): Return void.
30100 * tree-vect-stmts.c (vectorizable_store): Update calls after
30101 above interface changes.
30102 (vectorizable_load): Likewise.
30103 (vect_analyze_stmt): Don't check for strided powers of two here.
30104
30105 2011-04-14 Richard Guenther <rguenther@suse.de>
30106
30107 PR tree-optimization/48590
30108 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
30109 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
30110 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
30111 BUILT_IN_STACK_SAVE.
30112 * tree-ssa-dce.c (propagate_necessity): Handle
30113 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
30114
30115 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
30116
30117 * c-parser.c (c_parser_objc_class_declaration): Updated call to
30118 objc_declare_class.
30119
30120 2011-04-14 Richard Guenther <rguenther@suse.de>
30121
30122 * tree.h (get_object_alignment_1): Declare.
30123 * builtins.c (get_object_alignment_1): Split out worker from ...
30124 (get_object_alignment): ... here.
30125 * fold-const.c (get_pointer_modulus_and_residue): Use
30126 get_object_alignment_1.
30127
30128 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30129
30130 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
30131 type parameter.
30132 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
30133 parameter. Generalise code to handle arrays as well as vectors.
30134 (vect_setup_realignment): Update accordingly.
30135 * tree-vect-stmts.c (vectorizable_store): Likewise.
30136 (vectorizable_load): Likewise.
30137
30138 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30139
30140 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
30141 within the per-copy loop.
30142
30143 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30144
30145 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
30146 in the dump file.
30147
30148 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30149
30150 * doc/options.texi (Negative): Explicitly mention that the
30151 Negative chain must be circular.
30152
30153 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
30154
30155 * function.h (block_chainon): Declare.
30156 * function.c (block_chainon): Define.
30157
30158 2011-04-14 Anatoly Sokolov <aesok@post.ru>
30159 Eric Weddington <eric.weddington@atmel.com>
30160 Georg-Johann Lay <avr@gjlay.de>
30161
30162 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
30163 New Includes
30164 (avr_init_builtins, avr_expand_builtin,
30165 avr_expand_delay_cycles, avr_expand_unop_builtin,
30166 avr_expand_binop_builtin ): New functions.
30167 (avr_builtin_id): New enum
30168 (struct avr_builtin_description): New struct
30169 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
30170 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
30171
30172 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
30173 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
30174 UNSPECV_DELAY_CYCLES): new enumeration values
30175 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
30176 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
30177 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
30178 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
30179 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
30180 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
30181 "fmulsu"): New insns
30182
30183 * config/avr/avr-c.c: fix line endings
30184 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
30185 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
30186 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
30187 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
30188 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
30189
30190 * doc/extend.texi (AVR Built-in Functions): New node
30191 (Target Builtins): Add documentation of AVR
30192 built-in functions.
30193
30194 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
30195
30196 PR target/44643
30197 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
30198 alone. Error if non-const data has attribute progmem.
30199
30200 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30201
30202 * tree.h (struct tree_constructor): Include tree_typed instead of
30203 tree_common.
30204 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
30205 TS_TYPED instead of TS_COMMON.
30206
30207 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
30208
30209 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
30210 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
30211 (sse2_psadbw): Merge with *avx_psadbw.
30212 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
30213 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
30214 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
30215 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
30216 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
30217 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
30218 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
30219 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
30220 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
30221 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
30222 (ssse3_palignrti): Merge with *avx_palignrti.
30223
30224 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30225
30226 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
30227 * tree-ssanames.c (fini_ssanames): VEC_free it.
30228 (make_ssa_name_fn): Update for VECness of free_ssanames.
30229 (release_ssa_name, release_dead_ssa_names): Likewise.
30230 * tree.h (struct tree_ssa_name): Include tree_typed instead of
30231 tree_common.
30232 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
30233 TS_TYPED instead of TS_COMMON.
30234
30235 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30236
30237 * postreload-gcse.c (gcse_after_reload_main): Add calls to
30238 statistics_counter_event.
30239 * tree-ssa-copyrename.c (stats): Define.
30240 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
30241 statistics_counter_event.
30242 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
30243 (bswap_stats, widen_mul_stats): Define.
30244 (insert_reciprocals): Increment rdivs_inserted.
30245 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
30246 rfuncs_inserted. Add calls to statistics_counter_event.
30247 (execute_cse_sincos_1): Increment inserted.
30248 (execute_cse_sincos): Zeroize sincos_stats. Add call to
30249 statistics_counter_event.
30250 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
30251 of bswap_stats. Add calls to statistics_counter_event.
30252 (convert_mult_to_widen): Increment widen_mults_inserted.
30253 (convert_plusminus_to_widen): Increment maccs_inserted.
30254 (convert_mult_to_fma): Increment fmas_inserted.
30255 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
30256 calls to statistics_counter_event.
30257
30258 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
30259
30260 PR rtl-optimization/48455
30261 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
30262 `temp_costs->mem_cost'.
30263
30264 2011-04-13 Jan Hubicka <jh@suse.cz>
30265
30266 * ipa-inline.h: New file.
30267 * ipa-inline-analysis.c: New file. Broken out of ...
30268 * ipa-inline.c: ... this file; update toplevel comment;
30269 include ipa-inline.h
30270 (inline_summary): Move to ipa-inline.h
30271 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
30272 ipa-inline-analysis.c.
30273 (cgraph_estimate_time_after_inlining): Rename to
30274 estiamte_time_after_inlining; move to ipa-inline-analysis.c
30275 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
30276 to estimate_edge_growth.
30277 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
30278 rename to estimate_size_after_inlining.
30279 (cgraph_mark_inline_edge): Update for new naming convention.
30280 (cgraph_check_inline_limits): Likewise.
30281 (cgraph_edge_badness): Likewise.
30282 (cgraph_decide_recursive_inlining): Likewise.
30283 (cgraph_decide_inlining_of_small_functions): Likewise.
30284 (cgraph_decide_inlining_incrementally): Likewise.
30285 (cgraph_estimate_growth): Rename to estimate_growth; move to
30286 ipa-inline-analysis.c.
30287 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
30288 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
30289 (compute_inline_parameters): Likewise.
30290 (compute_inline_parameters_for_current): Likewise.
30291 (pass_inline_parameters): Likewise.
30292 (inline_indirect_intraprocedural_analysis): Likewise.
30293 (analyze_function): Rename to inline_analyze_function; likewise.
30294 (add_new_function): Move to ipa-inline-analysis.c.
30295 (inline_generate_summary): Likewise.
30296 (inline_read_summary): Likewise.
30297 (inline_write_summary): Likewise.
30298 * Makefile.in (ipa-inline-analysis.c): New file.
30299
30300 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30301
30302 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
30303 * configure: Regenerate.
30304
30305 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30306
30307 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
30308 instead of tree_common.
30309 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
30310 Likewise.
30311 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
30312 TS_TYPED rather than TS_COMMON.
30313 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
30314
30315 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
30316
30317 PR target/45263
30318 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
30319 r20 around calls of __tablejump_elpm__
30320
30321 2011-04-13 Jakub Jelinek <jakub@redhat.com>
30322
30323 PR middle-end/48591
30324 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
30325 NULL.
30326 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
30327
30328 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
30329
30330 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
30331 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
30332 (cfi_vec): New typedef.
30333 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
30334 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
30335 (cie_cfi_vec): New static variable.
30336 (cie_cfi_head): Delete.
30337 (add_cfi): Accept a cfi_vec * as first argument. All callers and
30338 declaration changed. Use vector rather than list operations.
30339 (new_cfi): Don't initialize the dw_cfi_next field.
30340 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
30341 rather than list operations.
30342 (lookup_cfa): Use vector rather than list operations.
30343 (output_cfis): New argument upto. Accept a cfi_vec rather than
30344 a dw_cfi_ref list head as argument. All callers changed.
30345 Iterate over the vector using upto as a maximum index.
30346 (output_all_cfis): New static function.
30347 (output_fde): Use vector rather than list operations. Use the
30348 new upto argument for output_cfis rather than manipulating a
30349 list.
30350 (dwarf2out_begin_prologue): Change initializations to match
30351 new struct members.
30352 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
30353 from the vector length rather than searching for the end of a list.
30354 Use output_all_cfis.
30355 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
30356
30357 2011-04-13 Nick Clifton <nickc@redhat.com>
30358
30359 * config/rx/rx.md (movmemsi): Do not use this pattern when
30360 volatile pointers are involved.
30361
30362 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
30363
30364 * config/i386/sse.md (pinsrbits): Remove.
30365 (sse2_packsswb): Merge with *avx_packsswb.
30366 (sse2_packssdw): Merge with *avx_packssdw.
30367 (sse2_packuswb): Merge with *avx_packuswb.
30368 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
30369 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
30370 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
30371 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
30372 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
30373 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
30374 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
30375 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
30376 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
30377 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
30378 (sse2_loadld): Merge with *avx_loadld.
30379 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
30380 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
30381 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
30382 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
30383 (vec_concatv2di): Merge with *vec_concatv2di_avx.
30384
30385 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
30386
30387 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
30388 calling TREE_CHAIN.
30389 * print-tree.c (print_node): Likewise.
30390 * tree-inline.c (copy_tree_r): Likewise.
30391 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
30392 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
30393 instead of TS_COMMON.
30394 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
30395 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
30396 (copy_node_stat): Zero TREE_CHAIN only if necessary.
30397 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
30398 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
30399 ...and these...
30400 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
30401 * tree.h: ...here.
30402 (TREE_CHAIN): Check for a TS_COMMON structure.
30403 (TREE_TYPE): Check for a TS_TYPED structure.
30404
30405 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
30406
30407 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
30408 cgraph_get_create_node instead of cgraph_node.
30409
30410 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
30411
30412 * c-parser.c (c_parser_initelt): Updated call to
30413 objc_build_message_expr.
30414 (c_parser_postfix_expression): Likewise.
30415
30416 2011-04-12 Kai Tietz <ktietz@redhat.com>
30417
30418 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
30419 MASK_MS_BITFIELD_LAYOUT bit.
30420
30421 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30422
30423 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
30424 assert it is always true.
30425 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
30426 moves.
30427
30428 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
30429
30430 * c-parser.c (c_lex_one_token): Rewritten conditional used when
30431 compiling Objective-C to be more efficient.
30432
30433 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
30434
30435 * opts-common.c (decode_cmdline_options_to_array): Remove variable
30436 argv_copied.
30437
30438 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30439
30440 * recog.h, genoutput.c, optabs.c: Revert last patch.
30441
30442 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
30443
30444 PR target/48090
30445 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
30446
30447 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30448
30449 * recog.h (insn_operand_data): Add an "allows_mem" field.
30450 * genoutput.c (output_operand_data): Initialize it.
30451 * optabs.c (maybe_legitimize_operand_same_code): New function.
30452 (maybe_legitimize_operand): Use it when matching the original
30453 op->value.
30454
30455 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30456
30457 * genpreds.c (process_define_predicate): Move most processing
30458 to gensupport.c. Continue to validate the expression.
30459 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
30460 (process_define_predicate): Move processing to gensupport.c.
30461 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
30462 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
30463 (compute_predicate_codes): Moved from genrecog.c. Add lineno
30464 argument.
30465 (valid_predicate_name_p): New function, split out from old
30466 genpreds.c:process_define_predicate.
30467 (process_define_predicate): New function, combining code from
30468 old genpreds.c and genrecog.c functions.
30469 (process_rtx): Call it for DEFINE_PREDICATE and
30470 DEFINE_SPECIAL_PREDICATE.
30471
30472 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30473
30474 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
30475 size of a '%A' memory reference.
30476 (T_DREG, T_QREG): New neon_builtin_type_bits.
30477 (arm_init_neon_builtins): Assert that the load and store operands
30478 are neon_struct_operands.
30479 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
30480 (NEON_ARG_MEMORY): New builtin_arg.
30481 (neon_dereference_pointer): New function.
30482 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
30483 Handle NEON_ARG_MEMORY.
30484 (arm_expand_neon_builtin): Update after above interface changes.
30485 Use NEON_ARG_MEMORY for loads and stores.
30486 * config/arm/predicates.md (neon_struct_operand): New predicate.
30487 * config/arm/iterators.md (V_two_elem): Tweak formatting.
30488 (V_three_elem): Use BLKmode for accesses that have no associated mode.
30489 (V_four_elem): Tweak formatting.
30490 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
30491 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
30492 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
30493 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
30494 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
30495 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
30496 (neon_vst4<mode>): Replace pointer operand with a memory operand.
30497 Use %A in the output template.
30498 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
30499 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
30500 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
30501 the width of the memory access. Remove post-increment.
30502 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
30503
30504 2011-04-12 Nick Clifton <nickc@redhat.com>
30505
30506 * config/v850/v850.c (expand_prologue): Do not use the CALLT
30507 instruction for interrupt handlers if the target is the basic V850
30508 architecture.
30509 (expand_epilogue): Likewise.
30510
30511 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30512
30513 PR rtl-optimization/48549
30514 * combine.c (propagate_for_debug): Also stop after BB_END of
30515 this_basic_block. Process LAST and just stop processing after it.
30516 (combine_instructions): If last_combined_insn has been deleted,
30517 set last_combined_insn to its PREV_INSN.
30518
30519 2011-04-12 Richard Guenther <rguenther@suse.de>
30520
30521 PR tree-optimization/46076
30522 * gimple.h (struct gimple_statement_call): Add fntype field.
30523 (gimple_call_fntype): Adjust.
30524 (gimple_call_set_fntype): New function.
30525 * gimple.c (gimple_build_call_1): Set the call function type.
30526 * gimplify.c (gimplify_call_expr): Preserve the function
30527 type the frontend used for the call.
30528 (gimplify_modify_expr): Likewise.
30529 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
30530 function type.
30531 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
30532 function type.
30533 * tree-ssa.c (useless_type_conversion_p): Function pointer
30534 conversions are useless.
30535
30536 2011-04-12 Martin Jambor <mjambor@suse.cz>
30537
30538 * cgraph.h (cgraph_node): Remove function declaration.
30539 (cgraph_create_node): Declare.
30540 (cgraph_get_create_node): Likewise.
30541 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
30542 Updated all callers.
30543 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
30544 the decl does not already exist. Call cgraph_get_create_node instead
30545 of cgraph_node.
30546 (cgraph_get_create_node): New function.
30547 (cgraph_same_body_alias): Update comment.
30548 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
30549 assert it does not return NULL.
30550 (cgraph_update_edges_for_call_stmt): Likewise.
30551 (cgraph_clone_edge): Likewise.
30552 (cgraph_create_virtual_clone): Likewise.
30553 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
30554 instead of cgraph_node.
30555 (cgraph_add_new_function): Call cgraph_create_node or
30556 cgraph_get_create_node instead of cgraph_node.
30557 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
30558 instead of cgraph_node.
30559 (record_eh_tables): Likewise.
30560 (mark_address): Likewise.
30561 (mark_load): Likewise.
30562 (build_cgraph_edges): Call cgraph_get_create_node instead
30563 of cgraph_node.
30564 (rebuild_cgraph_edges): Likewise.
30565 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
30566 instead of cgraph_node.
30567 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
30568 cgraph_node.
30569 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
30570 cgraph_create_node instead of cgraph_node.
30571 * c-decl.c (finish_function): Call cgraph_get_create_node instead
30572 of cgraph_node.
30573 * lto-cgraph.c (input_node): Likewise.
30574 * lto-streamer-in.c (input_function): Likewise.
30575 * varasm.c (mark_decl_referenced): Likewise.
30576 (assemble_alias): Likewise.
30577
30578 2011-04-12 Martin Jambor <mjambor@suse.cz>
30579
30580 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
30581 instead of cgraph_node and assert it does not return NULL.
30582 * lto-streamer-in.c (lto_read_body): Likewise.
30583 * omp-low.c (new_omp_context): Likewise.
30584 (create_task_copyfn): Likewise.
30585 * tree-emutls.c (lower_emutls_function_body): Likewise.
30586 * matrix-reorg.c (transform_allocation_sites): Likewise.
30587
30588 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30589
30590 PR c/48552
30591 * c-typeck.c (build_asm_expr): Error out on attempts to use
30592 void type outputs or inputs for constraints that allow reg or
30593 don't allow memory.
30594
30595 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
30596 Richard Earnshaw <rearnsha@arm.com>
30597
30598 PR target/48250
30599 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
30600 to use sign-magnitude offsets. Reject unsupported unaligned
30601 cases. Add detailed description in comments.
30602 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
30603 condition from TARGET_32BIT to TARGET_ARM.
30604
30605 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
30606
30607 * tree.h (struct typed_tree): New.
30608 (struct tree_common): Include it instead of tree_base.
30609 (TREE_TYPE): Update for new location of type field.
30610 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
30611 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
30612 (union tree_node): Add typed field.
30613 * treestruct.def (TS_TYPED): New.
30614 * lto-streamer.c (check_handled_ts_structures): Handle it.
30615 * tree.c (MARK_TS_TYPED): New macro.
30616 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
30617
30618 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
30619
30620 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
30621 (force_nonfallthru): Do not alter the loop nest if no basic block
30622 was created.
30623
30624 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
30625
30626 * config/i386/sse.md (VI): New mode iterator.
30627 (SSEMODEI): Remove.
30628 (AVX256MODEI): Ditto.
30629 (AVXMODEF4P): Ditto.
30630 (avxvecpsmode): Ditto.
30631 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
30632 (sse2_andnot<mode>3): New expander.
30633 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
30634 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
30635 (<any_logic:code><mode>3): Use VI mode iterator.
30636 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
30637 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
30638 (*andnottf3): Handle AVX three-operand constraints.
30639 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
30640
30641 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30642 Robert Millan <rmh@gnu.org>
30643
30644 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
30645 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
30646 GNU_USER_DYNAMIC_LINKER64): Define.
30647 (REG_NAME): Don't undefine.
30648 (MD_UNWIND_SUPPORT): Undefine.
30649 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
30650 (REG_NAME): Don't undefine.
30651 (MD_UNWIND_SUPPORT): Undefine.
30652 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
30653
30654 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30655
30656 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
30657 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
30658
30659 2011-04-11 Xinliang David Li <davidxl@google.com>
30660
30661 * value-profile.c (check_ic_target): New function.
30662 (gimple_ic_transform): Sanity check indirect call target.
30663 * gimple-low.c (gimple_check_call_args): Interface change.
30664 (gimple_check_call_matching_types): New function.
30665 * tree-inline.c (tree_can_inline_p): Call new function.
30666
30667 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
30668
30669 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
30670 tree-pretty-print.h & realmpfr.h.
30671
30672 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
30673
30674 PR middle-end/48464
30675 * ira.c (setup_pressure_classes): Fix typo in loop condition.
30676 (setup_allocno_and_important_classes): Ditto.
30677
30678 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30679
30680 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
30681 GNU_USER_DYNAMIC_LINKER.
30682 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
30683 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30684 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
30685 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30686 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30687 GNU_USER_TARGET_OS_CPP_BUILTINS.
30688 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
30689 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30690 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30691 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30692 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
30693 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30694 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30695 GNU_USER_TARGET_OS_CPP_BUILTINS.
30696 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30697 GNU_USER_DYNAMIC_LINKER.
30698 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30699 GNU_USER_TARGET_OS_CPP_BUILTINS.
30700 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
30701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30702 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
30703 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30704 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
30705 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
30706 GNU_USER_DYNAMIC_LINKER64): Remove.
30707 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
30708 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30709 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30710 GNU_USER_DYNAMIC_LINKER.
30711 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30712 GNU_USER_TARGET_OS_CPP_BUILTINS.
30713 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30714 GNU_USER_TARGET_OS_CPP_BUILTINS.
30715 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
30716 to GNU_USER_TARGET_OS_CPP_BUILTINS.
30717 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30718 GNU_USER_TARGET_OS_CPP_BUILTINS.
30719 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
30720 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
30721 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
30722 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
30723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30724 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30725 GNU_USER_DYNAMIC_LINKER.
30726 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30727 GNU_USER_TARGET_OS_CPP_BUILTINS.
30728 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
30729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30730 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30731 GNU_USER_DYNAMIC_LINKER.
30732 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30733 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30734 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
30735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30736 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30737 GNU_USER_DYNAMIC_LINKER.
30738 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
30739 GNU_USER_DYNAMIC_LINKERN32.
30740 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
30741 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
30742 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
30743 GNU_USER_DYNAMIC_LINKER32.
30744 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
30745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30746 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30747 GNU_USER_DYNAMIC_LINKER.
30748 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30750 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
30751 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30752 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30753 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
30754 GNU_USER_DYNAMIC_LINKER32.
30755 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
30756 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
30757 GNU_USER_DYNAMIC_LINKER.
30758 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
30759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
30761 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
30762 GNU_USER_DYNAMIC_LINKER64.
30763 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
30764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30765 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30766 GNU_USER_DYNAMIC_LINKER.
30767 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
30768 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30769 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30770 GNU_USER_DYNAMIC_LINKER.
30771 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
30772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30773 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
30774 GNU_USER_DYNAMIC_LINKER32.
30775 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
30776 GNU_USER_DYNAMIC_LINKER64.
30777 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
30778 GNU_USER_DYNAMIC_LINKER64.
30779 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
30780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30781 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
30782 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30783 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30784
30785 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30786
30787 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
30788 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
30789 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
30790 GNU_USER_DYNAMIC_LINKER.
30791 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
30792 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
30793 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
30794 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
30795 GNU_USER_DYNAMIC_LINKER64.
30796 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
30797 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
30798 GNU_USER_LINK_EMULATION.
30799 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
30800 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
30801 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
30802 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
30803 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
30804 CPP_SPEC, CC1_SPEC): Remove.
30805 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
30806 (GNU_USER_DYNAMIC_LINKER): Define.
30807 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
30808 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
30809 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
30810 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
30811 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
30812 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
30813 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
30814 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
30815 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
30816 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
30817 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
30818 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
30819 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
30820 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
30821 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
30822 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
30823 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30824 GNU_USER_DYNAMIC_LINKER.
30825 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30826 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30827 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30828 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30829 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30830 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30831 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
30832 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
30833 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
30834 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
30835
30836 2011-04-11 Kai Tietz <ktietz@redhat.com>
30837
30838 PR target/9601
30839 PR target/11772
30840 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
30841 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
30842 comment.
30843 (ix86_is_msabi_thiscall): Removed.
30844 (ix86_is_type_thiscall): Likewise.
30845 (ix86_get_callcvt): New function.
30846 (ix86_comp_type_attributes): Simplify check.
30847 (ix86_function_regparm): Use ix86_get_callcvt for calling
30848 convention attribute checks.
30849 (ix86_return_pops_args): Likewise.
30850 (ix86_static_chain): Likewise.
30851 (x86_this_parameter): Likewise.
30852 (x86_output_mi_thunk): Likewise.
30853 (ix86_function_type_abi): Optimize check for types without attributes.
30854 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
30855 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
30856 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
30857 by flag-values.
30858 (IX86_BASE_CALLCVT): Helper macro.
30859 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
30860 Use ix86_get_callcvt for calling convention attribute checks and avoid
30861 symbol-decoration for stdcall in TARGET_RTD case.
30862 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
30863 Likewise.
30864 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
30865 for declaration.
30866
30867 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
30868
30869 * config/i386/sse.md (VI_128): New mode iterator.
30870 (VI12_128): Rename from SSEMODE12.
30871 (VI14_128): Rename from SSEMODE14.
30872 (VI124_128): New mode iterator.
30873 (VI24_128): Rename from SSEMODE248.
30874 (VI248_128): Rename from SSEMODE248.
30875 (SSEMODE124C8): Remove.
30876 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
30877 (*sse2_<plusminus_insn><mode>3): Merge with
30878 *avx_<plusminus_insn><mode>3.
30879 (*mulv8hi3): Merge with *avx_mulv8hi3.
30880 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
30881 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
30882 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
30883 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
30884 (ashr<mode>3): Merge with *avx_ashr<mode>3.
30885 (lshr<mode>3): Merge with *avx_lshr<mode>3.
30886 (ashl<mode>3): Merge with *avx_ashl<mode>3.
30887 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
30888 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
30889 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30890 (*<smaxmin:code>v8hi3): Ditto.
30891 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
30892 (*<smaxmin:code>v16qi3): Ditto.
30893 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
30894 (*sse2_eq<mode>3): Ditto.
30895 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
30896 (*sse2_gt<mode>3): Ditto.
30897 (vcondv2di): Split out of vcond<mode>.
30898 (vconduv2di): Split out of vcondu<mode>.
30899
30900 2011-04-11 Richard Guenther <rguenther@suse.de>
30901
30902 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
30903 before calling tree_low_cst.
30904
30905 2011-04-11 Richard Guenther <rguenther@suse.de>
30906
30907 * stor-layout.c (layout_type): Compute all array index size operations
30908 in the original type.
30909 (initialize_sizetypes): Add comment.
30910 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
30911
30912 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30913
30914 * common.opt (Tbss=, Tdata=, Ttext=): New options.
30915
30916 2011-04-11 Martin Jambor <mjambor@suse.cz>
30917
30918 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
30919 of cgraph_node, handle NULL return value.
30920 (cgraph_global_info): Likewise.
30921 (cgraph_rtl_info): Likewise.
30922 * tree-inline.c (estimate_num_insns): Likewise.
30923 * gimplify.c (unshare_body): Likewise.
30924 (unvisit_body): Likewise.
30925 (gimplify_body): Likewise.
30926 * predict.c (optimize_function_for_size_p): Likewise.
30927 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30928 (call_may_clobber_ref_p_1): Likewise.
30929 * varasm.c (function_section_1): Likewise.
30930 (assemble_start_function): Likewise.
30931
30932 2011-04-11 Martin Jambor <mjambor@suse.cz>
30933
30934 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
30935 of cgraph_node.
30936 * final.c (rest_of_clean_state): Likewise.
30937 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
30938 * passes.c (pass_init_dump_file): Likewise.
30939 (execute_all_ipa_transforms): Likewise.
30940 (function_called_by_processed_nodes_p): Likewise.
30941 * predict.c (maybe_hot_frequency_p): Likewise.
30942 (probably_never_executed_bb_p): Likewise.
30943 (compute_function_frequency): Likewise.
30944 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
30945 (unnest_nesting_tree_1): Likewise.
30946 (lower_nested_functions): Likewise.
30947 * tree-optimize.c (execute_fixup_cfg): Likewise.
30948 (tree_rest_of_compilation): Likewise.
30949 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
30950 * tree-sra.c (ipa_early_sra): Likewise.
30951 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
30952 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
30953 * ipa.c (record_cdtor_fn): Likewise.
30954 * ipa-inline.c (cgraph_early_inlining): Likewise.
30955 (compute_inline_parameters_for_current): Likewise.
30956 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30957 * ipa-pure-const.c (local_pure_const): Likewise.
30958 * ipa-split.c (split_function): Likewise.
30959 (execute_split_functions): Likewise.
30960 * cgraphbuild.c (build_cgraph_edges): Likewise.
30961 (rebuild_cgraph_edges): Likewise.
30962 (cgraph_rebuild_references): Likewise.
30963 (remove_cgraph_callee_edges): Likewise.
30964 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
30965 (verify_cgraph_node): Likewise.
30966 (cgraph_analyze_functions): Likewise.
30967 (cgraph_preserve_function_body_p): Likewise.
30968 (save_inline_function_body): Likewise.
30969 (save_inline_function_body): Likewise.
30970 * tree-inline.c (copy_bb): Likewise.
30971 (optimize_inline_calls): Likewise.
30972
30973 2011-04-11 Martin Jambor <mjambor@suse.cz>
30974
30975 PR tree-optimization/48195
30976 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
30977 ipa_check_create_edge_args.
30978 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
30979 ipa_check_create_edge_args.
30980 * ipa-inline.c (inline_generate_summary): Do not call
30981 ipa_check_create_node_params and ipa_check_create_edge_args.
30982 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
30983 ipa_check_create_edge_args.
30984
30985 2011-04-09 Anatoly Sokolov <aesok@post.ru>
30986
30987 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
30988 instead of loop.
30989 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
30990 * function.c (record_hard_reg_sets): Likewise.
30991 * ira.c (compute_regs_asm_clobbered): Likewise.
30992 * sched-deps.c (sched_analyze_1): Likewise.
30993 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
30994
30995 2011-04-09 Xinliang David Li <davidxl@google.com>
30996
30997 PR tree-optimization/PR48484
30998 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
30999 has_valid_pred lazily
31000
31001 2011-04-09 Duncan Sands <baldrick@free.fr>
31002
31003 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
31004
31005 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
31006
31007 * combine.c (combine_validate_cost): Adjust comments. Set registered
31008 cost of I0 to zero at the end, if any.
31009
31010 2011-04-08 Xinliang David Li <davidxl@google.com>
31011
31012 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
31013 to insane profile data.
31014
31015 2011-04-08 Xinliang David Li <davidxl@google.com>
31016
31017 * ipa-cp.c (ipcp_update_profiling): Correct
31018 negative scale factor due to insane profile data.
31019
31020 2011-04-08 Xinliang David Li <davidxl@google.com>
31021
31022 * final.c (dump_basic_block_info): New function.
31023 (final): Dump basic block.
31024 (final_scan_insn): Remove old dump.
31025
31026 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
31027
31028 PR target/47829
31029 * config.gcc (i386-*-freebsd): Disable unwind table generation for
31030 crtbegin/crtend.
31031
31032 2011-04-08 Michael Matz <matz@suse.de>
31033
31034 PR middle-end/48389
31035 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
31036 functions.
31037 (rebuild_jump_labels): Call rebuild_jump_labels_1.
31038 * rtl.h (rebuild_jump_labels_chain): Declare.
31039 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
31040 insns inserted on edges.
31041
31042 2011-04-08 Joseph Myers <joseph@codesourcery.com>
31043
31044 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
31045 * config/arm/arm-arches.def: New.
31046 * config/arm/arm-opts.h: New.
31047 * config/arm/genopt.sh: New.
31048 * config/arm/arm-tables.opt: New (generated).
31049 * config/arm/arm.c (arm_handle_option, arm_target_help,
31050 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
31051 (all_architectures): Get most table contents from arm-arches.def.
31052 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
31053 arm_selected_tune here.
31054 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
31055 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
31056 (march=, mcpu=, mtune=): Use Enum and Var.
31057 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
31058 (arm.o): Update dependencies.
31059
31060 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
31061
31062 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
31063 of header_file.
31064 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
31065 (write_typed_alloc_defns): Likewise.
31066 (main): Calls write_typed_alloc_defns with output_header.
31067
31068 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
31069
31070 PR inline-asm/48435
31071 * ira-color.c (setup_profitable_hard_regs): Add comments.
31072 Don't take prohibited hard regs into account.
31073 (setup_conflict_profitable_regs): Rename to
31074 get_conflict_profitable_regs.
31075 (check_hard_reg_p): Check prohibited hard regs.
31076
31077 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
31078
31079 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
31080 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
31081 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
31082
31083 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31084
31085 PR target/48366
31086 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
31087 move from floating point to shift amount register.
31088 (emit_move_sequence): Remove secondary reload support for floating
31089 point to shift amount amount register copies.
31090 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
31091 amount register copies.
31092 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
31093 register, return false if mode isn't a scalar integer mode.
31094 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
31095
31096 2011-04-08 Richard Guenther <rguenther@suse.de>
31097
31098 * gimple.c (gimple_call_flags): Remove kludge.
31099
31100 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31101
31102 * sel-sched.c (sel_region_init): Move call to
31103 sel_setup_region_sched_flags after setup_current_loop_nest.
31104
31105 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
31106
31107 PR rtl-optimization/48272
31108 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
31109 init_insn_reg_pressure_info. Adjust a caller.
31110 * sched-int.h (init_insn_reg_pressure_info): Declare.
31111 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
31112 when sched-pressure is enabled.
31113
31114 2011-04-08 Richard Guenther <rguenther@suse.de>
31115
31116 * gimple.c (gimple_set_modified): Do not queue calls to
31117 MODIFIED_NORETURN_CALLS here ...
31118 * tree-ssa-operands.c (update_stmt_operands): ... but here.
31119
31120 2011-04-08 Richard Guenther <rguenther@suse.de>
31121
31122 PR lto/48467
31123 * toplev.c (lang_dependent_init): Do not open asm_out_file
31124 in WPA mode, nor perform debug machinery initialization.
31125 (finalize): Do not unlink asm_out_file in WPA mode.
31126
31127 2011-04-08 Richard Guenther <rguenther@suse.de>
31128
31129 * gimple.h (gimple_call_fntype): New function.
31130 (gimple_call_return_type): Use it.
31131 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
31132 * gimple-low.c (gimple_check_call_args): Likewise.
31133 * gimple.c (gimple_call_flags): Likewise.
31134 (gimple_call_arg_flags): Likewise.
31135 (gimple_call_return_flags): Likewise.
31136 * tree-cfg.c (verify_gimple_call): Likewise.
31137 (do_warn_unused_result): Likewise.
31138 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
31139 * value-prof.c (gimple_ic_transform): Fix fndecl check.
31140
31141 2011-04-08 Dmitry Melnik <dm@ispras.ru>
31142
31143 PR rtl-optimization/48235
31144 * sel-sched.c (code_motion_process_successors): Recompute the last
31145 insn in basic block if control flow changed.
31146 (code_motion_path_driver): Ditto. Recompute the first insn as well.
31147 Update condition for ilist_remove.
31148
31149 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31150
31151 PR rtl-optimization/48302
31152 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
31153 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
31154 it to record added preheader blocks.
31155 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
31156 on to sel_add_loop_preheaders.
31157 (sel_region_init): Move call to setup_current_loop_nest after
31158 sel_init_bbs.
31159
31160 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31161
31162 PR target/48273
31163 * cfgloop.h (loop_has_exit_edges): New helper.
31164 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
31165 non-clonable.
31166 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
31167 that have no exit edges.
31168
31169 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31170
31171 PR rtl-optimization/48442
31172 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
31173 all callers. Adjust assert.
31174
31175 2011-04-08 Jakub Jelinek <jakub@redhat.com>
31176
31177 PR tree-optimization/48377
31178 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
31179 is_packed to true even for types with smaller TYPE_ALIGN than
31180 TYPE_SIZE.
31181
31182 2011-04-08 Richard Guenther <rguenther@suse.de>
31183
31184 PR bootstrap/48513
31185 * doc/tm.texi: Re-generate.
31186
31187 2011-04-08 Wei Guozhi <carrot@google.com>
31188
31189 PR target/47855
31190 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
31191 * config/arm/arm.c (arm_attr_length_push_multi): New function.
31192 * config/arm/arm.md (*push_multi): Change the length computation to
31193 call a C function.
31194
31195 2011-04-08 Anatoly Sokolov <aesok@post.ru>
31196
31197 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
31198 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
31199 * doc/tm.texi: Regenerate.
31200 * system.h (ASM_OUTPUT_BSS): Poison.
31201 * varasm.c (asm_output_bss): Remove function.
31202 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
31203
31204 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
31205 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
31206 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
31207 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31208 Likewise.
31209 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31210 Likewise.
31211 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31212 Likewise.
31213 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
31214
31215 2011-04-07 Joseph Myers <joseph@codesourcery.com>
31216
31217 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
31218 EnumValue lines.
31219
31220 2011-04-07 Joseph Myers <joseph@codesourcery.com>
31221
31222 * config/m68k/m68k.c (m68k_handle_option): Don't handle
31223 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
31224 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
31225 OPT_mcpu32.
31226 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
31227 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
31228 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
31229 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
31230 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
31231 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
31232 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
31233 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
31234 options. Don't map other m68k options manually. Don't handle
31235 old-style options as canonical.
31236 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
31237 * doc/install.texi (m68k-*-*): Document binutils version requirement.
31238
31239 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
31240
31241 * basic-block.h (force_nonfallthru): Move to...
31242 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
31243 (force_nonfallthru): ...here.
31244 * cfghooks.c (force_nonfallthru): New function.
31245 * cfgrtl.c (force_nonfallthru): Rename into...
31246 (rtl_force_nonfallthru): ...this.
31247 (commit_one_edge_insertion): Do not set AUX field.
31248 (commit_edge_insertions): Do not discover new basic blocks.
31249 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
31250 (cfg_layout_rtl_cfg_hooks): Likewise.
31251 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
31252 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
31253 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
31254
31255 2011-04-07 Anatoly Sokolov <aesok@post.ru>
31256
31257 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31258 Remove macros.
31259
31260 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
31261
31262 * config/i386/sse.md: Update copyright year.
31263 (avxcvtvecmode): Remove.
31264 (sse_movhlps): Merge with *avx_movhlps.
31265 (sse_movlhps): Merge with *avx_movlhps.
31266 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
31267 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
31268 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
31269 (sse_loadhps): Merge with *avx_loadhps.
31270 (sse_storelps): Merge with *avx_storelps.
31271 (sse_loadlps): Merge with *avx_loadlps.
31272 (sse_movss): Merge with *avx_movss.
31273 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
31274 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
31275 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
31276 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
31277 (vec_set<mode>_0): Ditto.
31278 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
31279 (sse4_1_insertps): Merge with *avx_insertps.
31280 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
31281 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
31282 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
31283 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
31284 (sse2_storehpd): Merge with *avx_storehpd.
31285 (sse2_loadhpd): Merge with *avx_loadhpd.
31286 (sse2_loadlpd): Merge with *avx_loadlpd.
31287 (sse2_movsd): Merge with *avx_movsd.
31288 (*vec_concatv2df): Merge with *vec_concatv2df.
31289
31290 2011-04-07 Jakub Jelinek <jakub@redhat.com>
31291
31292 PR debug/48343
31293 * combine.c (combine_instructions): Add last_combined_insn,
31294 update it if insn is after it, pass it to all try_combine calls.
31295 (try_combine): Add last_combined_insn parameter, pass it instead of
31296 i3 to propagate_for_debug.
31297
31298 2011-04-07 Nick Clifton <nickc@redhat.com>
31299
31300 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
31301 to handle MDR <-> data register transfers.
31302 (movhi_internal): Likewise.
31303
31304 2011-04-07 Alan Modra <amodra@gmail.com>
31305
31306 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
31307 previous stack info.
31308
31309 2011-04-07 Tom de Vries <tom@codesourcery.com>
31310
31311 PR target/43920
31312 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
31313 flow_find_cross_jump. Swap variables to implement backward replacement.
31314 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
31315
31316 2011-04-07 Tom de Vries <tom@codesourcery.com>
31317
31318 PR target/43920
31319 * cfgcleanup.c (walk_to_nondebug_insn): New function.
31320 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
31321 and bb2.
31322 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
31323 src1 or src2. Redirect edges to the last basic block. Update
31324 frequency and count on multiple basic blocks in case of fallthru.
31325
31326 2011-04-07 Tom de Vries <tom@codesourcery.com>
31327
31328 PR target/43920
31329 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
31330 function.
31331 (old_insns_match_p): Change return type. Replace return false/true
31332 with return dir_none/dir_both. Use can_replace_by.
31333 (flow_find_cross_jump): Add dir_p parameter. Init replacement
31334 direction from dir_p. Register replacement direction in dir, last_dir
31335 and afterlast_dir. Handle new return type of old_insns_match_p using
31336 merge_dir. Return replacement direction in dir_p.
31337 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
31338 return type of old_insns_match_p.
31339 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
31340 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
31341 flow_find_cross_jump.
31342 * basic-block.h (enum replace_direction): New type.
31343 (flow_find_cross_jump): Add parameter to declaration.
31344
31345 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
31346
31347 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
31348 (AVXMODEDCVTPS2DQ): Ditto.
31349 (VEC_FLOAT_MODE): Ditto.
31350 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
31351 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
31352 (<any_logic:code><mode>3): Use VF mode iterator.
31353 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
31354 Use VF mode iterator.
31355 (copysign<mode>3): Use VF mode iterator.
31356 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
31357 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
31358 (*<any_logic:code><MODEF:mode>3): Merge with
31359 *avx_<any_logic:code><MODEF:mode>3.
31360 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
31361 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
31362 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
31363 (avx_cvtdq2ps<avxmodesuffix>): Remove.
31364 (sse2_cvtdq2ps): Use %v modifier.
31365 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
31366 (avx_cvtps2dq<avxmodesuffix>): Remove.
31367 (sse2_cvtps2dq): Use %v modifier.
31368 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
31369 (avx_cvttps2dq<avxmodesuffix>): Remove.
31370 (sse2_cvttps2dq): Use %v modifier.
31371 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
31372 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
31373 (sse2_cvtsd2siq): Fix insn template.
31374 (sse2_cvtsd2siq_2): Ditto.
31375 (sse2_cvttsd2siq): Ditto.
31376 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
31377 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
31378
31379 2011-04-06 Joseph Myers <joseph@codesourcery.com>
31380
31381 * gcov-io.c: Use GCC Runtime Library Exception.
31382
31383 2011-04-06 Jakub Jelinek <jakub@redhat.com>
31384
31385 PR debug/48466
31386 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
31387 as base_reg whatever register reg has been eliminated to, instead
31388 of hardcoding STACK_POINTER_REGNUM.
31389
31390 2011-04-06 Joseph Myers <joseph@codesourcery.com>
31391
31392 * doc/tm.texi.in: Document C target hooks as separate from general
31393 target hooks.
31394 * doc/tm.texi: Regenerate.
31395 * genhooks.c (struct hook_desc): Add docname field.
31396 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
31397 docname field.
31398 (hook_array): Include c-target.def.
31399 (emit_documentation): Use docname field in output.
31400 (emit_init_macros): Take docname argument. Only emit definitions
31401 for hooks matching docname.
31402 (main): Expect additional arguments in all cases. Pass argument
31403 to emit_init_macros.
31404 * target.def: Move initial macro definitions and comments to
31405 target-hooks-macros.h.
31406 (gcc_targetcm): Move to c-family/c-target.def.
31407 * target.h (targetcm): Move declaration to c-family/c-target.h.
31408 * targhooks.c (default_handle_c_option): Move to
31409 c-family/c-opts.c.
31410 * targhooks.h (default_handle_c_option): Move declaration to
31411 c-family/c-common.h.
31412 * target-hooks-macros.h: New file.
31413 * config.gcc (target_has_targetcm): Define and use to add to
31414 c_target_objs and cxx_target_objs.
31415 * config/default-c.c: New file.
31416 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
31417 of target.h and target-def.h.
31418 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
31419 (darwin_objc_construct_string, darwin_cfstring_ref_p,
31420 darwin_check_cfstring_format_arg): Make static.
31421 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
31422 TARGET_STRING_OBJECT_REF_TYPE_P,
31423 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
31424 * config/darwin-protos.h (darwin_objc_construct_string,
31425 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
31426 declare.
31427 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
31428 TARGET_STRING_OBJECT_REF_TYPE_P,
31429 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
31430 * config/t-darwin (darwin-c.o): Update dependencies.
31431 * system.h (TARGET_HAS_TARGETCM): Poison.
31432 * Makefile.in (TARGET_H): Update.
31433 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
31434 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
31435 (default-c.o): New target.
31436 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
31437 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
31438 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
31439 c-target.def.
31440 (build/genhooks.o): Update dependencies.
31441
31442 2011-04-06 Richard Guenther <rguenther@suse.de>
31443
31444 * ipa-inline.c (enum inlining_mode): Remove.
31445 (cgraph_flatten): Use some other token.
31446 (cgraph_edge_early_inlinable_p): New function, split out from ...
31447 (cgraph_perform_always_inlining): New function, split out from ...
31448 (cgraph_decide_inlining_incrementally): ... here.
31449 (cgraph_mark_inline_edge): Adjust.
31450 (cgraph_early_inlining): Re-structure.
31451 (pass_early_inline): Require SSA form.
31452
31453 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
31454 Julian Brown <julian@codesourcery.com>
31455 Mark Shinwell <shinwell@codesourcery.com>
31456
31457 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
31458 LO_REGS only for Thumb-1.
31459 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
31460 be used in short instructions when optimising for size on Thumb-2.
31461
31462 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
31463
31464 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
31465 associated with user returns to be preserved.
31466
31467 2011-04-06 Tristan Gingold <gingold@adacore.com>
31468
31469 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
31470 symbol_queue_size, DBXOUT_DECR_NESTING,
31471 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
31472 if XCOFF_DEBUGGING_INFO.
31473
31474 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
31475
31476 * config/i386/i386.md (attribute isa): New.
31477 (attribute enabled): New.
31478 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
31479 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
31480 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
31481 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
31482 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
31483 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
31484 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
31485 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
31486
31487 * config/i386/sse.md (VF): New mode iterator.
31488 (VF1): Ditto.
31489 (VF2): Ditto.
31490 (VF_128): Ditto.
31491 (SSEMODEF4): Remove.
31492 (attribute sse): Handle V8SF and V4DF modes.
31493 (<absneg:code><mode>2): Use VF mode iterator.
31494 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
31495 mode iterator.
31496 (<plusminus_insn><mode>3): Use VF mode iterator.
31497 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
31498 Use VF mode iterator.
31499 (<sse>_vm<plusminus_insn><mode>3): Merge with
31500 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
31501 (mul<mode>3): Use VF mode iterator.
31502 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
31503 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
31504 mode iterator.
31505 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
31506 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
31507 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
31508 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
31509 mode iterator.
31510 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
31511 Use VF1 mode iterator.
31512 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
31513 (sqrt<VF2:mode>2): New expander.
31514 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
31515 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
31516 and sqrtv2df2. Use VF mode iterator.
31517 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
31518 mode iterator.
31519 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
31520 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
31521 Use VF1 mode iterator.
31522 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
31523 (<smaxmin:code><mode>3): Use VF mode iterator.
31524 (*<smaxmin:code><mode>3_finite): Merge with
31525 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
31526 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
31527 (<sse>_vm<smaxmin:code><mode>2): Merge with
31528 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
31529 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
31530 mode iterator.
31531 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
31532 mode iterator.
31533 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
31534 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
31535 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
31536 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
31537 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
31538 VF mode iterator.
31539 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
31540 Use VF_128 mode iterator.
31541 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
31542 mode iterator.
31543 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
31544 VF_128 mode iterator.
31545 (vcond<mode>): Use VF mode iterator.
31546 * config/i386/predicates.md (sse_comparison_operator): Merge with
31547 avx_comparison_float_operator. Do not declare as special_predicate.
31548 * config/i386/i386.c (struct builtin_description): Update for renamed
31549 compare patterns.
31550 (ix86_expand_args_builtin): Ditto.
31551 (ix86_expand_sse_compare_mask): Ditto.
31552
31553 2011-04-06 Richard Guenther <rguenther@suse.de>
31554
31555 * tree-inline.c (estimate_num_insns): For calls simply account
31556 for all passed arguments and a used return value.
31557
31558 2011-04-06 Richard Guenther <rguenther@suse.de>
31559
31560 PR tree-optimization/47663
31561 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
31562 call_stmt_time fields.
31563 (cgraph_edge_inlinable_p): Declare.
31564 (cgraph_edge_recursive_p): New inline function.
31565 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
31566 (cgraph_clone_edge): Copy it.
31567 * ipa-inline.c (cgraph_estimate_edge_time): New function.
31568 Account for call stmt time.
31569 (cgraph_estimate_time_after_inlining): Take edge argument.
31570 (cgraph_estimate_edge_growth): Account call stmt size.
31571 (cgraph_estimate_size_after_inlining): Take edge argument.
31572 (cgraph_mark_inline_edge): Adjust.
31573 (cgraph_check_inline_limits): Likewise.
31574 (cgraph_recursive_inlining_p): Remove.
31575 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
31576 (cgraph_decide_recursive_inlining): Take edge argument and
31577 adjust.
31578 (cgraph_decide_inlining_of_small_functions): Do not avoid
31579 diags for recursive inlining here.
31580 (cgraph_flatten): Adjust.
31581 (cgraph_decide_inlining_incrementally): Likewise.
31582 (estimate_function_body_sizes): Remove call cost handling.
31583 (compute_inline_parameters): Initialize caller edge call costs.
31584 (cgraph_estimate_edge_growth): New function.
31585 (cgraph_estimate_growth): Use it.
31586 (cgraph_edge_badness): Likewise.
31587 (cgraph_check_inline_limits): Take an edge argument.
31588 (cgraph_decide_inlining_of_small_functions): Adjust.
31589 (cgraph_decide_inlining): Likewise.
31590 * tree-inline.c (estimate_num_insns): Only account for call
31591 return value if it is used.
31592 (expand_call_inline): Avoid diagnostics on recursive inline
31593 functions here.
31594 * lto-cgraph.c (lto_output_edge): Output edge call costs.
31595 (input_edge): Input edge call costs.
31596
31597 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31598
31599 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
31600
31601 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
31602
31603 * doc/invoke.texi (Spec Files): Fix typo.
31604
31605 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
31606
31607 * profile.c (branch_prob): Move declaration of local variable. Remove
31608 obsolete ??? comment. Expand the location explicitly instead of using
31609 the LOCATION_FILE and LOCATION_LINE macros.
31610
31611 2011-04-06 Wei Guozhi <carrot@google.com>
31612
31613 PR target/47855
31614 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
31615 (arm_cond_branch): Likewise.
31616 (arm_cond_branch_reversed): Likewise.
31617 (arm_jump): Likewise.
31618 (push_multi): Likewise.
31619 * config/arm/constraints.md (Py): New constraint.
31620
31621 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31622
31623 PR bootstrap/48471
31624 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
31625 Move these...
31626 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
31627 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
31628 #ifdef DBX_DEBUGGING_INFO.
31629
31630 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
31631
31632 PR bootstrap/48403
31633 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
31634 if old and new states differ.
31635
31636 2011-04-05 Joseph Myers <joseph@codesourcery.com>
31637
31638 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
31639 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
31640 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
31641 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
31642 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
31643 mcfv4e): Use Alias.
31644 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
31645 ColdFire options to -mcpu= options.
31646
31647 2011-04-05 Jeff Law <law@redhat.com>
31648
31649 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
31650 check if BB is a successor of LOOP->header and return
31651 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
31652
31653 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
31654
31655 * cprop.c (struct reg_use): Remove.
31656 (reg_use_table): Make an array of RTX.
31657 (find_used_regs, constprop_register, local_cprop_pass,
31658 bypass_block): Simplify users of reg_use_table.
31659 (cprop_insn): Likewise. Iterate if copy propagation succeeded
31660 on one of the uses found by find_used_regs.
31661
31662 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31663
31664 PR bootstrap/48469
31665 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
31666 declaration.
31667
31668 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31669
31670 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
31671 as an rtx.
31672 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
31673
31674 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
31675
31676 PR middle-end/48441
31677 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
31678
31679 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31680
31681 * combine.c: Include obstack.h.
31682 (struct insn_link): Define.
31683 (uid_log_links): Adjust type.
31684 (FOR_EACH_LOG_LINK): New macro.
31685 (insn_link_obstack): Declare.
31686 (alloc_insn_link): Define.
31687 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
31688 type of link variables.
31689 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
31690 (try_combine, record_promoted_values, distribute_notes): Likewise.
31691 (distribute_links): Likewise. Tweak prototype.
31692 (clear_log_links): Delete.
31693 (adjust_for_new_dest): Call alloc_insn_link.
31694 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
31695
31696 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31697
31698 * gcse.c (modify_mem_list): Convert to an array of VECs.
31699 (canon_modify_mem_list, compute_transp): Tweak formatting.
31700 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
31701 (load_killed_in_block_p): Likewise.
31702 (record_last_mem_set_info): Likewise.
31703 (clear_modify_mem_tables): Likewise.
31704
31705 2011-04-05 Tom de Vries <tom@codesourcery.com>
31706
31707 PR middle-end/48461
31708 * function.c (emit_use_return_register_into_block): Only define if
31709 HAVE_return.
31710
31711 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
31712
31713 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
31714
31715 2011-04-05 Joseph Myers <joseph@codesourcery.com>
31716
31717 * config/rx/rx-opts.h: New.
31718 * config/rx/rx.c (rx_cpu_type): Remove.
31719 (rx_handle_option): Don't assert that global structures are in
31720 use. Access variables via opts pointer. Defer most handling of
31721 OPT_mint_register_. Use error_at.
31722 (rx_option_override): Handle deferred OPT_mint_register_ here.
31723 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
31724 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
31725 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
31726 (rx_cpu_types): New Enum and EnumValue entries.
31727 (mint-register=): Use Defer and use Var accordingly.
31728
31729 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31730
31731 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
31732 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
31733 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
31734 Move these...
31735 (debug_free_queue, debug_nesting, symbol_queue_index):
31736 ...and these...
31737 * dbxout.c: ...to here. Make static.
31738
31739 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31740
31741 * gcse.c (modify_pair): Define. Define a VEC of it.
31742 (canon_modify_mem_list): Convert to an array of VECs.
31743 (free_insn_expr_list_list): Delete.
31744 (clear_modify_mem_tables): Call VEC_free instead.
31745 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
31746 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
31747 (canon_list_insert, compute_transp): Likewise.
31748
31749 2011-04-05 Tom de Vries <tom@codesourcery.com>
31750
31751 PR target/43920
31752 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
31753 for size.
31754
31755 2011-04-05 Tom de Vries <tom@codesourcery.com>
31756
31757 PR target/43920
31758 * function.c (emit_use_return_register_into_block): New function.
31759 (thread_prologue_and_epilogue_insns): Use
31760 emit_use_return_register_into_block.
31761
31762 2011-04-05 Tom de Vries <tom@codesourcery.com>
31763
31764 PR target/43920
31765 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
31766 insn.
31767
31768 2011-04-05 Tom de Vries <tom@codesourcery.com>
31769
31770 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
31771
31772 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
31773
31774 * config/arm/arm.md (define_constants for unspec): Replace with
31775 define_c_enum.
31776 (define_constants for unspecv): Replace with define_c_enum.
31777 * config/arm/neon.md (define_constants for unspec): Replace with
31778 define_c_enum.
31779
31780 2011-04-04 Richard Henderson <rth@redhat.com>
31781
31782 PR bootstrap/48400
31783 * dwarf2out.c (output_line_info): Always emit line info from
31784 at least one section.
31785 (dwarf2out_init): Create text_section_line_info here ...
31786 (set_cur_line_info_table): ... not here.
31787
31788 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
31789
31790 PR target/48380
31791 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
31792 not called.
31793
31794 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
31795
31796 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
31797
31798 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
31799 (expr_equiv_p): Remove.
31800 (insert_set_in_table): Look at <dest, src> pair instead of expr.
31801 (hash_scan_set): Update call to insert_set_in_table.
31802 (dump_hash_table): Dump <dest, src> pair.
31803 (lookup_set): Simplify. Lookup <dest, src> pair.
31804 (compute_transp): Remove, fold heavily simplified code into...
31805 (compute_local_properties): ...here. Expect COMP and TRANSP
31806 unconditionally.
31807 (find_avail_set): Take set directly from struct expr.
31808 (find_bypass-set): Likewise.
31809 (bypass_block): Likewise.
31810 (cprop_insn): Likewise. Remove redundant INSN_P test.
31811
31812 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
31813 checks on form of COND from find_implicit_sets to here.
31814 (find_implicit_sets): Cleanup control flow. Split critical edges
31815 if it exposes implicit sets. Allocate/resize implicit_sets as
31816 necessary.
31817 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
31818 changed something. Run df_analyze after find_implicit_sets if any
31819 edges were split. Do not allocate implicit_sets here.
31820
31821 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
31822 (gcse_obstack): Renamed to cprop_obstack.
31823 (GNEW, GNEWVEC, GNEWVAR): Remove.
31824 (gmalloc): Remove.
31825 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
31826 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
31827 (gcse_alloc): Likewise, and rename to cprop_alloc.
31828 (alloc_gcse_men, free_gcse_mem): Remove.
31829 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
31830 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
31831 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
31832
31833 * cprop.c (oprs_not_set_p): Remove.
31834 (mark_set, mark_clobber): Remove.
31835 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
31836 (reg_not_set_p): New function.
31837 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
31838 (cprop_insn): Likewise.
31839 (cprop_jump): Use FOR_EACH_EDGE.
31840
31841 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
31842
31843 PR bootstrap/48403
31844 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
31845 (rank_for_schedule): Use scheduled_insns vector instead of
31846 last_scheduled_insn.
31847 (ok_for_early_queue_removal): Likewise.
31848 (queue_to_ready): Search forward in nonscheduled_insns_begin if
31849 we have a dbg_cnt.
31850 (choose_ready): Likewise.
31851 (commit_schedule): Use VEC_iterate.
31852 (schedule_block): Initialize nonscheduled_insns_begin. If we have
31853 a dbg_cnt, use it and ensure the first insn is in the ready list.
31854 (haifa_sched_init): Allocate scheduled_insns.
31855 (sched_extend_ready_list): Don't allocate it; reserve space.
31856 (haifa_sched_finish): Free it.
31857
31858 2011-04-04 Joseph Myers <joseph@codesourcery.com>
31859
31860 * optc-gen.awk: Always remove type from Variable entry before
31861 recording in var_seen.
31862
31863 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
31864
31865 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
31866 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
31867 call to tidy_fallthru_edges.
31868
31869 2011-04-04 Joseph Myers <joseph@codesourcery.com>
31870
31871 * doc/options.texi (ToLower): Document.
31872 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
31873 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
31874 * opts.h (cl_option): Add cl_tolower field.
31875 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
31876 arguments with lowercase strings.
31877 * config/rx/rx.opt (mcpu=): Add ToLower.
31878 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
31879 argument.
31880
31881 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
31882
31883 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
31884
31885 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
31886
31887 * config/vax/vax.c: Include reload.h.
31888
31889 2011-04-04 Anatoly Sokolov <aesok@post.ru>
31890
31891 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
31892 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
31893 (sparc_preferred_reload_class): New function.
31894
31895 2011-04-04 Jakub Jelinek <jakub@redhat.com>
31896
31897 PR debug/48401
31898 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
31899 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
31900
31901 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
31902
31903 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
31904 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
31905
31906 2011-04-03 Anatoly Sokolov <aesok@post.ru>
31907
31908 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
31909 (ASM_OUTPUT_ALIGNED_BSS): Define.
31910
31911 2011-04-03 Michael Matz <matz@suse.de>
31912
31913 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
31914 and next_slot members.
31915 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
31916 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
31917 (lto_streamer_cache_append): Declare.
31918 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
31919 unsigned index, remove offset parameter, ensure that we append
31920 or update existing entries.
31921 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
31922 parameter, update next_slot for append.
31923 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
31924 parameter.
31925 (lto_streamer_cache_insert_at): Likewise.
31926 (lto_streamer_cache_append): New function.
31927 (lto_streamer_cache_lookup): Use unsigned index.
31928 (lto_streamer_cache_get): Likewise.
31929 (lto_record_common_node): Don't test tree_node_can_be_shared.
31930 (preload_common_node): Adjust call to lto_streamer_cache_insert.
31931 (lto_streamer_cache_delete): Don't free offsets member.
31932 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
31933 (lto_output_string_with_length): Use lto_output_data_stream.
31934 (lto_output_tree_header): Remove ix parameter, don't write it.
31935 (lto_output_builtin_tree): Likewise.
31936 (lto_write_tree): Adjust callers to above, don't track and write
31937 offset, write unsigned index.
31938 (output_unreferenced_globals): Don't emit all global vars.
31939 (write_global_references): Use unsigned indices.
31940 (lto_output_decl_state_refs): Likewise.
31941 (write_symbol): Likewise.
31942 * lto-streamer-in.c (lto_input_chain): Move earlier.
31943 (input_function): Use unsigned index.
31944 (input_alias_pairs): Don't read and then ignore all global vars.
31945 (lto_materialize_tree): Remove ix_p parameter, don't read index,
31946 don't pass it back, use lto_streamer_cache_append.
31947 (lto_register_var_decl_in_symtab): Use unsigned index.
31948 (lto_register_function_decl_in_symtab): Likewise.
31949 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
31950 index.
31951 (lto_get_builtin_tree): Don't read index, use
31952 lto_streamer_cache_append.
31953 (lto_read_tree): Adjust call to lto_materialize_tree.
31954
31955 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
31956 don't use function calls in arguments to MIN.
31957
31958 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
31959 twice.
31960
31961 * gimple.c (gimple_type_leader_entry): Mark deletable.
31962
31963 2011-04-03 Alan Modra <amodra@gmail.com>
31964
31965 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
31966
31967 2011-04-03 Michael Matz <matz@suse.de>
31968
31969 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
31970 an integer.
31971 * tree.h (tree_decl_non_common.vindex): Adjust comment.
31972
31973 2011-04-03 Michael Matz <matz@suse.de>
31974
31975 * cgraphbuild.c (record_reference): Canonicalize constructor values.
31976 * gimple-fold.c (canonicalize_constructor_val): Accept being called
31977 without function context.
31978 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
31979 current_function_decl and cfun.
31980
31981 2011-04-03 Michael Matz <matz@suse.de>
31982
31983 * tree.c (decl_init_priority_insert): Don't create entry for
31984 default priority.
31985 (decl_fini_priority_insert): Ditto.
31986 (fields_compatible_p, find_compatible_field): Remove.
31987 * tree.h (fields_compatible_p, find_compatible_field): Remove.
31988 * gimple.c (gimple_compare_field_offset): Adjust block comment.
31989
31990 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
31991
31992 * combine.c (try_combine): Remove useless local variable.
31993
31994 2011-04-03 Richard Guenther <rguenther@suse.de>
31995 Ira Rosen <ira.rosen@linaro.org>
31996
31997 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
31998 non-variable offsets and compare the remaining bases of the two
31999 accesses instead of looking for exact same data-ref.
32000
32001 2011-04-02 Kai Tietz <ktietz@redhat.com>
32002
32003 PR target/48416
32004 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
32005
32006 * i386.c (ix86_is_msabi_thiscall): New helper function.
32007 (ix86_is_type_thiscall): New helper function.
32008 (ix86_comp_type_attributes): Handle thiscall for method-functions
32009 special.
32010 (init_cumulative_args): Likewise.
32011 (find_drap_reg): Likewise.
32012 (ix86_static_chain): Likewise.
32013 (x86_this_parameter): Likewise.
32014 (x86_output_mi_thunk): Likewise.
32015
32016 2011-04-01 Olivier Hainque <hainque@adacore.com>
32017 Nicolas Setton <setton@adacore.com>
32018 Eric Botcazou <ebotcazou@adacore.com>
32019
32020 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
32021 (add_gnat_descriptive_type_attribute): New function.
32022 (gen_array_type_die): Call it.
32023 (gen_enumeration_type_die): Likewise.
32024 (gen_struct_or_union_type_die): Likewise.
32025 (modified_type_die): Likewise.
32026 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
32027 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
32028 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
32029
32030 2011-04-01 Jakub Jelinek <jakub@redhat.com>
32031
32032 PR bootstrap/48148
32033 * dwarf2out.c (resolve_addr): Don't call force_decl_die
32034 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
32035
32036 Revert:
32037 2011-03-17 Richard Guenther <rguenther@suse.de>
32038
32039 PR bootstrap/48148
32040 * lto-cgraph.c (input_overwrite_node): Clear the abstract
32041 origin for decls in other ltrans units.
32042 (input_varpool_node): Likewise.
32043
32044 2011-04-01 Jakub Jelinek <jakub@redhat.com>
32045
32046 PR middle-end/48335
32047 * expr.c (expand_assignment): Handle all possibilities
32048 if TO_RTX is CONCAT.
32049 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
32050 (store_split_bit_field): If SUBREG_REG (op0) or
32051 op0 itself has smaller mode than word, return it
32052 for offset 0 and const0_rtx for out-of-bounds stores.
32053 If word is const0_rtx, skip it.
32054
32055 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
32056
32057 * config/h8300/h8300.c (print_operand_address): Rename to...
32058 (h8300_print_operand_address): ...this. Make static. Adjust comments.
32059 Call h8300_print_operand and h8300_print_operand_address instead of
32060 print_operand and print_operand_address. Declare.
32061 (print_operand): Renake to...
32062 (h8300_print_operand): ...this. Make static. Adjust comments.
32063 Call h8300_print_operand instead of print_operand. Declare.
32064 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
32065 (h8300_register_move_cost): Likewise.
32066 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
32067 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
32068 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
32069 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
32070 * config/h8300/h8300-protos.h (print_operand): Delete.
32071 (print_operand_address): Delete.
32072
32073 2011-04-01 Richard Henderson <rth@redhat.com>
32074
32075 PR 48400
32076 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
32077 in strict mode before dwarf4. Re-order tests to early out
32078 before switching sections.
32079
32080 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
32081
32082 * config/h8300/constraints.md: New file.
32083 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
32084 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
32085 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
32086 * config/h8300/predicates.md (bit_operand): Likewise.
32087 (incdec_operand): Use satisfies_constraint_M and
32088 satisfies_constraint_O. Don't use C code block.
32089 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
32090 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
32091 (compute_mov_length): Use satisfies_constraint_G.
32092 (fix_bit_operand): Use satisfies_constraint_U.
32093 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
32094 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
32095 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
32096 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
32097 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
32098 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
32099 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32100 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
32101 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
32102 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
32103 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
32104 (EXTRA_MEMORY_CONSTRAINT): Delete.
32105
32106 2011-04-01 Andrew Pinski <pinskia@gmail.com>
32107 Michael Meissner <meissner@linux.vnet.ibm.com>
32108
32109 PR target/48262
32110 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
32111 operands, as per the specifications.
32112
32113 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
32114 (vec_extract_evenv4sf): Ditto.
32115 (vec_extract_evenv8hi): Ditto.
32116 (vec_extract_evenv16qi): Ditto.
32117 (vec_extract_oddv4si): Ditto.
32118
32119 2011-03-31 Mark Wielaard <mjw@redhat.com>
32120
32121 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
32122 high_pc attribute if the CU has no associated code. Only output
32123 DW_AT_entry_pc for CU if not generating strict dwarf and
32124 dwarf_version < 4.
32125
32126 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
32127
32128 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
32129 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
32130 out of ...
32131 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
32132 * final.c (final_start_function): Call the new function rather
32133 than using a NULL argument for dwarf2out_frame_debug.
32134
32135 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
32136 that contains the prologue.
32137
32138 * haifa-sched.c (queue_insn): New arg REASON. All callers
32139 changed. Print it in debugging output.
32140
32141 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
32142
32143 * sched-ebb.c (begin_schedule_ready): Remove second argument.
32144 Split most of the code into...
32145 (begin_move_insn): ... here. New function.
32146 (ebb_sched_info): Add a pointer to it.
32147 * haifa-sched.c (scheduled_insns): New static variable.
32148 (sched_extend_ready_list): Allocate it.
32149 (schedule_block): Use it to record the order of scheduled insns.
32150 Perform RTL changes to move insns only after all scheduling
32151 decisions have been made.
32152 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
32153 begin_move_insn field.
32154 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
32155 * sched-int.h (struct haifa_sched_info): Remove second argument
32156 from begin_schedule_ready hook. Add new member begin_move_insn.
32157 * sched-rgn.c (begin_schedule_ready): Remove second argument.
32158 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
32159
32160 * haifa-sched.c (prune_ready_list): New function, broken out of
32161 schedule_block.
32162 (schedule_block): Use it.
32163
32164 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32165
32166 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
32167
32168 2011-04-01 Kai Tietz <ktietz@redhat.com>
32169
32170 * config.gcc (*-*-mingw*): Allow as option the
32171 posix threading model.
32172 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
32173 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
32174 definition.
32175 (CPP_SPEC): Add pthread/no-pthread handling.
32176 (LIB_SPEC): Likewise.
32177 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
32178 (LIB_SPEC): Likewise.
32179 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
32180 flag to pass -pthread option for shared libgcc build.
32181 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
32182 for shared libgcc build.
32183 * config/i386/t-mingw-pthread: New file.
32184 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
32185 New define to enable use of library pthread by default.
32186 * config/i386/mingw.opt (pthread): New driver option.
32187 (no-pthread): New driver option.
32188 * config/i386/cygming.opt: Make sure trailing empty line is retained.
32189 * config/i386/mingw-w64.opt: Likewise.
32190
32191 2011-04-01 Gary Funck <gary@intrepid.com>
32192
32193 * c-decl.c (grokdeclarator): Fix formatting.
32194
32195 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32196
32197 * expr.c (emit_block_move_via_movmem): Use n_generator_args
32198 instead of n_operands.
32199 (set_storage_via_setmem): Likewise.
32200 * optabs.c (maybe_gen_insn): Likewise.
32201 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
32202 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
32203 (mips_expand_builtin_direct): Likewise.
32204 * config/spu/spu.c (expand_builtin_args): Likewise.
32205
32206 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32207
32208 * recog.h (insn_data_d): Add n_generator_args.
32209 * genoutput.c (data): Likewise.
32210 (output_insn_data): Print it.
32211 (max_opno, num_dups): Delete.
32212 (scan_operands): Just fill in "d->operand[...]".
32213 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
32214
32215 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32216
32217 * gensupport.h (pattern_stats): New structure.
32218 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
32219 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
32220 (max_operand_1, max_operand_vec): Delete.
32221 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
32222
32223 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
32224
32225 * emit-rtl.c (emit_pattern_after_setloc): New function.
32226 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
32227 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
32228 (emit_pattern_after): New function.
32229 (emit_insn_after, emit_jump_insn_after): Call it.
32230 (emit_call_insn_after, emit_debug_insn_after): Likewise.
32231 (emit_pattern_before_setloc): New function.
32232 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
32233 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
32234 Likewise.
32235 (emit_pattern_before): New function.
32236 (emit_insn_before, emit_jump_insn_before): Call it.
32237 (emit_call_insn_before, emit_debug_insn_before): Likewise.
32238
32239 2011-03-31 Richard Henderson <rth@redhat.com>
32240
32241 * dwarf2out.c (dw_separate_line_info_ref): Remove.
32242 (dw_separate_line_info_entry): Remove.
32243 (enum dw_line_info_opcode): New.
32244 (dw_line_info_entry): Use it.
32245 (dw_line_info_table, dw_line_info_table_p): New.
32246 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
32247 (line_info_table, line_info_label_num): Remove.
32248 (line_info_table_in_use): Remove.
32249 (separate_line_info_table): Remove.
32250 (separate_line_info_table_allocated): Remove.
32251 (separate_line_info_table_in_use): Remove.
32252 (LINE_INFO_TABLE_INCREMENT): Remove.
32253 (line_info_label_num): New.
32254 (cur_line_info_table): New.
32255 (text_section_line_info, cold_text_section_line_info): New.
32256 (separate_line_info): New.
32257 (SEPARATE_LINE_CODE_LABEL): Remove.
32258 (print_dwarf_line_table): Remove.
32259 (debug_dwarf): Don't dump it.
32260 (output_one_line_info_table): New.
32261 (output_line_info): Use it.
32262 (new_line_info_table): New.
32263 (set_cur_line_info_table): New.
32264 (dwarf2out_switch_text_section): Use it.
32265 (dwarf2out_begin_function): Likewise.
32266 (push_dw_line_info_entry): New.
32267 (dwarf2out_source_line): Rewrite for new line info tables.
32268 (dwarf2out_init): Remove dead initailizations.
32269
32270 2011-03-31 Joseph Myers <joseph@codesourcery.com>
32271
32272 * opts.h (cl_option): Add comments to fields. Add bit-fields for
32273 various flags.
32274 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
32275 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
32276 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
32277 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
32278 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
32279 * opt-functions.awk (flag_init, switch_bit_fields): New.
32280 (switch_flags): Don't handle flags moved to bit-fields. Don't
32281 generate CL_MISSING_OK or CL_SAVE.
32282 * optc-gen.awk: Update to generate bit-field output as well as
32283 flags field.
32284 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
32285 bit-field instead of CL_REJECT_DRIVER flag.
32286 * opts-common.c (generate_canonical_option,
32287 decode_cmdline_option): Use bit-fields instead of CL_* flags.
32288 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
32289 instead of CL_REJECT_NEGATIVE flag.
32290 * toplev.c (print_switch_values): Use cl_report bit-field instead
32291 of CL_REPORT flag.
32292
32293 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
32294
32295 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
32296 a zero minimum index only if it is redundant.
32297
32298 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
32299
32300 PR rtl-optimization/48381
32301 * ira-color.c (assign_hard_reg): Use hard reg set intersection
32302 instead of ira_class_hard_reg_index for calculating conflicting
32303 hard registers.
32304
32305 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
32306
32307 * cprop.c: Clean up hash table building.
32308 (reg_avail_info): Remove.
32309 (oprs_available_p): Remove.
32310 (record_last_reg_set_info): Remove.
32311 (record_last_set_info): Remove.
32312 (reg_available_p): New function.
32313 (gcse_constant_p): Do not treat unfolded conditions as constants.
32314 (make_set_regs_unavailable): New function.
32315 (hash_scan_set): Simplify with new reg_available_p.
32316 (compute_hash_table_work): Traverse insns stream only once.
32317 Do not compute reg_avail_info. Traverse insns in reverse order.
32318 Record implicit sets after recording explicit sets from the block.
32319
32320 2011-03-31 Michael Matz <matz@suse.de>
32321
32322 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
32323
32324 2011-03-31 Anatoly Sokolov <aesok@post.ru>
32325
32326 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
32327 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
32328 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32329 (h8300_mode_dependent_address_p): New function.
32330 (h8300_get_index): Make static.
32331
32332 2011-03-31 Jeff Law <law@redhat.com>
32333
32334 * reload1.c (elimination_effects): Fix typo in recent change.
32335
32336 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
32337 typo potentially leading to null pointer dereference.
32338
32339 * caller-save.c (new_saved_hard_reg): Eliminate return value.
32340 (setup_save_areas): Corresponding changes to avoid useless
32341 assignments.
32342
32343 * jump.c (reversed_comparison_code_parts): Avoid successive return
32344 statements when REVERSE_CONDITION is defined.
32345
32346 * expr.c (expand_assignment): Avoid useless assignments.
32347 (expand_expr_real_1): Likewise.
32348 (expand_expr_real_2): Avoid useless statements.
32349
32350 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
32351
32352 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
32353
32354 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
32355 statements.
32356
32357 * stmt.c (expand_expr_stmt): Avoid useless assignment.
32358
32359 2011-03-31 Joseph Myers <joseph@codesourcery.com>
32360
32361 PR target/47109
32362 * doc/tm.texi.in (TARGET_VERSION): Remove.
32363 * doc/tm.texi: Regenerate.
32364 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
32365 * collect2.c (main): Don't use TARGET_VERSION.
32366 * mips-tdump.c (main): Don't use TARGET_VERSION.
32367 * mips-tfile.c (main): Don't use TARGET_VERSION.
32368 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
32369 * config/rs6000/vxworksae.h: Remove.
32370 * config/alpha/alpha.h (TARGET_VERSION): Remove.
32371 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
32372 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
32373 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
32374 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
32375 * config/arm/arm.h (TARGET_VERSION): Remove.
32376 * config/arm/coff.h (TARGET_VERSION): Remove.
32377 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
32378 * config/arm/elf.h (TARGET_VERSION): Remove.
32379 * config/arm/freebsd.h (TARGET_VERSION): Remove.
32380 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
32381 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
32382 * config/arm/pe.h (TARGET_VERSION): Remove.
32383 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
32384 * config/arm/semi.h (TARGET_VERSION): Remove.
32385 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
32386 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
32387 * config/arm/vxworks.h (TARGET_VERSION): Remove.
32388 * config/avr/avr.h (TARGET_VERSION): Remove.
32389 * config/bfin/bfin.h (TARGET_VERSION): Remove.
32390 * config/fr30/fr30.h (TARGET_VERSION): Remove.
32391 * config/frv/frv.h (TARGET_VERSION): Remove.
32392 * config/h8300/h8300.h (TARGET_VERSION): Remove.
32393 * config/i386/cygwin.h (TARGET_VERSION): Remove.
32394 * config/i386/darwin.h (TARGET_VERSION): Remove.
32395 * config/i386/darwin64.h (TARGET_VERSION): Remove.
32396 * config/i386/djgpp.h (TARGET_VERSION): Remove.
32397 * config/i386/freebsd.h (TARGET_VERSION): Remove.
32398 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
32399 * config/i386/gnu.h (TARGET_VERSION): Remove.
32400 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
32401 * config/i386/i386elf.h (TARGET_VERSION): Remove.
32402 * config/i386/linux.h (TARGET_VERSION): Remove.
32403 * config/i386/linux64.h (TARGET_VERSION): Remove.
32404 * config/i386/lynx.h (TARGET_VERSION): Remove.
32405 * config/i386/mingw32.h (TARGET_VERSION): Remove.
32406 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
32407 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
32408 * config/i386/netware.h (TARGET_VERSION): Remove.
32409 * config/i386/nto.h (TARGET_VERSION): Remove.
32410 * config/i386/openbsd.h (TARGET_VERSION): Remove.
32411 * config/i386/vxworks.h (TARGET_VERSION): Remove.
32412 * config/ia64/elf.h (TARGET_VERSION): Remove.
32413 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
32414 * config/ia64/hpux.h (TARGET_VERSION): Remove.
32415 * config/ia64/linux.h (TARGET_VERSION): Remove.
32416 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
32417 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
32418 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
32419 * config/lm32/lm32.h (TARGET_VERSION): Remove.
32420 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
32421 * config/m32c/m32c.h (TARGET_VERSION): Remove.
32422 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
32423 * config/m32r/m32r.h (TARGET_VERSION): Remove.
32424 * config/m68k/linux.h (TARGET_VERSION): Remove.
32425 * config/m68k/m68k.h (TARGET_VERSION): Remove.
32426 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
32427 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
32428 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
32429 * config/mep/mep.h (TARGET_VERSION): Remove.
32430 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
32431 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
32432 * config/mips/iris6.h (MACHINE_TYPE): Remove.
32433 * config/mips/linux.h (TARGET_VERSION): Remove.
32434 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
32435 * config/mips/vxworks.h (TARGET_VERSION): Remove.
32436 * config/mmix/mmix.h (TARGET_VERSION): Remove.
32437 * config/mn10300/linux.h (TARGET_VERSION): Remove.
32438 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
32439 * config/pa/pa.h (TARGET_VERSION): Remove.
32440 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
32441 * config/picochip/picochip.h (TARGET_VERSION): Remove.
32442 * config/rs6000/aix.h (TARGET_VERSION): Remove.
32443 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
32444 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
32445 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
32446 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
32447 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
32448 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
32449 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
32450 * config/rs6000/linux.h (TARGET_VERSION): Remove.
32451 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
32452 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
32453 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
32454 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
32455 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
32456 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
32457 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
32458 * config/s390/linux.h (TARGET_VERSION): Remove.
32459 * config/s390/s390.h (TARGET_VERSION): Remove.
32460 * config/s390/tpf.h (TARGET_VERSION): Remove.
32461 * config/score/score.h (TARGET_VERSION): Remove.
32462 * config/sh/linux.h (TARGET_VERSION): Remove.
32463 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
32464 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
32465 * config/sh/sh.h (TARGET_VERSION): Remove.
32466 * config/sh/sh64.h (TARGET_VERSION): Remove.
32467 * config/sh/superh.h (TARGET_VERSION): Remove.
32468 * config/sh/vxworks.h (TARGET_VERSION): Remove.
32469 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
32470 * config/sparc/linux.h (TARGET_VERSION): Remove.
32471 * config/sparc/linux64.h (TARGET_VERSION): Remove.
32472 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
32473 TARGET_NAME32, TARGET_NAME): Remove.
32474 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
32475 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
32476 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
32477 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
32478 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
32479 * config/spu/spu.h (TARGET_VERSION): Remove.
32480 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
32481 * config/v850/v850.h (TARGET_VERSION): Remove.
32482 * config/vax/linux.h (TARGET_VERSION): Remove.
32483 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
32484 * config/xtensa/elf.h (TARGET_VERSION): Remove.
32485 * config/xtensa/linux.h (TARGET_VERSION): Remove.
32486
32487 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
32488
32489 PR target/48142
32490 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
32491 frame-related from frame-unrelated adjustments to the stack pointer.
32492
32493 2011-03-31 Jakub Jelinek <jakub@redhat.com>
32494
32495 * common.opt (fdebug-types-section): Move earlier.
32496 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
32497
32498 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
32499
32500 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
32501 var.
32502
32503 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
32504
32505 * tree.h (CASE_CHAIN): Define.
32506 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
32507 (gimple_redirect_edge_and_branch): Likewise.
32508
32509 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
32510
32511 PR middle-end/48367
32512 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
32513 calculation.
32514
32515 2011-03-30 Jeff Law <law@redhat.com>
32516
32517 * PR bootstrap/48371
32518 * reload1.c (reload): Fix botch in last change.
32519
32520 * reload.h (struct reload): Fix typo introduced in last change.
32521
32522 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32523
32524 * config/arm/arm.opt (mhard-float, msoft-float): Mark
32525 Undocumented. Remove help text.
32526 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
32527 -mhard-float.
32528
32529 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32530
32531 * doc/options.texi (NegativeAlias): Document.
32532 (Alias): Mention NegativeAlias.
32533 * opt-functions.awk: Handle NegativeAlias.
32534 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
32535 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
32536 * opts.h (CL_NEGATIVE_ALIAS): Define.
32537 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
32538 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
32539 OPT_mspe_.
32540 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
32541 Alias entries.
32542 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
32543 mno-spe and mno-isel instead of mspe=no and -misel=no.
32544
32545 2011-03-29 Mark Wielaard <mjw@redhat.com>
32546
32547 * common.opt (fdebug-types-section): New flag.
32548 * doc/invoke.texi: Document new -fno-debug-types-section flag.
32549 * dwarf2out.c (use_debug_types): New define.
32550 (struct die_struct): Mark die_id with GTY desc use_debug_types.
32551 (print_die): Guard output of type unit signatures using
32552 use_debug_types.
32553 (build_abbrev_table): Replace assert of dwarf_version >= 4
32554 with assert on use_debug_types.
32555 (size_of_die): Likewise.
32556 (unmark_dies): Likewise.
32557 (value_format): Decide AT_ref_external form on use_debug_types.
32558 (output_die): Replace dwarf_version version check guard with
32559 use_debug_types where appropriate.
32560 (modified_type_die): Likewise.
32561 (gen_reference_type_die): Likewise.
32562 (dwarf2out_start_source_file): Likewise.
32563 (dwarf2out_end_source_file): Likewise.
32564 (prune_unused_types_walk_attribs): Likewise.
32565 (dwarf2out_finish): Likewise.
32566
32567 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
32568
32569 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
32570
32571 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32572
32573 PR rtl-optimization/48332
32574 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
32575 mode of input operand N and modeN to its actual mode.
32576
32577 2011-03-30 Jeff Law <law@redhat.com>
32578
32579 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
32580 define accessor macro.
32581 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
32582 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
32583 (reg_equiv_init): Likewise.
32584 (reg_equivs_size): New variable.
32585 (reg_equiv_init_size): Remove.
32586 (allocate_initial_values): Move prototype to here from....
32587 * integrate.h (allocate_initial_values): Remove prototype.
32588 * integrate.c: Include reload.h.
32589 (allocate_initial_values): Corresponding changes.
32590 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
32591 (fix_reg_equiv_init, no_equiv): Corresponding changes.
32592 (update_equiv_regs): Corresponding changes.
32593 (ira): Corresponding changes.
32594 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
32595 (push_secondary_reload): Corresponding changes.
32596 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
32597 (make_memloc, find_reloads_address): Corresponding changes.
32598 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
32599 (find_reloads_address_1): Corresponding changes.
32600 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
32601 (refers_to_regno_for_reload_p): Corresponding changes.
32602 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
32603 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
32604 * reload1.c: Include ggc.h.
32605 (grow_reg_equivs): New function.
32606 (replace_pseudos_in, reload): Corresponding changes.
32607 (calculate_needs_all_insns, alter_regs): Corresponding changes.
32608 (eliminate_regs_1, elimination_effects): Corresponding changes.
32609 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
32610 (delete_output_reload): Likewise.
32611 * caller-save.c (mark_referenced_regs): Corresponding changes.
32612 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
32613 * frv/predicates.md (frv_load_operand): Corresponding changes.
32614 * microblaze/microblaze.c (double_memory_operand): Corresponding
32615 changes.
32616 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
32617 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
32618 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
32619 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
32620 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
32621 changes.
32622 * pa/pa.c (emit_move_sequence): Corresponding changes.
32623 * vax/vax.c (nonindexed_address_p): Corresponding changes.
32624
32625 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32626
32627 PR target/47551
32628 * config/arm/arm.c (coproc_secondary_reload_class): Handle
32629 structure modes. Don't check neon_vector_mem_operand for
32630 vector or structure modes.
32631
32632 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32633 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
32634
32635 PR target/43590
32636 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
32637 operand 1 and reshuffle the operands to match.
32638 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
32639
32640 2011-03-30 Christian Schüler <cschueler@gmx.de>
32641
32642 PR driver/48208
32643 * config/c.opt (F): Added 'Driver' to -F option.
32644
32645 PR driver/48260
32646 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
32647 handler function.
32648 * config/darwin.opt: Added '-arch' option.
32649
32650 2011-03-30 Nick Clifton <nickc@redhat.com>
32651
32652 * config/rx/rx.md: Add peepholes and patterns to combine
32653 extending loads and simple arithmetic instructions.
32654 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
32655 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
32656 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
32657 modes to use pre-decrement and post-increment addressing.
32658 (rx_is_restricted_memory_address): Add range checking of REG+INT
32659 addresses.
32660 (rx_print_operand): Add support for %Q. Fix handling of %Q.
32661 (rx_memory_move_cost): Adjust cost of stores.
32662 (rx_adjust_insn_length): New function.
32663
32664 2011-03-30 Jakub Jelinek <jakub@redhat.com>
32665
32666 PR c/48305
32667 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
32668 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
32669 matching arg00/arg01 types.
32670
32671 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
32672
32673 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
32674 last_location to UNKNOWN_LOCATION.
32675
32676 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
32677
32678 PR target/48349
32679 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
32680 FLOAT_SSE_REGS.
32681
32682 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32683 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32684
32685 PR bootstrap/48337
32686 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
32687 Init(PROCESSOR_V7).
32688 (sparc_cpu): Likewise.
32689 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
32690 PROCESSOR_V7.
32691
32692 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32693
32694 PR target/48336
32695 PR middle-end/48342
32696 PR rtl-optimization/48345
32697 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
32698 hard regs for given mode from profitable regs when doing secondary
32699 allocation.
32700
32701 2011-03-29 Jeff Law <law@redhat.com>
32702
32703 PR bootstrap/48327
32704 * tree-ssa-threadupdate.c (struct redirection_data): Remove
32705 do_not_duplicate field.
32706 (lookup_redirection_data): Corresponding changes.
32707 (create_duplicates): Always create a template block.
32708 (redirect_edges): Remove code which reused the original block
32709 when it was going to become unreachable code.
32710 (thread_block): Don't set do_not_duplicate field.
32711
32712 2011-03-29 Joseph Myers <joseph@codesourcery.com>
32713
32714 * lto-opts.c (register_user_option_p, lto_register_user_option):
32715 Make type argument unsigned.
32716 * lto-streamer.h (lto_register_user_option): Make type argument
32717 unsigned.
32718 * opth-gen.awk: Make CL_* macros unsigned.
32719 * opts-common.c (find_opt): Make lang_mask argument unsigned.
32720 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
32721 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
32722 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
32723 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
32724 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
32725 (find_opt): Make lang_mask argument unsigned.
32726
32727 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32728
32729 PR rtl-optimization/48331
32730 PR rtl-optimization/48334
32731 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
32732 for any used algorithm.
32733
32734 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32735
32736 * ira-conflicts.c (build_object_conflicts): Add unused attribute
32737 to parent_max.
32738
32739 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
32740
32741 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
32742 (alpha_option_override): Don't set alpha_sr_alias_set.
32743 (emit_frame_store_1): Use gen_frame_mem rather than calling
32744 set_mem_alias_set.
32745 (alpha_expand_epilogue): Ditto.
32746
32747 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
32748
32749 PR tree-optimization/48290
32750 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
32751 vectorization, check that relevant phis in the basic block after
32752 the inner loop are really inner loop's exit phis.
32753
32754 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
32755
32756 PR debug/48190
32757 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
32758 (cached_dw_loc_list_def): New structure.
32759 (cached_dw_loc_list): New typedef.
32760 (cached_dw_loc_list_table): New variable.
32761 (cached_dw_loc_list_table_hash): New function.
32762 (cached_dw_loc_list_table_eq): Likewise.
32763 (add_location_or_const_value_attribute): Take a bool cache_p.
32764 Cache the list when the parameter is true.
32765 (gen_formal_parameter_die): Update caller.
32766 (gen_variable_die): Likewise.
32767 (dwarf2out_finish): Likewise.
32768 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
32769 while generating debug info for the decl.
32770 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
32771 (dwarf2out_init): Initialize cached_dw_loc_list_table.
32772 (resolve_addr): Cache the result of resolving a chain of
32773 location lists.
32774
32775 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
32776
32777 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
32778 conflict object hard regset nodes have intersecting hard reg sets.
32779
32780 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
32781 after regstat_init_n_sets_and_refs.
32782
32783 * ira.c: Add more comments at the top.
32784 (setup_stack_reg_pressure_class, setup_pressure_classes):
32785 Add comments how we compute the register pressure classes.
32786 (setup_allocno_and_important_classes): Add more comments.
32787 (setup_class_translate_array, reorder_important_classes)
32788 (setup_reg_class_relations): Add comments.
32789
32790 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
32791 start of the file.
32792
32793 * ira-color.c: Add 2011 to the Copyright line.
32794 (assign_hard_reg): Add more comments.
32795 (improve_allocation): Ditto.
32796
32797 * ira-costs.c: Add 2011 to the Copyright line.
32798 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
32799 comments.
32800 (setup_regno_cost_classes_by_mode): Ditto.
32801
32802 Initial patches from ira-improv branch:
32803
32804 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
32805
32806 * ira-build.c (ira_create_object): Remove initialization of
32807 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
32808 (ira_create_allocno): Remove initialization of
32809 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
32810 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
32811 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
32812 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
32813 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
32814 Initialize ALLOCNO_ADD_DATA.
32815 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
32816 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
32817 ALLOCNO_REG.
32818 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
32819 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
32820
32821 * ira.c (ira_reallocate): Remove.
32822 (setup_pressure_classes): Call
32823 ira_init_register_move_cost_if_necessary. Use
32824 ira_register_move_cost instead of ira_get_register_move_cost.
32825 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
32826 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
32827
32828 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
32829 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
32830 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
32831 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
32832 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
32833 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
32834 Fix formatting.
32835 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
32836 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
32837 (struct allocno_color_data): New.
32838 (allocno_color_data_t): New typedef.
32839 (allocno_color_data): New definition.
32840 (ALLOCNO_COLOR_DATA): New macro.
32841 (struct object_color_data): New.
32842 (object_color_data_t): New typedef.
32843 (object_color_data): New definition.
32844 (OBJECT_COLOR_DATA): New macro.
32845 (update_copy_costs, calculate_allocno_spill_cost): Call
32846 ira_init_register_move_cost_if_necessary. Use
32847 ira_register_move_cost instead of ira_get_register_move_cost.
32848 (move_spill_restore, update_curr_costs): Ditto.
32849 (allocno_spill_priority): Make it inline.
32850 (color_pass): Allocate and free allocno_color_dat and object_color_data.
32851 (struct coalesce_data, coalesce_data_t): New.
32852 (allocno_coalesce_data): New definition.
32853 (ALLOCNO_COALESCE_DATA): New macro.
32854 (merge_allocnos, coalesced_allocno_conflict_p): Use
32855 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
32856 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
32857 (coalesce_allocnos): Ditto.
32858 (setup_coalesced_allocno_costs_and_nums): Ditto.
32859 (collect_spilled_coalesced_allocnos): Ditto.
32860 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
32861 (setup_slot_coalesced_allocno_live_ranges): Ditto.
32862 (coalesce_spill_slots): Ditto.
32863 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
32864 free allocno_coalesce_data.
32865
32866 * ira-conflicts.c: Fix formatting.
32867 (process_regs_for_copy): Call
32868 ira_init_register_move_cost_if_necessary. Use
32869 ira_register_move_cost instead of ira_get_register_move_cost.
32870 (build_object_conflicts): Optimize.
32871
32872 * ira-costs.c (record_reg_classes): Optimize. Call
32873 ira_init_register_move_cost_if_necessary. Use
32874 ira_register_move_cost, ira_may_move_in_cost, and
32875 ira_may_move_out_cost instead of ira_get_register_move_cost and
32876 ira_get_may_move_cost.
32877 (record_address_regs): Ditto.
32878 (scan_one_insn): Optimize.
32879 (find_costs_and_classes): Optimize.
32880 (process_bb_node_for_hard_reg_moves): Call
32881 ira_init_register_move_cost_if_necessary. Use
32882 ira_register_move_cost instead of ira_get_register_move_cost.
32883
32884 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
32885 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
32886 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
32887 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
32888 definitions.
32889 (ira_initiate_emit_data, ira_finish_emit_data)
32890 (create_new_allocno): New functions.
32891 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
32892 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
32893 Use ira_register_move_cost instead of ira_get_register_move_cost.
32894
32895 * ira-int.h: Fix some comments.
32896 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
32897 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
32898 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
32899 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
32900 add_data.
32901 (struct ira_allocno): Make mode and aclass a bitfield. Move other
32902 bitfield after mode. Make hard_regno a short int. Make
32903 hard_regno short. Remove first_coalesced_allocno and
32904 next_coalesced_allocno. Move mem_optimized_dest_p,
32905 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
32906 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
32907 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
32908 temp, colorable_p. Add new member add_data.
32909 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
32910 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
32911 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
32912 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
32913 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
32914 (ALLOCNO_ADD_DATA): New macro.
32915 (ira_emit_data_t): New typedef.
32916 (struct ira_emit_data): New. Move mem_optimized_dest_p,
32917 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
32918 from struct ira_allocno.
32919 (ALLOCNO_EMIT_DATA): New macro.
32920 (ira_allocno_emit_data, allocno_emit_reg): New.
32921 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
32922 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
32923 (OBJECT_ADD_DATA): New macro.
32924 (ira_reallocate): Remove.
32925 (ira_initiate_emit_data, ira_finish_emit_data): New.
32926 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
32927 (ira_init_register_move_cost_if_necessary): New.
32928 (ira_object_conflict_iter_next): Merge into
32929 ira_object_conflict_iter_cond.
32930 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
32931
32932 * ira-live.c (process_single_reg_class_operands): Call
32933 ira_init_register_move_cost_if_necessary. Use
32934 ira_register_move_cost instead of ira_get_register_move_cost.
32935
32936 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
32937
32938 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
32939
32940 * ira-costs.c: Fix formatting.
32941 (cost_classes, cost_classes_num): Remove.
32942 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
32943 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
32944 (cost_classes_del, cost_classes_htab): New.
32945 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
32946 (initiate_regno_cost_classes, setup_cost_classes): New.
32947 (setup_regno_cost_classes_by_aclass): New.
32948 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
32949 (record_reg_classes): Use regno_cost_classes instead of
32950 cost_classes. Move checking opposite operand up.
32951 (record_address_regs): Use regno_cost_classes
32952 instead of cost_classes.
32953 (scan_one_insn): Ditto. Use always general register.
32954 (print_allocno_costs): Use regno_cost_classes instead of
32955 cost_classes.
32956 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
32957 (find_costs_and_classes): Set up cost classes for each registers.
32958 Use also their mode for this. Use regno_cost_classes instead of
32959 cost_classes.
32960 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
32961 cost_classes.
32962 (free_ira_costs, ira_init_costs): Don't use cost_classes.
32963 (ira_costs, ira_set_pseudo_classes): Call
32964 initiate_regno_cost_classes and finish_regno_cost_classes.
32965
32966 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
32967
32968 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
32969
32970 * target.def (ira_cover_classes): Remove.
32971
32972 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
32973
32974 * doc/tm.texi.in: Ditto.
32975
32976 * ira-conflicts.c: Remove mentioning cover classes from the file.
32977 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
32978 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
32979
32980 * targhooks.c (default_ira_cover_classes): Remove.
32981
32982 * targhooks.h (default_ira_cover_classes): Ditto.
32983
32984 * haifa-sched.c: Remove mentioning cover classes from the file.
32985 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
32986 ira_pressure_classes and ira_pressure_classes_num instead of
32987 ira_reg_class_cover_size and ira_reg_class_cover. Use
32988 sched_regno_pressure_class instead of sched_regno_cover_class.
32989 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
32990 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32991
32992 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
32993 classes from the file.
32994 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
32995 (struct object_hard_regs, struct object_hard_regs_node): New.
32996 (struct ira_object): New members profitable_hard_regs,
32997 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
32998 (struct ira_allocno): Rename cover_class to aclass. Rename
32999 cover_class_cost and updated_cover_class_cost to class_cost and
33000 updated_class_cost. Remove splay_removed_p and
33001 left_conflict_size. Add new members colorable_p.
33002 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
33003 (ALLOCNO_COLORABLE_P): New macro.
33004 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
33005 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
33006 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
33007 (OBJECT_...): Rename parameter C to O.
33008 (OBJECT_PROFITABLE_HARD_REGS): New macro.
33009 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
33010 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
33011 (struct target_ira_int): New members x_ira_max_memory_move_cost,
33012 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
33013 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
33014 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
33015 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
33016 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
33017 x_ira_reg_class_subunion.
33018 (ira_max_memory_move_cost, ira_max_register_move_cost)
33019 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
33020 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
33021 (ira_important_class_nums, ira_reg_class_superunion): New macros.
33022 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
33023 (ira_reg_class_union): Rename to ira_reg_class_subunion.
33024 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
33025 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
33026 (ira_tune_allocno_costs_and_cover_classes): Rename to
33027 ira_tune_allocno_costs.
33028 (ira_debug_hard_regs_forest): New.
33029 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
33030 (ira_object_conflict_iter_next): Fix comments.
33031 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
33032 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
33033 cover_class to aclass.
33034 (ira_allocate_and_accumulate_costs): Ditto.
33035 (ira_allocate_and_set_or_copy_costs): Ditto.
33036
33037 * opts.c (decode_options): Remove ira_cover_class check.
33038
33039 * ira-color.c: Remove mentioning cover classes from the file. Use
33040 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
33041 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
33042 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
33043 (splay-tree.h): Remove include.
33044 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
33045 before copy_freq_compare_func.
33046 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
33047 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
33048 New definitions.
33049 (hard_regs_roots, hard_regs_node_vec): Ditto.
33050 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
33051 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
33052 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
33053 (create_new_object_hard_regs_node): Ditto.
33054 (add_new_object_hard_regs_node_to_forest): Ditto.
33055 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
33056 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
33057 Ditto.
33058 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
33059 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
33060 (remove_unused_object_hard_regs_nodes): Ditto.
33061 (enumerate_object_hard_regs_nodes): Ditto.
33062 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
33063 (object_hard_regs_subnode_t): Ditto.
33064 (struct object_hard_regs_subnode): Ditto.
33065 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
33066 (setup_object_hard_regs_subnode_index): Ditto.
33067 (get_object_hard_regs_subnodes_num): Ditto.
33068 (form_object_hard_regs_nodes_forest): Ditto.
33069 (finish_object_hard_regs_nodes_tree): Ditto.
33070 (finish_object_hard_regs_nodes_forest): Ditto.
33071 (allocnos_have_intersected_live_ranges_p): Rename to
33072 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
33073 (pseudos_have_intersected_live_ranges_p): Rename to
33074 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
33075 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
33076 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
33077 (update_copy_costs): Remove assert. Skip cost update if the hard
33078 reg does not belong the class.
33079 (assign_hard_reg): Process only profitable hard regs.
33080 (uncolorable_allocnos_num): Make it scalar.
33081 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
33082 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
33083 and ira_reg_class_max_nregs.
33084 (bucket_allocno_compare_func): Check frequency first.
33085 (sort_bucket): Add compare function as a parameter.
33086 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
33087 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
33088 (push_allocno_to_stack): Rewrite for checking new allocno
33089 colorability.
33090 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
33091 (push_only_colorable): Pass new parameter to sort_bucket.
33092 (push_allocno_to_spill): Remove.
33093 (allocno_spill_priority_compare): Make it inline and rewrite.
33094 (splay_tree_allocate, splay_tree_free): Remove.
33095 (allocno_spill_sort_compare): New function.
33096 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
33097 build and use splay tree. Choose first allocno in uncolorable
33098 allocno bucket to spill. Remove setting spill cost.
33099 (all_conflicting_hard_regs): Remove.
33100 (setup_allocno_available_regs_num): Check only profitable hard
33101 regs. Print info about hard regs nodes.
33102 (setup_allocno_left_conflicts_size): Remove.
33103 (put_allocno_into_bucket): Don't call
33104 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
33105 (improve_allocation): New.
33106 (color_allocnos): Call setup_profitable_hard_regs,
33107 form_object_hard_regs_nodes_forest, improve_allocation,
33108 finish_object_hard_regs_nodes_forest. Setup spill cost.
33109 (print_loop_title): Use pressure classes.
33110 (color_allocnso): Ditto.
33111 (do_coloring): Remove allocation and freeing splay_tree_node_pool
33112 and allocnos_for_spilling.
33113 (ira_sort_regnos_for_alter_reg): Don't setup members
33114 {first,next}_coalesced_allocno.
33115 (color): Remove allocating and freeing removed_splay_allocno_vec.
33116 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
33117 prohibited_class_mode_regs.
33118
33119 * ira-lives.c: Remove mentioning cover classes from the file. Fix
33120 formatting.
33121 (update_allocno_pressure_excess_length): Use pressure classes.
33122 (inc_register_pressure, dec_register_pressure): Check for pressure
33123 class.
33124 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
33125 pressure class. Use ira_reg_class_nregs instead of
33126 ira_reg_class_max_nregs.
33127 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
33128 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
33129 (single_reg_class): Use ira_reg_class_nregs instead of
33130 ira_reg_class_max_nregs.
33131 (process_bb_node_lives): Use pressure classes.
33132
33133 * ira-emit.c: Remove mentioning cover classes from the file. Use
33134 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
33135 (change_loop): Use pressure classes.
33136 (modify_move_list): Call ira_set_allocno_class instead of
33137 ira_set_allocno_cover_class.
33138
33139 * ira-build.c: Remove mentioning cover classes from the file. Use
33140 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
33141 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
33142 ALLOCNO_UPDATED_CLASS_COST instead of
33143 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
33144 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
33145 (ira_create_allocno): Remove initialization of
33146 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
33147 ALLOCNO_COLORABLE_P.
33148 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
33149 Update conflict regs for the objects.
33150 (create_cap_allocno): Remove assert. Don't propagate
33151 ALLOCNO_AVAILABLE_REGS_NUM.
33152 (ira_free_allocno_costs): New function.
33153 (finish_allocno): Change a part of code into call of
33154 ira_free_allocno_costs.
33155 (low_pressure_loop_node_p): Use pressure classes.
33156 (object_range_compare_func): Don't compare classes.
33157 (setup_min_max_conflict_allocno_ids): Ditto.
33158
33159 * loop-invariant.c: Remove mentioning cover classes from the file.
33160 Use ira_pressure_classes and ira_pressure_classes_num instead of
33161 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
33162 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
33163 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
33164 Use reg_allocno_class instead of reg_cover_class.
33165 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
33166 STACK_REG_COVER_CLASS.
33167 (get_regno_cover_class): Rename to get_regno_pressure_class.
33168 (move_loop_invariants): Initialize and finalize regstat.
33169
33170 * ira.c: Remove mentioning cover classes from the file. Add
33171 comments about coloring without cover classes. Use ALLOCNO_CLASS
33172 instead of ALLOCNO_COVER_CLASS. Fix formatting.
33173 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
33174 setup_class_subset_and_memory_move_costs.
33175 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
33176 (setup_cover_and_important_classes): Rename to
33177 setup_allocno_and_important_classes.
33178 (setup_class_translate_array): New.
33179 (setup_class_translate): Call it for allocno and pressure classes.
33180 (cover_class_order): Rename to allocno_class_order.
33181 (comp_reg_classes_func): Use ira_allocno_class_translate instead
33182 of ira_class_translate.
33183 (reorder_important_classes): Set up ira_important_class_nums.
33184 (setup_reg_class_relations): Set up ira_reg_class_superunion.
33185 (print_class_cover): Rename to print_classes. Add parameter.
33186 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
33187 Print pressure classes too.
33188 (find_reg_class_closure): Rename to find_reg_classes. Don't call
33189 setup_reg_subclasses.
33190 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
33191 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
33192 (setup_prohibited_class_mode_regs): Use
33193 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
33194 (clarify_prohibited_class_mode_regs): New function.
33195 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
33196 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
33197 (ira_init_once): Initialize them.
33198 (free_register_move_costs): Process them.
33199 (ira_init): Move calls of find_reg_classes and
33200 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
33201 Call clarify_prohibited_class_mode_regs.
33202 (ira_no_alloc_reg): Remove.
33203 (too_high_register_pressure_p): Use pressure classes.
33204
33205 * sched-deps.c: Remove mentioning cover classes from the file.
33206 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
33207 ira_pressure_classes and ira_pressure_classes_num instead of
33208 ira_reg_class_cover_size and ira_reg_class_cover.
33209 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
33210 sched_regno_pressure_class instead of sched_regno_cover_class.
33211 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
33212 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
33213
33214 * ira.h: Add 2010 to Copyright.
33215 (ira_no_alloc_reg): Remove external.
33216 (struct target_ira): Rename x_ira_hard_regno_cover_class,
33217 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
33218 x_ira_class_translate to x_ira_hard_regno_allocno_class,
33219 x_ira_allocno_classes_num, x_ira_allocno_classes, and
33220 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
33221 x_ira_pressure_classes, x_ira_pressure_class_translate, and
33222 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
33223 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
33224 x_ira_no_alloc_regs.
33225 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
33226 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
33227 ira_allocno_classes_num and ira_allocno_classes.
33228 (ira_class_translate): Rename to ira_allocno_class_translate.
33229 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
33230 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
33231 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
33232 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
33233 (ira_no_alloc_regs): New.
33234
33235 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
33236 classes from the file. Use ALLOCNO_CLASS instead of
33237 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
33238 ALLOCNO_COVER_CLASS_COST.
33239 (regno_cover_class): Rename to regno_aclass.
33240 (record_reg_classes): Use ira_reg_class_subunion instead of
33241 ira_reg_class_union.
33242 (record_address_regs): Check overflow.
33243 (scan_one_insn): Ditto.
33244 (print_allocno_costs): Print total mem cost fore regional allocation.
33245 (print_pseudo_costs): Use REG_N_REFS.
33246 (find_costs_and_classes): Use classes intersected with them on the
33247 1st pass. Check overflow. Use ira_reg_class_subunion instead of
33248 ira_reg_class_union. Use ira_allocno_class_translate and
33249 regno_aclass instead of ira_class_translate and regno_cover_class.
33250 Modify code for finding regno_aclass. Setup preferred classes for
33251 the next pass.
33252 (setup_allocno_cover_class_and_costs): Rename to
33253 setup_allocno_class_and_costs. Use regno_aclass instead of
33254 regno_cover_class. Use ira_set_allocno_class instead of
33255 ira_set_allocno_cover_class.
33256 (init_costs, finish_costs): Use regno_aclass instead of
33257 regno_cover_class.
33258 (ira_costs): Use setup_allocno_class_and_costs instead of
33259 setup_allocno_cover_class_and_costs.
33260 (ira_tune_allocno_costs_and_cover_classes): Rename to
33261 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
33262 by processing objects. Use ira_reg_class_max_nregs instead of
33263 ira_reg_class_nregs.
33264
33265 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
33266
33267 * sched-int.h: Remove mentioning cover classes from the file.
33268 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
33269
33270 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
33271 classes from the file.
33272 (struct reg_pref): Rename coverclass into allocnoclass.
33273 (reg_cover_class): Rename to reg_allocno_class.
33274
33275 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
33276
33277 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
33278
33279 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
33280
33281 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
33282
33283 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
33284
33285 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
33286
33287 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
33288
33289 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
33290
33291 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
33292
33293 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
33294
33295 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
33296 (i386_ira_cover_classes): Ditto.
33297
33298 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
33299
33300 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
33301
33302 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
33303
33304 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
33305
33306 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
33307
33308 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
33309
33310 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
33311 (mips_ira_cover_classes): Ditto.
33312
33313 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
33314
33315 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
33316
33317 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
33318
33319 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
33320
33321 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
33322
33323 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
33324 (IRA_COVER_CLASSES_VSX): Ditto.
33325
33326 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
33327 (rs6000_ira_cover_classes): Ditto.
33328
33329 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
33330
33331 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
33332
33333 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
33334
33335 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
33336
33337 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
33338
33339 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
33340
33341 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
33342
33343 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
33344
33345 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
33346
33347 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
33348
33349 2011-03-29 Jakub Jelinek <jakub@redhat.com>
33350
33351 PR debug/48253
33352 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
33353 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
33354 dw_fde_unlikely_section_end_label, cold_in_std_section,
33355 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
33356 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
33357 fields.
33358 (output_fde): Use dw_fde_second_{begin,end} if second is
33359 true, otherwise dw_fde_{begin,end}.
33360 (output_call_frame_info): Test dw_fde_second_begin != NULL
33361 instead of dw_fde_switched_sections.
33362 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
33363 fields, initialize new fields. Initialize in_std_section
33364 unconditionally from the first partition.
33365 (dwarf2out_end_epilogue): Don't override dw_fde_end when
33366 dw_fde_second_begin is non-NULL.
33367 (dwarf2out_switch_text_section): Stop initializing removed
33368 dw_fde_struct fields, initialize new fields, initialize
33369 also dw_fde_end here. Set dw_fde_switch_cfi even when
33370 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
33371 (struct var_loc_list_def): Add last_before_switch field.
33372 (arange_table, arange_table_allocated, arange_table_in_use,
33373 ARANGE_TABLE_INCREMENT, add_arange): Removed.
33374 (size_of_aranges): Count !in_std_section and !second_in_std_section
33375 hunks in fdes, instead of looking at arange_table_in_use.
33376 (output_aranges): Add aranges_length argument, don't call
33377 size_of_aranges here. Instead of using aranges_table*
33378 emit ranges for fdes when !in_std_section resp.
33379 !second_in_std_section.
33380 (dw_loc_list): Break ranges crossing section switch.
33381 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
33382 use dw_fde_second_end instead of dw_fde_end as end of last range.
33383 (gen_subprogram_die): Don't call add_arange. Use
33384 dw_fde_{begin,end} for first partition and if switched
33385 section dw_fde_second_{begin,end} for the second.
33386 (var_location_switch_text_section_1,
33387 var_location_switch_text_section): New functions.
33388 (dwarf2out_begin_function): Initialize cold_text_section even
33389 when function_section () isn't text_section.
33390 (prune_unused_types): Don't walk arange_table.
33391 (dwarf2out_finish): Don't needlessly test
33392 flag_reorder_blocks_and_partition when testing cold_text_section_used.
33393 If info_section_emitted, call size_of_aranges and if it indicates
33394 non-empty .debug_aranges, call output_aranges with the computed
33395 size. Stop using removed dw_fde_struct fields, use
33396 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
33397 for second.
33398
33399 PR debug/48203
33400 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
33401 create ENTRY_VALUE if incoming or address of incoming's MEM
33402 is a hard REG.
33403 * dwarf2out.c (mem_loc_descriptor): Don't emit
33404 DW_OP_GNU_entry_value of DW_OP_fbreg.
33405 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
33406 on ENTRY_VALUE is able to find the canonical parameter VALUE.
33407 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
33408 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
33409 ENTRY_VALUE_EXPs.
33410 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
33411 is a REG_P or MEM_P with REG_P address, compute hash directly
33412 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
33413 (preserve_only_constants): Don't clear VALUES forwaring
33414 ENTRY_VALUE to some other VALUE.
33415
33416 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
33417
33418 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
33419 instead of GEN_INT.
33420
33421 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
33422
33423 * cfgexpand.c (expand_gimple_cond): Always set the source location and
33424 block before expanding the statement.
33425 (expand_gimple_stmt_1): Likewise. Set them here...
33426 (expand_gimple_stmt): ...and not here. Tidy.
33427 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
33428 unknown.
33429
33430 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
33431
33432 * Makefile.in: New rule for cprop.o.
33433 * gcse.c: Move constant/copy propagation to cprop.c.
33434 (compute_local_properties): Only handle expression tables.
33435 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
33436 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
33437 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
33438 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
33439 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
33440 compute_cprop_data, find_used_regs, try_replace_reg,
33441 find_avail_set, cprop_jump, constprop_register, cprop_insn,
33442 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
33443 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
33444 find_bypass_set, reg_killed_on_edge, bypass_block,
33445 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
33446 execute_rtl_cprop, pass_rtl_cprop): Move to...
33447 * cprop.c: ...here. New file, constant/copy propagation for RTL
33448 moved from gcse.c to here with minor cleanups in duplicated code.
33449
33450 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
33451
33452 * config/i386/i386.c (flag_opts): Fix a typo in
33453 -mavx256-split-unaligned-store.
33454
33455 2011-03-28 Anatoly Sokolov <aesok@post.ru>
33456
33457 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
33458 LIBCALL_VALUE): Remove macros.
33459 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33460 TARGET_FUNCTION_VALUE_REGNO_P): Define.
33461 (h8300_function_value, h8300_libcall_value,
33462 h8300_function_value_regno_p): New functions.
33463
33464 2011-03-28 Anatoly Sokolov <aesok@post.ru>
33465
33466 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
33467
33468 2011-03-28 Jeff Law <law@redhat.com>
33469
33470 * tree-ssa-threadupdate.c (redirect_edges): Call
33471 create_edge_and_update_destination_phis as needed.
33472 (create_edge_and_update_destination_phis): Accept new BB argument.
33473 All callers updated.
33474 (thread_block): Do not update the profile when threading around
33475 intermediate blocks.
33476 (thread_single_edge): Likewise.
33477 (determine_bb_domination_status): If BB is not a successor of the
33478 loop header, return NONDOMINATING.
33479 (register_jump_thread): Note when we register a jump thread around
33480 an intermediate block.
33481 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
33482 (thread_across_edge): Use it.
33483
33484 2011-03-28 Tristan Gingold <gingold@adacore.com>
33485
33486 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
33487 when for_return is 2.
33488
33489 2011-03-28 Jeff Law <law@redhat.com>
33490
33491 * var-tracking.c (canonicalize_values_mark): Delete unused
33492 lhs assignment.
33493 (canonicalize_values_star, set_variable_part): Likewise.
33494 (clobber_variable_part, delete_variable_part): Likewise.
33495
33496 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
33497
33498 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
33499
33500 2011-03-28 Martin Jambor <mjambor@suse.cz>
33501
33502 * tree-inline.c (expand_call_inline): Do not check that destination
33503 node is analyzed.
33504 (optimize_inline_calls): Assert that destination node is analyzed.
33505 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
33506 not call tree_lowering_passes.
33507 * cgraph.h (cgraph_analyze_function): Declare.
33508 * cgraphunit.c (cgraph_analyze_function): Make public.
33509
33510 2011-03-28 Joseph Myers <joseph@codesourcery.com>
33511
33512 * config/sparc/sparc-opts.h: New.
33513 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
33514 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
33515 (sparc_option_override): Store processor_type enumeration rather
33516 than string in cpu_default. Remove name and enumeration from
33517 cpu_table. Directly default -mcpu then default -mtune from -mcpu
33518 without using sparc_select. Use target_flags_explicit instead of
33519 fpu_option_set.
33520 * config/sparc/sparc.h (enum processor_type): Move to
33521 sparc-opts.h.
33522 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
33523 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
33524 HeaderInclude entry.
33525 (mcpu=, mtune=): Use Var and Enum.
33526 (sparc_processor_type): New Enum and EnumValue entries.
33527
33528 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33529 Iain Sandoe <iains@gcc.gnu.org>
33530
33531 PR target/48245
33532 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
33533
33534 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
33535
33536 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
33537 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
33538 Insert new statements at it in lieu of STMT.
33539 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
33540 * tree-vect-stmts.c (vectorizable_store): Likewise.
33541 (vectorizable_load): Likewise.
33542
33543 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
33544
33545 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
33546 (divtf3): Ditto.
33547 (multf3): Ditto.
33548 (subtf3): Ditto.
33549
33550 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
33551
33552 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
33553 unaligned 256bit load/store.
33554 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
33555 (*avx_movdqu<avxmodesuffix>): Likewise.
33556
33557 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33558
33559 PR target/48288
33560 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
33561 * config/pa/pa.md (iordi3): Use new predicate in expander.
33562 (iorsi3): Likewise.
33563
33564 2011-03-27 Anatoly Sokolov <aesok@post.ru>
33565
33566 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
33567 FUNCTION_VALUE_REGNO_P): Remove macros.
33568 * config/mips/mips-protos.h (mips_function_value): Remove.
33569 * config/mips/mips.c (mips_function_value): Rename to...
33570 (mips_function_value_1): ... this. Make static. Handle receiving
33571 the function type in 'fn_decl_or_type' argument.
33572 (mips_function_value, mips_libcall_value,
33573 mips_function_value_regno_p): New function.
33574 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33575 TARGET_FUNCTION_VALUE_REGNO_P): Define.
33576
33577 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
33578
33579 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
33580 and -mavx256-split-unaligned-store.
33581 (ix86_option_override_internal): Split 32-byte AVX unaligned
33582 load/store by default.
33583 (ix86_avx256_split_vector_move_misalign): New.
33584 (ix86_expand_vector_move_misalign): Use it.
33585
33586 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
33587 -mavx256-split-unaligned-store.
33588
33589 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
33590 256bit load/store. Generate unaligned store on misaligned memory
33591 operand.
33592 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
33593 256bit load/store.
33594 (*avx_movdqu<avxmodesuffix>): Likewise.
33595
33596 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
33597 -mavx256-split-unaligned-store.
33598
33599 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
33600
33601 PR target/38598
33602 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
33603 Update commentary.
33604
33605 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
33606
33607 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
33608 opno arguments with an expand_operand. Use create_input_operand.
33609 (mips_prepare_builtin_target): Delete.
33610 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
33611 functions.
33612 (mips_expand_builtin_direct): Use create_output_operand and
33613 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
33614 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
33615 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
33616
33617 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
33618
33619 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
33620 function.
33621 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
33622
33623 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
33624
33625 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
33626 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
33627 basic blocks and call commit_edge_insertions directly.
33628 (fixup_abnormal_edges): Move from here to...
33629 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
33630 on the edges and return whether some have actually been inserted.
33631 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
33632 compensation code.
33633
33634 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
33635
33636 PR rtl-optimization/48144
33637 * sel-sched-ir.c (merge_history_vect): Factor out from ...
33638 (merge_expr_data): ... here.
33639 (av_set_intersect): Rename to av_set_code_motion_filter.
33640 Update all callers. Call merge_history_vect when an expression
33641 is found in both sets.
33642 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
33643
33644 2011-03-26 Alan Modra <amodra@gmail.com>
33645
33646 * config/rs6000/predicates.md (word_offset_memref_op): Handle
33647 cmodel medium addresses.
33648 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
33649 64-bit gpr loads and stores.
33650 (rs6000_secondary_reload_ppc64): New function.
33651 * config/rs6000/rs6000-protos.h: Declare it.
33652 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
33653
33654 2011-03-26 Alan Modra <amodra@gmail.com>
33655
33656 PR target/47487
33657 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
33658 GNU Go in traceback table.
33659
33660 2011-03-25 Richard Henderson <rth@redhat.com>
33661
33662 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
33663 if there are exactly 6 operands.
33664 (set_storage_via_setmem): Similarly.
33665
33666 2011-03-25 Kai Tietz <ktietz@redhat.com>
33667
33668 * collect2.c (write_c_file_stat): Handle backslash
33669 as right-hand directory separator.
33670 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
33671 checking just for slash.
33672 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
33673 instead of checking for trailing slash.
33674 * gcc.c (record_temp_file): Use filename_cmp instead
33675 of strcmp.
33676 (do_spec_1): Likewise.
33677 (replace_outfile_spec_function): Likewise.
33678 (is_directory): Use filename_ncmp instead of strncmp.
33679 (print_multilib_info): Likewise.
33680 * gcov.c (find_source): Use filename_cmp instead
33681 instead of strcmp.
33682 (make_gcov_file_name): Fix order of slash/backslash
33683 checks.
33684 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
33685 (add_standard_paths): Likewise.
33686 * mips-tfile.c (saber_stop): Handle backslash.
33687 * prefix.c (update_path): Use filename_ncmp instead of
33688 strncmp.
33689 * profile.c (output_location): Use filename_cmp instead
33690 of strcmp.
33691 * read-md.c (handle_toplevel_file): Handle backslash.
33692 * tlink.c (frob_extension): Likewise.
33693 * tree-cfg.c (same_line_p): Use filename_cmp instead of
33694 strcmp.
33695 * tree-dump.c (dequeue_and_dump): Handle backslash.
33696 * tree.c (get_file_function_name): Likewise.
33697 * gengtype.c (read_input_list): Likewise.
33698 (get_file_realbasename): Likewise.
33699 (get_output_file_with_visibility): Use filename_cmp
33700 instead of strcmp.
33701
33702 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
33703
33704 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
33705 case to VFPv1.
33706
33707 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
33708
33709 * fold-const.c (expr_location_or): New function.
33710 (fold_truth_not_expr): Call it.
33711
33712 2011-03-25 Jeff Law <law@redhat.com>
33713
33714 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
33715 va_end.
33716 * c-family/c-common.c (def_fn_type): Likewise.
33717 * emit-rtl.c (gen_rtvec): Likewise.
33718 * lto/lto-lang.c (def_fn_type): Likewise.
33719
33720 2011-03-25 Richard Guenther <rguenther@suse.de>
33721
33722 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
33723 also generate copies.
33724 (fini_copy_prop): Handle constant values properly.
33725
33726 2011-03-25 Jakub Jelinek <jakub@redhat.com>
33727
33728 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
33729 mode size instead of bitsize with DWARF2_ADDR_SIZE.
33730 (hash_loc_operands, compare_loc_operands): Handle
33731 DW_OP_GNU_entry_value.
33732
33733 2011-03-25 Kai Tietz <ktietz@redhat.com>
33734
33735 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
33736 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
33737 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
33738 comment and use macro TARGET_64BIT_MS_ABI instead.
33739 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
33740 and change default behavior for 32-bit MS_ABI.
33741 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
33742 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
33743 32-bit, too.
33744 (ix86_cfun_abi): Likewise.
33745 (ix86_maybe_switch_abi): Adjust comment.
33746 (init_cumulative_args): Check for bit-ness in MS_ABI case.
33747 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
33748 instead of checking for SYSV_ABI.
33749 (ix86_nsaved_sseregs): Likewise.
33750 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
33751 to 16 bytes.
33752 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
33753 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
33754 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
33755 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
33756 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
33757
33758 2011-03-25 Richard Guenther <rguenther@suse.de>
33759
33760 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
33761 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
33762 (verify_gimple): Remove.
33763 * tree-cfg.c (verify_gimple_call): Merge verification
33764 from verify_stmts.
33765 (verify_gimple_phi): Merge verification from verify_stmts.
33766 (verify_gimple_label): New function.
33767 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
33768 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
33769 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
33770 (verify_stmts): Rename to verify_gimple_in_cfg.
33771 (verify_gimple_in_cfg): New function.
33772 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
33773 * tree-ssa.c (verify_ssa): Likewise.
33774 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
33775
33776 2011-03-25 Richard Guenther <rguenther@suse.de>
33777
33778 * passes.c (init_optimization_passes): Add FRE pass after
33779 early SRA.
33780
33781 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
33782 Andrew Stubbs <ams@codesourcery.com>
33783
33784 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
33785 for Cortex-A8.
33786 (arm_movdi_vfp_cortexa8): New pattern.
33787 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
33788 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
33789 instructions when tuning for Cortex-A8. Set attribute "arch".
33790 * config/arm/arm.md: Move include arm-tune.md up a bit.
33791 (define_attr "arch"): Add "onlya8" and "nota8" values.
33792 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
33793
33794 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
33795
33796 PR bootstrap/48282
33797 Revert:
33798 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33799
33800 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
33801 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
33802 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
33803 * passes.c (init_optimization_passes): Move
33804 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
33805
33806 2011-03-25 Kai Tietz <ktietz@redhat.com>
33807
33808 * c-typeck.c (comptypes_internal): Replace target
33809 hook call of comp_type_attributes by version in tree.c file.
33810 * gimple.c (gimple_types_compatible_p_1): Likewise.
33811 * tree-ssa.c (useless_type_conversion_p): Likewise.
33812 * tree.c (build_type_attribute_qual_variant): Likewise.
33813 (attribute_value_equal): New static helper function.
33814 (comp_type_attributes): New function.
33815 (merge_attributes): Use attribute_value_equal for comparison.
33816 (attribute_list_contained): Likewise.
33817 * tree.h (comp_type_attributes): New prototype.
33818
33819 2011-03-25 Richard Guenther <rguenther@suse.de>
33820
33821 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
33822 of complex types at -O0.
33823 (verify_gimple_assign_binary): Likewise.
33824 (verify_gimple_assign_ternary): Likewise.
33825
33826 2011-03-24 Mark Wielaard <mjw@redhat.com>
33827
33828 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
33829 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
33830
33831 2011-03-24 Mark Wielaard <mjw@redhat.com>
33832
33833 PR debug/48041
33834 * dwarf2out.c (output_abbrev_section): Only write table when
33835 abbrev_die_table_in_use > 1.
33836
33837 2011-02-24 Richard Henderson <rth@redhat.com>
33838
33839 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
33840 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
33841 (alpha_expand_unaligned_load_words): Use extql.
33842 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
33843 (emit_insxl): Handle all modes for consistency.
33844
33845 2011-02-24 Richard Henderson <rth@redhat.com>
33846
33847 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
33848 (alpha_expand_unaligned_load): Likewise.
33849 (alpha_expand_unaligned_store): Likewise.
33850 (alpha_expand_unaligned_load_words): Likewise.
33851 (alpha_expand_unaligned_store_words): Likewise.
33852 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
33853 (alpha_split_lock_test_and_set_12): Likewise.
33854 (print_operand, alpha_fold_builtin_extxx): Likewise.
33855 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
33856 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
33857 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
33858 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
33859 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
33860 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
33861 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
33862 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
33863 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
33864 (extwl, extll, extql): Similarly.
33865 (inswh, inslh, insqh): Similarly.
33866 (mskbl, mskwl, mskll, mskql): Similarly.
33867 (mskwh, msklh, mskqh): Similarly.
33868
33869 2011-02-24 Richard Henderson <rth@redhat.com>
33870
33871 * config/alpha/alpha.md (attribute isa): Add er, ner.
33872 (attribute enabled): Handle them.
33873 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
33874
33875 2011-02-24 Richard Henderson <rth@redhat.com>
33876
33877 * config/alpha/alpha.md (attribute isa): Add vms.
33878 (attribute enabled): Handle it.
33879 (*movsf): Merge *movsf_{nofix,fix,nofp}.
33880 (*movdf): Merge *movdf_{nofix,fix,nofp}.
33881 (*movtf): Rename from *movtf_internal for consistency.
33882 (*movsi): Merge with *movsi_nt_vms.
33883 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
33884 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
33885 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
33886 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
33887
33888 2011-02-24 Richard Henderson <rth@redhat.com>
33889
33890 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
33891 (extendqisi2, extendhisi2): Likewise.
33892 (extendqidi2): Simplify BWX/non-BWX expansions.
33893 (extendhidi2): Similarly.
33894
33895 2011-02-24 Richard Henderson <rth@redhat.com>
33896
33897 * config/alpha/alpha.md (attribute isa): New.
33898 (attribute enabled): New.
33899 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
33900 (zero_extendqisi2, zero_extendqidi2): Similarly.
33901 (zero_extendhisi2, zero_extendhidi2): Similarly.
33902 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
33903
33904 2011-02-24 Richard Henderson <rth@redhat.com>
33905
33906 * config/alpha/predicates.md (input_operand): Revert last change;
33907 update comment to mention 32-bit VMS rather than Windows.
33908
33909 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33910
33911 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
33912 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
33913 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
33914 * passes.c (init_optimization_passes): Move
33915 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
33916
33917 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
33918
33919 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
33920
33921 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
33922
33923 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
33924 correctly.
33925
33926 2011-03-24 Jakub Jelinek <jakub@redhat.com>
33927
33928 PR debug/48204
33929 * simplify-rtx.c (simplify_const_unary_operation): Call
33930 real_convert when changing mode class with FLOAT_EXTEND.
33931
33932 2011-03-24 Nick Clifton <nickc@redhat.com>
33933
33934 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
33935 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
33936 * config/rx/rx.c (rx_option_override): Set align_jumps,
33937 align_loops and align_labels if not set by the user.
33938 (rx_align_for_label): New function.
33939 (rx_max_skip_for_label): New function.
33940 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
33941 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
33942 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
33943 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
33944 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
33945
33946 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
33947
33948 PR rtl-optimization/48263
33949 * optabs.c (expand_binop_directly): Reinstate convert_modes code
33950 and original commutative_p handling. Use maybe_gen_insn.
33951
33952 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33953
33954 * reload.c (find_reloads_subreg_address): Add address_reloaded
33955 parameter and return true there if the full address has been
33956 reloaded.
33957 (find_reloads_toplev): Pass address_reloaded flag.
33958 (find_reloads_address_1): Don't use address_reloaded parameter.
33959
33960 2011-03-24 Jeff Law <law@redhat.com>
33961
33962 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
33963 unused variable "ann".
33964 (remove_unused_locals): Likewise.
33965
33966 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
33967 statement.
33968
33969 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
33970 after it is freed.
33971
33972 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33973
33974 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
33975 for invalid symbolic addresses.
33976 (s390_secondary_reload): Don't use s390_check_symref_alignment for
33977 larl operands.
33978
33979 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
33980
33981 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
33982 the argument in calls to fold_truth_not_expr.
33983
33984 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33985
33986 * tree.c (record_node_allocation_statistics): New function.
33987 (make_node_stat, copy_node_stat, build_string): Call it.
33988 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
33989 (build1_stat, build_omp_clause): Likewise.
33990
33991 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
33992
33993 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
33994 last commit.
33995
33996 2011-03-24 Richard Guenther <rguenther@suse.de>
33997
33998 PR tree-optimization/48271
33999 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
34000 blocks that still exist.
34001
34002 2011-03-24 Richard Guenther <rguenther@suse.de>
34003
34004 PR tree-optimization/48270
34005 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
34006 not free datarefs before ddrs.
34007
34008 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
34009
34010 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
34011 from the address built for a reference with variable offset.
34012
34013 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
34014
34015 PR target/48237
34016 * config/i386/i386.md (*movdf_internal_rex64): Do not split
34017 alternatives that can be handled with movq or movabsq insn.
34018 (*movdf_internal): Disable for !TARGET_64BIT.
34019 (*movdf_internal_nointeger): Ditto.
34020 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
34021
34022 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
34023
34024 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
34025 (FUNCTION_ARG_ADVANCE): Likewise.
34026 * tm.texi.in: Change references to them to hook references.
34027 * tm.texi: Regenerate.
34028 * targhooks.c (default_function_arg): Eliminate check for target macro.
34029 (default_function_incoming_arg): Likewise.
34030 (default_function_arg_advance): Likewise.
34031 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
34032 (function_arg_advance): Likewise.
34033 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
34034
34035 2011-03-24 Richard Guenther <rguenther@suse.de>
34036
34037 PR middle-end/48269
34038 * tree-object-size.c (addr_object_size): Do not double-account
34039 for MEM_REF offsets.
34040
34041 2011-03-24 Diego Novillo <dnovillo@google.com>
34042
34043 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
34044 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
34045 (lto_input_data_block): Move from lto-opts.c. Make extern.
34046 Update all users.
34047 (lto_input_string): Rename from input_string. Make extern.
34048 Update all users.
34049 * lto-streamer-out.c (lto_output_string_with_length): Rename from
34050 output_string_with_length.
34051 Output 0 to indicate a non-NULL string. Update all callers to
34052 not emit 0.
34053 (lto_output_string): Rename from output_string. Make extern.
34054 Update all users.
34055 (lto_output_decl_state_streams): Make extern.
34056 (lto_output_decl_state_refs): Make extern.
34057 * lto-streamer.h (lto_input_string): Declare.
34058 (lto_input_data_block): Declare.
34059 (lto_output_string): Declare.
34060 (lto_output_string_with_length): Declare.
34061 (lto_output_decl_state_streams): Declare.
34062 (lto_output_decl_state_refs): Declare.
34063
34064 2011-03-24 Richard Guenther <rguenther@suse.de>
34065
34066 PR tree-optimization/46562
34067 * tree.c (build_invariant_address): New function.
34068 * tree.h (build_invariant_address): Declare.
34069 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
34070 a renamed function moved ...
34071 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
34072 Take valueization callback parameter.
34073 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
34074 * gimple-fold.h: New file.
34075 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
34076 (ccp_fold, fold_const_aggregate_ref,
34077 fold_ctor_reference, fold_nonarray_ctor_reference,
34078 fold_array_ctor_reference, fold_string_cst_ctor_reference,
34079 get_base_constructor): Move ...
34080 * gimple-fold.c: ... here.
34081 (gimple_fold_stmt_to_constant_1): New function
34082 split out from ccp_fold. Take a valueization callback parameter.
34083 Valueize all operands.
34084 (gimple_fold_stmt_to_constant): New wrapper function.
34085 (fold_const_aggregate_ref_1): New function split out from
34086 fold_const_aggregate_ref. Take a valueization callback parameter.
34087 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
34088 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
34089 invariant POINTER_PLUS_EXPRs to invariant form.
34090 (vn_valueize): New function.
34091 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
34092 * tree-vrp.c (vrp_valueize): New function.
34093 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
34094 to fold statements to constants.
34095 * tree-ssa-pre.c (eliminate): Properly guard propagation of
34096 function declarations.
34097 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
34098 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
34099
34100 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
34101
34102 * config/h8300/predicates.md (jump_address_operand): Fix register
34103 mode check.
34104
34105 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
34106
34107 * doc/invoke.texi (max-stores-to-sink): Document.
34108 * params.h (MAX_STORES_TO_SINK): Define.
34109 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
34110 if either vectorization or if-conversion is disabled.
34111 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
34112 tree-vect-data-refs.c vect_equal_offsets.
34113 (dr_equal_offsets_p): New function.
34114 (find_data_references_in_bb): Remove static.
34115 * tree-data-ref.h (find_data_references_in_bb): Declare.
34116 (dr_equal_offsets_p): Likewise.
34117 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
34118 (vect_drs_dependent_in_basic_block): Update calls to
34119 vect_equal_offsets.
34120 (vect_check_interleaving): Likewise.
34121 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
34122 (cond_if_else_store_replacement): Rename to...
34123 (cond_if_else_store_replacement_1): ... this. Change arguments and
34124 documentation.
34125 (cond_if_else_store_replacement): New function.
34126 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
34127 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
34128
34129 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
34130
34131 PR target/46934
34132 * config/arm/arm.md (casesi): Use the gen_int_mode() function
34133 to subtract lower bound instead of GEN_INT().
34134
34135 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
34136
34137 PR other/48179
34138 PR other/48221
34139 PR other/48234
34140 * doc/extend.texi (Alignment): Move section to match order in TOC.
34141 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
34142 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
34143
34144 2011-03-23 Jeff Law <law@redhat.com>
34145
34146 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
34147 before removing the edge.
34148
34149 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
34150 it may have been freed by redirect_branch_edge or
34151 redirect_edge_succ_nodup.
34152
34153 2011-03-23 Richard Guenther <rguenther@suse.de>
34154
34155 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
34156 (check_va_list_escapes): Likewise.
34157 (check_all_va_list_escapes): Likewise.
34158
34159 2011-03-23 Richard Guenther <rguenther@suse.de>
34160
34161 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
34162 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
34163 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
34164 (alias.o): Likewise.
34165 (ipa-type-escape.o): Remove.
34166 (ipa-struct-reorg.o): Likewise.
34167 (GTFILES): Remove ipa-struct-reorg.c.
34168 * alias.c: Do not include ipa-type-escape.h.
34169 * tree-ssa-alias.c: Likewise.
34170 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
34171 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
34172 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
34173 and ipa-type-escape passes.
34174 * tree-pass.h (pass_ipa_type_escape): Remove.
34175 (pass_ipa_struct_reorg): Likewise.
34176 * ipa-struct-reorg.h: Remove.
34177 * ipa-struct-reorg.c: Likewise.
34178 * ipa-type-escape.h: Likewise.
34179 * ipa-type-escape.c: Likewise.
34180 * doc/invoke.texi (-fipa-struct-reorg): Remove.
34181 (--param struct-reorg-cold-struct-ratio): Likewise.
34182 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
34183 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
34184 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
34185
34186 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34187
34188 * config/s390/2084.md: Enable all insn reservations also for z9_ec
34189 cpu attribute value.
34190 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
34191 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
34192 * config/s390/s390.c (processor_flags_table): New constant array.
34193 (s390_handle_arch_option): Remove.
34194 (s390_handle_option): Remove s390_handle_arch_option invocations
34195 and OPT_mwarn_framesize_ handling.
34196 (s390_option_override): Remove s390_handle_arch_option invocation.
34197 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
34198 warnings.
34199 * config/s390/s390.md (cpu attribute): Add z9_ec value.
34200 * config/s390/s390.opt (s390_tune, s390_arch)
34201 (march=): Replace s390_arch_option enum and values with
34202 processor_type. Set variable name to s390_arch. Set
34203 initialization value.
34204 (mtune=): Replace s390_arch_option with processor_type. Set
34205 variable name to s390_tune. Set initialization value.
34206
34207 2011-03-23 Julian Brown <julian@codesourcery.com>
34208
34209 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
34210 accesses which are not naturally aligned.
34211
34212 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
34213
34214 PR target/47553
34215 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
34216
34217 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
34218
34219 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
34220 parameter from "int" to "enum insn_code".
34221 (expand_operand_type): New enum.
34222 (expand_operand): New structure.
34223 (create_expand_operand): New function.
34224 (create_fixed_operand, create_output_operand): Likewise
34225 (create_input_operand, create_convert_operand_to): Likewise.
34226 (create_convert_operand_from, create_address_operand): Likewise.
34227 (create_integer_operand): Likewise.
34228 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
34229 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
34230 (expand_insn, expand_jump_insn): Likewise.
34231 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
34232 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
34233 (expand_movstr, expand_builtin___clear_cache): Likewise.
34234 (expand_builtin_lock_release): Likewise.
34235 * explow.c (allocate_dynamic_stack_space): Likewise.
34236 (probe_stack_range): Likewise. Allow check_stack to FAIL,
34237 and use the default handling in that case.
34238 * expmed.c (check_predicate_volatile_ok): Delete.
34239 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
34240 (emit_cstore): Likewise.
34241 * expr.c (emit_block_move_via_movmem): Likewise.
34242 (set_storage_via_setmem, expand_assignment): Likewise.
34243 (emit_storent_insn, try_casesi): Likewise.
34244 (emit_single_push_insn): Likewise. Allow the expansion to fail.
34245 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
34246 (expand_vec_shift_expr, expand_binop_directly): Likewise.
34247 (expand_twoval_unop, expand_twoval_binop): Likewise.
34248 (expand_unop_direct, emit_indirect_jump): Likewise.
34249 (emit_conditional_move, vector_compare_rtx): Likewise.
34250 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
34251 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
34252 (expand_sync_lock_test_and_set): Likewise.
34253 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
34254 (emit_unop_insn): Likewise.
34255 (expand_copysign_absneg): Change icode to an insn_code.
34256 (create_convert_operand_from_type): New function.
34257 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
34258 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
34259 (expand_insn, expand_jump_insn): Likewise.
34260 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
34261 than const_int_operand for operand 2.
34262
34263 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34264
34265 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
34266 if possible.
34267
34268 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34269
34270 * emit-rtl.c (emit_pattern_before_noloc): New function.
34271 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
34272 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
34273 (emit_pattern_after_noloc): New function.
34274 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
34275 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
34276
34277 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34278
34279 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
34280 (__ffsDI2): Likewise.
34281
34282 2011-03-22 Richard Henderson <rth@redhat.com>
34283
34284 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
34285 of !TARGET_ABI_OPEN_VMS.
34286 (alpha_trampoline_init, alpha_start_function): Likewise.
34287 (alpha_expand_epilogue, alpha_file_start): Likewise.
34288 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
34289 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
34290 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
34291 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
34292 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
34293
34294 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34295
34296 * config/s390/s390-opts.h: New.
34297 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
34298 s390_arch_flags, s390_warn_framesize, s390_stack_size,
34299 s390_stack_guard): Remove.
34300 (s390_handle_arch_option): Return void. Take enum
34301 s390_arch_option value instead of string and searching array.
34302 (s390_handle_option): Don't assert that global structures are in
34303 use. Access variables via opts pointer. Use error_at. Don't use
34304 sscanf for -mstack-guard= or -mstack-size=. Update call to
34305 s390_handle_arch_option.
34306 (s390_option_override): Update call to s390_handle_arch_option.
34307 (s390_emit_prologue): Use %d format for s390_stack_size in
34308 diagnostic. Use %wd for HOST_WIDE_INT.
34309 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
34310 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
34311 * config/s390/s390.opt (config/s390/s390-opts.h): New
34312 HeaderInclude entry.
34313 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
34314 s390_arch_flags, s390_warn_framesize): New Variable entries.
34315 (s390_arch_option): New Enum and EnumValue entries.
34316 (march=): Use Enum instead of Var.
34317 (mstack-guard=, mstack-size=): Use UInteger and Var.
34318 (mtune=): Use Enum.
34319
34320 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34321
34322 * config/score/score.c (score_handle_option): Don't assert that
34323 global structures are in use. Access target_flags via opts
34324 pointer. Use value of -march= option to determine target_flags
34325 settings.
34326 * config/score/score.opt (march=): Use Enum.
34327 (score_arch): New Enum and EnumValue entries.
34328
34329 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34330
34331 * config/mep/mep.c (option_mtiny_specified): Remove.
34332 (mep_option_override): Move register handling for -mivc2 from
34333 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
34334 instead of option_mtiny_specified.
34335 (mep_handle_option): Access target_flags via opts pointer. Don't
34336 assert that global structures are in use. Defer part of -mivc2
34337 handling and move it to mep_option_override.
34338 * config/mep/mep.opt (IVC2): New Mask entry.
34339 (mivc2): Use Var and Defer instead of Mask.
34340
34341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34342
34343 * config/v850/v850-opts.h: New.
34344 * config/v850/v850.c (small_memory): Replace with
34345 small_memory_physical_max array. Make that array static const.
34346 (v850_handle_memory_option): Take integer value of argument. Take
34347 gcc_options pointer, option text and location. Return void.
34348 Update for changes to small memory structures.
34349 (v850_handle_option): Access target_flags via opts pointer. Don't
34350 assert that global structures are in use. Update calls to
34351 v850_handle_memory_option.
34352 (v850_encode_data_area): Update references to small memory settings.
34353 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
34354 (enum small_memory_type): Move to v850-opts.h.
34355 * config/v850/v850.opt (config/v850/v850-opts.h): New
34356 HeaderInclude entry.
34357 (small_memory_max): New Variable entry.
34358 (msda): Replace by pair of options msda= and msda-. Use UInteger.
34359 (mtda, mzda): Likewise.
34360
34361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34362
34363 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
34364 pointer. Don't assert that global structures are in use.
34365
34366 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34367
34368 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
34369 via opts pointer. Don't assert that global structures are in use.
34370
34371 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34372
34373 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
34374 (munix=93): Use Var.
34375 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
34376 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
34377 * config/pa/pa-opts.h: New.
34378 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
34379 (pa_handle_option): Don't assert that global structures are in
34380 use. Access target_flags via opts pointer. Don't handle
34381 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
34382 OPT_munix_98 here.
34383 (pa_option_override): Handle deferred OPT_mfixed_range_.
34384
34385 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34386
34387 * config/mn10300/mn10300-opts.h: New.
34388 * config/mn10300/mn10300.c (mn10300_processor,
34389 mn10300_tune_string): Remove.
34390 (mn10300_handle_option): Don't assert that global structures are
34391 in use. Access mn10300_processor via opts pointer. Don't handle
34392 OPT_mtune_ here.
34393 * config/mn10300/mn10300.h (enum processor_type): Move to
34394 mn10300-opts.h.
34395 (mn10300_processor): Remove.
34396 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
34397 HeaderInclude entry.
34398 (mn10300_processor): New Variable entry.
34399 (mtune=): Use Var.
34400
34401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34402
34403 * config/microblaze/microblaze.c: Don't include opts.h.
34404 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
34405 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
34406 (mno-clearbss): Use Var and Warn.
34407
34408 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34409
34410 * config/m32r/m32r-opts.h: New.
34411 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
34412 (m32r_handle_option): Don't assert that global structures are in
34413 use. Access target_flags and m32r_cache_flush_func via opts
34414 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
34415 OPT_mno_flush_trap here.
34416 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
34417 include of m32r-opts.h.
34418 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
34419 HeaderInclude entry.
34420 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
34421 (mmodel=): Use Enum and Var.
34422 (m32r_model): New Enum and EnumValue entries.
34423 (mno-flush-trap): Use Var.
34424 (msdata=): Use Enum and Var.
34425 (m32r_sdata): New Enum and EnumValue entries.
34426
34427 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34428
34429 * config/m32c/m32c.c: Don't include opts.h.
34430 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
34431 m32c_handle_option): Remove.
34432 (m32c_option_override): Check global_options_set.x_target_memregs
34433 instead of target_memregs_set.
34434 * config/m32c/m32c.h (target_memregs): Remove.
34435 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
34436 variable.
34437
34438 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34439
34440 * config/iq2000/iq2000-opts.h: New.
34441 * config/iq2000/iq2000.c: Don't include opts.h.
34442 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
34443 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
34444 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
34445 HeaderInclude entry.
34446 (iq2000_tune): New Variable entry.
34447 (march=): Add comment. Use Enum.
34448 (iq2000_arch): New Enum and EnumValue entries.
34449 (mcpu=): Use Enum and Var.
34450 (iq2000_tune): New Enum and EnumValue entries.
34451
34452 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34453
34454 * config/ia64/ia64-opts.h: New.
34455 * config/ia64/ia64.c (ia64_tune): Remove.
34456 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
34457 here. Use error_at.
34458 (ia64_option_override): Handle deferred OPT_mfixed_range_.
34459 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
34460 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
34461 HeaderInclude entry.
34462 (ia64_tune): New Variable entry.
34463 (mfixed-range=): Use Defer and Var.
34464 (mtune=): Use Enum and Var.
34465 (ia64_tune): New Enum and EnumValue entries.
34466
34467 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34468
34469 * config/frv/frv-opts.h: New.
34470 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
34471 frv-opts.h.
34472 (frv_cpu_type): Remove.
34473 * config/frv/frv.c: Don't include opts.h.
34474 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
34475 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
34476 (frv_cpu_type): New Variable entry.
34477 (frv_cpu): New Enum and EnumValue entries.
34478
34479 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34480
34481 * config/cris/cris.c (cris_handle_option): Access target_flags via
34482 opts pointer. Don't assert that global structures are in use.
34483 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
34484 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
34485
34486 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34487
34488 * config/bfin/bfin-opts.h: New.
34489 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
34490 bfin_si_revision, bfin_workarounds): Remove.
34491 (bfin_cpus): Make static const.
34492 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
34493 not bfin_lib_id_given.
34494 (bfin_handle_option): Don't set bfin_lib_id_given. Access
34495 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
34496 pointer. Use error_at. Don't assert that global structures are in use.
34497 * config/bfin/bfin.h: Include bfin-opts.h.
34498 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
34499 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
34500 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
34501 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
34502 entries.
34503
34504 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34505
34506 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
34507 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
34508 or -msoft-float here.
34509 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
34510 -msoft-float and -mhard-float.
34511 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
34512 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
34513 msoft-float.
34514 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
34515 -msoft-float.
34516 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
34517 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
34518 not mhard-float.
34519 (LIBGCC_SPEC): Don't handle -msoft-float.
34520 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
34521 -mhard-float.
34522 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
34523 msoft-float.
34524 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
34525 -mfloat-abi=*, not -msoft-float and -mhard-float.
34526 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
34527 -msoft-float.
34528 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
34529 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
34530 mhard-float and msoft-float.
34531 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
34532 mfloat-abi=soft in comments, not mhard-float and msoft-float.
34533 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
34534 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
34535 mhard-float.
34536 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
34537 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
34538 msoft-float.
34539 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
34540 not mhard-float.
34541 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
34542 not msoft-float.
34543
34544 2011-03-22 Richard Henderson <rth@redhat.com>
34545
34546 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
34547 TARGET_ABI_WINDOWS_NT.
34548 (alpha_output_function_end_prologue): Likewise.
34549 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
34550 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
34551 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
34552 (trap, *movsi_nt_vms): Likewise.
34553 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
34554 (*tablejump_osf_nt_internal): Remove.
34555 * config/alpha/predicates.md (input_operand): Only test Pmode.
34556
34557 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34558
34559 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
34560 via opts pointer. Use error_at. Don't assert that global
34561 structures are in use.
34562
34563 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34564
34565 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
34566 (ix86_handle_option): Access ix86_isa_flags and
34567 ix86_isa_flags_explicit via opts pointer. Don't assert that
34568 global structures are in use.
34569 (ix86_function_specific_save, ix86_function_specific_restore):
34570 Update ix86_isa_flags_explicit field name.
34571 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
34572 (ix86_isa_flags_explicit): Rename TargetSave entry to
34573 x_ix86_isa_flags_explicit.
34574
34575 2011-03-22 Richard Henderson <rth@redhat.com>
34576
34577 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
34578 (alpha_option_override, direct_return): Likewise.
34579 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
34580 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
34581 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
34582 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
34583 (alpha_expand_epilogue, alpha_end_function): Likewise.
34584 (alpha_init_libfuncs): Likewise.
34585 (struct machine_function): Remove unicosmk members.
34586 (print_operand) ['t']: Remove.
34587 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
34588 unicosmk_output_module_name, unicosmk_output_common,
34589 current_section_align, unicosmk_output_text_section_asm_op,
34590 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
34591 unicosmk_section_type_flags, unicosmk_unique_section,
34592 unicosmk_asm_named_section, unicosmk_insert_attributes,
34593 unicosmk_output_align, unicosmk_defer_case_vector,
34594 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
34595 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
34596 unicosmk_output_ssib, unicosmk_add_call_info_word,
34597 unicosmk_extern_head, unicosmk_output_default_externs,
34598 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
34599 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
34600 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
34601 * config/alpha/alpha-protos.h: Update.
34602 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
34603 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
34604 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
34605 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
34606 (*mulsi_se, mulvsi3): Likewise.
34607 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
34608 (*divmodsi_internal, call, call_value, realign): Likewise.
34609 (moddi3, umoddi3): Likewise; remove duplicate expander.
34610 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
34611 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
34612 (*movdi_nofix): Remove r/U alternative.
34613 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
34614 * config/alpha/constraints.md ("U"): Remove.
34615 * config/alpha/predicates.md (call_operand"): Don't test
34616 TARGET_ABI_UNICOSMK.
34617
34618 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34619
34620 * target.def (handle_option): Take gcc_options and
34621 cl_decoded_option pointers and location_t.
34622 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
34623 * doc/tm.texi: Regenerate.
34624 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
34625 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
34626 * lto-opts.c (lto_reissue_options): Generate option structure for
34627 targetm.handle_option call.
34628 * opts.c (target_handle_option): Update call to
34629 targetm.handle_option. Remove assertions about values now passed
34630 down to hook.
34631 * targhooks.c (default_target_handle_option): New.
34632 * targhooks.h (default_target_handle_option): Declare.
34633 * config/alpha/alpha.c: Include opts.h.
34634 (alpha_handle_option): Update to new hook interface.
34635 * config/arm/arm.c: Include opts.h.
34636 (arm_handle_option): Update to new hook interface.
34637 * config/arm/t-arm (arm.o): Update dependencies.
34638 * config/bfin/bfin.c: Include opts.h.
34639 (bfin_handle_option): Update to new hook interface.
34640 * config/cris/cris.c: Include opts.h.
34641 (cris_handle_option): Update to new hook interface.
34642 * config/frv/frv.c: Include opts.h.
34643 (frv_handle_option): Update to new hook interface.
34644 * config/i386/i386.c: Include opts.h.
34645 (ix86_handle_option): Update to new hook interface.
34646 (ix86_valid_target_attribute_inner_p): Generate option structure
34647 for call to ix86_handle_option.
34648 * config/i386/t-i386 (i386.o): Update dependencies.
34649 * config/ia64/ia64.c: Include opts.h.
34650 (ia64_handle_option): Update to new hook interface.
34651 * config/ia64/t-ia64 (ia64.o): Update dependencies.
34652 * config/iq2000/iq2000.c: Include opts.h.
34653 (iq2000_handle_option): Update to new hook interface.
34654 * config/m32c/m32c.c: Include opts.h.
34655 (m32c_handle_option): Update to new hook interface.
34656 * config/m32r/m32r.c: Include opts.h.
34657 (m32r_handle_option): Update to new hook interface.
34658 * config/m68k/m68k.c: Include opts.h.
34659 (m68k_handle_option): Update to new hook interface.
34660 * config/mep/mep.c: Include opts.h.
34661 (mep_handle_option): Update to new hook interface.
34662 * config/microblaze/microblaze.c: Include opts.h.
34663 (microblaze_handle_option): Update to new hook interface.
34664 * config/mips/mips.c: Include opts.h.
34665 (mips_handle_option): Update to new hook interface.
34666 * config/mn10300/mn10300.c: Include opts.h.
34667 (mn10300_handle_option): Update to new hook interface.
34668 * config/pa/pa.c: Include opts.h.
34669 (pa_handle_option): Update to new hook interface.
34670 * config/pdp11/pdp11.c: Include opts.h.
34671 (pdp11_handle_option): Update to new hook interface.
34672 * config/rs6000/rs6000.c: Include opts.h.
34673 (rs6000_handle_option): Update to new hook interface.
34674 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
34675 * config/rx/rx.c: Include opts.h.
34676 (rx_handle_option): Update to new hook interface.
34677 * config/s390/s390.c: Include opts.h.
34678 (s390_handle_option): Update to new hook interface.
34679 * config/score/score.c: Include opts.h.
34680 (score_handle_option): Update to new hook interface.
34681 * config/sh/sh.c: Include opts.h.
34682 (sh_handle_option): Update to new hook interface.
34683 * config/sparc/sparc.c: Include opts.h.
34684 (sparc_handle_option): Update to new hook interface.
34685 * config/v850/v850.c: Include opts.h.
34686 (v850_handle_option): Update to new hook interface.
34687
34688 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34689
34690 * gcc.c (driver_unknown_option_callback): Only permit and save
34691 unknown -Wno- options.
34692 (driver_wrong_lang_callback): Save options directly instead of via
34693 driver_unknown_option_callback.
34694
34695 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
34696
34697 * combine.c (simplify_set): Try harder to find the best CC mode when
34698 simplifying a nested COMPARE on the RHS.
34699
34700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34701
34702 * config/alpha/gnu.h: Remove.
34703 * config/arc: Remove directory.
34704 * config/arm/netbsd.h: Remove.
34705 * config/arm/t-pe: Remove.
34706 * config/crx: Remove directory.
34707 * config/i386/netbsd.h: Remove.
34708 * config/m68hc11: Remove directory.
34709 * config/m68k/uclinux-oldabi.h: Remove.
34710 * config/mcore/mcore-pe.h: Remove.
34711 * config/mcore/t-mcore-pe: Remove.
34712 * config/netbsd-aout.h: Remove.
34713 * config/rs6000/gnu.h: Remove.
34714 * config/sh/sh-symbian.h: Remove.
34715 * config/sh/symbian-base.c: Remove.
34716 * config/sh/symbian-c.c: Remove.
34717 * config/sh/symbian-cxx.c: Remove.
34718 * config/sh/symbian-post.h: Remove.
34719 * config/sh/symbian-pre.h: Remove.
34720 * config/sh/t-symbian: Remove.
34721 * config/svr3.h: Remove.
34722 * config/vax/netbsd.h: Remove.
34723 * config.build: Don't handle i[34567]86-*-pe.
34724 * config.gcc: Remove handling of deprecations for most deprecated
34725 targets.
34726 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
34727 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
34728 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
34729 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
34730 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
34731 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
34732 Remove cases.
34733 * config.host: Don't handle i[34567]86-*-pe.
34734 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
34735 (ASM_SPEC32): Don't handle -mcall-gnu.
34736 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
34737 -mcall-gnu.
34738 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
34739 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
34740 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
34741 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
34742 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
34743 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
34744 conditional on SYMBIAN.
34745 * configure.ac: Don't handle powerpc*-*-gnu*.
34746 * configure: Regenerate.
34747 * doc/extend.texi (interrupt attribute): Don't mention CRX.
34748 * doc/install-old.texi (m6811, m6812): Don't mention.
34749 * doc/install.texi (arc-*-elf*): Don't document multilib option.
34750 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
34751 (m68k-uclinuxoldabi): Don't mention.
34752 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
34753 Remove.
34754 (-mcall-gnu): Remove.
34755 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
34756 families): Remove constraint documentation.
34757
34758 2011-03-22 Marius Strobl <marius@FreeBSD.org>
34759
34760 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
34761 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
34762 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
34763
34764 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34765
34766 PR target/48226
34767 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
34768 vector when peeking at the next token for vector, don't expand the
34769 keywords.
34770
34771 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
34772
34773 * config/avr/avr-protos.h (expand_epilogue): Change prototype
34774 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
34775 * config/avr/avr.c (init_cumulative_args)
34776 (avr_function_arg_advance): Use it.
34777 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
34778 sibcall epilogues.
34779 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
34780 (avr_function_ok_for_sibcall): ...this new function.
34781 (avr_lookup_function_attribute1): New static Function.
34782 (avr_naked_function_p, interrupt_function_p)
34783 (signal_function_p, avr_OS_task_function_p)
34784 (avr_OS_main_function_p): Use it.
34785 * config/avr/avr.md ("sibcall", "sibcall_value")
34786 ("sibcall_epilogue"): New expander.
34787 ("*call_insn", "*call_value_insn"): New insn.
34788 ("call_insn", "call_value_insn"): Remove
34789 ("call", "call_value", "epilogue"): Change expander to handle
34790 sibling calls.
34791
34792 2011-03-21 Nick Clifton <nickc@redhat.com>
34793
34794 * doc/invoke.texi (Overall Options): Move closing brace to end of
34795 options list.
34796 (Optimization Options): Add missing @gol.
34797 (Directory Options): Likewise.
34798 (i386 and x86-64 Options): Likewise.
34799 (RS6000 and PowerPC Options): Likewise.
34800 (i386 and x86-64 Windows Options): Likewise.
34801 (V850 Options): Add text missing from descriptions.
34802
34803 2011-03-22 Richard Henderson <rth@redhat.com>
34804
34805 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
34806 (avr_incoming_return_addr_rtx): New.
34807 (emit_push_byte): New.
34808 (expand_prologue): Use it. Remove incorrect dwarf annotation for
34809 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
34810 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
34811 (emit_pop_byte): New.
34812 (expand_epilogue): Use it. Pop frame pointer by bytes.
34813 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
34814 (INCOMING_RETURN_ADDR_RTX): New.
34815 (INCOMING_FRAME_SP_OFFSET): New.
34816 (ARG_POINTER_CFA_OFFSET): New.
34817 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
34818 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
34819 (pophi): Remove.
34820
34821 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
34822
34823 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34824
34825 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
34826 (FUNCTION_ARG_ADVANCE): Likewise.
34827 * tm.texi.in: Change references to them to hook references.
34828 * tm.texi: Regenerate.
34829 * targhooks.c (default_function_arg): Eliminate check for target
34830 macro.
34831 (default_function_incoming_arg): Likewise.
34832 (default_function_arg_advance): Likewise.
34833 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
34834 (function_arg_advance): Likewise.
34835 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
34836
34837 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34838
34839 * tree.c (build_call_1): New function.
34840 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
34841
34842 2011-03-22 Richard Guenther <rguenther@suse.de>
34843
34844 PR tree-optimization/48228
34845 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
34846 for single-arg PHIs.
34847
34848 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
34849
34850 PR rtl-optimization/48143
34851 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
34852 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
34853 sse2_cvtps2pd): Likewise.
34854
34855 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34856
34857 * recog.c (canonicalize_change_group): Use validate_unshare_change.
34858
34859 2011-03-22 Richard Guenther <rguenther@suse.de>
34860
34861 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
34862 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
34863 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
34864 and REALIGN_LOAD_EXPR.
34865 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
34866 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
34867 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
34868 DOT_PROD_EXPR case ...
34869 (expand_expr_real_2): ... here.
34870 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
34871 and REALIGN_LOAD_EXPR.
34872 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
34873 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
34874 (vect_create_epilog_for_reduction): Likewise.
34875 (vectorizable_reduction): Likewise.
34876 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
34877 * tree-vect-stmts.c (vectorizable_load): Likewise.
34878
34879 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
34880
34881 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
34882
34883 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34884
34885 * config/s390/s390.c (s390_delegitimize_address): Fix offset
34886 handling for PLTOFF/GOTOFF.
34887
34888 2011-03-22 Nick Clifton <nickc@redhat.com>
34889
34890 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
34891 trailing backslash from the end of the macro definition.
34892
34893 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34894
34895 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
34896 and PLT unspecs.
34897
34898 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
34899
34900 * expr.h (prepare_operand): Move to...
34901 * optabs.h (prepare_operand): ...here and change the insn code
34902 parameter from "int" to "enum insn_code".
34903 (insn_operand_matches): Declare.
34904 * expr.c (init_expr_target): Use insn_operand_matches.
34905 (compress_float_constant): Likewise.
34906 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
34907 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
34908 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
34909 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
34910 Likewise.
34911 (gen_cond_trap): Likewise.
34912 (prepare_operand): Likewise. Change icode to an insn_code.
34913 (insn_operand_matches): New function.
34914 * reload.c (find_reloads_address_1): Use insn_operand_matches.
34915 * reload1.c (gen_reload): Likewise.
34916 * targhooks.c (default_secondary_reload): Likewise.
34917
34918 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
34919
34920 * config/alpha/alpha.md (unspec): New define_c_enum.
34921 (unspecv): Ditto.
34922
34923 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
34924
34925 PR debug/48214
34926 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
34927 between a call and its CALL_ARG_LOCATION note.
34928
34929 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
34930
34931 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
34932
34933 2011-03-21 Jakub Jelinek <jakub@redhat.com>
34934
34935 PR c/42544
34936 PR c/48197
34937 * c-common.c (shorten_compare): If primopN is first sign-extended
34938 to opN and then zero-extended to result type, set primopN to opN.
34939
34940 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
34941
34942 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
34943 for barrier handlers.
34944
34945 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34946
34947 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
34948 UNSPEC constants to be in the unspec enumeration, and redefine
34949 all UNSPECV constants to be in the unspecv enumeration, so that
34950 dumps print which unspec/unspec_volatile this is.
34951 * config/rs6000/vector.md (UNSPEC_*): Ditto.
34952 * config/rs6000/paired.md (UNSPEC_*): Ditto.
34953 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
34954 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
34955 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
34956
34957 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
34958 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
34959 UNSPECV_LWSYNC, since these are used as unspec_volatile.
34960 * config/rs6000/sync.md (isync, lwsync): Ditto.
34961
34962 2011-03-21 Richard Guenther <rguenther@suse.de>
34963
34964 * params.def (lto-min-partition): Fix typo.
34965
34966 2011-03-21 Richard Guenther <rguenther@suse.de>
34967
34968 PR c/47939
34969 * c-decl.c (grokdeclarator): Drop to the main variant only
34970 for array types. Drop flag_gen_aux_info check.
34971
34972 2011-03-21 Richard Guenther <rguenther@suse.de>
34973
34974 PR translation/47911
34975 * params.def (lto-partitions): Fix typo.
34976 (lto-min-partition): Fix wording.
34977
34978 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
34979
34980 * config/rs6000/t-freebsd: Remove duplication from file.
34981
34982 2011-03-21 Richard Guenther <rguenther@suse.de>
34983
34984 PR middle-end/47661
34985 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
34986
34987 2011-03-21 Richard Guenther <rguenther@suse.de>
34988
34989 PR lto/48210
34990 * params.def (lto-partitions): Require at least 1 partition.
34991
34992 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34993
34994 * gthr-solaris.h: Remove.
34995 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
34996 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
34997 (LIB_SPEC): Likewise.
34998 * config/sol2.opt (threads): Remove.
34999 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
35000 (sparc*-*-solaris2*): Likewise.
35001 * configure.ac (enable_threads): Enable solaris support.
35002 * configure: Regenerate.
35003 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
35004 * doc/install.texi (Configuration, --enable-threads=lib): Remove
35005 solaris.
35006
35007 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35008
35009 * config.gcc: Obsolete *-*-solaris2.8*.
35010 * doc/install.texi (Specific, *-*-solaris2*): Document it.
35011
35012 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35013
35014 PR bootstrap/48135
35015 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
35016 reference. Solaris 8 perl works.
35017
35018 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35019
35020 PR bootstrap/48135
35021 * doc/install.texi (Prerequisites): Move jar etc. up.
35022 Explain support library version requirements.
35023
35024 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35025
35026 PR bootstrap/48135
35027 * doc/install.texi (Prerequisites): Move Perl to build
35028 requirements. Always necessary on Solaris 2 with Sun ld.
35029
35030 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35031
35032 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
35033 binutils 2.21.
35034 (Specific, i?86-*-solaris2.[89]): Likewise.
35035 (Specific, i?86-*-solaris2.10): Likewise.
35036 (Specific, mips-sgi-irix6): Likewise.
35037 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
35038 Update for binutils 2.21.
35039
35040 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35041
35042 * configure.ac (gcc_cv_lto_plugin): Fix typo.
35043 Allow -fuse-linker-plugin for non-default plugin linker.
35044 * configure: Regenerate.
35045
35046 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
35047
35048 PR bootstrap/48167
35049 * gengtype.c (files_rules): Added rule for cp/parser.h.
35050
35051 2011-03-21 Jakub Jelinek <jakub@redhat.com>
35052
35053 PR target/48213
35054 * config/s390/s390.c (s390_delegitimize_address): Don't call
35055 lowpart_subreg if orig_x has BLKmode.
35056
35057 2011-03-21 Kai Tietz <ktietz@redhat.com>
35058
35059 PR target/12171
35060 * doc/plugins.texi: Adjust documentation for plugin register_callback.
35061 * tree.h (attribute_spec): Add new member affects_type_identity.
35062 * attribs.c (empty_attribute_table): Adjust attribute_spec
35063 initializers.
35064 * config/alpha/alpha.c: Likewise.
35065 * config/arc/arc.c: Likewise.
35066 * config/arm/arm.c: Likewise.
35067 * config/avr/avr.c: Likewise.
35068 * config/bfin/bfin.c: Likewise.
35069 * config/crx/crx.c: Likewise.
35070 * config/darwin.h: Likewise.
35071 * config/h8300/h8300.c: Likewise.
35072 * config/i386/cygming.h: Likewise.
35073 * config/i386/i386.c: Likewise.
35074 * config/ia64/ia64.c: Likewise.
35075 * config/m32c/m32c.c: Likewise.
35076 * config/m32r/m32r.c: Likewise.
35077 * config/m68hc11/m68hc11.c: Likewise.
35078 * config/m68k/m68k.c: Likewise.
35079 * config/mcore/mcore.c: Likewise.
35080 * config/mep/mep.c: Likewise.
35081 * config/microblaze/microblaze.c: Likewise.
35082 * config/mips/mips.c: Likewise.
35083 * config/rs6000/rs6000.c: Likewise.
35084 * config/rx/rx.c: Likewise.
35085 * config/sh/sh.c: Likewise.
35086 * config/sol2.h: Likewise.
35087 * config/sparc/sparc.c: Likewise.
35088 * config/spu/spu.c: Likewise.
35089 * config/stormy16/stormy16.c: Likewise.
35090 * config/v850/v850.c: Likewise.
35091
35092 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35093
35094 * simplify-rtx.c (simplify_binary_operation_1): Handle
35095 (xor (and A B) C) case when B and C are both constants.
35096
35097 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
35098
35099 * tree-dfa.c (add_referenced_var): Fix typo in comment.
35100
35101 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
35102
35103 PR bootstrap/48168
35104 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
35105
35106 2011-03-20 Jakub Jelinek <jakub@redhat.com>
35107
35108 PR rtl-optimization/48156
35109 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
35110 assume df and df_lr are not NULL.
35111
35112 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
35113
35114 PR debug/48023
35115 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
35116 between a call and its CALL_ARG_LOCATION note.
35117
35118 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
35119
35120 PR debug/48178
35121 * config/sh/sh.c (find_barrier): Don't emit a constant pool
35122 between a call and its corresponding CALL_ARG_LOCATION note.
35123
35124 2011-03-19 Anatoly Sokolov <aesok@post.ru>
35125
35126 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
35127 instead of loop. Use HARD_REGISTER_NUM_P predicate.
35128 * haifa-sched.c (setup_ref_regs): Ditto.
35129 * caller-save.c (add_used_regs_1): Ditto.
35130 * dse.c (look_for_hardregs): Ditto.
35131 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
35132 * sched-rgn.c (check_live_1): Ditto.
35133
35134 2011-03-18 Joseph Myers <joseph@codesourcery.com>
35135
35136 * c-decl.c (diagnose_mismatched_decls): Give an error for
35137 redefining a typedef with variably modified type.
35138
35139 2011-03-18 Joseph Myers <joseph@codesourcery.com>
35140
35141 * c-decl.c (grokfield): Don't allow typedefs for structures or
35142 unions with no tag by default.
35143 * doc/extend.texi (Unnamed Fields): Update.
35144
35145 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
35146
35147 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
35148 Rewrite using indirect functions.
35149 (lwp_slwpcb): Ditto.
35150 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
35151 (avx_vinsertf128<mode>): Ditto.
35152
35153 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35154
35155 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
35156 unspecs.
35157
35158 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35159
35160 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
35161 splitting between a call and its corresponding CALL_ARG_LOCATION note.
35162
35163 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
35164
35165 PR rtl-optimization/48170
35166 * gcse.c (hoist_code): Remove bogus asserts.
35167
35168 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
35169
35170 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
35171 computation for prologue/epilogue.
35172
35173 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35174
35175 * Makefile.in (check-consistency): Remove.
35176
35177 2011-03-18 Jakub Jelinek <jakub@redhat.com>
35178
35179 PR debug/48176
35180 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
35181 arange_table_in_use is 0, but either text_section_used or
35182 cold_text_section_used is true. Don't call it if
35183 !info_section_emitted.
35184
35185 2011-03-18 Anatoly Sokolov <aesok@post.ru>
35186
35187 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
35188 FUNCTION_VALUE_REGNO_P): Remove.
35189 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
35190 Remove.
35191 * config/avr/avr.c (avr_ret_register): Make static inline.
35192 (avr_function_value_regno_p): New function.
35193 (avr_libcall_value): Make static. Add 'func' argument.
35194 (avr_function_value): Make static. Rename 'func' argument to
35195 'fn_decl_or_type', forward it to avr_libcall_value. Call
35196 avr_ret_register function instead of RET_REGISTER macro.
35197 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
35198
35199 2011-03-18 Jason Merrill <jason@redhat.com>
35200
35201 PR c++/23372
35202 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
35203
35204 2011-03-18 Richard Guenther <rguenther@suse.de>
35205
35206 * doc/install.texi (--enable-gold): Remove.
35207 (--with-plugin-ld): Document.
35208 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
35209
35210 2011-03-18 Andrew Pinski <pinskia@gmail.com>
35211
35212 PR middle-end/47790
35213 * expr.c (optimize_bitfield_assignment_op): Revamp to work
35214 again after expansion changes.
35215
35216 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
35217
35218 * combine.c (try_combine): Do simplification only call of
35219 subst() on i2 even when i1 is present. Update comments.
35220
35221 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
35222
35223 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
35224 and UNSPEC_PCREL_SYMOFF.
35225
35226 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35227
35228 * config/s390/s390.md: Use define_c_enum for the unspec constant
35229 definitions.
35230
35231 2011-03-18 Richard Henderson <rth@redhat.com>
35232 Jakub Jelinek <jakub@redhat.com>
35233
35234 PR bootstrap/48161
35235 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
35236 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
35237
35238 2011-03-17 Anatoly Sokolov <aesok@post.ru>
35239
35240 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35241 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
35242 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
35243 Change return type to bool.
35244 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35245
35246 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35247
35248 PR debug/48163
35249 * var-tracking.c (prepare_call_arguments): If CALL target
35250 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
35251 pc instead of looking it up using cselib_lookup and use
35252 Pmode for it if x has VOIDmode.
35253 * dwarf2out.c (gen_subprogram_die): If also both first and
35254 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
35255
35256 PR debug/48163
35257 * function.c (assign_parms): For data.passed_pointer parms
35258 use MEM of data.entry_parm instead of data.entry_parm itself
35259 as DECL_INCOMING_RTL.
35260 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
35261 also when passed and declared mode is the same, DECL_RTL
35262 is a MEM with pseudo as address and DECL_INCOMING_RTL is
35263 a MEM too.
35264
35265 2011-03-16 Jeff Law <law@redhat.com>
35266
35267 PR rtl-optimization/37273
35268 * ira-costs.c (scan_one_insn): Detect constants living in memory and
35269 handle them like argument loads from stack slots. Do not double
35270 count memory for memory constants and argument loads from stack slots.
35271
35272 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
35273
35274 PR debug/48160
35275 * var-tracking.c (prepare_call_arguments): Check SUBREG.
35276
35277 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
35278
35279 PR target/48171
35280 * config/i386/i386.opt: Add Save to -mavx and -mfma.
35281
35282 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35283
35284 PR bootstrap/48153
35285 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
35286 if dwarf_strict.
35287 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
35288 Clear call_arg_locations and call_arg_loc_last always.
35289
35290 PR middle-end/48152
35291 * var-tracking.c (prepare_call_arguments): If argument needs to be
35292 passed by reference, adjust argtype and mode.
35293
35294 2011-03-17 Richard Guenther <rguenther@suse.de>
35295
35296 PR middle-end/48134
35297 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
35298 a value make sure to fold the statement.
35299
35300 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
35301
35302 PR target/43872
35303 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
35304 return condition with !cfun->calls_alloca.
35305
35306 2011-03-17 Richard Guenther <rguenther@suse.de>
35307
35308 PR bootstrap/48148
35309 * lto-cgraph.c (input_overwrite_node): Clear the abstract
35310 origin for decls in other ltrans units.
35311 (input_varpool_node): Likewise.
35312
35313 2011-03-17 Richard Guenther <rguenther@suse.de>
35314
35315 PR middle-end/48165
35316 * tree-object-size.c (compute_object_offset): Properly return
35317 the offset operand of MEM_REFs as sizetype.
35318
35319 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35320
35321 PR rtl-optimization/48141
35322 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
35323 * dse.c: Include params.h.
35324 (active_local_stores_len): New variable.
35325 (add_wild_read, dse_step1): Clear it when setting active_local_stores
35326 to NULL.
35327 (record_store, check_mem_read_rtx): Decrease it when removing
35328 from the chain.
35329 (scan_insn): Likewise. Increase it when adding to chain, if it
35330 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
35331 set active_local_stores to NULL before the addition.
35332 * Makefile.in (dse.o): Depend on $(PARAMS_H).
35333
35334 PR rtl-optimization/48141
35335 * dse.c (record_store): If no positions are needed in an insn
35336 that cannot be deleted, at least unchain it from active_local_stores.
35337
35338 2011-03-16 Dodji Seketeli <dodji@redhat.com>
35339
35340 PR debug/47510
35341 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
35342 (lookup_type_die_strip_naming_typedef): ... here.
35343 (get_context_die): Use it.
35344 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
35345 the anonymous struct named by the naming typedef.
35346
35347 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
35348
35349 PR target/48154
35350 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
35351 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
35352
35353 2011-03-16 Jeff Law <law@redhat.com>
35354
35355 * tree-vrp.c (identify_jump_threads): Slightly simplify type
35356 check for operands of conditional. Allow type to be a pointer.
35357
35358 2011-03-16 Richard Guenther <rguenther@suse.de>
35359
35360 PR tree-optimization/48149
35361 * fold-const.c (fold_binary_loc): Fold
35362 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
35363
35364 2011-03-16 Richard Guenther <rguenther@suse.de>
35365
35366 PR tree-optimization/26134
35367 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
35368 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
35369 (non_rewritable_mem_ref_base): Handle complex type component
35370 accesses, constrain offsets for vector and complex extracts
35371 more properly.
35372
35373 2011-03-16 Richard Guenther <rguenther@suse.de>
35374
35375 PR tree-optimization/48146
35376 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
35377 operands avoiding the need for renaming.
35378
35379 2011-03-16 Richard Guenther <rguenther@suse.de>
35380
35381 * gimple-fold.c (maybe_fold_reference): Open-code relevant
35382 constant folding. Move MEM_REF canonicalization first.
35383 Rely on fold_const_aggregate_ref for initializer folding.
35384 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
35385
35386 2011-03-16 Jakub Jelinek <jakub@redhat.com>
35387
35388 PR middle-end/48136
35389 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
35390 arg0/arg1 or their arguments are always fold converted to matching
35391 types.
35392
35393 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
35394 to nargs.
35395
35396 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35397
35398 PR lto/46944
35399 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
35400 Handle in-tree gold.
35401 (ld_vers): Extract binutils version for gold.
35402 (gcc_cv_ld_hidden): Handle gold here.
35403 (gcc_cv_lto_plugin): Determine level of linker plugin support.
35404 * configure: Regenerate.
35405 * config.in: Regenerate.
35406 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
35407 -fuse-linker-plugin otherwise.
35408 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
35409 (LINK_COMMAND_SPEC): Use it.
35410 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
35411
35412 2011-03-16 Jakub Jelinek <jakub@redhat.com>
35413
35414 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
35415 * calls.c: Remove debug.h include.
35416 (emit_call_1): Don't call virtual_call_token debug hook.
35417 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
35418 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
35419 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
35420 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
35421 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
35422 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
35423 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
35424 dwarf2out_virtual_call): Remove.
35425 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
35426 copy_call_info and virtual_call hooks.
35427 (dwarf2out_init): Don't initialize vcall_insn_table,
35428 debug_dcall_section and debug_vcall_section.
35429 (prune_unused_types): Don't mark nodes from dcall_table.
35430 (dwarf2out_finish): Don't output dcall or vcall tables.
35431 * final.c (final_scan_insn): Don't call direct_call or
35432 virtual_call debug hooks.
35433 * debug.h (struct gcc_debug_hooks): Remove direct_call,
35434 virtual_call_token, copy_call_info and virtual_call hooks.
35435 (debug_nothing_uid): Remove prototype.
35436 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
35437 copy_call_info and virtual_call hooks.
35438 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
35439 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
35440 * debug.c (do_nothing_debug_hooks): Likewise.
35441 (debug_nothing_uid): Remove.
35442 * doc/invoke.texi (-fenable-icf-debug): Remove.
35443 * common.opt (-fenable-icf-debug): Likewise.
35444
35445 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
35446 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
35447 call's MEM. Handle functions returning aggregate through a hidden
35448 first pointer. For virtual calls add clobbered pc to call arguments
35449 chain.
35450 * dwarf2out.c (gen_subprogram_die): Emit
35451 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
35452 can't be emitted.
35453
35454 PR debug/45882
35455 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
35456 * rtl.h (ENTRY_VALUE_EXP): Define.
35457 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
35458 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
35459 * print-rtl.c (print_rtx): Likewise.
35460 * gengtype.c (adjust_field_rtx_def): Likewise.
35461 * var-tracking.c (vt_add_function_parameter): Adjust
35462 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
35463 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
35464 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
35465 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
35466 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
35467
35468 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
35469 Call var_location debug hook even on CALL_INSNs.
35470 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
35471 * rtl.def (ENTRY_VALUE): New.
35472 * dwarf2out.c: Include cfglayout.h.
35473 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
35474 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
35475 (struct call_arg_loc_node): New type.
35476 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
35477 tail_call_site_count): New variables.
35478 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
35479 DW_TAG_GNU_call_site_parameter.
35480 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
35481 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
35482 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
35483 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
35484 and DW_AT_GNU_all_source_call_sites.
35485 (mem_loc_descriptor): Handle ENTRY_VALUE.
35486 (add_src_coords_attributes): Don't add enything if
35487 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
35488 (dwarf2out_abstract_function): Save and clear call_arg_location,
35489 call_site_count and tail_call_site_count around dwarf2out_decl call.
35490 (gen_call_site_die): New function.
35491 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
35492 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
35493 (dwarf2out_function_decl): Clear call_arg_locations,
35494 call_arg_loc_last, set call_site_count and tail_call_site_count
35495 to -1 and free block_map.
35496 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
35497 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
35498 followed by any real instructions.
35499 (dwarf2out_begin_function): Set call_site_count and
35500 tail_call_site_count to 0.
35501 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
35502 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
35503 attempt to force a DIE for it and worst case remove the attribute.
35504 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
35505 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
35506 the decl itself.
35507 * var-tracking.c: Include tm_p.h.
35508 (vt_stack_adjustments): For calls call note_register_arguments.
35509 (argument_reg_set): New variable.
35510 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
35511 ensure the VALUE is resolved.
35512 (call_arguments): New variable.
35513 (prepare_call_arguments): New function.
35514 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
35515 (struct expand_loc_callback_data): Add ignore_cur_loc field.
35516 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
35517 always use the best expression.
35518 (vt_expand_loc): Add ignore_cur_loc argument.
35519 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
35520 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
35521 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
35522 note for all calls.
35523 (vt_add_function_parameter): Use cselib_lookup_from_insn.
35524 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
35525 argument. Don't call cselib_preserve_only_values and
35526 cselib_reset_table.
35527 (note_register_arguments): New function.
35528 (vt_initialize): Compute argument_reg_set. Call
35529 vt_add_function_parameters before processing basic blocks instead of
35530 afterwards. For calls call prepare_call_arguments before calling
35531 cselib_process_insn.
35532 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
35533 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
35534 (var-tracking.o): Depend on $(TM_P_H).
35535 * cfglayout.h (insn_scope): New prototype.
35536 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
35537 * cfglayout.c (insn_scope): No longer static.
35538 * insn-notes.def (CALL_ARG_LOCATION): New.
35539 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
35540 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
35541 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
35542 nothing for DECL_EXTERNAL BLOCK_VARS.
35543
35544 2011-03-16 Alan Modra <amodra@gmail.com>
35545
35546 PR target/45844
35547 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
35548 create invalid offset address for vsx splat insn.
35549 * config/rs6000/predicates.md (splat_input_operand): New.
35550 * config/rs6000/vsx.md (vsx_splat_*): Use it.
35551
35552 2011-03-15 Xinliang David Li <davidxl@google.com>
35553
35554 PR c/47837
35555 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
35556 (normalize_preds): New function.
35557 (is_use_properly_guarded): Normalize def predicates.
35558
35559 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
35560
35561 PR target/46788
35562 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
35563 in the output template.
35564
35565 2011-03-15 Richard Guenther <rguenther@suse.de>
35566
35567 PR middle-end/47650
35568 * tree-pretty-print.c (dump_function_declaration): Properly
35569 dump unprototyped and varargs function types.
35570
35571 2011-03-15 Richard Guenther <rguenther@suse.de>
35572
35573 PR tree-optimization/13954
35574 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
35575 and friends.
35576
35577 2011-03-15 Richard Guenther <rguenther@suse.de>
35578
35579 PR tree-optimization/48037
35580 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
35581 selects into BIT_FIELD_REFs.
35582 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
35583 vector select.
35584
35585 2011-03-15 Jakub Jelinek <jakub@redhat.com>
35586
35587 PR tree-optimization/48129
35588 * builtins.c (fold_builtin_snprintf): Convert to type of
35589 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
35590 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
35591
35592 2011-03-15 Richard Guenther <rguenther@suse.de>
35593
35594 PR tree-optimization/41490
35595 * tree-ssa-dce.c (propagate_necessity): Handle returns without
35596 value but with VUSE.
35597 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
35598 return statements.
35599 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
35600 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
35601 * tree-tailcall.c (find_tail_calls): Ignore returns.
35602
35603 2011-03-15 Richard Guenther <rguenther@suse.de>
35604
35605 PR middle-end/48031
35606 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
35607 or variable-indexed array accesses when in gimple form.
35608
35609 2011-03-15 Richard Guenther <rguenther@suse.de>
35610
35611 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
35612
35613 2011-03-15 Alan Modra <amodra@gmail.com>
35614
35615 PR target/48032
35616 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
35617 presume symbol_refs without a symbol_ref_decl are suitably
35618 aligned, nor other trees we may see here. Handle anchor symbols.
35619 (legitimate_constant_pool_address_p): Comment. Add mode param.
35620 Check cmodel=medium addresses. Adjust all calls.
35621 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
35622 creating cmodel=medium optimized access to locals.
35623 * config/rs6000/constraints.md (R): Pass QImode to
35624 legitimate_constant_pool_address_p.
35625 * config/rs6000/predicates.md (input_operand): Pass mode to
35626 legitimate_constant_pool_address_p.
35627 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
35628 Update prototype.
35629
35630 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
35631
35632 PR target/48053
35633 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
35634 64-bit constants being loaded into registers other than GPRs such
35635 as loading 0 into a VSX register.
35636
35637 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35638
35639 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
35640
35641 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35642
35643 PR middle-end/47917
35644 * builtins.c (fold_builtin_snprintf): New function.
35645 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
35646 (fold_builtin_4): Likewise.
35647
35648 PR middle-end/38878
35649 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
35650 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
35651 and C - X == X also strip nops from +/-/p+ operand.
35652 When optimizing -X == C, fold C to arg0's type.
35653
35654 PR debug/47946
35655 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
35656 emit it as add_AT_int instead of add_AT_unsigned.
35657
35658 2011-03-14 Tom Tromey <tromey@redhat.com>
35659
35660 * unwind-dw2.c: Include sys/sdt.h if it exists.
35661 (_Unwind_DebugHook): Use STAP_PROBE2.
35662 * config.in, configure: Rebuild.
35663 * configure.ac: Check for sys/sdt.h.
35664
35665 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
35666
35667 * config/i386/i386.md (ROUND_FLOOR): New constant.
35668 (ROUND_CEIL): Ditto.
35669 (ROUND_TRUNC): Ditto.
35670 (ROUND_MXCSR): Ditto.
35671 (ROUND_NO_EXC): Ditto.
35672 (rint<mode>2): Use new defines instead of numerical constants.
35673 (floor<mode>2): Ditto.
35674 (ceil<mode>2): Ditto.
35675 (btrunc<mode>2): Ditto.
35676 * config/i386/i386-builtin-types.def: Define ROUND function type
35677 aliases.
35678 * config/i386/i386.c (enum ix86_builtins): Add
35679 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
35680 (struct builtin_description): Add
35681 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
35682 (ix86_expand_sse_round): New static function.
35683 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
35684 function types.
35685 (ix86_builtin_vectorized_function): Handle
35686 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
35687
35688 2011-03-14 Tom Tromey <tromey@redhat.com>
35689
35690 * c-parser.c (c_parser_asm_string_literal): Clear
35691 warn_overlength_strings.
35692
35693 2011-03-14 Tom Tromey <tromey@redhat.com>
35694
35695 * c-parser.c (disable_extension_diagnostics): Save
35696 warn_overlength_strings.
35697 (restore_extension_diagnostics): Restore warn_overlength_strings.
35698
35699 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35700
35701 * BASE-VER: Change to 4.7.0.
35702
35703 2011-03-14 Richard Guenther <rguenther@suse.de>
35704
35705 PR middle-end/48098
35706 * tree.c (build_vector_from_val): Adjust assert to requirements
35707 and reality.
35708
35709 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35710
35711 PR bootstrap/48102
35712 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
35713
35714 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
35715
35716 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
35717 terms of target_flags_explicit. Adjust copyright year.
35718
35719 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
35720 * config/rs6000/t-freebsd: New file. Add override for
35721 LIB2FUNCS_EXTRA.
35722
35723 2011-03-13 Chris Demetriou <cgd@google.com>
35724
35725 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
35726 (-fno-diagnostics-show-option): this, to reflect current default.
35727 (-Werror=): Update text about -fno-diagnostics-show-option.
35728
35729 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
35730
35731 PR target/48053
35732 * config/rs6000/predicates.md (easy_vector_constant_add_self,
35733 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
35734 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
35735 mode is not V2DImode or V2DFmode.
35736 (vspltis_constant): Do not handle V2DImode and V2DFmode.
35737 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
35738 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
35739 registers to 0.
35740 (movdi_internal64): Likewise.
35741
35742 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
35743
35744 PR tree-optimization/47127
35745 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
35746 parameter.
35747 (set_cloog_options): Same.
35748 (scop_to_clast): Same.
35749 (print_clast_stmt): Do not call cloog_state_malloc and
35750 cloog_state_free.
35751 (print_generated_program): Same.
35752 (gloog): Same.
35753 * graphite-clast-to-gimple.h (cloog_state): Declared.
35754 (scop_to_clast): Adjust declaration.
35755 * graphite.c (cloog_state): Defined here.
35756 (graphite_initialize): Call cloog_state_malloc.
35757 (graphite_finalize): Call cloog_state_free.
35758
35759 2011-03-11 Jason Merrill <jason@redhat.com>
35760
35761 * attribs.c (lookup_attribute_spec): Take const_tree.
35762 * tree.h: Adjust.
35763
35764 2011-03-11 Joseph Myers <joseph@codesourcery.com>
35765
35766 * config/sparc/sparc.c (sparc_option_override): Use
35767 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
35768
35769 2011-03-11 Richard Guenther <rguenther@suse.de>
35770
35771 PR tree-optimization/48067
35772 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
35773 multiplication result will be only used once on the target
35774 stmt.
35775
35776 2011-03-11 Richard Guenther <rguenther@suse.de>
35777
35778 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
35779
35780 2011-03-11 Richard Guenther <rguenther@suse.de>
35781
35782 PR lto/48073
35783 * tree.c (find_decls_types_r): Do not walk types only reachable
35784 from IDENTIFIER_NODEs.
35785
35786 2011-03-11 Jakub Jelinek <jakub@redhat.com>
35787
35788 PR middle-end/48044
35789 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
35790 all vnode->force_output nodes as needed.
35791
35792 2011-03-11 Jason Merrill <jason@redhat.com>
35793
35794 PR c++/48069
35795 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
35796 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
35797
35798 2011-03-11 Martin Jambor <mjambor@suse.cz>
35799
35800 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
35801 cgraph_node.
35802
35803 2011-03-11 Jakub Jelinek <jakub@redhat.com>
35804
35805 PR tree-optimization/48063
35806 * ipa-inline.c (cgraph_decide_inlining): Don't try to
35807 inline functions called once if !tree_can_inline_p (node->callers).
35808
35809 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
35810
35811 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
35812 extra_objs.
35813 * config/score/score3.c: Delete.
35814 * config/score/score3.h: Delete.
35815 * config/score/mul-div.S: Delete.
35816 * config/score/sfp-machine.h: Add new file.
35817 * config/score/constraints.md: Add new file.
35818 * config/score/t-score-softfp: Add new file.
35819 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
35820 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
35821 (score7_extra_constraint): Delete.
35822 (score7_option_override): Remove unused code.
35823 * config/score/score.c: Remove score3 and score5 define and code.
35824 * config/score/score.h: Remove score3 and score5 define and code.
35825 * config/score/score.md: Remove score3 template and unusual insn.
35826 * config/score/score.opt: Remove score3 and score5 options.
35827
35828 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35829
35830 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
35831 when _HPUX_SOURCE is defined.
35832 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
35833
35834 2011-03-10 Jason Merrill <jason@redhat.com>
35835
35836 PR c++/48029
35837 * stor-layout.c (layout_type): Don't set structural equality
35838 on arrays of incomplete type.
35839 * tree.c (type_hash_eq): Handle comparing them properly.
35840
35841 2011-03-10 Jakub Jelinek <jakub@redhat.com>
35842
35843 PR debug/48043
35844 * config/s390/s390.c (s390_delegitimize_address): Make sure the
35845 result mode matches original rtl mode.
35846
35847 2011-03-10 Nick Clifton <nickc@redhat.com>
35848
35849 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
35850 (andsi3, andsi3_flags): Fix timings for three operand alternative.
35851
35852 2011-03-09 Jakub Jelinek <jakub@redhat.com>
35853
35854 PR rtl-optimization/47866
35855 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
35856 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
35857 if target wasn't scalar.
35858 * function.c (assign_stack_temp_for_type): Assert that neither
35859 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
35860 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
35861 macro.
35862 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
35863
35864 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35865
35866 * config/s390/s390-protos.h (s390_label_align): New prototype.
35867 * config/s390/s390.c (s390_label_align): New function.
35868 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
35869
35870 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35871
35872 PR target/47755
35873 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
35874 V2DI/V2DF constants. Only all 0's or all 1's are easy.
35875 (output_vec_const_move): Ditto.
35876
35877 2011-03-08 Anatoly Sokolov <aesok@post.ru>
35878
35879 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
35880 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
35881 * config/mips/mips.c (mips_preferred_reload_class): Make static.
35882 Change 'rclass' argument and result type to reg_class_t.
35883 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35884
35885 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
35886
35887 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35888 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
35889 (TARGET_MEMORY_MOVE_COST): Define.
35890 (avr_register_move_cost, avr_memory_move_cost): New Functions.
35891
35892 2011-03-08 Jakub Jelinek <jakub@redhat.com>
35893
35894 PR debug/47881
35895 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
35896 removed anything.
35897
35898 PR tree-optimization/48022
35899 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
35900 for EQ/NE_EXPR.
35901
35902 2011-03-07 Jakub Jelinek <jakub@redhat.com>
35903
35904 PR debug/47991
35905 * var-tracking.c (find_use_val): Return NULL for
35906 cui->sets && cui->store_p BLKmode MEMs.
35907
35908 2011-03-07 Anatoly Sokolov <aesok@post.ru>
35909
35910 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
35911 Remove.
35912 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
35913 xstormy16_print_operand_address): Remove.
35914 * config/stormy16/stormy16.c (xstormy16_print_operand,
35915 xstormy16_print_operand_address): Make static.
35916 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
35917
35918 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
35919
35920 PR target/47862
35921 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
35922 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
35923 before definition.
35924
35925 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
35926
35927 PR bootstrap/48000
35928 * cfgloopmanip.c (fix_bb_placements): Return immediately
35929 if FROM is BASE_LOOP's header.
35930
35931 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
35932
35933 * gimplify.c (gimplify_function_tree): Fix building calls
35934 to __builtin_return_address.
35935
35936 2011-03-07 Alan Modra <amodra@gmail.com>
35937
35938 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
35939 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
35940 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
35941 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
35942 return_mode args.
35943 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
35944 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
35945 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
35946 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
35947 * config/rs6000/rs6000.c
35948 (rs6000_elf_end_indicate_exec_stack): Rename to..
35949 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
35950 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
35951 (rs6000_file_start): ..here.
35952 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
35953 file scope variables.
35954 (call_ABI_of_interest): New function.
35955 (init_cumulative_args): Set above vars when function return value
35956 is a float, vector, or small struct.
35957 (rs6000_function_arg_advance_1): Likewise for function args.
35958 (rs6000_va_start): Set rs6000_passes_float if variable arg function
35959 references float args.
35960
35961 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
35962
35963 * doc/cfg.texi: Remove "See" before @ref.
35964 * doc/invoke.texi: Likewise.
35965
35966 2011-03-05 Jason Merrill <jason@redhat.com>
35967
35968 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
35969
35970 2011-03-05 Anthony Green <green@moxielogic.com>
35971
35972 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
35973
35974 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
35975
35976 PR rtl-optimization/47899
35977 * cfgloopmanip.c (fix_bb_placements): Fix first argument
35978 to flow_loop_nested_p when moving the loop upward.
35979
35980 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
35981
35982 PR target/47719
35983 * arm.md (movhi_insn_arch4): Accept any immediate constant.
35984
35985 2011-03-05 Jakub Jelinek <jakub@redhat.com>
35986
35987 PR tree-optimization/47967
35988 * ipa-cp.c (build_const_val): Return NULL instead of creating
35989 VIEW_CONVERT_EXPR for mismatching sizes.
35990 (ipcp_create_replace_map): Return NULL if build_const_val failed.
35991 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
35992 give up on versioning.
35993
35994 2011-03-05 Alan Modra <amodra@gmail.com>
35995
35996 PR target/47986
35997 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
35998 full cmodel medium/large lo_sum + high addresses.
35999
36000 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36001
36002 * config/s390/s390.c (s390_decompose_address): Reject non-literal
36003 pool references in UNSPEC_LTREL_OFFSET.
36004
36005 2011-03-04 Jan Hubicka <jh@suse.cz>
36006
36007 PR lto/47497
36008 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
36009 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
36010 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
36011 Add node pointers.
36012 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
36013 cgraph_add_thunk): Add node pointers.
36014 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
36015 associated to right node.
36016 (input_node): Update use of cgraph_same_body_alias
36017 and cgraph_add_thunk.
36018
36019 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
36020
36021 * config/i386/i386.opt (mprefer-avx128): New flag.
36022 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
36023 modes when the flag -mprefer-avx128 is on.
36024
36025 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
36026
36027 * dwarf2out.c (compare_loc_operands): Fix address handling.
36028
36029 2011-03-04 Alan Modra <amodra@gmail.com>
36030
36031 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
36032
36033 2011-03-04 Richard Guenther <rguenther@suse.de>
36034
36035 PR middle-end/47968
36036 * expmed.c (extract_bit_field_1): Prefer vector modes that
36037 vec_extract patterns can handle.
36038
36039 2011-03-04 Richard Guenther <rguenther@suse.de>
36040
36041 PR middle-end/47975
36042 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
36043
36044 2011-03-04 Richard Henderson <rth@redhat.com>
36045
36046 * explow.c (emit_stack_save): Remove 'after' parameter.
36047 (emit_stack_restore): Likewise.
36048 * expr.h: Update to match.
36049 * builtins.c, calls.c, stmt.c: Likewise.
36050 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
36051 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
36052 * function.c (expand_function_end): Insert the emit_stack_save
36053 sequence before parm_birth_insn instead of after.
36054
36055 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
36056
36057 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
36058 (ssse3_pmaddubsw128): Ditto.
36059 (ssse3_pmaddubsw): Ditto.
36060
36061 2011-03-03 Steve Ellcey <sje@cup.hp.com>
36062
36063 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
36064
36065 2011-03-03 Jakub Jelinek <jakub@redhat.com>
36066
36067 PR c/47963
36068 * gimplify.c (omp_add_variable): Only call omp_notice_variable
36069 on TYPE_SIZE_UNIT if it is a DECL.
36070
36071 PR debug/47283
36072 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
36073 first operand is not is_gimple_mem_ref_addr, try to fold it.
36074 If the operand still isn't is_gimple_mem_ref_addr, clear
36075 MEM_EXPR on op0.
36076
36077 2011-03-03 Richard Guenther <rguenther@suse.de>
36078
36079 PR middle-end/47283
36080 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
36081 match comment.
36082 (refs_may_alias_p_1): For release branches return true if
36083 we are confused by our input.
36084
36085 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36086
36087 * config/s390/s390.c (s390_function_value): Rename to ...
36088 (s390_function_and_libcall_value): ... this.
36089 (s390_function_value): New function.
36090 (s390_libcall_value): New function.
36091 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
36092 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
36093 target macro definitions.
36094 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
36095
36096 2011-03-02 Joseph Myers <joseph@codesourcery.com>
36097
36098 * config/i386/freebsd64.h (CC1_SPEC): Define.
36099 * config/i386/linux64.h (CC1_SPEC): Define.
36100 * config/i386/x86-64.h (CC1_SPEC): Don't define.
36101
36102 2011-03-02 Anatoly Sokolov <aesok@post.ru>
36103
36104 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
36105 Remove.
36106 * config/stormy16/stormy16.c: Include reload.h.
36107 (xstormy16_memory_move_cost): New function.
36108 (TARGET_MEMORY_MOVE_COST): Define.
36109
36110 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
36111
36112 PR rtl-optimization/47925
36113 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
36114 with side effects. Remove the more-specific check for volatile asms.
36115
36116 2011-03-02 Alan Modra <amodra@gmail.com>
36117
36118 PR target/47935
36119 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
36120 toc relative addresses for valid offsets.
36121
36122 2011-03-01 Richard Guenther <rguenther@suse.de>
36123
36124 PR tree-optimization/47890
36125 * tree-vect-loop.c (get_initial_def_for_induction): Set
36126 related stmt properly.
36127
36128 2011-03-01 Richard Guenther <rguenther@suse.de>
36129
36130 PR lto/47924
36131 * lto-streamer.c (lto_record_common_node): Also register
36132 the canonical type.
36133
36134 2011-03-01 Richard Guenther <rguenther@suse.de>
36135
36136 PR lto/46911
36137 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
36138 Do not stream DECL_ABSTRACT_ORIGIN.
36139 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
36140 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
36141 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
36142 Do not stream DECL_ABSTRACT_ORIGIN.
36143 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
36144 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
36145
36146 2011-02-28 Anatoly Sokolov <aesok@post.ru>
36147
36148 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
36149 FUNCTION_VALUE_REGNO_P): Remove.
36150 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
36151 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
36152 Add 'outgoing' argument.
36153 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
36154 function.
36155 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
36156 TARGET_FUNCTION_VALUE_REGNO_P): Define.
36157
36158 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
36159
36160 PR debug/28047
36161 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
36162 (lookup_filename): Likewise.
36163 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
36164
36165 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
36166 Jakub Jelinek <jakub@redhat.com>
36167
36168 PR middle-end/47893
36169 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
36170 (assign_stack_local_1): Change last argument type to int.
36171 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
36172 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
36173 don't record padding space into frame_space_list nor use those areas.
36174 (assign_stack_local): Adjust caller.
36175 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
36176 of assign_stack_local, pass 0 as last argument.
36177 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
36178 callers.
36179
36180 2011-02-28 Jakub Jelinek <jakub@redhat.com>
36181
36182 PR debug/47283
36183 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
36184 Use target address_mode and pointer_mode hooks instead of hardcoded
36185 Pmode and ptr_mode. Handle some simple cases of extending if
36186 POINTERS_EXTEND_UNSIGNED < 0.
36187 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
36188 Call convert_debug_memory_address.
36189 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
36190 convert_debug_memory_address.
36191
36192 PR middle-end/46790
36193 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
36194 * configure: Regenerated.
36195 * config.in: Regenerated.
36196 * varasm.c (default_function_section): Return NULL
36197 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
36198
36199 2011-02-28 Martin Jambor <mjambor@suse.cz>
36200
36201 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
36202 the description to match the printed values.
36203
36204 2011-02-28 Richard Guenther <rguenther@suse.de>
36205
36206 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
36207 of the copied scope tree.
36208
36209 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36210
36211 * doc/extend.texi (Function Attributes): Avoid deeply (and
36212 wrongly) nested tables.
36213
36214 2011-02-27 Jakub Jelinek <jakub@redhat.com>
36215
36216 PR middle-end/47903
36217 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
36218 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
36219 r isn't op0 nor op1.
36220
36221 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
36222
36223 * config/avr/avr.md: Remove magic comment for emacs.
36224
36225 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
36226
36227 PR target/45261
36228 * config/avr/avr.c (avr_option_override): Use error on bad options.
36229 (avr_help): New function.
36230 (TARGET_HELP): Define.
36231
36232 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
36233
36234 PR target/42240
36235 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
36236 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
36237
36238 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
36239
36240 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
36241 (ARM Options): Ditto.
36242 (i386 and x86-64 Options): Ditto.
36243 (RX Options): Ditto.
36244 (SPARC Options): Ditto.
36245
36246 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
36247
36248 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
36249 FreeBSD 6 and later. Generally use cpu generic.
36250
36251 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
36252
36253 * doc/cpp.texi: Update copyright years.
36254
36255 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
36256
36257 PR target/46898
36258 * config/lm32/lm32.md (ashrsi3): Added needed variable.
36259
36260 2011-02-25 Jon Beniston <jon@beniston.com>
36261
36262 PR target/46898
36263 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
36264 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
36265 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
36266 (lm32_block_move_inline): Add type cast to remove warning.
36267 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
36268 (gen_int_relational): Move declarations to start of function.
36269
36270 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
36271
36272 PR tree-optimization/45470
36273 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
36274 can throw internally only.
36275 * tree-vect-stmts.c (vectorizable_call): Likewise.
36276
36277 2011-02-24 Anatoly Sokolov <aesok@post.ru>
36278
36279 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
36280 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
36281 * config/stormy16/stormy16-protos.h
36282 (xstormy16_preferred_reload_class): Remove.
36283 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
36284 static. Change 'rclass' argument and return type to reg_class_t.
36285 (TARGET_PREFERRED_RELOAD_CLASS,
36286 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
36287
36288 2011-02-24 Richard Guenther <rguenther@suse.de>
36289
36290 * lto-streamer-in.c (input_bb): Do not find referenced vars
36291 in debug statements.
36292
36293 2011-02-23 Jason Merrill <jason@redhat.com>
36294
36295 * common.opt (fabi-version): Document v5 and v6.
36296
36297 2011-02-23 Richard Guenther <rguenther@suse.de>
36298
36299 PR tree-optimization/47849
36300 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
36301
36302 2011-02-23 Jie Zhang <jie@codesourcery.com>
36303
36304 * opts-common.c (decode_cmdline_option): Print empty string
36305 argument as "" in decoded->orig_option_with_args_text.
36306 * gcc.c (execute): Print empty string argument as ""
36307 in the verbose output.
36308 (do_spec_1): Keep empty string argument.
36309
36310 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
36311
36312 * config.gcc: Declare score-* and crx-* obsolete.
36313
36314 2011-02-23 Jie Zhang <jie@codesourcery.com>
36315
36316 PR rtl-optimization/47763
36317 * web.c (web_main): Ignore naked clobber when replacing register.
36318
36319 2011-02-22 Anatoly Sokolov <aesok@post.ru>
36320
36321 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
36322 Remove.
36323
36324 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
36325
36326 PR doc/47848
36327 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
36328
36329 2011-02-22 Mike Stump <mikestump@comcast.net>
36330
36331 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
36332 assembler.
36333 * configure: Regenerate.
36334
36335 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
36336
36337 PR rtl-optimization/46002
36338 * ira-color.c (update_copy_costs): Change class intersection
36339 test to reg_class_contents[] test of 'hard_regno'.
36340
36341 2011-02-21 Joseph Myers <joseph@codesourcery.com>
36342
36343 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
36344 than Driver option.
36345 * config/hpux11.opt (mt): Likewise.
36346 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
36347 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
36348 * config/vax/elf.opt (mno-asm-pic): Likewise.
36349 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
36350
36351 2011-02-21 Mike Stump <mikestump@comcast.net>
36352
36353 PR target/47822
36354 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
36355 tree so we can get save the type.
36356 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
36357 for CFString instead of trying to use past the end of the builtins.
36358 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
36359 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
36360 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
36361 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
36362 Rename to darwin_builtin_cfstring.
36363 (darwin_init_cfstring_builtins): Return the built type.
36364
36365 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
36366
36367 PR target/47840
36368 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
36369 (_mm256_insert_epi64): Use _mm_insert_epi64.
36370
36371 2011-02-21 Anatoly Sokolov <aesok@post.ru>
36372
36373 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36374 * config/stormy16/stormy16-protos.h
36375 (xstormy16_mode_dependent_address_p): Remove.
36376 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
36377 Make static. Change return type to bool. Change argument type to
36378 const_rtx. Remove dead code.
36379 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36380
36381 2011-02-21 Richard Guenther <rguenther@suse.de>
36382
36383 PR lto/47820
36384 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
36385 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
36386 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
36387 TUs context.
36388 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
36389 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
36390
36391 2011-02-20 Richard Guenther <rguenther@suse.de>
36392
36393 PR lto/47822
36394 * tree.c (free_lang_data_in_decl): Clean builtins from
36395 the TU decl BLOCK_VARS.
36396
36397 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
36398
36399 PR debug/47620
36400 PR debug/47630
36401 * haifa-sched.c (fix_tick_ready): Skip tick computation
36402 for debug insns.
36403
36404 2011-02-19 Richard Guenther <rguenther@suse.de>
36405
36406 PR lto/47647
36407 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
36408 Remove lazy BLOCK_VARS streaming.
36409 (lto_input_ts_block_tree_pointers): Likewise.
36410 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
36411
36412 2011-02-19 Joseph Myers <joseph@codesourcery.com>
36413
36414 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
36415
36416 2011-02-19 Joseph Myers <joseph@codesourcery.com>
36417
36418 * config/i386/biarch32.h, config/i386/mach.h,
36419 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
36420
36421 2011-02-19 Jakub Jelinek <jakub@redhat.com>
36422
36423 PR target/47800
36424 * config/i386/i386.md (peephole2 for shift and plus): Use
36425 operands[1] original mode in the first insn.
36426
36427 2011-02-18 Mike Stump <mikestump@comcast.net>
36428
36429 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
36430
36431 2011-02-18 Jan Hubicka <jh@suse.cz>
36432
36433 PR middle-end/47788
36434 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
36435 to zero when the function is not inlinable at all.
36436
36437 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36438
36439 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
36440 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
36441 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
36442 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
36443 * config/pa/t-pa64: Likewise.
36444 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
36445
36446 2011-02-18 Jakub Jelinek <jakub@redhat.com>
36447
36448 PR driver/47787
36449 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
36450
36451 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36452
36453 PR target/47792
36454 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
36455
36456 2011-02-18 Anatoly Sokolov <aesok@post.ru>
36457
36458 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
36459 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
36460 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
36461 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
36462 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
36463 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
36464 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
36465 m32r_load_postinc_p, m32r_store_preinc_predec_p,
36466 m32r_legitimate_address_p): New functions.
36467 * config/m32r/constraints.md (constraint "S"): Don't use
36468 STORE_PREINC_PREDEC_P.
36469 (constraint "U"): Don't use LOAD_POSTINC_P.
36470
36471 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
36472
36473 PR rtl-optimization/46178
36474 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
36475 compute ira_hard_regno_cover_class[].
36476
36477 2011-02-18 Richard Guenther <rguenther@suse.de>
36478
36479 PR lto/47798
36480 * lto-streamer.h (lto_global_var_decls): Declare.
36481 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
36482 statics for global var processing.
36483
36484 2011-02-18 Richard Guenther <rguenther@suse.de>
36485
36486 PR tree-optimization/47737
36487 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
36488 edge dominance check.
36489
36490 2011-02-18 Jakub Jelinek <jakub@redhat.com>
36491
36492 PR debug/47780
36493 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
36494 avoid invalid rtx sharing.
36495
36496 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
36497
36498 * doc/cpp.texi (Obsolete Features): Add background on the
36499 origin of assertions.
36500
36501 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
36502
36503 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
36504 objc_abi == 2.
36505 * config/darwin.c (output_objc_section_asm_op): Added support for
36506 ABI v1 and v2.
36507 (is_objc_metadata): New.
36508 (darwin_objc2_section): New.
36509 (darwin_objc1_section): New.
36510 (machopic_select_section): Added support for ABI v1 and v2.
36511 (darwin_emit_objc_zeroed): New.
36512 (darwin_output_aligned_bss): Detect objc metadata and treat it
36513 appropriately.
36514 (darwin_asm_output_aligned_decl_common): Same.
36515 (darwin_asm_output_aligned_decl_local): Same.
36516 * config/darwin-sections.def: Updated for ABI v1 and v2.
36517 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
36518 compiling Objective-C code for the NeXT runtime, default to using
36519 ABI version 0 for 32-bit, and version 2 for 64-bit.
36520
36521 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36522
36523 * common.opt (optimize_fast): New Variable.
36524 * opts.c (default_options_optimization): Use opts->x_optimize_fast
36525 instead of local variable ofast.
36526
36527 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
36528
36529 * doc/invoke.texi (fobjc-abi-version): Documented.
36530 (fobjc-nilcheck): Documented.
36531 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
36532 version.
36533
36534 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36535
36536 PR driver/47390
36537 * common.opt (export-dynamic): New Driver option.
36538 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
36539
36540 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36541
36542 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
36543
36544 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
36545 Jan Hubicka <jh@suse.cz>
36546
36547 PR debug/47106
36548 PR debug/47402
36549 * cfgexpand.c (account_used_vars_for_block): Remove.
36550 (estimated_stack_frame_size): Use referenced vars.
36551 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
36552 that were referenced in the original function. Test src_fn
36553 rather than cfun. Drop redundant get_var_ann.
36554 (setup_one_parameter): Drop redundant get_var_ann.
36555 (declare_return_variable): Likewise.
36556 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
36557 (copy_arguments_for_versioning): Drop redundant get_var_ann.
36558 * ipa-inline.c (compute_inline_parameters): Do not compute
36559 disregard_inline_limits here.
36560 (compute_inlinable_for_current, pass_inlinable): New.
36561 (pass_inline_parameters): Require PROP_referenced_vars.
36562 * cgraphunit.c (cgraph_process_new_functions): Don't run
36563 compute_inline_parameters explicitly unless function is in SSA form.
36564 (cgraph_analyze_function): Set .disregard_inline_limits.
36565 * tree-sra.c (convert_callers): Compute inliner parameters
36566 only for functions already in SSA form.
36567
36568 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36569
36570 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
36571 -mlittle-endian-data.
36572
36573 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36574
36575 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
36576 -mno-fpu, not -fpu and -no-fpu.
36577 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
36578 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
36579
36580 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
36581
36582 PR target/43653
36583 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
36584 input reload with PLUS RTX.
36585
36586 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36587
36588 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
36589 of InverseVar(MDMX).
36590
36591 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36592
36593 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
36594 --m4-340.
36595
36596 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36597
36598 * config/mn10300/mn10300.opt (mno-crt0): New.
36599
36600 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36601
36602 * config/m68k/uclinux.opt (static-libc): New Driver option.
36603
36604 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36605
36606 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
36607
36608 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36609
36610 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
36611 %{muser-extend-enabled}.
36612
36613 2011-02-16 Richard Guenther <rguenther@suse.de>
36614
36615 PR tree-optimization/47738
36616 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
36617 the TODO from tree_predictive_commoning.
36618
36619 2011-02-15 Jeff Law <law@redhat.com>
36620
36621 Revert
36622 2011-01-25 Jeff Law <law@redhat.com>
36623
36624 PR rtl-optimization/37273
36625 * ira-costs.c (scan_one_insn): Detect constants living in memory and
36626 handle them like argument loads from stack slots. Do not double
36627 count memory for memory constants and argument loads from stack slots.
36628
36629 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
36630
36631 PR target/47755
36632 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
36633 mode for vector constants. Remove code that checks for TImode.
36634
36635 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36636
36637 PR debug/47106
36638 PR debug/47402
36639 * cgraph.h (compute_inline_parameters): Return void.
36640 * ipa-inline.c (compute_inline_parameters): Adjust.
36641
36642 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36643
36644 PR debug/47106
36645 PR debug/47402
36646 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
36647 rather than decl.
36648 * cfgexpand.c (estimated_stack_frame_size): Likewise.
36649 * ipa-inline.c (compute_inline_parameters): Adjust.
36650
36651 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36652
36653 PR debug/47106
36654 PR debug/47402
36655 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
36656 Adjust all users. Pass FN to...
36657 * tree-flow-inline.h (first_referenced_var): ... this. Add
36658 fn argument.
36659 * ipa-struct-reorg.c: Adjust.
36660 * tree-dfa.c: Adjust.
36661 * tree-into-ssa.c: Adjust.
36662 * tree-sra.c: Adjust.
36663 * tree-ssa-alias.c: Adjust.
36664 * tree-ssa-live.c: Adjust.
36665 * tree-ssa.c: Adjust.
36666 * tree-ssanames.c: Adjust.
36667 * tree-tailcall.c: Adjust.
36668
36669 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36670
36671 PR debug/47106
36672 PR debug/47402
36673 * tree-flow.h (referenced_var_lookup): Add fn parameter.
36674 Adjust all callers.
36675 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
36676 * tree-flow-inline.h: Adjust.
36677 * gimple-pretty-print.c: Adjust.
36678 * tree-into-ssa.c: Adjust.
36679 * tree-ssa.c: Adjust.
36680 * cfgexpand.c: Adjust.
36681
36682 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36683
36684 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
36685 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36686 (EXTRA_CONSTRAINT): Delete.
36687 * config/iq2000/constraints.md: New file.
36688 * config/iq2000/iq2000.md: Include it.
36689 (define_insn ""): Delete.
36690 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
36691 unsupported constraint letters from patterns.
36692 (call_value, call_value_internal1): Likewise.
36693 (call_value_multiple_internal1): Likewise.
36694
36695 2011-02-15 Nick Clifton <nickc@redhat.com>
36696
36697 * config/mn10300/mn10300.c: Include tm-constrs.h.
36698 (struct liw_data): New data structure describing an LIW candidate
36699 instruction.
36700 (extract_bundle): Use struct liw_data. Allow small integer
36701 operands for some instructions.
36702 (check_liw_constraints): Use struct liw_data. Remove swapped
36703 parameter. Add comments describing the checks. Fix bug when
36704 assigning the source of liw1 to the source of liw2.
36705 (liw_candidate): Delete. Code moved into extract_bundle.
36706 (mn10300_bundle_liw): Use struct liw_data. Check constraints
36707 before swapping.
36708 * config/mn10300/predicates.md (liw_operand): New predicate.
36709 Allows registers and small integer constants.
36710 * config/mn10300/constraints.md (O): New constraint. Accetps
36711 integers in the range -8 to +7 inclusive.
36712 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
36713 for moving a small integer into a register. Give this alternative
36714 LIW attributes.
36715 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
36716 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
36717 using the J,K,L and M constraints,
36718 (liw): Remove SI mode on second operands to allow for HI and QI
36719 mode values.
36720 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
36721 instruction.
36722
36723 2011-02-15 Richard Guenther <rguenther@suse.de>
36724
36725 PR tree-optimization/47743
36726 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
36727 for a non-type-compatible VN lookup bail out.
36728
36729 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36730
36731 * config/fr30/constraints.md: New file.
36732 * config/fr30/fr30.md: Include it.
36733 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
36734 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36735 (EXTRA_CONSTRAINT): Delete.
36736
36737 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36738
36739 * config/frv/constraints.md: New file.
36740 * config/frv/predicates.md: Include it.
36741 * config/frv/frv.c (reg_class_from_letter): Delete.
36742 (frv_option_override): Don't initialize it.
36743 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
36744 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
36745 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
36746 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
36747 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
36748 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36749 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
36750 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
36751 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
36752 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
36753 (REG_CLASS_FROM_CONSTRAINT): Delete.
36754
36755 2011-02-15 Jakub Jelinek <jakub@redhat.com>
36756
36757 PR middle-end/47581
36758 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
36759 if frame size is 0 in a leaf function.
36760
36761 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36762
36763 PR pch/14940
36764 * config/alpha/host-osf.c: New file.
36765 * config/alpha/x-osf: New file.
36766 * config.host (alpha*-dec-osf*): Use it.
36767
36768 2011-02-14 Anatoly Sokolov <aesok@post.ru>
36769
36770 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36771 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
36772 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
36773 (rx_mode_dependent_address_p): ...this. Make static. Change argument
36774 type to const_rtx.
36775 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36776
36777 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36778
36779 * config/stormy16/constraints.md: New file.
36780 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
36781 Use satisfies_constraint_Q and satisfies_constraint_R.
36782 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
36783 Delete.
36784 (xstormy16_legitiamte_address_p): Declare.
36785 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
36786 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36787 (EXTRA_CONSTRAINT): Delete.
36788 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
36789 Un-staticize.
36790 (xstormy16_extra_constraint_p): Delete.
36791
36792 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
36793
36794 PR tree-optimization/46494
36795 * loop-unroll.c (split_edge_and_insert): Adjust comment.
36796 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
36797 (pass_rtl_loop_done): Add TODO_verify_flow.
36798 * fwprop.c (pass_rtl_fwprop): Likewise.
36799 * modulo-sched.c (pass_sms): Likewise.
36800 * tree-ssa-dom.c (pass_dominator): Likewise.
36801 * tree-ssa-loop-ch.c (pass_ch): Likewise.
36802 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
36803 (pass_tree_loop_done): Likewise.
36804 * tree-ssa-pre.c (execute_pre): Likewise.
36805 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
36806 * tree-ssa-sink.c (pass_sink_code): Likewise.
36807 * tree-vrp.c (pass_vrp): Likewise.
36808
36809 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36810
36811 * config/v850/constraints.md: New file.
36812 * config/v850/v850.md: Include it.
36813 * config/v850/predicates.md (reg_or_0_operand): Use
36814 satisfies_constraint_G.
36815 (special_symbolref_operand): Use satisfies_constraint_K.
36816 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
36817 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
36818 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
36819 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
36820 (EXTRA_CONSTRAINT): Delete.
36821 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
36822 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
36823 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
36824
36825 2011-02-14 Anatoly Sokolov <aesok@post.ru>
36826
36827 PR target/47696
36828 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
36829 description.
36830
36831 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36832
36833 * config/mcore/constraints.md: New file.
36834 * config/mcore/mcore.md: Include it.
36835 * config/mcore/mcore.c (reg_class_from_letter): Delete.
36836 * config/mcore/mcore.h (reg_class_from_letter): Delete.
36837 (REG_CLASS_FROM_LETTER): Delete.
36838 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
36839 insn_const_int_ok_for_constraint.
36840 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
36841 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
36842 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36843 (EXTRA_CONSTRAINT): Delete.
36844
36845 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36846
36847 PR ada/41929
36848 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
36849 (IS_SIGHANDLER): Define.
36850 (sparc64_is_sighandler): New function, split off from
36851 sparc64_fallback_frame_state.
36852 (sparc_is_sighandler): New function, split off from
36853 sparc_fallback_frame_state.
36854 (sparc64_fallback_frame_state): Merge with ...
36855 (sparc_fallback_frame_state): ... this into ...
36856 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
36857 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
36858 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
36859 stack instead of hardcoded offsets.
36860
36861 2011-02-14 Andriy Gapon <avg@freebsd.org>
36862
36863 PR target/45808
36864 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
36865
36866 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36867
36868 * configure: Regenerate.
36869
36870 2011-02-12 Joseph Myers <joseph@codesourcery.com>
36871
36872 PR driver/45731
36873 * gcc.c (asm_options): Correct spec matching --target-help.
36874
36875 2011-02-12 Martin Jambor <mjambor@suse.cz>
36876
36877 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
36878 to gimple call error.
36879
36880 2011-02-12 Mike Stump <mikestump@comcast.net>
36881
36882 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
36883 comments in backslash regions.
36884
36885 2011-02-12 Mike Stump <mikestump@comcast.net>
36886 Jakub Jelinek <jakub@redhat.com>
36887 Iain Sandoe <iains@gcc.gnu.org>
36888
36889 PR target/47324
36890 * dwarf2out.c (output_cfa_loc): When required, apply the
36891 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
36892 (output_loc_sequence): Likewise.
36893 (output_loc_operands_raw): Likewise.
36894 (output_loc_sequence_raw): Likewise.
36895 (output_cfa_loc): Likewise.
36896 (output_loc_list): Suppress register number adjustment when
36897 calling output_loc_sequence()
36898 (output_die): Likewise.
36899
36900 2011-02-12 Anatoly Sokolov <aesok@post.ru>
36901
36902 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
36903 Remove macros.
36904 * config/xtensa/xtensa.c (xtensa_register_move_cost,
36905 xtensa_memory_move_cost): New functions.
36906 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
36907
36908 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
36909
36910 PR lto/47225
36911 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
36912 in the current directory.
36913 * configure: Rebuilt.
36914
36915 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
36916
36917 * config/darwin.c (darwin_override_options): Add a hunk missed
36918 from the commit of r168571. Trim comment line lengths and
36919 correct indents of the preceding block.
36920
36921 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
36922
36923 * gcc.c (driver_handle_option): Concatenate the argument to -F with
36924 the switch.
36925
36926 2011-02-11 Joseph Myers <joseph@codesourcery.com>
36927
36928 * common.opt (nostartfiles): New Driver option.
36929
36930 2011-02-11 Xinliang David Li <davidxl@google.com>
36931
36932 PR tree-optimization/47707
36933 * tree-chrec.c (convert_affine_scev): Keep type precision.
36934
36935 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
36936
36937 PR tree-optimization/47420
36938 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
36939
36940 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
36941
36942 PR rtl-optimization/47614
36943 * rtl.h (check_for_inc_dec): Declare.
36944 * dse.c (check_for_inc_dec): Externalize...
36945 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
36946 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
36947
36948 2011-02-11 Joseph Myers <joseph@codesourcery.com>
36949
36950 PR driver/47678
36951 * gcc.c (main): Do not compile inputs if there were errors in
36952 option handling.
36953 * opts-common.c (read_cmdline_option): Check for wrong language
36954 after other error checks.
36955
36956 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
36957
36958 * cgraph.c: Fix comment typos.
36959 * cgraph.h: Likewise.
36960 * cgraphunit.c: Likewise.
36961 * ipa-cp.c: Likewise.
36962 * ipa-inline.c: Likewise.
36963 * ipa-prop.c: Likewise.
36964 * ipa-pure-const.c: Likewise.
36965 * ipa-ref.c: Likewise.
36966 * ipa-reference.c: Likewise.
36967
36968 2011-02-11 Jakub Jelinek <jakub@redhat.com>
36969
36970 PR debug/47684
36971 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
36972
36973 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36974
36975 PR testsuite/47400
36976 * doc/sourcebuild.texi (Require Support): Document
36977 dg-require-ascii-locale.
36978
36979 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
36980
36981 * doc/lto.texi (Write summary): Fix missing parentheses.
36982
36983 2011-02-10 DJ Delorie <dj@redhat.com>
36984
36985 * config/m32c/m32c.c (m32c_option_override): Disable
36986 -fcombine-stack-adjustments until flag value tracking and compare
36987 optimization can be rewritten.
36988
36989 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
36990
36991 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
36992 PROCESSOR_POWER7.
36993 (PROCESSOR_DEFAULT64): Likewise.
36994
36995 2011-02-10 Richard Henderson <rth@redhat.com>
36996
36997 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
36998 change from 2011-02-03.
36999 * config/rx/rx.c (flags_from_code): Likewise.
37000 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
37001 is valid, n/pz otherwise.
37002 (rx_select_cc_mode): Return CCmode if Y is not zero.
37003
37004 2011-02-10 Richard Guenther <rguenther@suse.de>
37005
37006 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
37007
37008 2011-02-10 Richard Guenther <rguenther@suse.de>
37009
37010 PR tree-optimization/47677
37011 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
37012
37013 2011-02-10 Jakub Jelinek <jakub@redhat.com>
37014
37015 PR target/47665
37016 * combine.c (make_compound_operation): Only change shifts into
37017 multiplication for SCALAR_INT_MODE_P.
37018
37019 2011-02-10 Jie Zhang <jie@codesourcery.com>
37020
37021 PR testsuite/47622
37022 Revert
37023 2011-02-05 Jie Zhang <jie@codesourcery.com>
37024 PR debug/42631
37025 * web.c (entry_register): Don't clobber the number of the
37026 first uninitialized reference in used[].
37027
37028 2011-02-09 Richard Guenther <rguenther@suse.de>
37029
37030 PR tree-optimization/47664
37031 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
37032 all edges again.
37033
37034 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
37035
37036 PR target/46481
37037 PR target/47032
37038 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
37039 PROCESSOR_POWER7.
37040 (PROCESSOR_DEFAULT64): Same.
37041 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
37042
37043 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37044
37045 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
37046
37047 2011-02-09 Martin Jambor <mjambor@suse.cz>
37048
37049 PR middle-end/45505
37050 * tree-sra.c (struct access): New flags grp_scalar_read and
37051 grp_scalar_write. Changed description of assignment read and write
37052 flags.
37053 (dump_access): Dump new flags, reorder all of them.
37054 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
37055 to detect multiple scalar reads.
37056 (analyze_access_subtree): Use the new scalar read write flags instead
37057 of the old flags. Adjusted comments.
37058
37059 2011-02-08 DJ Delorie <dj@redhat.com>
37060
37061 PR target/47548
37062 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
37063 patterns.
37064
37065 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37066
37067 * config/m68k/uclinux.opt: New.
37068 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
37069
37070 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37071
37072 * config/cris/elf.opt (sim): New Driver option.
37073
37074 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37075
37076 * config/xtensa/elf.opt: New.
37077 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
37078
37079 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37080
37081 * config/vax/elf.opt: New.
37082 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
37083
37084 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37085
37086 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
37087
37088 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37089
37090 * config/gnu-user.opt: New.
37091 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
37092 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
37093 *-*-uclinux*): Use gnu-user.opt.
37094
37095 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
37096
37097 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
37098 * config/i386/gnu.h (CPP_SPEC): Likewise.
37099
37100 2011-02-08 Ian Lance Taylor <iant@google.com>
37101
37102 * common.opt (fcx-limited-range): Add SetByCombined flag.
37103 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
37104 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
37105 (fassociative-math, freciprocal-math): Likewise.
37106 (funsafe-math-optimizations): Likewise.
37107 * opth-gen.awk: Handle SetByCombined.
37108 * optc-gen.awk: Likewise.
37109 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
37110 (set_unsafe_math_optimizations_flags): Likewise.
37111 * doc/options.texi (Option properties): Document SetByCombined.
37112
37113 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37114
37115 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
37116 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
37117 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
37118 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
37119 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
37120
37121 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
37122
37123 PR tree-optimization/46834
37124 PR tree-optimization/46994
37125 PR tree-optimization/46995
37126 * graphite-sese-to-poly.c (used_outside_reduction): New.
37127 (detect_commutative_reduction): Call used_outside_reduction.
37128 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
37129 translate_scalar_reduction_to_array only when at least one
37130 loop-phi/close-phi tuple has been detected.
37131
37132 2011-02-08 Richard Guenther <rguenther@suse.de>
37133
37134 PR middle-end/47639
37135 * tree-vect-generic.c (expand_vector_operations_1): Update
37136 stmts here ...
37137 (expand_vector_operations): ... not here. Cleanup EH info
37138 and the CFG if required.
37139
37140 2011-02-08 Richard Guenther <rguenther@suse.de>
37141
37142 PR tree-optimization/47641
37143 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
37144 require type compatibility.
37145
37146 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37147
37148 * gimple-low.c (lower_function_body): Don't remove the location of
37149 the return statement here.
37150 (lower_gimple_return): Do it here instead but only if the return
37151 statement is actually used twice.
37152
37153 2011-02-08 Richard Guenther <rguenther@suse.de>
37154
37155 PR tree-optimization/47632
37156 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
37157 unused up_to_stmt parameter, return whether cfg-cleanup is
37158 necessary, remove EH info properly.
37159 (forward_propagate_into_gimple_cond): Adjust caller.
37160 (forward_propagate_into_cond): Likewise.
37161 (forward_propagate_comparison): Likewise.
37162 (tree_ssa_forward_propagate_single_use_vars): Make
37163 forward_propagate_comparison case similar to the two others.
37164
37165 2011-02-08 Nick Clifton <nickc@redhat.com>
37166
37167 * config/mn10300/mn10300.opt (mliw): New command line option.
37168 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
37169 (liw_bundling): New automaton.
37170 (liw): New attribute.
37171 (liw_op): New attribute.
37172 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
37173 (movsi_internal): Add LIW attributes.
37174 (andsi3): Likewise.
37175 (iorsi3): Likewise.
37176 (xorsi3): Likewise.
37177 (addsi3): Separate register and immediate alternatives.
37178 Add LIW attributes.
37179 (subsi3): Likewise.
37180 (cmpsi): Likewise.
37181 (aslsi3): Likewise.
37182 (lshrsi3): Likewise.
37183 (ashrsi3): Likewise.
37184 (liw): New pattern.
37185 * config/mn10300/mn10300.c (liw_op_names): New
37186 (mn10300_print_operand): Handle 'W' operand descriptor.
37187 (extract_bundle): New function.
37188 (check_liw_constraints): New function.
37189 (liw_candidate): New function.
37190 (mn10300_bundle_liw): New function.
37191 (mn10300_reorg): New function.
37192 (TARGET_MACHINE_DEPENDENT_REORG): Define.
37193 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
37194 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
37195 __LIW__ or __NO_LIW__.
37196 * doc/invoke.texi: Describe the -mliw command line option.
37197
37198 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37199
37200 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
37201 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
37202 pthread_mutex_unlock): Remove.
37203 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
37204 * config/pa/t-pa64: Likewise.
37205 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
37206 shared libc if not linking against libpthread.
37207 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37208
37209 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
37210
37211 PR target/47558
37212 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
37213 on 10.6 and later to ensure that we always use the unwinder from
37214 the system. Only add -no_compact_unwind when tarteting darwin
37215 10.6 or later.
37216
37217 2011-02-07 Steve Ellcey <sje@cup.hp.com>
37218
37219 PR target/46997
37220 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
37221 (vec_interleave_lowv2sf): Ditto.
37222 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
37223 (vec_extract_oddv2sf): Ditto.
37224
37225 2011-02-07 Mike Stump <mikestump@comcast.net>
37226
37227 PR target/42333
37228 Add __ieee_divdc3 entry point.
37229 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
37230 entry point.
37231 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
37232 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
37233 * config/darwin.c (darwin_rename_builtins): Add.
37234 * config/darwin-protos.h (darwin_rename_builtins): Add.
37235
37236 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
37237
37238 PR target/47636
37239 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
37240 for the condition.
37241
37242 2011-02-07 Mike Stump <mikestump@comcast.net>
37243
37244 * config/darwin.opt (mmacosx-version-min): Update default OS version.
37245
37246 2011-02-07 Denis Chertykov <chertykov@gmail.com>
37247
37248 PR target/47534
37249 * config/avr/libgcc.S (exit): Move .endfunc
37250
37251 2011-02-07 Richard Guenther <rguenther@suse.de>
37252
37253 PR tree-optimization/47615
37254 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
37255 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
37256 (run_scc_vn): Initialize it.
37257 (visit_reference_op_load): Use it.
37258 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
37259
37260 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37261
37262 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
37263 DImode trapping arithmetic libfuncs.
37264
37265 2011-02-07 Richard Guenther <rguenther@suse.de>
37266
37267 PR tree-optimization/47621
37268 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
37269 two duplicates ...
37270 (execute_update_addresses_taken): ... here. Make it more
37271 conservative in what we accept.
37272
37273 2011-02-06 Joseph Myers <joseph@codesourcery.com>
37274
37275 * config/sparc/freebsd.h (ASM_SPEC): Define.
37276 * config/sparc/vxworks.h (ASM_SPEC): Define.
37277
37278 2011-02-06 Joseph Myers <joseph@codesourcery.com>
37279
37280 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
37281
37282 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
37283
37284 * doc/invoke.texi: Remove reference to compiler internals from
37285 user documentation.
37286
37287 * reg-notes.def: Remove REG_VALUE_PROFILE.
37288 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
37289
37290 2011-02-05 Jakub Jelinek <jakub@redhat.com>
37291
37292 PR middle-end/47610
37293 * varasm.c (default_section_type_flags): If decl is NULL,
37294 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
37295
37296 2011-02-05 Jie Zhang <jie@codesourcery.com>
37297
37298 PR debug/42631
37299 * web.c (entry_register): Don't clobber the number of the
37300 first uninitialized reference in used[].
37301
37302 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
37303
37304 PR tree-optimization/46194
37305 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
37306 (build_classic_dist_vector_1): Do not represent classic distance
37307 vectors when the access functions are variating in different loops.
37308
37309 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37310
37311 * config/mips/iris6.opt: New.
37312 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
37313
37314 2011-02-04 Richard Henderson <rth@redhat.com>
37315 Steve Ellcey <sje@cup.hp.com>
37316
37317 PR target/46997
37318 * config/ia64/predicates.md (mux1_brcst_element): New.
37319 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
37320 * config/ia64/ia64.c (ia64_unpack_assemble): New.
37321 (ia64_unpack_sign): New.
37322 (ia64_expand_unpack): Rewrite using new routines.
37323 (ia64_expand_widen_sum): Ditto.
37324 (ia64_expand_dot_prod_v8qi): Ditto.
37325 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
37326 routines, add endian check.
37327 (pmpy2_even): Rename from pmpy2_r, add endian check.
37328 (pmpy2_odd): Rename from pmpy2_l, add endian check.
37329 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
37330 (vec_widen_smult_hi_v4hi): Ditto.
37331 (vec_widen_umult_lo_v4hi): Ditto.
37332 (vec_widen_umult_hi_v4hi): Ditto.
37333 (mulv2si3): Change endian checks.
37334 (sdot_prodv4hi): Rewrite with new calls.
37335 (udot_prodv4hi): New.
37336 (vec_pack_ssat_v4hi): Add endian check.
37337 (vec_pack_usat_v4hi): Ditto.
37338 (vec_pack_ssat_v2si): Ditto.
37339 (max1_even): Rename from max1_r, add endian check.
37340 (max1_odd): Rename from max1_l, add endian check.
37341 (*mux1_rev): Format change.
37342 (*mux1_mix): Ditto.
37343 (*mux1_shuf): Ditto.
37344 (*mux1_alt): Ditto.
37345 (*mux1_brcst_v8qi): Use new predicate.
37346 (vec_extract_evenv8qi): Remove endian check.
37347 (vec_extract_oddv8qi): Ditto.
37348 (vec_interleave_lowv4hi): Format change.
37349 (vec_interleave_highv4hi): Ditto.
37350 (mix2_even): Rename from mix2_r, add endian check.
37351 (mix2_odd): Rename from mux2_l, add endian check.
37352 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
37353 (vec_extract_evenodd_helper): Format change.
37354 (vec_extract_evenv4hi): Remove endian check.
37355 (vec_extract_oddv4hi): Remove endian check.
37356 (vec_interleave_lowv2si): Format change.
37357 (vec_interleave_highv2si): Format change.
37358 (vec_initv2si): Remove endian check.
37359 (vecinit_v2si): Add endian check.
37360 (reduc_splus_v2sf): Add endian check.
37361 (reduc_smax_v2sf): Ditto.
37362 (reduc_smin_v2sf): Ditto.
37363 (vec_initv2sf): Remove endian check.
37364 (fpack): Add endian check.
37365 (fswap): Add endian check.
37366 (vec_interleave_highv2sf): Add endian check.
37367 (vec_interleave_lowv2sf): Add endian check.
37368 (fmix_lr): Add endian check.
37369 (vec_setv2sf): Format change.
37370 (*vec_extractv2sf_0_be): Use shift to extract operand.
37371 (*vec_extractv2sf_1_be): New.
37372 (vec_pack_trunc_v4hi): Add endian check.
37373 (vec_pack_trunc_v2si): Format change.
37374
37375 2011-02-04 Jakub Jelinek <jakub@redhat.com>
37376
37377 PR inline-asm/23200
37378 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
37379 do bb, locus and block comparison and disallow loads if it is not set.
37380 (stmt_is_replaceable_p): New function.
37381 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
37382 callers.
37383 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
37384 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
37385 SSA_NAME_DEF_STMT.
37386 * tree-flow.h (stmt_is_replaceable_p): New prototype.
37387
37388 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37389
37390 * config/rs6000/xilinx.opt: New.
37391 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
37392
37393 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37394
37395 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
37396
37397 2011-02-03 Anatoly Sokolov <aesok@post.ru>
37398
37399 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
37400 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
37401 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
37402 secondary_reload_info, xtensa_secondary_reload): Remove.
37403 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
37404 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
37405 (xtensa_preferred_reload_class): Make static. Change return and
37406 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
37407 Use CONST_DOUBLE_P predicate.
37408 (xtensa_preferred_output_reload_class): New function.
37409 (xtensa_secondary_reload): Make static.
37410
37411 2011-02-03 Joseph Myers <joseph@codesourcery.com>
37412
37413 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
37414 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
37415 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
37416
37417 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37418
37419 PR middle-end/31490
37420 * output.h (SECTION_RELRO): Define.
37421 (SECTION_MACH_DEP): Adjust.
37422 (get_variable_section): New prototype.
37423 * varpool.c (varpool_finalize_named_section_flags): New function.
37424 (varpool_assemble_pending_decls): Call it.
37425 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
37426 * cgraphunit.c (cgraph_output_in_order): Call
37427 varpool_finalize_named_section_flags.
37428 * varasm.c (get_section): Allow section flags conflicts between
37429 relro and read-only sections if the section hasn't been declared yet.
37430 Set SECTION_OVERRIDE after diagnosing section type conflict.
37431 (get_variable_section): No longer static.
37432 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
37433 readonly sections that need relocations.
37434 (decl_readonly_section_1): New function.
37435 (decl_readonly_section): Use it.
37436
37437 Revert:
37438 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
37439 Steve Ellcey <sje@cup.hp.com>
37440
37441 PR middle-end/31490
37442 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
37443 if section attribute used.
37444
37445 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37446
37447 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
37448 * config/darwin.c (SECTION_NO_ANCHOR): Define.
37449 (darwin_init_sections): Remove assertion.
37450
37451 2011-02-03 Nick Clifton <nickc@redhat.com>
37452
37453 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
37454 lt and ge.
37455 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
37456 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
37457 instead of "n" and "pz".
37458 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
37459 CC_FLAG_S.
37460
37461 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37462
37463 PR target/47312
37464 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
37465 fma, expand FMA_EXPR as fma{,f,l} call.
37466
37467 PR lto/47274
37468 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
37469 copy them into a unsigned char variable and pass address of it to
37470 lto_output_data_stream.
37471
37472 PR target/47564
37473 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
37474 around backend_init_target and lang_dependent_init_target calls.
37475 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
37476 (verify_cgraph_node): Don't call set_cfun here. Use
37477 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
37478 Set error_found for incorrectly represented calls to thunks.
37479
37480 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
37481
37482 PR debug/43092
37483 PR rtl-optimization/43494
37484 * rtl.h (for_each_inc_dec_fn): New type.
37485 (for_each_inc_dec): Declare.
37486 * rtlanal.c (struct for_each_inc_dec_ops): New type.
37487 (for_each_inc_dec_find_inc_dec): New fn.
37488 (for_each_inc_dec_find_mem): New fn.
37489 (for_each_inc_dec): New fn.
37490 * dse.c (struct insn_size): Remove.
37491 (replace_inc_dec, replace_inc_dec_mem): Remove.
37492 (emit_inc_dec_insn_before): New fn.
37493 (check_for_inc_dec): Use it, along with for_each_inc_dec.
37494 (canon_address): Pass mem modes to cselib_lookup.
37495 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
37496 (cselib_lookup_from_insn): Likewise.
37497 (cselib_subst_to_values): Likewise.
37498 * cselib.c (find_slot_memmode): New var.
37499 (cselib_find_slot): New fn. Use it instead of
37500 htab_find_slot_with_hash everywhere.
37501 (entry_and_rtx_equal_p): Use find_slot_memmode.
37502 (autoinc_split): New fn.
37503 (rtx_equal_for_cselib_p): Rename and implement in terms of...
37504 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
37505 Deal with autoinc. Special-case recursion into MEMs.
37506 (cselib_hash_rtx): Likewise.
37507 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
37508 address and MEM modes.
37509 (cselib_subst_to_values): Add memmode, pass it on.
37510 Deal with autoinc.
37511 (cselib_lookup): Add memmode argument, pass it on.
37512 (cselib_lookup_from_insn): Add memmode.
37513 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
37514 (struct cselib_record_autoinc_data): New.
37515 (cselib_record_autoinc_cb): New fn.
37516 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
37517 mode to cselib_lookup. Reset autoinced REGs here instead of...
37518 (cselib_process_insn): ... here.
37519 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
37520 to cselib_lookup.
37521 (add_uses): Likewise, also to cselib_subst_to_values.
37522 (add_stores): Likewise.
37523 * sched-deps.c (add_insn_mem_dependence): Pass mode to
37524 cselib_subst_to_values.
37525 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
37526 * gcse.c (do_local_cprop): Adjusted.
37527 * postreload.c (reload_cse_simplify_set): Adjusted.
37528 (reload_cse_simplify_operands): Adjusted.
37529 * sel-sched-dump (debug_mem_addr_value): Pass mode.
37530
37531 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
37532
37533 PR tree-optimization/45122
37534 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
37535 unsafe assumptions when there's more than one loop exit.
37536
37537 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37538
37539 PR target/47272
37540 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
37541 Document using vector double with the load/store builtins, and
37542 that the load/store builtins always use Altivec instructions.
37543
37544 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
37545 to use altivec memory instructions, even on VSX.
37546 (vector_altivec_store_<mode>): Ditto.
37547
37548 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
37549 function.
37550
37551 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
37552 V2DF, V2DI support to load/store overloaded builtins.
37553
37554 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
37555 altivec load/store builtins for V2DF/V2DI types.
37556
37557 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
37558 set avoid indexed addresses on power6 if -maltivec.
37559 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
37560 vector_altivec_load/vector_altivec_store builtins.
37561 (altivec_expand_st_builtin): Ditto.
37562 (altivec_expand_builtin): Add VSX memory builtins.
37563 (rs6000_init_builtins): Add V2DI types to internal types.
37564 (altivec_init_builtins): Add support for V2DF/V2DI altivec
37565 load/store builtins.
37566 (rs6000_address_for_altivec): Insure memory address is appropriate
37567 for Altivec.
37568
37569 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
37570 vec_vsx_ld and vec_vsx_st.
37571 (vsx_store_<mode>): Ditto.
37572
37573 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
37574 variables to hold long long types for VSX vector memory builtins.
37575 (RS6000_BTI_unsigned_long_long): Ditto.
37576 (long_long_integer_type_internal_node): Ditti.
37577 (long_long_unsigned_type_internal_node): Ditti.
37578
37579 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
37580 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
37581 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
37582
37583 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
37584 short cuts.
37585 (vec_vsx_st): Ditto.
37586
37587 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37588
37589 * config/pa/pa-hpux10.opt: New.
37590 * config/hpux11.opt (pthread): New Driver option.
37591 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
37592 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
37593
37594 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37595
37596 * config/ia64/vms.opt: New.
37597 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
37598
37599 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
37600
37601 PR target/47580
37602 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
37603 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
37604 generator functions.
37605 (vsx_floatuns<VSi><mode>2): Ditto.
37606 (vsx_fix_trunc<mode><VSi>2): Ditto.
37607 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
37608
37609 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37610
37611 * config/i386/djgpp.opt (posix): New Driver option.
37612
37613 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
37614
37615 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
37616 Move to the unsupported targets list.
37617
37618 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
37619
37620 PR rtl-optimization/47525
37621 * df-scan.c: Update copyright years.
37622 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
37623 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
37624
37625 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37626
37627 * config/i386/sysv4.h (TARGET_VERSION): Remove.
37628 (SUBTARGET_RETURN_IN_MEMORY): Remove.
37629 (ASM_OUTPUT_ASCII): Remove.
37630 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
37631
37632 2011-02-02 Jeff Law <law@redhat.com>
37633
37634 PR middle-end/47543
37635 * reload.c (find_reloads_address): Handle reg+d address where both
37636 components are invalid by reloading the entire address.
37637
37638 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
37639 Richard Guenther <rguenther@suse.de>
37640
37641 PR tree-optimization/40979
37642 PR bootstrap/47044
37643 * passes.c (init_optimization_passes): After LIM call copy_prop
37644 and DCE to clean up.
37645 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
37646
37647 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
37648
37649 PR tree-optimization/47576
37650 PR tree-optimization/47555
37651 * doc/invoke.texi (scev-max-expr-complexity): Documented.
37652 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
37653 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
37654 * tree-scalar-evolution.c (follow_ssa_edge): Use
37655 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
37656
37657 2011-02-02 Richard Guenther <rguenther@suse.de>
37658
37659 PR tree-optimization/47566
37660 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
37661
37662 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
37663
37664 PR debug/47106
37665 PR debug/47402
37666 * tree-inline.c (declare_return_variable): Remove unused caller
37667 variable.
37668
37669 PR debug/47106
37670 PR debug/47402
37671 * tree-flow-inline.h (clear_is_used, is_used_p): New.
37672 * cfgexpand.c (account_used_vars_for_block): Use them.
37673 * tree-nrv.c (tree_nrv): Likewise.
37674 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
37675 (dump_scope_block): Likewise.
37676 (remove_unused_locals): Likewise.
37677
37678 PR debug/47106
37679 PR debug/47402
37680 * tree-inline.c (declare_return_variable): Add result decl to
37681 local decls only once.
37682 * gimple-low.c (record_vars_into): Mark newly-created variables
37683 as referenced.
37684
37685 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
37686
37687 PR debug/47498
37688 PR debug/47501
37689 PR debug/45136
37690 PR debug/45130
37691 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37692 debug insns.
37693 (no_real_insns_p, schedule_block, set_priorities): Drop special
37694 treatment of boundary debug insns.
37695 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37696 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
37697 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37698 (BOUNDARY_DEBUG_INSN_P): Likewise.
37699 (SCHEDULE_DEBUG_INSN_P): Likewise.
37700 * sched-rgn.c (init_ready_list): Drop special treatment of
37701 boundary debug insns.
37702 * final.c (rest_of_clean_state): Clear notes' BB.
37703
37704 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37705
37706 * config/openbsd.opt (assert=): New Driver option.
37707
37708 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37709
37710 * config/i386/nto.opt: New.
37711 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
37712
37713 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37714
37715 * config/i386/netware.opt: New.
37716 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
37717
37718 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37719
37720 * config/interix.opt (posix): New Driver option.
37721
37722 2011-02-01 DJ Delorie <dj@redhat.com>
37723
37724 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
37725
37726 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
37727 class for A0/A1.
37728
37729 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
37730
37731 PR tree-optimization/47561
37732 * toplev.c (process_options): Print the Graphite flags. Add
37733 flag_loop_flatten to the list of options requiring Graphite.
37734
37735 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37736
37737 * config/i386/cygming.opt (posix): New Driver option.
37738
37739 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37740
37741 * config/arm/vxworks.opt: New.
37742 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
37743
37744 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37745
37746 * config/alpha/elf.opt: New.
37747 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
37748 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
37749
37750 2011-02-01 Richard Guenther <rguenther@suse.de>
37751
37752 PR tree-optimization/47559
37753 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
37754 store-motion on references that can throw.
37755
37756 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
37757
37758 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
37759 * tree-pass.h (TDF_CSELIB): New macro.
37760 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
37761 cselib_lookup): Check for it rather than for TDF_DETAILS.
37762
37763 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
37764
37765 PR driver/47547
37766 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
37767 is HOST_BIT_BUCKET.
37768
37769 * opts.c (finish_options): Don't add x_aux_base_name if it is
37770 HOST_BIT_BUCKET.
37771
37772 2011-02-01 Richard Guenther <rguenther@suse.de>
37773
37774 PR tree-optimization/47555
37775 Revert
37776 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
37777
37778 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
37779
37780 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
37781
37782 PR gcc/46692
37783 * config/lm32/t-lm32: Add multilib for all CPU options.
37784
37785 2011-02-01 Richard Guenther <rguenther@suse.de>
37786
37787 PR tree-optimization/47541
37788 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
37789 sure to have a field at offset zero.
37790
37791 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37792
37793 * config/arc/arc.opt (EB, EL): New Driver options.
37794
37795 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37796
37797 * config/alpha/osf5.opt: New.
37798 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
37799
37800 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37801
37802 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
37803
37804 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
37805
37806 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
37807 -floop-interchange.
37808 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
37809 is an alias of -floop-interchange and that it requires the
37810 Graphite infrastructure.
37811 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
37812 flag_loop_interchange based on the value of flag_tree_loop_linear.
37813
37814 2011-01-31 Jakub Jelinek <jakub@redhat.com>
37815 Richard Guenther <rguenther@suse.de>
37816
37817 PR tree-optimization/47538
37818 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
37819 type instead of r1type, except for comparisons. For right
37820 shifts and comparisons punt if there are mismatches in
37821 sizetype vs. non-sizetype types.
37822
37823 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37824
37825 * doc/sourcebuild.texi (Effective-Target Keywords): Document
37826 avx_runtime.
37827
37828 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37829
37830 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
37831 version number.
37832 * configure: Regenerate.
37833
37834 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37835
37836 * configure.ac (gcc_cv_ld_static_option): Define.
37837 (gcc_cv_ld_dynamic_option): Define.
37838 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
37839 instead.
37840 (HAVE_LD_STATIC_DYNAMIC): Update message.
37841 (LD_STATIC_OPTION): Define.
37842 (LD_DYNAMIC_OPTION): Define.
37843 * configure: Regenerate.
37844 * config.in: Regenerate.
37845 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
37846 HAVE_LD_STATIC_DYNAMIC]: Use them.
37847
37848 2011-01-31 Nick Clifton <nickc@redhat.com>
37849
37850 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
37851 registers inside interrupt handlers if the handler is not a leaf
37852 function.
37853
37854 2011-01-31 Nick Clifton <nickc@redhat.com>
37855
37856 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
37857 reg_renumber returning an INVALID_REGNUM.
37858
37859 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
37860
37861 PR libgcj/44341
37862 * doc/install.texi: Document host options discarded when cross
37863 configuring target libraries.
37864
37865 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
37866
37867 Reverted:
37868 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
37869 PR debug/45136
37870 PR debug/45130
37871 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37872 debug insns.
37873 (no_real_insns_p, schedule_block, set_priorities): Drop special
37874 treatment of boundary debug insns.
37875 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37876 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
37877 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37878 (BOUNDARY_DEBUG_INSN_P): Likewise.
37879 (SCHEDULE_DEBUG_INSN_P): Likewise.
37880 * sched-rgn.c (init_ready_list): Drop special treatment of
37881 boundary debug insns.
37882 * final.c (rest_of_clean-state): Clear notes' BB.
37883
37884 2011-01-31 Alan Modra <amodra@gmail.com>
37885
37886 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
37887 toc relative expressions as we do in print_operand_address.
37888
37889 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
37890
37891 * doc/extend.texi: Follow spelling conventions.
37892 * doc/invoke.texi: Fix a typo.
37893
37894 2011-01-30 Joseph Myers <joseph@codesourcery.com>
37895
37896 * config/hpux11.opt: New.
37897 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
37898 ia64*-*-hpux*): Use hpux11.opt.
37899
37900 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
37901
37902 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
37903 to tmake_file.
37904
37905 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37906
37907 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
37908 support sites.
37909
37910 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37911
37912 * doc/install.texi (Binaries): Remove outdated reference for
37913 Motorola 68HC11/68HC12 downloads.
37914
37915 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37916
37917 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
37918 Drepper's paper.
37919
37920 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
37921
37922 PR bootstrap/47147
37923 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
37924 used by NetBSD.
37925
37926 2011-01-28 Ahmad Sharif <asharif@google.com>
37927
37928 * value-prof.c (check_counter): Corrected error message.
37929
37930 2011-01-29 Jie Zhang <jie@codesourcery.com>
37931
37932 * config/arm/arm.c (arm_legitimize_reload_address): New.
37933 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
37934 arm_legitimize_reload_address.
37935 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
37936
37937 2011-01-28 Ian Lance Taylor <iant@google.com>
37938
37939 * godump.c (go_define): Ignore macros whose definitions include
37940 two adjacent operands.
37941
37942 2011-01-28 Jakub Jelinek <jakub@redhat.com>
37943
37944 PR target/42894
37945 * varasm.c (force_const_mem): Store copy of x in desc->constant
37946 instead of x itself.
37947 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
37948 itself into REG_EQUAL note.
37949
37950 2011-01-28 Joseph Myers <joseph@codesourcery.com>
37951
37952 * config/freebsd.opt (posix, rdynamic): New Driver options.
37953
37954 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37955
37956 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
37957 -Bstatic/-Bdynamic.
37958 * configure: Regenerate.
37959
37960 2011-01-27 Joseph Myers <joseph@codesourcery.com>
37961
37962 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
37963 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
37964
37965 2011-01-27 Anatoly Sokolov <aesok@post.ru>
37966
37967 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
37968 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
37969 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
37970 (s390_preferred_reload_class): Make static. Change return and
37971 'rclass' argument type to reg_class_t.
37972
37973 2011-01-27 Jan Hubicka <jh@suse.cz>
37974
37975 PR middle-end/46949
37976 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
37977 (process_function_and_variable_attributes): Check defined weakrefs.
37978
37979 2011-01-27 Martin Jambor <mjambor@suse.cz>
37980
37981 PR tree-optimization/47228
37982 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
37983 build_ref_for_offset.
37984
37985 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37986
37987 * config/spu/spu-elf.h (ASM_SPEC): Remove.
37988
37989 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
37990
37991 PR rtl-optimization/46856
37992 * postreload.c (reload_combine_recognize_const_pattern): Do not
37993 separate cc0 setter and user on cc0 targets.
37994
37995 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
37996
37997 PR c/43082
37998 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
37999 passed a VOID_TYPE expression, immediately emit an error and
38000 return error_mark_node.
38001
38002 2011-01-26 Jeff Law <law@redhat.com>
38003
38004 PR rtl-optimization/47464
38005 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
38006 rather than may_trap_p as needed.
38007
38008 2011-01-26 DJ Delorie <dj@redhat.com>
38009
38010 PR rtl-optimization/46878
38011 * combine.c (insn_a_feeds_b): Check for the implicit cc0
38012 setter/user dependency as well.
38013
38014 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
38015
38016 PR rtl-optimization/44469
38017 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
38018 after removing trivially dead basic blocks.
38019
38020 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38021
38022 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
38023 * config/frv/frv.h (LINK_SPEC): Likewise.
38024 * config/i386/netware.h (LINK_SPEC): Likewise.
38025 * config/m68k/linux.h (ASM_SPEC): Likewise.
38026 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
38027 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
38028 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38029 * config/sparc/linux.h (ASM_SPEC): Likewise.
38030 * config/sparc/linux64.h (ASM_SPEC): Likewise.
38031 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
38032
38033 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38034
38035 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
38036 * config/frv/frv.h (ASM_SPEC): Likewise.
38037 * config/m68k/linux.h (ASM_SPEC): Likewise.
38038 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
38039 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
38040 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38041 * config/sparc/linux.h (ASM_SPEC): Likewise.
38042 * config/sparc/linux64.h (ASM_SPEC): Likewise.
38043 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
38044
38045 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38046
38047 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
38048 * config/frv/frv.h (LINK_SPEC): Likewise.
38049 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
38050
38051 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38052
38053 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
38054 * config/frv/frv.h (ASM_SPEC): Likewise.
38055 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
38056 * config/m68k/linux.h (ASM_SPEC): Likewise.
38057 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
38058 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
38059 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38060 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
38061 * config/sparc/linux.h (ASM_SPEC): Likewise.
38062 * config/sparc/linux64.h (ASM_SPEC): Likewise.
38063 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
38064 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
38065
38066 2011-01-26 Steve Ellcey <sje@cup.hp.com>
38067
38068 PR target/46997
38069 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
38070 (*mux2): Ditto.
38071 (vec_extract_evenodd_help): Ditto.
38072 (vec_extract_evenv4hi): Ditto.
38073 (vec_extract_oddv4hi): Ditto.
38074 (vec_interleave_lowv2si): Ditto.
38075 (vec_interleave_highv2si): Ditto.
38076 (vec_extract_evenv2si): Ditto.
38077 (vec_extract_oddv2si: Ditto.
38078 (vec_pack_trunc_v2si): Ditto.
38079
38080 2011-01-22 Jan Hubicka <jh@suse.cz>
38081
38082 PR target/47237
38083 * cgraph.h (cgraph_local_info): New field can_change_signature.
38084 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
38085 signature can change.
38086 (ipcp_estimate_growth): Call sequence simplify only if calle signature
38087 can change.
38088 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
38089 (cgraph_function_versioning): We can not change signature of functions
38090 that don't allow that.
38091 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
38092 (lto_input_node): Likewise.
38093 * ipa-inline.c (compute_inline_parameters): Compute
38094 local.can_change_signature.
38095 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38096 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
38097 functions that can not change signature.
38098 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38099 init_cumulative_args): Do not use local calling conventions
38100 for functions that can not change signature.
38101
38102 2011-01-22 Jan Hubicka <jh@suse.cz>
38103
38104 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
38105
38106 2011-01-26 Richard Guenther <rguenther@suse.de>
38107
38108 PR tree-optimization/47190
38109 * cgraphunit.c (process_common_attributes): New function.
38110 (process_function_and_variable_attributes): Use it.
38111
38112 2011-01-26 Richard Guenther <rguenther@suse.de>
38113
38114 PR lto/47423
38115 * cgraphbuild.c (record_eh_tables): Record reference to personality
38116 function.
38117
38118 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
38119
38120 PR debug/45454
38121 * sel-sched.c (moveup_expr): Don't let debug insns prevent
38122 non-debug insns from moving up.
38123
38124 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
38125
38126 PR target/40125
38127 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
38128 t-dlldir{,-x} fragment for build and add it to tmake_file.
38129 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
38130 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
38131 * config/i386/t-dlldir: New file.
38132 (SHLIB_DLLDIR): Define.
38133 * config/i386/t-dlldir-x: New file.
38134 (SHLIB_DLLDIR): Define.
38135 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
38136 (SHLIB_INSTALL): Use it.
38137
38138 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
38139
38140 PR target/47246
38141 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
38142 lower bound of the allowed Thumb-2 coprocessor load/store
38143 index range to -256. Add explaining comment.
38144
38145 2011-01-25 Ian Lance Taylor <iant@google.com>
38146
38147 * godump.c (go_define): Improve lexing of macro expansion to only
38148 accept expressions which match Go spec.
38149
38150 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
38151
38152 PR c++/43601
38153 * tree.c (handle_dll_attribute): Handle it.
38154 * doc/extend.texi (@item dllexport): Mention it.
38155 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
38156
38157 2011-01-25 Ian Lance Taylor <iant@google.com>
38158
38159 PR tree-optimization/26854
38160 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
38161 (decl_jump_unsafe): Move higher in file, with no other change.
38162 (bind): Set has_jump_unsafe_decl if appropriate.
38163 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
38164 (check_earlier_gotos): Likewise.
38165 (c_check_switch_jump_warnings): Likewise.
38166
38167 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
38168
38169 * doc/invoke.texi (Warning Options): Add missing hyphen.
38170 (-fprofile-dir): Minor grammatical fixes.
38171 (-fbranch-probabilities): Likewise.
38172
38173 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
38174
38175 PR debug/45136
38176 PR debug/45130
38177 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
38178 debug insns.
38179 (no_real_insns_p, schedule_block, set_priorities): Drop special
38180 treatment of boundary debug insns.
38181 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
38182 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
38183 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
38184 (BOUNDARY_DEBUG_INSN_P): Likewise.
38185 (SCHEDULE_DEBUG_INSN_P): Likewise.
38186 * sched-rgn.c (init_ready_list): Drop special treatment of
38187 boundary debug insns.
38188 * final.c (rest_of_clean-state): Clear notes' BB.
38189
38190 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38191
38192 * Makefile.in (LAMBDA_H): Removed.
38193 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
38194 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
38195 lambda-trans.o, and tree-loop-linear.o.
38196 (lto-symtab.o): Remove dependence on LAMBDA_H.
38197 (tree-loop-linear.o): Remove rule.
38198 (lambda-mat.o): Same.
38199 (lambda-trans.o): Same.
38200 (lambda-code.o): Same.
38201 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
38202 (tree-vect-slp.o): Same.
38203 * hwint.h (gcd): Moved here.
38204 (least_common_multiple): Same.
38205 * lambda-code.c: Removed.
38206 * lambda-mat.c: Removed.
38207 * lambda-trans.c: Removed.
38208 * lambda.h: Removed.
38209 * tree-loop-linear.c: Removed.
38210 * lto-symtab.c: Do not include lambda.h.
38211 * omega.c (gcd): Removed.
38212 * passes.c (init_optimization_passes): Remove pass_linear_transform.
38213 * tree-data-ref.c (print_lambda_vector): Moved here.
38214 (lambda_vector_copy): Same.
38215 (lambda_matrix_copy): Same.
38216 (lambda_matrix_id): Same.
38217 (lambda_vector_first_nz): Same.
38218 (lambda_matrix_row_add): Same.
38219 (lambda_matrix_row_exchange): Same.
38220 (lambda_vector_mult_const): Same.
38221 (lambda_vector_negate): Same.
38222 (lambda_matrix_row_negate): Same.
38223 (lambda_vector_equal): Same.
38224 (lambda_matrix_right_hermite): Same.
38225 * tree-data-ref.h: Do not include lambda.h.
38226 (lambda_vector): Moved here.
38227 (lambda_matrix): Same.
38228 (dependence_level): Same.
38229 (lambda_transform_legal_p): Removed declaration.
38230 (lambda_collect_parameters): Same.
38231 (lambda_compute_access_matrices): Same.
38232 (lambda_vector_gcd): Same.
38233 (lambda_vector_new): Same.
38234 (lambda_vector_clear): Same.
38235 (lambda_vector_lexico_pos): Same.
38236 (lambda_vector_zerop): Same.
38237 (lambda_matrix_new): Same.
38238 * tree-flow.h (least_common_multiple): Removed declaration.
38239 * tree-parloops.c (lambda_trans_matrix): Moved here.
38240 (LTM_MATRIX): Same.
38241 (LTM_ROWSIZE): Same.
38242 (LTM_COLSIZE): Same.
38243 (LTM_DENOMINATOR): Same.
38244 (lambda_trans_matrix_new): Same.
38245 (lambda_matrix_vector_mult): Same.
38246 (lambda_transform_legal_p): Same.
38247 * tree-pass.h (pass_linear_transform): Removed declaration.
38248 * tree-ssa-loop.c (tree_linear_transform): Removed.
38249 (gate_tree_linear_transform): Removed.
38250 (pass_linear_transform): Removed.
38251 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
38252 flag_loop_interchange.
38253
38254 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38255
38256 PR tree-optimization/47265
38257 PR tree-optimization/47443
38258 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
38259 if name still has some uses.
38260
38261 2011-01-25 Martin Jambor <mjambor@suse.cz>
38262
38263 PR tree-optimization/47382
38264 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
38265 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
38266
38267 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
38268
38269 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
38270 sjlj_except_unwind_info.
38271
38272 2011-01-25 Richard Guenther <rguenther@suse.de>
38273
38274 PR tree-optimization/47426
38275 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
38276 visible functions results escape.
38277
38278 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38279
38280 PR target/45701
38281 * config/arm/arm.c (any_sibcall_uses_r3): New function.
38282 (arm_get_frame_offsets): Use it.
38283
38284 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38285 Jakub Jelinek <jakub@redhat.com>
38286
38287 PR tree-optimization/47271
38288 * tree-if-conv.c (bb_postdominates_preds): New.
38289 (if_convertible_bb_p): Call bb_postdominates_preds.
38290 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
38291 (predicate_scalar_phi): Call bb_postdominates_preds.
38292
38293 2011-01-25 Nick Clifton <nickc@redhat.com>
38294
38295 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
38296 * config/rx/rx.c (rx_function_value): Likewise.
38297 (rx_promote_function_mode): Likewise.
38298 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
38299 in order to make it legitimate.
38300 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
38301 make sure that the first operand is the same as the result register.
38302 (addsi3_unspec): Delete.
38303 (subdi3): Do not accept immediate operands.
38304 (subdi3_internal): Likewise.
38305
38306 2011-01-25 Jeff Law <law@redhat.com>
38307
38308 PR rtl-optimization/37273
38309 * ira-costs.c (scan_one_insn): Detect constants living in memory and
38310 handle them like argument loads from stack slots. Do not double
38311 count memory for memory constants and argument loads from stack slots.
38312
38313 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38314
38315 PR tree-optimization/47427
38316 PR tree-optimization/47428
38317 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
38318 coalesce if the new root var would be TREE_READONLY.
38319
38320 2011-01-25 Richard Guenther <rguenther@suse.de>
38321
38322 PR middle-end/47414
38323 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
38324 correct type for TBAA.
38325
38326 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38327
38328 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
38329 (close_phi_written_to_memory): Call for_each_index with
38330 dr_indices_valid_in_loop.
38331
38332 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38333
38334 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
38335 when it is initialized.
38336
38337 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38338
38339 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
38340 call to graphite_find_data_references_in_stmt.
38341 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
38342 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
38343 call to graphite_find_data_references_in_stmt.
38344 (analyze_drs_in_stmts): Same.
38345 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
38346 in which the scalar analysis of indices is performed.
38347 (create_data_ref): Same. Update call to dr_analyze_indices.
38348 (find_data_references_in_stmt): Update call to create_data_ref.
38349 (graphite_find_data_references_in_stmt): Same.
38350 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
38351 declaration.
38352 (create_data_ref): Same.
38353 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
38354 call to create_data_ref.
38355
38356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38357
38358 * graphite-sese-to-poly.c (build_poly_scop): Move
38359 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
38360
38361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38362
38363 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
38364 VAR_DECL, PARM_DECL, and RESULT_DECL.
38365
38366 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38367
38368 * graphite-dependences.c (reduction_dr_1): Allow several reductions
38369 in a reduction PBB.
38370 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
38371 that have already been marked as PBB_IS_REDUCTION.
38372
38373 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38374
38375 * graphite-scop-detection.c (same_close_phi_node): New.
38376 (remove_duplicate_close_phi): New.
38377 (make_close_phi_nodes_unique): New.
38378 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
38379
38380 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38381
38382 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
38383 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
38384 of both data references to be the same.
38385
38386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38387
38388 * graphite-dependences.c (build_lexicographical_constraint): Remove
38389 the gdim parameter.
38390 (build_lexicographical_constraint): Adjust call to
38391 ppl_powerset_is_empty.
38392 (dependence_polyhedron): Same.
38393 (graphite_legal_transform_dr): Same.
38394 (graphite_carried_dependence_level_k): Same.
38395 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
38396 parameter.
38397 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
38398
38399 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38400
38401 * graphite-sese-to-poly.c
38402 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
38403 (close_phi_written_to_memory): New.
38404 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
38405 and unshare_expr.
38406
38407 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38408
38409 * doc/install.texi: Update the expected version number of PPL to 0.11.
38410 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
38411 #if PPL_VERSION_MINOR < 11.
38412
38413 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38414
38415 * graphite-dependences.c: Include graphite-cloog-util.h.
38416 (new_poly_ddr): Inlined into dependence_polyhedron.
38417 (free_poly_ddr): Moved close by new_poly_ddr.
38418 (dependence_polyhedron_1): Renamed dependence_polyhedron.
38419 Early return NULL when ppl_powerset_is_empty returns true.
38420 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
38421 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
38422 (graphite_legal_transform_dr): Call new_poly_ddr.
38423 (graphite_carried_dependence_level_k): Same.
38424 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
38425 (dot_transformed_deps_stmt_1): Removed.
38426 (dot_deps_stmt_1): Call dot_deps_stmt_2.
38427 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
38428 (dot_deps_1): Call dot_deps_2.
38429 * Makefile.in (graphite-dependences.o): Add missing dependence on
38430 graphite-cloog-util.h.
38431
38432 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38433
38434 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
38435 (build_lexicographical_constraint): Same.
38436 (dependence_polyhedron_1): Same.
38437 (graphite_legal_transform_dr): Same.
38438 (graphite_carried_dependence_level_k): Same.
38439 * graphite-ppl.c (ppl_powerset_is_empty): New.
38440 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
38441 * tree-data-ref.c (dump_data_reference): Print the basic block index.
38442
38443 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38444
38445 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
38446 the "a followed by b" relation and document it.
38447
38448 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38449
38450 * graphite-dependences.c (build_lexicographical_constraint): Stop the
38451 iteration when the bag of constraints is empty.
38452
38453 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38454
38455 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
38456
38457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38458
38459 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
38460 nest and two loop depths as parameters.
38461 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
38462 lst_perfect_nestify.
38463
38464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38465
38466 * graphite-dependences.c (print_pddr): Call
38467 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
38468
38469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38470
38471 * graphite-ppl.c (debug_gmp_value): New.
38472 * graphite-ppl.h (debug_gmp_value): Declared.
38473
38474 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
38475
38476 * doc/install.texi: Document availability of cloog-0.16.
38477
38478 2011-01-25 Vladimir Kargov <kargov@gmail.com>
38479
38480 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
38481 invalid postdominance info.
38482
38483 2011-01-24 Jan Hubicka <jh@suse.cz>
38484
38485 PR c/21659
38486 * doc/extend.texi (weak pragma): Drop claim that it must
38487 appear before definition.
38488 * varasm.c (merge_weak, declare_weak): Only sanity check
38489 that DECL is not output at a time it is declared weak.
38490
38491 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
38492
38493 * machmode.def: Fixed comments.
38494
38495 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
38496
38497 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
38498
38499 2011-01-24 Paul Koning <ni1d@arrl.net>
38500
38501 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
38502 WORDS_BIG_ENDIAN.
38503
38504 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
38505
38506 PR target/46519
38507 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
38508 (block_info): Add scanned and prev.
38509 (move_or_delete_vzeroupper_2): Return if the basic block
38510 has been scanned and the upper 128bit state is unchanged
38511 from the last scan.
38512 (move_or_delete_vzeroupper_1): Return true if the exit
38513 state is changed.
38514 (move_or_delete_vzeroupper): Visit basic blocks using the
38515 work-list based algorithm based on vt_find_locations in
38516 var-tracking.c.
38517
38518 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
38519
38520 2011-01-24 Nick Clifton <nickc@redhat.com>
38521
38522 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
38523 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
38524 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
38525 then define __v850e1__.
38526 * doc/invoke.texi: Document -mv850es.
38527
38528 2011-01-24 Richard Henderson <rth@redhat.com>
38529
38530 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
38531 compound unordered comparisons.
38532 * config/rx/rx.c (rx_split_fp_compare): Remove.
38533 * config/rx/rx-protos.h: Update.
38534 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
38535 (cbranchsf4): Don't call rx_split_fp_compare.
38536 (*cbranchsf4): Use rx_split_cbranch.
38537 (*cmpsf): Don't accept "i" constraint.
38538 (*conditional_branch): Only valid after reload.
38539 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
38540
38541 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
38542
38543 PR target/47385
38544 * config/rs6000/altivec.md (vector constant splitters): Add
38545 support for creating vector single precision constants if -mvsx is
38546 used and we would create the constant using Altivec primitives.
38547
38548 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
38549 Richard Sandiford <rdsandiford@googlemail.com>
38550
38551 PR rtl-optimization/47166
38552 * reload1.c (emit_reload_insns): Disable the spill_reg_store
38553 mechanism for PRE_MODIFY and POST_MODIFY.
38554 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
38555 reloadreg.
38556
38557 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
38558
38559 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
38560
38561 2011-01-22 Jan Hubicka <jh@suse.cz>
38562
38563 PR lto/47333
38564 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
38565
38566 2011-01-22 Jan Hubicka <jh@suse.cz>
38567
38568 PR tree-optimization/43884
38569 PR lto/44334
38570 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
38571 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
38572
38573 2011-01-22 Anatoly Sokolov <aesok@post.ru>
38574
38575 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
38576 * config/s390/s390.c (s390_register_move_cost,
38577 s390_memory_move_cost): New.
38578 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
38579
38580 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38581
38582 PR middle-end/47401
38583 * except.c (sjlj_assign_call_site_values): Move setting the
38584 crtl->uses_eh_lsda flag to ...
38585 (sjlj_mark_call_sites): ... here.
38586 (sjlj_emit_function_enter): Support NULL dispatch label.
38587 (sjlj_build_landing_pads): In a function with no landing pads
38588 that still has must-not-throw regions, generate code to register
38589 a personality function with empty LSDA.
38590
38591 2011-01-21 Richard Henderson <rth@redhat.com>
38592
38593 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
38594
38595 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
38596
38597 * compare-elim.c: New file.
38598 * Makefile.in (OBJS-common): Add it.
38599 (compare-elim.o): New.
38600 * common.opt (fcompare-elim): New.
38601 * opts.c (default_options_table): Add OPT_fcompare_elim.
38602 * tree-pass.h (pass_compare_elim_after_reload): New.
38603 * passes.c (init_optimization_passes): Add it.
38604 * recog.h: Protect against re-inclusion.
38605 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
38606 * doc/invoke.texi (-fcompare-elim): Document it.
38607 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
38608 * doc/tm.texi: Rebuild.
38609
38610 2011-01-22 Nick Clifton <nickc@redhat.com>
38611
38612 * config/rx/rx.md (cstoresf4): Pass comparison operator to
38613 rx_split_fp_compare.
38614
38615 2011-01-22 Nick Clifton <nickc@redhat.com>
38616
38617 * config/rx/rx.md (UNSPEC_CONST): New.
38618 (deallocate_and_return): Wrap the amount popped off the stack in
38619 an UNSPEC_CONST in order to stop it being rejected by
38620 -mmax-constant-size.
38621 (pop_and_return): Add a "(return)" rtx.
38622 (call): Drop the immediate operand.
38623 (call_internal): Likewise.
38624 (call_value): Likewise.
38625 (call_value_internal): Likewise.
38626 (sibcall_internal): Likewise.
38627 (sibcall_value_internal): Likewise.
38628 (sibcall): Likewise. Generate an explicit call using
38629 sibcall_internal.
38630 (sibcall_value): Likewise.
38631 (mov<>): FAIL if a constant operand is not legitimate.
38632 (addsi3_unpsec): New pattern.
38633
38634 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
38635 (ok_for_max_constant): New function.
38636 (gen_safe_add): New function.
38637 (rx_expand_prologue): Use gen_safe_add.
38638 (rx_expand_epilogue): Likewise.
38639 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
38640 UNSPEC CONSTs.
38641
38642 2011-01-21 Jeff Law <law@redhat.com>
38643
38644 PR tree-optimization/47053
38645 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
38646 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
38647 statements are deleted.
38648 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
38649 is nonempty, then purge dead edges and cleanup the CFG.
38650
38651 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38652
38653 PR debug/47402
38654 Temporarily revert:
38655 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38656 PR debug/47106
38657 * tree-dfa.c (create_var_ann): Mark variable as used.
38658
38659 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38660
38661 PR middle-end/45566
38662 * except.c (convert_to_eh_region_ranges): Emit queued no-region
38663 notes from other section in hot/cold partitioning even if
38664 last_action is -3. Increment call_site_base.
38665
38666 PR rtl-optimization/47366
38667 * fwprop.c (forward_propagate_into): Return bool. If
38668 any changes are made, -fnon-call-exceptions is used and
38669 REG_EH_REGION note is present, call purge_dead_edges
38670 and return true if it purged anything.
38671 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
38672 any EH edges were purged.
38673
38674 2011-01-21 Jeff Law <law@redhat.com>
38675
38676 PR rtl-optimization/41619
38677 * caller-save.c (setup_save_areas): Break out code to determine
38678 which hard regs are live across calls by examining the reload chains
38679 so that it is always used.
38680 Eliminate code which checked REG_N_CALLS_CROSSED.
38681
38682 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38683
38684 PR tree-optimization/47355
38685 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
38686 NOP has non-debug uses beyond PHIs in new_bb.
38687
38688 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38689
38690 PR debug/47106
38691 * cfgexpand.c (account_used_vars_for_block): Only account vars
38692 that are annotated as used.
38693 (estimated_stack_frame_size): Don't set TREE_USED.
38694 * tree-dfa.c (create_var_ann): Mark variable as used.
38695
38696 2011-01-21 Richard Guenther <rguenther@suse.de>
38697
38698 PR middle-end/47395
38699 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
38700
38701 2011-01-21 Richard Guenther <rguenther@suse.de>
38702
38703 PR tree-optimization/47365
38704 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
38705 (vn_reference_lookup_pieces): Adjust.
38706 (vn_reference_lookup): Likewise.
38707 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
38708 (vn_reference_lookup_3): Only look through kills if in
38709 VN_WALKREWRITE mode.
38710 (vn_reference_lookup_pieces): Adjust.
38711 (vn_reference_lookup): Likewise.
38712 (visit_reference_op_load): Likewise.
38713 (visit_reference_op_store): Likewise.
38714 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
38715 (compute_avail): Likewise.
38716 (eliminate): Likewise.
38717
38718 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38719
38720 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
38721 DECL_IGNORED_P non-reg vars if they are used.
38722
38723 PR tree-optimization/47391
38724 * varpool.c (const_value_known_p): Return false if
38725 decl is volatile.
38726
38727 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
38728
38729 PR bootstrap/47215
38730 * config/i386/i386.c (ix86_local_alignment): Handle
38731 case for va_list_type_node is nil.
38732 (ix86_canonical_va_list_type): Likewise.
38733
38734 2011-01-21 Alan Modra <amodra@gmail.com>
38735
38736 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
38737 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
38738
38739 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38740
38741 * config/arm/arm.md (define_attr type): Rename f_load
38742 and f_store to f_fpa_load and f_fpa_store. Update.
38743 (write_conflict): Deal with rename fallout.
38744 (*push_fp_multi): Likewise.
38745 * config/arm/fpa.md (f_load): Use f_fpa_load.
38746 (f_store): Use f_fpa_store.
38747 (*movsf_fpa): Likewise.
38748 (*movdf_fpa): Likewise.
38749 (*movxf_fpa): Likewise.
38750 (*thumb2_movsf_fpa): Likewise.
38751 (*thumb2_movdf_fpa): Likewise.
38752 (*thumb2_movxf_fpa): Likewise.
38753 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
38754 f_loadd and f_stored.
38755 (*thumb2_movdi_vfp): Likewise.
38756 (*thumb2_movsf_vfp): Fix attribute to f_loads.
38757 (*thumb2_movsi_vfp): Likewise.
38758 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
38759 Use f_loads instead of f_load.
38760 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
38761
38762 2011-01-20 Anatoly Sokolov <aesok@post.ru>
38763
38764 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
38765 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
38766 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
38767 (xtensa_mode_dependent_address_p): New function.
38768 (constantpool_address_p): Make static. Change return type to bool.
38769 Change argument type to const_rtx. Use CONST_INT_P predicate.
38770
38771 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
38772
38773 PR debug/46583
38774 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
38775
38776 2011-01-20 Jakub Jelinek <jakub@redhat.com>
38777
38778 PR debug/47283
38779 * cfgexpand.c (expand_debug_expr): Instead of generating
38780 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
38781 etc. handling.
38782
38783 2011-01-20 Richard Guenther <rguenther@suse.de>
38784
38785 PR middle-end/47370
38786 * tree-inline.c (remap_gimple_op_r): Recurse manually for
38787 the pointer operand of MEM_REFs.
38788
38789 2011-01-20 Jakub Jelinek <jakub@redhat.com>
38790
38791 PR tree-optimization/46130
38792 * ipa-split.c (consider_split): If return_bb contains non-virtual
38793 PHIs other than for retval or if split_function would not adjust it,
38794 refuse to split.
38795
38796 2011-01-20 Richard Guenther <rguenther@suse.de>
38797
38798 PR tree-optimization/47167
38799 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
38800 Revert previous change, only avoid enumeral type changes.
38801
38802 2011-01-19 Mike Stump <mikestump@comcast.net>
38803
38804 * doc/tm.texi.in (BRANCH_COST): Englishify.
38805 * doc/tm.texi (BRANCH_COST): Likewise.
38806
38807 2011-01-19 Dodji Seketeli <dodji@redhat.com>
38808
38809 PR c++/47291
38810 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
38811 (gen_scheduled_generic_parms_dies): New functions.
38812 (gen_struct_or_union_type_die): Schedule template parameters DIEs
38813 generation for the end of CU compilation.
38814 (dwarf2out_finish): Generate template parameters DIEs here.
38815
38816 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38817
38818 PR debug/46240
38819 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
38820 debug bind stmt on merge edges.
38821
38822 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38823
38824 PR debug/47079
38825 PR debug/46724
38826 * function.c (instantiate_expr): Instantiate incoming rtl of
38827 implicit arguments, and recurse on VALUE_EXPRs.
38828 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
38829 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
38830
38831 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38832
38833 * c-parser.c (c_parser_for_statement): Initialize
38834 collection_expression.
38835
38836 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38837
38838 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
38839
38840 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38841
38842 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
38843 (LINK_SHLIB_SPEC): Don't use %(link_path).
38844 (SUBTARGET_EXTRA_SPECS): Remove link_path.
38845
38846 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38847
38848 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
38849 (NO_SHARED_LIB_SUPPORT): Remove.
38850 (LINK_SHLIB_SPEC): Remove one conditional definition.
38851
38852 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38853
38854 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
38855 %{call_shared}.
38856 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
38857 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
38858 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
38859 %{call_shared} and conditionals on these options not being passed.
38860 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
38861 %{call_shared}.
38862
38863 2011-01-19 Jakub Jelinek <jakub@redhat.com>
38864
38865 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
38866 simplify.
38867
38868 * ipa-split.c: Spelling fixes.
38869
38870 2011-01-19 Richard Henderson <rth@redhat.com>
38871
38872 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
38873 (*mulsi3): Likewise.
38874
38875 * longlong.h [__mn10300__] (count_leading_zeros): New.
38876 [__mn10300__] (umul_ppmm, smul_ppmm): New.
38877 [__mn10300__] (add_ssaaaa, subddmmss): New.
38878 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
38879 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
38880
38881 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38882
38883 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
38884
38885 2011-01-19 Richard Henderson <rth@redhat.com>
38886
38887 * config/mn10300/mn10300.md (addsi3_flags): New.
38888 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
38889 (subsi3_flags, subc_internal, subdi3): New.
38890 (subdi3_internal, *subdi3_degenerate): New.
38891 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
38892
38893 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
38894 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
38895 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
38896 * config/mn10300/mn10300-protos.h: Update.
38897 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
38898 (return_ret): Likewise. Rename from return_internal_regs.
38899 (return_internal): Remove.
38900
38901 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
38902 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
38903 (mn10300_legitimate_constant_p): Likewise.
38904 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
38905 (mn10300_frame_size): New.
38906 (mn10300_expand_prologue): Use it.
38907 (mn10300_expand_epilogue): Likewise.
38908 (mn10300_initial_offset): Likewise.
38909 * config/mn10300/mn10300-protos.h: Update.
38910 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
38911 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
38912 (prologue, epilogue, return_internal): Tidy output code.
38913 (mn10300_store_multiple_operation, return): Likewise.
38914 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
38915 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
38916 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
38917 (load_pic, am33_load_pic): New.
38918 (mn10300_load_pic0, mn10300_load_pic1): New.
38919
38920 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
38921 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
38922 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
38923 (cc_flags_for_mode, cc_flags_for_code): New.
38924 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
38925 overflow flag is not valid. Validate that the flags we need
38926 for the comparison are valid.
38927 (mn10300_output_cmp): Remove.
38928 (mn10300_output_add): New.
38929 (mn10300_select_cc_mode): Use cc_flags_for_code.
38930 (mn10300_split_cbranch): New.
38931 (mn10300_match_ccmode): New.
38932 (mn10300_split_and_operand_count): New.
38933 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
38934 to the function.
38935 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
38936 (addsi3): ... here. Use mn10300_output_add.
38937 (*addsi3_flags): New.
38938 (*am33_subsi3, *mn10300_subsi3): Merge...
38939 (subsi3): ... here. Use attribute isa.
38940 (*subsi3_flags): New.
38941 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
38942 when possible.
38943 (*am33_andsi3, *mn10300_andsi3): Merge...
38944 (andsi3): ... here.
38945 (*andsi3_flags): New.
38946 (andsi3 splitters): New.
38947 (*am33_iorsi3, *mn10300_iorsi3): Merge...
38948 (iorsi3): ... here.
38949 (*iorsi3_flags): New.
38950 (*am33_xorsi3, *mn10300_xorsi3): Merge...
38951 (xorsi3): ... here.
38952 (*xorsi3_flags): New.
38953 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
38954 (one_cmplsi2): ... here.
38955 (*one_cmplsi2_flags): New.
38956 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
38957 instead of "dax" in constraints. Use mn10300_split_cbranch.
38958 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
38959 use matching constraints to eliminate a self-comparison.
38960 (*integer_conditional_branch): Rename from integer_conditional_branch.
38961 Use int_mode_flags to match CC_REG.
38962 (*cbranchsi4_btst, *btstsi): New.
38963 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
38964 mn10300_split_cbranch.
38965 (*am33_cmpsf): Rename from am33_cmpsf.
38966 (*float_conditional_branch): Rename from float_conditional_branch.
38967 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
38968 (zero_extendqisi2): ... here.
38969 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
38970 (zero_extendhisi2): ... here.
38971 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
38972 (extendqisi2): ... here.
38973 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
38974 (extendhisi2): ... here.
38975 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
38976 (ashlsi3): ... here.
38977 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
38978 (lshrsi3): ... here.
38979 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
38980 (ashrsi3): ... here.
38981 (consecutive add peephole): Remove.
38982 * config/mn10300/predicates.md (label_ref_operand): New.
38983 (int_mode_flags): New.
38984 (CCZN_comparison_operator): New.
38985
38986 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
38987 (throughput_42_latency_43): New reservation.
38988 (mulsidi3, umulsidi3): New expanders.
38989 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
38990 the MDR register to allocation; separately allocate the low and
38991 high parts of the DImode result.
38992 (umulsidi3_internal): Similarly.
38993 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
38994 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
38995 (udivsi3, umodsi3): Remove.
38996 (udivmodsi4, divmodsi4): New expanders.
38997 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
38998 (*divmodsi4): Simiarly.
38999 (ext_internal): New.
39000
39001 * config/mn10300/constraints.md ("z"): New constraint.
39002 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
39003 (FIXED_REGISTERS): Don't fix MDR.
39004 (CALL_USED_REGSITERS): Reformat nicely.
39005 (REG_ALLOC_ORDER): Add MDR.
39006 (enum regclass): Add MDR_REGS.
39007 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
39008 (IRA_COVER_CLASSES): Add MDR_REGS.
39009 (REGNO_REG_CLASS): Handle MDR_REG.
39010 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
39011 (mn10300_register_move_cost): Likewise.
39012 * config/mn10300/mn10300.md (MDR_REG): New.
39013 (*movsi_internal): Handle moves to/from MDR_REGS.
39014
39015 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
39016 POST_MODIFY.
39017 (mn10300_secondary_reload): Tidy combination reload classes.
39018 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
39019 addresses for AM33. Allow symbolic offsets for reg+imm.
39020 (mn10300_regno_in_class_p): New.
39021 (mn10300_legitimize_reload_address): New.
39022 * config/mn10300/mn10300.h (enum reg_class): Remove
39023 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
39024 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
39025 SP_OR_GENERAL_REGS.
39026 (REG_CLASS_NAMES): Update to match.
39027 (REG_CLASS_CONTENTS): Likewise.
39028 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
39029 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
39030 (REGNO_IN_RANGE_P): Remove.
39031 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
39032 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
39033 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
39034 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
39035 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
39036 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
39037 (REGNO_GENERAL_P): New.
39038 (HAVE_POST_MODIFY_DISP): New.
39039 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
39040 (LEGITIMIZE_RELOAD_ADDRESS): New.
39041 * config/mn10300/mn10300-protos.h: Update.
39042
39043 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
39044 DATA_REGS for AM33 stack-pointer destination.
39045 (mn10300_preferred_output_reload_class): Likewise.
39046 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
39047 into a form appropriate for ...
39048 (TARGET_SECONDARY_RELOAD): New.
39049 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
39050 * config/mn10300/mn10300-protos.h: Update.
39051 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
39052 reload_insi; use the "A" constraint for the scratch; handle AM33
39053 moves of sp to non-address registers.
39054
39055 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
39056 (*movqi_internal): ... here.
39057 (*am33_movhi, *mn10300_movhi): Merge into...
39058 (*movhi_internal): ... here.
39059 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
39060 as the source/destination of moves from/to SP.
39061 (movsf): Only allow for AM33-2.
39062 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
39063 any integer constant constraint. Only allow for AM33-2. Tidy
39064 all of the alternative outputs.
39065 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
39066 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
39067 for MN103.
39068 (udivsi3, umodsi3): New patterns for MN103 only.
39069
39070 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
39071
39072 * doc/tm.texi.in: Spell out that a lack of register class unions
39073 can lead to ICEs.
39074 * doc/tm.texi: Regenerate.
39075
39076 2011-01-19 Jakub Jelinek <jakub@redhat.com>
39077
39078 PR rtl-optimization/47337
39079 * dce.c (check_argument_store): New function.
39080 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
39081
39082 PR tree-optimization/47290
39083 * tree-eh.c (infinite_empty_loop_p): New function.
39084 (cleanup_empty_eh): Use it.
39085
39086 2011-01-18 Steve Ellcey <sje@cup.hp.com>
39087
39088 PR target/46997
39089 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
39090 (a64_expand_widen_sum): Ditto.
39091 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
39092 (vec_extract_evenodd_help): Ditto.
39093 (vec_extract_evenv4hi): Ditto.
39094 (vec_extract_oddv4hi): Ditto.
39095 (vec_extract_evenv2si): Ditto.
39096 (vec_extract_oddv2si): Ditto.
39097 (vec_extract_evenv2sf): Ditto.
39098 (vec_extract_oddv2sf): Ditto.
39099 (vec_pack_trunc_v4hi: Ditto.
39100 (vec_pack_trunc_v2si): Ditto.
39101 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
39102 (vec_interleave_highv8qi): Ditto.
39103 (mix1_r): Ditto.
39104 (vec_extract_oddv8qi): Ditto.
39105 (vec_interleave_lowv4hi): Ditto.
39106 (vec_interleave_highv4hi): Ditto.
39107 (vec_interleave_lowv2si): Ditto.
39108 (vec_interleave_highv2si): Ditto.
39109
39110 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39111
39112 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
39113 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
39114 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
39115 (pa_c_mode_for_suffix): New.
39116 (TARGET_EXPAND_BUILTIN): Define.
39117 (TARGET_C_MODE_FOR_SUFFIX): Define.
39118 (pa_builtins): Define.
39119 (pa_init_builtins): Register __float128 type and init new support
39120 builtins.
39121 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
39122 * config/pa/quadlib.c (_U_Qfcopysign): New.
39123
39124 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
39125
39126 PR middle-end/46894
39127 * explow.c (allocate_dynamic_stack_space): Do not assume more than
39128 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
39129 are defined.
39130
39131 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39132
39133 PR tree-optimization/47179
39134 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
39135 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
39136
39137 2011-01-18 Richard Guenther <rguenther@suse.de>
39138
39139 PR rtl-optimization/47216
39140 * emit-rtl.c: Include tree-flow.h.
39141 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
39142 of replicating it with different semantics.
39143 * Makefile.in (emit-rtl.o): Adjust.
39144
39145 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39146
39147 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
39148 (cortex_a9_dp): Handle neon types correctly.
39149
39150 2011-01-18 Jakub Jelinek <jakub@redhat.com>
39151
39152 PR rtl-optimization/47299
39153 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
39154 subtarget. Use normal multiplication if both operands are constants.
39155 * expmed.c (expand_widening_mult): Don't try to optimize constant
39156 multiplication if op0 has VOIDmode. Convert op1 constant to mode
39157 before using it.
39158
39159 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39160
39161 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
39162 spacing after 'e.g.', typos, comma, hyphenation.
39163
39164 2011-01-17 Richard Henderson <rth@redhat.com>
39165
39166 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
39167 (rx_restricted_mem_operand): New.
39168 (rx_shift_operand): Use register_operand.
39169 (rx_source_operand, rx_compare_operand): Likewise.
39170 * config/rx/rx.md (addsi3_flags): New expander.
39171 (adddi3): Rewrite as expander.
39172 (adc_internal, *adc_flags, adddi3_internal): New patterns.
39173 (subsi3_flags): New expander.
39174 (subdi3): Rewrite as expander.
39175 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
39176
39177 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
39178 (rx_init_builtins): Remove sat builtin.
39179 (rx_expand_builtin): Likewise.
39180 * config/rx/rx.md (ssaddsi3): New.
39181 (*sat): Rename from sat. Represent the CC_REG input.
39182
39183 * config/rx/predicates.md (rshift_operator): New.
39184 * config/rx/rx.c (rx_expand_insv): Remove.
39185 * config/rx/rx-protos.h: Update.
39186 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
39187 operand to the canonical position.
39188 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
39189 (*bitclr, *bitclr_in_memory): Similarly.
39190 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
39191 (insv): Retain the zero_extract in the expansion.
39192
39193 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
39194 (bswaphi2, bitinvert, revw): Likewise.
39195
39196 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
39197 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
39198 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
39199 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
39200 (bitset, bitset_in_memory): Likewise.
39201 (bitinvert, bitinvert_in_memory): Likewise.
39202 (bitclr, bitclr_in_memory): Likewise.
39203 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
39204 (rx_strend, rx_cmpstrn): Likewise.
39205 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
39206 (bitop peep2 patterns): Remove.
39207
39208 * config/rx/rx.c (rx_match_ccmode): New.
39209 * config/rx/rx-protos.h: Update.
39210 * config/rx/rx.md (abssi2): Clobber, don't set flags.
39211 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
39212 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
39213 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
39214 (fix_truncsfsi2, floatsisf2): Likewise.
39215 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
39216 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
39217 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
39218 (*subsi3_flags, *xorsi3_flags): New.
39219
39220 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
39221
39222 * config/rx/rx.c (rx_print_operand): Remove workaround for
39223 unsplit comparison operations.
39224
39225 * config/rx/rx.md (movsicc): Split after reload.
39226 (*movsicc): Merge *movsieq and *movsine via match_operator.
39227 (*stcc): New pattern.
39228
39229 * config/rx/rx.c (rx_float_compare_mode): Remove.
39230 * config/rx/rx.h (rx_float_compare_mode): Remove.
39231 * config/rx/rx.md (cstoresi4): Split after reload.
39232 (*sccc): New pattern.
39233
39234 * config/rx/predicates.md (label_ref_operand): New.
39235 (rx_z_comparison_operator): New.
39236 (rx_zs_comparison_operator): New.
39237 (rx_fp_comparison_operator): New.
39238 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
39239 Validate that the flags are set properly for the comparison.
39240 (rx_gen_cond_branch_template): Remove.
39241 (rx_cc_modes_compatible): Remove.
39242 (mode_from_flags): New.
39243 (flags_from_code): Rename from flags_needed_for_conditional.
39244 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
39245 (rx_select_cc_mode): Likewise.
39246 (rx_split_fp_compare): New.
39247 (rx_split_cbranch): New.
39248 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
39249 (*cbranchsi4): Use match_operator and rx_split_cbranch.
39250 (*cbranchsf4): Similarly.
39251 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
39252 match_operator and rx_split_cbranch.
39253 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
39254 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
39255 (*cmpsi): Rename from cmpsi.
39256 (*tstsi): Rename from tstsi.
39257 (*cmpsf): Rename from cmpsf; use CC_Fmode.
39258 (*conditional_branch): Rename from conditional_branch.
39259 (*reveresed_conditional_branch): Remove.
39260 (b<code>): Remove expander.
39261 * config/rx/rx-protos.h: Update.
39262
39263 * config/rx/rx.c (rx_compare_redundant): Remove.
39264 * config/rx/rx.md (cmpsi): Don't use it.
39265 * config/rx/rx-protos.h: Update.
39266
39267 * config/rx/rx-modes.def (CC_F): New mode.
39268 * config/rx/rx.c (rx_select_cc_mode): New.
39269 * config/rx/rx.h (SELECT_CC_MODE): Use it.
39270 * config/rx/rx-protos.h: Update.
39271
39272 2011-01-17 Richard Henderson <rth@redhat.com>
39273
39274 * except.c (dump_eh_tree): Fix stray ; after for statement.
39275
39276 2011-01-17 Richard Guenther <rguenther@suse.de>
39277
39278 PR tree-optimization/47313
39279 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
39280 handling before copying the body. Properly deal with
39281 by-reference result in SSA form.
39282
39283 2011-01-17 Ian Lance Taylor <iant@google.com>
39284
39285 PR target/47219
39286 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
39287 (struct_value_alias_set): Don't define.
39288 (sparc_option_override): Don't set sparc_sr_alias_set and
39289 struct_value_alias_set.
39290 (save_or_restore_regs): Use gen_frame_mem rather than calling
39291 set_mem_alias_set.
39292 (sparc_struct_value_rtx): Likewise.
39293
39294 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
39295
39296 PR target/47318
39297 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
39298 (_mm_maskstore_pd): Likewise.
39299 (_mm_maskload_ps): Likewise.
39300 (_mm_maskstore_ps): Likewise.
39301 (_mm256_maskload_pd): Change mask to __m256i.
39302 (_mm256_maskstore_pd): Likewise.
39303 (_mm256_maskload_ps): Likewise.
39304 (_mm256_maskstore_ps): Likewise.
39305
39306 * config/i386/i386-builtin-types.def: Updated.
39307 (ix86_expand_special_args_builtin): Likewise.
39308
39309 * config/i386/i386.c (bdesc_special_args): Update
39310 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
39311 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
39312 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
39313 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
39314
39315 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
39316 Use <avxpermvecmode> on mask register.
39317 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
39318
39319 2011-01-17 Olivier Hainque <hainque@adacore.com>
39320 Michael Haubenwallner <michael.haubenwallner@salomon.at>
39321 Eric Botcazou <ebotcazou@adacore.com>
39322
39323 PR target/46655
39324 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
39325 if <= USHRT_MAX in 32-bit mode.
39326
39327 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39328
39329 * doc/install.texi (Configuration, Specific): Wrap long
39330 lines in examples. Allow line wrapping in long options
39331 and URLs where beneficial for PDF output.
39332
39333 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
39334
39335 * config/mips/mips.c (mips_classify_symbol): Don't return
39336 SYMBOL_PC_RELATIVE for nonlocal labels.
39337
39338 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
39339
39340 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
39341
39342 2011-01-15 Jan Hubicka <jh@suse.cz>
39343
39344 PR tree-optimization/47276
39345 * ipa.c (function_and_variable_visibility): Do not try to mark alias
39346 declarations as needed.
39347
39348 2011-01-15 Martin Jambor <mjambor@suse.cz>
39349
39350 * common.opt (fdevirtualize): New flag.
39351 * doc/invoke.texi (Option Summary): Document it.
39352 * opts.c (default_options_table): Add devirtualize flag.
39353 * ipa-prop.c (detect_type_change): Return immediately if
39354 devirtualize flag is not set.
39355 (detect_type_change_ssa): Likewise.
39356 (compute_known_type_jump_func): Likewise.
39357 (ipa_analyze_virtual_call_uses): Likewise.
39358
39359 2011-01-14 Martin Jambor <mjambor@suse.cz>
39360
39361 PR tree-optimization/45934
39362 PR tree-optimization/46302
39363 * ipa-prop.c (type_change_info): New type.
39364 (stmt_may_be_vtbl_ptr_store): New function.
39365 (check_stmt_for_type_change): Likewise.
39366 (detect_type_change): Likewise.
39367 (detect_type_change_ssa): Likewise.
39368 (compute_complex_assign_jump_func): Check for dynamic type change.
39369 (compute_complex_ancestor_jump_func): Likewise.
39370 (compute_known_type_jump_func): Likewise.
39371 (compute_scalar_jump_functions): Likewise.
39372 (ipa_analyze_virtual_call_uses): Likewise.
39373 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
39374
39375 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39376
39377 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
39378 * config/i386/i386.opt (msse5): New Alias.
39379
39380 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39381
39382 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
39383 * config/sparc/linux64.h (CC1_SPEC): Likewise.
39384 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
39385 * config/sparc/sparc.h (CC1_SPEC): Likewise.
39386
39387 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39388
39389 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
39390 -mcpu options.
39391 * config/sparc/linux64.h (CC1_SPEC): Likewise.
39392 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
39393 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
39394 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
39395 Likewise.
39396 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
39397
39398 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39399
39400 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
39401
39402 2011-01-14 Mike Stump <mikestump@comcast.net>
39403
39404 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
39405 * config/fr30/fr30.md: Likweise
39406 (movsi_push): Likewise.
39407 (movsi_pop): Likewise.
39408 (enter_func): Likewise.
39409 * config/moxie/moxie.md (movsi_push): Likewise.
39410 (movsi_pop): Likewise.
39411
39412 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39413
39414 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
39415 %{no_archive} %{exact_version}.
39416 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
39417 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
39418 %{no_archive} %{exact_version}.
39419 * config/mips/openbsd.h (LINK_SPEC): Likewise.
39420 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
39421 * config/mips/vxworks.h: Likewise.
39422
39423 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39424
39425 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
39426
39427 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39428
39429 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
39430 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
39431
39432 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39433
39434 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
39435 -nodefaultlib.
39436
39437 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39438
39439 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
39440 for mcpu not cpu.
39441 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
39442 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
39443 not cpu.
39444 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
39445 Don't handle -shlib.
39446
39447 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39448
39449 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
39450 (CC1_SPEC): Don't handle -profile.
39451
39452 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39453
39454 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
39455 * config/mips/mips.h (CC1_SPEC): Likewise.
39456
39457 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39458
39459 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
39460 * config/mips/mips.h (CC1_SPEC): Likewise.
39461
39462 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39463
39464 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
39465 * config/m32r/linux.h (LINK_SPEC): Likewise.
39466 * config/mips/linux.h (LINK_SPEC): Likewise.
39467 * config/mips/linux64.h (LINK_SPEC): Likewise.
39468 * config/sparc/linux.h (LINK_SPEC): Likewise.
39469 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
39470 LINK_SPEC): Likewise.
39471 * config/xtensa/linux.h (LINK_SPEC): Likewise.
39472
39473 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39474
39475 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
39476 %{version:-v}.
39477 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
39478
39479 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39480
39481 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
39482 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
39483
39484 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39485
39486 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
39487
39488 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39489
39490 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
39491 supports -Bstatic/-Bdynamic.
39492 * configure: Regenerate.
39493
39494 2011-01-14 Jan Hubicka <jh@suse.cz>
39495 Jack Howarth <howarth@bromo.med.uc.edu>
39496
39497 PR target/46037
39498 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
39499 when checking debug_info_level. Test write_symbols instead of
39500 debug_hooks->var_location when setting flag_var_tracking_uninit.
39501
39502 2011-01-14 Richard Guenther <rguenther@suse.de>
39503
39504 PR tree-optimization/47179
39505 * target.def (ref_may_alias_errno): New target hook.
39506 * targhooks.h (default_ref_may_alias_errno): Declare.
39507 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
39508 (default_ref_may_alias_errno): New function.
39509 * target.h (struct ao_ref_s): Declare.
39510 * tree-ssa-alias.c: Include target.h.
39511 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
39512 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
39513 (targhooks.o): Likewise.
39514 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
39515 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
39516
39517 2011-01-14 Richard Guenther <rguenther@suse.de>
39518
39519 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
39520
39521 2011-01-14 Richard Guenther <rguenther@suse.de>
39522
39523 PR tree-optimization/47280
39524 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
39525 return CFG changes.
39526 (tree_ssa_forward_propagate_single_use_vars): Deal with
39527 CFG changes from associate_plusminus.
39528
39529 2011-01-14 Richard Guenther <rguenther@suse.de>
39530
39531 PR middle-end/47281
39532 Revert
39533 2011-01-11 Richard Guenther <rguenther@suse.de>
39534
39535 PR tree-optimization/46076
39536 * tree-ssa.c (useless_type_conversion_p): Conversions from
39537 unprototyped to empty argument list function types are useless.
39538
39539 2011-01-14 Richard Guenther <rguenther@suse.de>
39540
39541 PR tree-optimization/47286
39542 * tree-ssa-structalias.c (new_var_info): Register variables are global.
39543
39544 2011-01-14 Martin Jambor <mjambor@suse.cz>
39545
39546 PR middle-end/46823
39547 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
39548
39549 2011-01-13 Anatoly Sokolov <aesok@post.ru>
39550
39551 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
39552 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
39553 * config/xtensa/xtensa.c (xtensa_libcall_value,
39554 xtensa_function_value_regno_p): New functions.
39555 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
39556
39557 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
39558
39559 PR c++/47213
39560 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
39561 PE specific hook.
39562 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
39563 New function prototype.
39564 * config/i386/winnt.c (i386_pe_assemble_visibility):
39565 Warn only if attribute was specified by user.
39566
39567 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
39568
39569 PR target/47251
39570 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
39571 floating point.
39572 (floatunsdidf2_fcfidu): Ditto.
39573
39574 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39575
39576 * config/s390/s390.c (print_operand_address): Replace 'error' with
39577 'output_operand_lossage'.
39578 (print_operand): Likewise.
39579
39580 2011-01-13 Jeff Law <law@redhat.com>
39581
39582 PR rtl-optimization/39077
39583 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
39584 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
39585 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
39586 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
39587 * gcse.c (prune_insertions_deletions): New function.
39588 (compute_pre_data): Use it.
39589
39590 2011-01-13 Dodji Seketeli <dodji@redhat.com>
39591
39592 PR debug/PR46973
39593 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
39594 static function.
39595 (prune_unused_types_mark): Use it.
39596
39597 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
39598
39599 PR rtl-optimization/45352
39600 * sel-sched.c: Update copyright years.
39601 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
39602 in the advancing loop when we have issued issue_rate insns.
39603
39604 2011-01-12 Richard Henderson <rth@redhat.com>
39605
39606 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
39607 (TARGET_MD_ASM_CLOBBERS): New.
39608
39609 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
39610 (TARGET_DELEGITIMIZE_ADDRESS): New.
39611
39612 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
39613 (clzsi2, *bsch): New patterns.
39614
39615 * config/mn10300/mn10300.md (INT): New mode iterator.
39616 (*mov<INT>_clr): New pattern, and peep2 to generate it.
39617
39618 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
39619 flag_split_wide_types.
39620
39621 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
39622 (mn10300_trampoline_init): Rewrite without a template, an immediate
39623 load and a direct branch.
39624 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
39625
39626 2011-01-12 Anatoly Sokolov <aesok@post.ru>
39627
39628 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
39629 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
39630 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
39631 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
39632
39633 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
39634
39635 PR debug/47209
39636 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
39637 of type.
39638
39639 2011-01-12 Jan Hubicka <jh@suse.cz>
39640
39641 PR driver/47244
39642 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
39643 (PLUGIN_COND_CLOSE): New macro.
39644 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
39645
39646 2011-01-12 Richard Guenther <rguenther@suse.de>
39647
39648 PR lto/47259
39649 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
39650 register variables in a MEM_REF.
39651
39652 2011-01-12 Joseph Myers <joseph@codesourcery.com>
39653
39654 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
39655 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
39656 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
39657 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
39658 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
39659 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
39660 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
39661 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
39662 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
39663 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
39664 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
39665 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
39666 * config/gnu-user.h: New. Copied from linux.h.
39667 (LINUX_TARGET_STARTFILE_SPEC): Rename to
39668 GNU_USER_TARGET_STARTFILE_SPEC.
39669 (LINUX_TARGET_ENDFILE_SPEC): Rename to
39670 GNU_USER_TARGET_ENDFILE_SPEC.
39671 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
39672 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
39673 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
39674 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
39675 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
39676 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
39677 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
39678 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
39679 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
39680 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
39681 * config/arm/linux-eabi.h (CC1_SPEC): Use
39682 GNU_USER_TARGET_CC1_SPEC.
39683 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
39684 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
39685 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
39686 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
39687 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
39688 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
39689 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
39690 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
39691
39692 2011-01-12 Richard Guenther <rguenther@suse.de>
39693
39694 PR other/46946
39695 * doc/invoke.texi (ffast-math): Document it is turned on
39696 with -Ofast.
39697
39698 2011-01-12 Jan Hubicka <jh@suse.cz>
39699
39700 PR tree-optimization/47233
39701 * opts.c (common_handle_option): Disable ipa-reference with profile
39702 feedback.
39703
39704 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
39705
39706 * c-parser.c (c_parser_objc_at_property_declaration): Improved
39707 error message.
39708
39709 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
39710
39711 * c-parser.c (c_lex_one_token): Updated and reindented some
39712 comments. No changes in code.
39713
39714 2011-01-11 Ian Lance Taylor <iant@google.com>
39715
39716 * godump.c (go_output_var): Don't output the variable if there is
39717 already a type with the same name.
39718
39719 2011-01-11 Ian Lance Taylor <iant@google.com>
39720
39721 * godump.c (go_format_type): Don't generate float80.
39722
39723 2011-01-11 Richard Henderson <rth@redhat.com>
39724
39725 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
39726 declaration. Rewrite for both speed and size.
39727 (mn10300_address_cost_1): Remove.
39728 (mn10300_register_move_cost): New.
39729 (mn10300_memory_move_cost): New.
39730 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
39731 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
39732 extensions, shifts, BSWAP, CLZ.
39733 (mn10300_wide_const_load_uses_clr): Remove.
39734 (TARGET_REGISTER_MOVE_COST): New.
39735 (TARGET_MEMORY_MOVE_COST): New.
39736 * config/mn10300/mn10300-protos.h: Update.
39737 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
39738
39739 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
39740 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
39741 * config/mn10300/mn10300-protos.h: Update.
39742 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
39743 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
39744 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
39745 (*test_int_bitfield, *test_byte_bitfield): Remove.
39746 (*bit_test, *subreg_bit_test): Remove.
39747 * config/mn10300/predicates.md (const_8bit_operand): Remove.
39748
39749 * config/mn10300/constraints.md ("c"): Rename from "A".
39750 ("A", "D"): New constraint letters.
39751 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
39752 (fmssf4, fnmasf4, fnmssf4): Likewise.
39753
39754 * config/mn10300/mn10300.md (isa): New attribute.
39755 (enabled): New attribute.
39756
39757 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
39758 (abssf2, negsf2): Define only for hardware fp.
39759 (sqrtsf2): Reformat.
39760 (addsf3, subsf3, mulsf3): Merge expander and insn.
39761
39762 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
39763 (DEBUGGER_AUTO_OFFSET): Remove.
39764 (DEBUGGER_ARG_OFFSET): Remove.
39765
39766 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
39767 Emit register stores with the same offsets as the hardware.
39768 (mn10300_store_multiple_operation): Don't check that the register
39769 save offsets are monotonic.
39770 * config/mn10300/mn10300-protos.h: Update.
39771
39772 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
39773
39774 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
39775 in terms of the value on the stack, not the MDR register.
39776
39777 2011-01-11 Jan Hubicka <jh@suse.cz>
39778
39779 PR lto/45721
39780 PR lto/45375
39781 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
39782 (symbol_alias_set_destroy, symbol_alias_set_contains,
39783 propagate_aliases_backward): Declare.
39784 * lto-streamer-out.c (struct sets): New sturcture.
39785 (trivally_defined_alias): New function.
39786 (output_alias_pair_p): Rewrite.
39787 (output_unreferenced_globals): Fix output of alias pairs.
39788 (produce_symtab): Likewise.
39789 * ipa.c (function_and_variable_visibility): Set weak alias destination
39790 as needed in lto.
39791 * varasm.c (symbol_alias_set_t): Remove.
39792 (symbol_alias_set_destroy): Export.
39793 (propagate_aliases_forward, propagate_aliases_backward): New functions
39794 based on ...
39795 (compute_visible_aliases): ... this one; remove.
39796 (trivially_visible_alias): New
39797 (trivially_defined_alias): New.
39798 (remove_unreachable_alias_pairs): Rewrite.
39799 (finish_aliases_1): Reorganize code checking if alias is defined.
39800 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
39801 in LTO mode.
39802
39803 2011-01-11 Richard Guenther <rguenther@suse.de>
39804
39805 PR tree-optimization/46076
39806 * tree-ssa.c (useless_type_conversion_p): Conversions from
39807 unprototyped to empty argument list function types are useless.
39808
39809 2011-01-11 Richard Guenther <rguenther@suse.de>
39810
39811 PR middle-end/45235
39812 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
39813 volatile MEMs as MEM_READONLY_P.
39814
39815 2011-01-11 Richard Guenther <rguenther@suse.de>
39816
39817 PR tree-optimization/47239
39818 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
39819
39820 2011-01-11 Jeff Law <law@redhat.com>
39821
39822 PR tree-optimization/47086
39823 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
39824 IVs from statements that might throw.
39825
39826 2011-01-10 Jan Hubicka <jh@suse.cz>
39827
39828 PR lto/45375
39829 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
39830
39831 2011-01-10 Jan Hubicka <jh@suse.cz>
39832
39833 PR lto/45375
39834 * profile.c (read_profile_edge_counts): Ignore profile inconistency
39835 when correcting profile.
39836
39837 2011-01-10 Jan Hubicka <jh@suse.cz>
39838
39839 PR lto/46083
39840 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
39841 DECL_FINI_PRIORITY.
39842 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
39843 Restore DECL_FINI_PRIORITY.
39844
39845 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39846
39847 * doc/gimple.texi: Fix quoting of multi-word return values in
39848 @deftypefn statements. Ensure presence of return value. Wrap
39849 overlong @deftypefn lines.
39850 (is_gimple_operand, is_gimple_min_invariant_address): Remove
39851 descriptions of removed functions.
39852 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
39853 of multi-word return value in @deftypefn statement.
39854
39855 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39856
39857 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
39858 (Conditional Expressions, Logical Operators)
39859 (Statement and operand traversals): Do not indent smallexample
39860 code. Fix duplicate function argument in example.
39861
39862 2011-01-10 Jeff Law <law@redhat.com>
39863
39864 PR tree-optimization/47141
39865 * ipa-split.c (split_function): Handle case where we are
39866 returning a value and the return block has a virtual operand phi.
39867
39868 2011-01-10 Jan Hubicka <jh@suse.cz>
39869
39870 PR tree-optimization/47234
39871 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
39872 (pass_feedback_split_functions): Declare.
39873 * passes.c (init_optimization_passes): Add ipa-split as subpass of
39874 tree-profile.
39875 * ipa-split.c (gate_split_functions): Update comments; disable
39876 split-functions for profile_arc_flag and branch_probabilities.
39877 (gate_feedback_split_functions): New function.
39878 (execute_feedback_split_functions): New function.
39879 (pass_feedback_split_functions): New global var.
39880
39881 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
39882
39883 PR lto/46760
39884 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
39885 calling gimple_call_set_cannot_inline.
39886
39887 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
39888
39889 * config/darwin-sections.def: Remove unused section.
39890
39891 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
39892
39893 PR c++/47218
39894 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
39895
39896 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
39897
39898 PR objc/47232
39899 * c-parser.c (c_parser_declaration_or_fndef): Improved
39900 error message.
39901
39902 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
39903
39904 * config/i386/winnt.c (i386_pe_start_function): Make sure
39905 to switch back to function's section.
39906
39907 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
39908
39909 PR gcc/46902
39910 PR testsuite/46912
39911 * plugin.c: Move include of dlfcn.h from here...
39912 * system.h: ... to here.
39913
39914 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39915
39916 * doc/cpp.texi (C++ Named Operators): Fix markup for header
39917 file name.
39918 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
39919 two extra empty pages in PDF output.
39920
39921 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
39922
39923 PR objc/47078
39924 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
39925 for error recovery purposes behave as if it was not specified so
39926 that the default type is usd.
39927
39928 2011-01-07 Jan Hubicka <jh@suse.cz>
39929
39930 PR tree-optmization/46469
39931 * ipa.c (function_and_variable_visibility): Clear needed flags on
39932 nodes with external decls; handle weakrefs merging correctly.
39933
39934 2011-01-07 Joseph Myers <joseph@codesourcery.com>
39935
39936 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
39937 not false.
39938
39939 2011-01-07 Jan Hubicka <jh@suse.cz>
39940
39941 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
39942 and no longer claim that gold is required for linker plugin.
39943 * configure: Regenerate.
39944 * gcc.c (PLUGIN_COND): New macro.
39945 (LINK_COMMAND_SPEC): Use it.
39946 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
39947 * config.in (HAVE_LTO_PLUGIN): New.
39948 * configure.ac (--with-lto-plugin): New parameter; autodetect
39949 HAVE_LTO_PLUGIN.
39950
39951 2011-01-07 Jan Hubicka <jh@suse.cz>
39952
39953 PR tree-optimization/46367
39954 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
39955 when we can update original.
39956 (cgraph_mark_inline_edge): Sanity check.
39957 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
39958
39959 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39960
39961 * config/spu/spu.h (ASM_COMMENT_START): Define.
39962
39963 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
39964
39965 PR driver/42445
39966 * gcc.c (%>S): New.
39967 (SWITCH_KEEP_FOR_GCC): Likewise.
39968 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
39969 (do_spec_1): Handle "%>".
39970
39971 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
39972
39973 2011-01-07 Jakub Jelinek <jakub@redhat.com>
39974
39975 PR target/47201
39976 * config/i386/i386.c (ix86_delegitimize_address): If
39977 simplify_gen_subreg fails, return orig_x.
39978
39979 PR bootstrap/47187
39980 * value-prof.c (gimple_stringop_fixed_value): Handle
39981 lhs of the call properly.
39982
39983 2011-01-07 Jan Hubicka <jh@suse.cz>
39984
39985 PR lto/45375
39986 * lto-opt.c (lto_reissue_options): Set flag_shlib.
39987
39988 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
39989
39990 * target.def (function_switched_text_sections): New hook.
39991 * doc/tm.texi: Regenerated.
39992 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
39993 * final.c (default_function_switched_text_sections): New.
39994 (final_scan_insn): Call function_switched_text_sections when a
39995 mid-function section change occurs.
39996 * output.h (default_function_switched_text_sections): Declare.
39997 * config/darwin-protos.h (darwin_function_switched_text_sections):
39998 Likewise.
39999 * config/darwin.c (darwin_function_switched_text_sections): New.
40000 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
40001
40002 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
40003
40004 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
40005 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
40006 the secondary code fragment when outputting for DWARF == 2.
40007
40008 2011-01-07 Anatoly Sokolov <aesok@post.ru>
40009
40010 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
40011 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
40012 Remove.
40013 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
40014 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
40015
40016 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
40017
40018 PR debug/46704
40019 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
40020 when it is not empty.
40021
40022 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
40023
40024 Bobcat Enablement
40025 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
40026 (case ${target}): Add btver1.
40027 * config/i386/driver-i386.c (host_detect_local_cpu): Let
40028 -march=native recognize btver1 processors.
40029 * config/i386/i386-c.c (ix86_target_macros_internal): Add
40030 btver1 def_and_undef
40031 * config/i386/i386.c (struct processor_costs btver1_cost): New
40032 btver1 cost table.
40033 (m_BTVER1): New definition.
40034 (m_AMD_MULTIPLE): Includes m_BTVER1.
40035 (initial_ix86_tune_features): Add btver1 tune.
40036 (processor_target_table): Add btver1 entry.
40037 (static const char *const cpu_names): Add btver1 entry.
40038 (software_prefetching_beneficial_p): Add btver1.
40039 (ix86_option_override_internal): Add btver1 instruction sets.
40040 (ix86_issue_rate): Add btver1.
40041 (ix86_adjust_cost): Add btver1.
40042 * config/i386/i386.h (TARGET_BTVER1): New definition.
40043 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
40044 (enum processor_type): Add PROCESSOR_BTVER1.
40045 * config/i386/i386.md (define_attr "cpu"): Add btver1.
40046
40047 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40048
40049 PR target/43309
40050 * config/i386/i386.c (legitimize_tls_address)
40051 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
40052 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
40053 (tls_initial_exec_64_sun): New pattern.
40054
40055 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
40056
40057 * doc/invoke.texi (Overall Options): Improve wording and markup
40058 of the description of -wrapper.
40059
40060 2011-01-06 Joseph Myers <joseph@codesourcery.com>
40061
40062 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
40063 rdynamic, threads): New Driver options.
40064
40065 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40066
40067 PR target/38118
40068 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
40069 if coming from .tdata.
40070 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
40071
40072 2011-01-06 Jan Hubicka <jh@suse.cz>
40073
40074 PR lto/47188
40075 * collect2.c (main): Do not enable LTOmode when plugin is active.
40076
40077 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40078
40079 PR other/45915
40080 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
40081 --version output if supported.
40082 * configure: Regenerate.
40083
40084 2011-01-06 Joseph Myers <joseph@codesourcery.com>
40085
40086 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
40087 Driver options.
40088
40089 2011-01-06 Jakub Jelinek <jakub@redhat.com>
40090
40091 PR c/47150
40092 * c-convert.c (convert): When converting a complex expression
40093 other than COMPLEX_EXPR to a different complex type, ensure
40094 c_save_expr is called instead of save_expr, unless in_late_binary_op.
40095 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
40096 when converting COMPLEX_TYPE.
40097
40098 2011-01-06 Ira Rosen <irar@il.ibm.com>
40099
40100 PR tree-optimization/47139
40101 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
40102 only the last reduction value is used outside the loop. Update
40103 documentation.
40104
40105 2011-01-05 Joseph Myers <joseph@codesourcery.com>
40106
40107 * config/rtems.opt: New.
40108 * config.gcc (*-*-rtems*): Use rtems.opt.
40109
40110 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
40111
40112 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
40113 processors do not support 3DNow instructions.
40114
40115 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40116
40117 * config/spu/spu.c (spu_option_override): Set parameter
40118 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
40119
40120 2011-01-05 Jan Hubicka <jh@suse.cz>
40121
40122 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
40123 at the command line.
40124
40125 2011-01-05 Martin Jambor <mjambor@suse.cz>
40126
40127 PR lto/47162
40128 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
40129 deltas on streamed outgoing edges.
40130 (output_node_opt_summary): Output info for outgoing edges only when
40131 the node is in new parameter set.
40132 (output_cgraph_opt_summary): New parameter set, passed to the two
40133 aforementioned functions. Update its forward declaration and its
40134 callee too.
40135
40136 2011-01-05 Tom Tromey <tromey@redhat.com>
40137
40138 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
40139 operator to c_finish_omp_atomic.
40140 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
40141 (build_unary_op): Update.
40142 (build_modify_expr): Update.
40143 (build_asm_expr): Update.
40144
40145 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40146
40147 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
40148 newly inserted insns.
40149 (pad_bb): Likewise.
40150 (spu_emit_branch_hint): Likewise.
40151 (insert_hbrp_for_ilb_runout): Likewise.
40152 (spu_machine_dependent_reorg): Call df_finish_pass after
40153 schedule_insns returns.
40154
40155 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40156
40157 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
40158
40159 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
40160
40161 PR tree-optimization/47005
40162 * tree-sra.c (struct access): Add 'non_addressable' bit.
40163 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
40164 (decide_one_param_reduction): Return 0 if the parameter is passed by
40165 reference and one of the accesses in the group is non_addressable.
40166
40167 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
40168
40169 PR tree-optimization/47056
40170 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
40171 (mark_load): Likewise. Handle FUNCTION_DECL specially.
40172 (mark_store): Likewise. Pass STMT to ipa_record_reference.
40173
40174 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
40175
40176 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
40177 initializer. Skip view conversions from aggregate types.
40178
40179 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
40180
40181 PR bootstrap/47055
40182 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
40183
40184 2011-01-04 Philipp Thomas <pth@suse.de>
40185
40186 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
40187 obvious typo.
40188
40189 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40190
40191 * function.c (thread_prologue_and_epilogue_insns): Do not crash
40192 on empty epilogue sequences.
40193
40194 2011-01-04 Joseph Myers <joseph@codesourcery.com>
40195
40196 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
40197 non-static): New Driver options.
40198
40199 2011-01-04 Jie Zhang <jie@codesourcery.com>
40200
40201 PR driver/47137
40202 * gcc.c (default_compilers[]): Set combinable field to 0
40203 for all assembly languages.
40204
40205 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
40206
40207 * config/mips/loongson3a.md: New file.
40208 * config/mips/mips.md: Include loongson3a.md.
40209 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
40210 TUNE_LOONGSON_3A.
40211
40212 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
40213
40214 PR middle-end/47017
40215 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
40216 instead of convert_memory_address_addr_space on the base expression.
40217
40218 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40219
40220 * config/spu/spu.c (spu_option_override): Update error text
40221 for bad -march= / -mtune= values.
40222
40223 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40224
40225 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
40226 if branch-hint optimization will be performed.
40227
40228 2011-01-03 Jakub Jelinek <jakub@redhat.com>
40229
40230 PR tree-optimization/47148
40231 * ipa-split.c (split_function): Convert arguments to
40232 DECL_ARG_TYPE if possible.
40233
40234 PR tree-optimization/47155
40235 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
40236 when computing uns.
40237
40238 PR rtl-optimization/47157
40239 * combine.c (try_combine): If undobuf.other_insn becomes
40240 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
40241 and set *new_direct_jump_p too.
40242
40243 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
40244
40245 PR tree-optimization/47021
40246 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
40247
40248 2011-01-03 Jakub Jelinek <jakub@redhat.com>
40249
40250 * gcc.c (process_command): Update copyright notice dates.
40251 * gcov.c (print_version): Likewise.
40252 * gcov-dump.c (print_version): Likewise.
40253 * mips-tfile.c (main): Likewise.
40254 * mips-tdump.c (main): Likewise.
40255
40256 2011-01-03 Martin Jambor <mjambor@suse.cz>
40257
40258 PR tree-optimization/46801
40259 * tree-sra.c (type_internals_preclude_sra_p): Check whether
40260 aggregate fields start at byte boundary instead of the bit-field flag.
40261
40262 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
40263
40264 PR driver/47137
40265 * gcc.c (main): Revert revision 168407.
40266
40267 2011-01-03 Martin Jambor <mjambor@suse.cz>
40268
40269 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
40270
40271 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40272
40273 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
40274 vector optab to expand vector/scalar shift, update gimple to vector.
40275
40276 2011-01-03 Martin Jambor <mjambor@suse.cz>
40277
40278 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
40279 a thunk.
40280
40281 2011-01-03 Martin Jambor <mjambor@suse.cz>
40282
40283 PR tree-optimization/46984
40284 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
40285 HOST_WIDE_INT.
40286 (cgraph_create_indirect_edge): Fixed line length.
40287 (cgraph_indirect_call_info): Declare.
40288 (cgraph_make_edge_direct) Update declaration.
40289 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
40290 (cgraph_create_indirect_edge): Use it.
40291 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
40292 callees.
40293 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
40294 the new thunk_delta representation.
40295 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
40296 HOST_WIDE_INT.
40297 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
40298 (ipa_read_indirect_edge_info): Likewise.
40299 * lto-cgraph.c (output_edge_opt_summary): New function.
40300 (output_node_opt_summary): Call it on all outgoing edges.
40301 (input_edge_opt_summary): New function.
40302 (input_node_opt_summary): Call it on all outgoing edges.
40303
40304 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
40305
40306 PR driver/47137
40307 * gcc.c (main): Don't check have_o when settting combine_inputs.
40308
40309 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
40310
40311 * regrename.c: Add general comment describing the pass.
40312 (struct du_head): Remove 'length' field.
40313 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
40314 (regrename_optimize): Do not sort chains. Rework comments, add others.
40315 Force renaming to the preferred class (if any) in the first pass and do
40316 not consider registers that belong to it in the second pass.
40317 (create_new_chain): Do not set 'length' field.
40318 (scan_rtx_reg): Likewise.
40319
40320 2011-01-02 Jakub Jelinek <jakub@redhat.com>
40321
40322 PR tree-optimization/47140
40323 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
40324 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
40325 to bit_value_binop.
40326
40327 PR rtl-optimization/47028
40328 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
40329 parm_birth_insn instead of at the beginning of first bb.
40330
40331 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
40332
40333 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
40334 Remove the word "see" before "@pxref".
40335 * doc/rtl.texi: Remove the word "see" before "@pxref".
40336
40337 2011-01-01 Jan Hubicka <jh@suse.cz>
40338
40339 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
40340 memory.
40341
40342 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
40343
40344 PR target/38662
40345 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
40346
40347 \f
40348 Copyright (C) 2011 Free Software Foundation, Inc.
40349
40350 Copying and distribution of this file, with or without modification,
40351 are permitted in any medium without royalty provided the copyright
40352 notice and this notice are preserved.